diff --git a/api_beta/.openapi-generator/FILES b/api_beta/.openapi-generator/FILES index 4c76f4d7b..df7167128 100644 --- a/api_beta/.openapi-generator/FILES +++ b/api_beta/.openapi-generator/FILES @@ -287,7 +287,6 @@ docs/CompleteInvocationInput.md docs/CompletedApproval.md docs/CompletedApprovalPreApprovalTriggerResult.md docs/CompletedApprovalReviewedBy.md -docs/CompletedApprovalReviewerComment.md docs/CompletedApprovalState.md docs/CompletionStatus.md docs/ConditionEffect.md @@ -1183,7 +1182,6 @@ model_complete_invocation_input.go model_completed_approval.go model_completed_approval_pre_approval_trigger_result.go model_completed_approval_reviewed_by.go -model_completed_approval_reviewer_comment.go model_completed_approval_state.go model_completion_status.go model_condition_effect.go diff --git a/api_beta/.openapi-generator/VERSION b/api_beta/.openapi-generator/VERSION index 3769235d3..09a6d3084 100644 --- a/api_beta/.openapi-generator/VERSION +++ b/api_beta/.openapi-generator/VERSION @@ -1 +1 @@ -7.1.0 \ No newline at end of file +7.8.0 diff --git a/api_beta/README.md b/api_beta/README.md index 09149636e..d3f943549 100644 --- a/api_beta/README.md +++ b/api_beta/README.md @@ -7,6 +7,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat - API version: 3.1.0-beta - Package version: 2.1.8 +- Generator version: 7.8.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit [https://developer.sailpoint.com/discuss/api-help](https://developer.sailpoint.com/discuss/api-help) @@ -14,7 +15,7 @@ For more information, please visit [https://developer.sailpoint.com/discuss/api- Install the following dependencies: -```shell +```sh go get github.com/stretchr/testify/assert go get golang.org/x/oauth2 go get golang.org/x/net/context @@ -22,13 +23,13 @@ go get golang.org/x/net/context Put the package under your project folder and add the following in import: -```golang +```go import api_beta "github.com/sailpoint-oss/golang-sdk/v2" ``` To use a proxy, set the environment variable `HTTP_PROXY`: -```golang +```go os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") ``` @@ -40,7 +41,7 @@ Default configuration comes with `Servers` field that contains server objects as For using other server than the one defined on index 0 set context value `api_beta.ContextServerIndex` of type `int`. -```golang +```go ctx := context.WithValue(context.Background(), api_beta.ContextServerIndex, 1) ``` @@ -48,7 +49,7 @@ ctx := context.WithValue(context.Background(), api_beta.ContextServerIndex, 1) Templated server URL is formatted using default variables from configuration or from context value `api_beta.ContextServerVariables` of type `map[string]string`. -```golang +```go ctx := context.WithValue(context.Background(), api_beta.ContextServerVariables, map[string]string{ "basePath": "v2", }) @@ -62,7 +63,7 @@ Each operation can use different server URL defined using `OperationServers` map An operation is uniquely identified by `"{classname}Service.{nickname}"` string. Similar rules for overriding default operation server index and variables applies by using `api_beta.ContextOperationServerIndices` and `api_beta.ContextOperationServerVariables` context maps. -```golang +```go ctx := context.WithValue(context.Background(), api_beta.ContextOperationServerIndices, map[string]int{ "{classname}Service.{nickname}": 2, }) @@ -799,7 +800,6 @@ Class | Method | HTTP request | Description - [CompletedApproval](docs/CompletedApproval.md) - [CompletedApprovalPreApprovalTriggerResult](docs/CompletedApprovalPreApprovalTriggerResult.md) - [CompletedApprovalReviewedBy](docs/CompletedApprovalReviewedBy.md) - - [CompletedApprovalReviewerComment](docs/CompletedApprovalReviewerComment.md) - [CompletedApprovalState](docs/CompletedApprovalState.md) - [CompletionStatus](docs/CompletionStatus.md) - [ConditionEffect](docs/ConditionEffect.md) @@ -1456,14 +1456,14 @@ Authentication schemes defined for the API: Example -```golang +```go auth := context.WithValue(context.Background(), api_beta.ContextAccessToken, "ACCESSTOKENSTRING") r, err := client.Service.Operation(auth, args) ``` Or via OAuth2 module to automatically refresh tokens and perform user authentication. -```golang +```go import "golang.org/x/oauth2" /* Perform OAuth2 round trip request and obtain a token */ @@ -1485,14 +1485,14 @@ r, err := client.Service.Operation(auth, args) Example -```golang +```go auth := context.WithValue(context.Background(), api_beta.ContextAccessToken, "ACCESSTOKENSTRING") r, err := client.Service.Operation(auth, args) ``` Or via OAuth2 module to automatically refresh tokens and perform user authentication. -```golang +```go import "golang.org/x/oauth2" /* Perform OAuth2 round trip request and obtain a token */ @@ -1513,14 +1513,14 @@ r, err := client.Service.Operation(auth, args) Example -```golang +```go auth := context.WithValue(context.Background(), api_beta.ContextAccessToken, "ACCESSTOKENSTRING") r, err := client.Service.Operation(auth, args) ``` Or via OAuth2 module to automatically refresh tokens and perform user authentication. -```golang +```go import "golang.org/x/oauth2" /* Perform OAuth2 round trip request and obtain a token */ diff --git a/api_beta/api/openapi.yaml b/api_beta/api/openapi.yaml index fcae4d06b..053846182 100644 --- a/api_beta/api/openapi.yaml +++ b/api_beta/api/openapi.yaml @@ -58291,6 +58291,102 @@ components: example: NO_DECISIONS type: string type: object + example: + totalCertifications: 100 + sourcesWithOrphanEntitlements: + - name: Source with orphan entitlements + id: 2c90ad2a70ace7d50170acf22ca90010 + type: SOURCE + - name: Source with orphan entitlements + id: 2c90ad2a70ace7d50170acf22ca90010 + type: SOURCE + recommendationsEnabled: true + sunsetCommentsRequired: true + created: 2020-03-03T22:15:13.611Z + description: Everyone needs to be reviewed by their manager + type: MANAGER + sourceOwnerCampaignInfo: + sourceIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 + emailNotificationEnabled: false + alerts: + - level: ERROR + localizations: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - level: ERROR + localizations: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + filter: + name: Test Filter + id: 0fbe863c063c4c88a35fd7f17e8a3df5 + type: CAMPAIGN_FILTER + searchCampaignInfo: + identityIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 + query: Search Campaign query description + description: Search Campaign description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + type: ACCESS + accessConstraints: + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + autoRevokeAllowed: false + name: Manager Campaign + mandatoryCommentRequirement: NO_DECISIONS + modified: 2020-03-03T22:20:12.674Z + roleCompositionCampaignInfo: + remediatorRef: + name: Role Admin + id: 2c90ad2a70ace7d50170acf22ca90010 + type: IDENTITY + roleIds: + - 2c90ad2a70ace7d50170acf22ca90010 + query: Search Query + description: Role Composition Description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + completedCertifications: 10 + id: 2c9079b270a266a60170a2779fcb0007 + deadline: 2020-03-15T10:00:01.456Z + status: ACTIVE + correlatedStatus: CORRELATED title: Campaign type: object IdentityProfile: @@ -58335,6 +58431,44 @@ components: required: - authoritativeSource type: object + example: + owner: + name: William Wilson + id: 2c9180835d191a86015d28455b4b232a + type: IDENTITY + identityExceptionReportReference: + reportName: My annual report + taskResultId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + authoritativeSource: + name: HR Active Directory + id: 2c9180835d191a86015d28455b4b232a + type: SOURCE + hasTimeBasedAttr: true + created: 2023-01-03T21:16:22.432Z + description: My custom flat file profile + identityRefreshRequired: true + identityCount: 8 + priority: 10 + identityAttributeConfig: + attributeTransforms: + - transformDefinition: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute + identityAttributeName: email + - transformDefinition: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute + identityAttributeName: email + enabled: true + name: aName + modified: 2023-01-03T21:16:22.432Z + id: id12345 ManagedClient: description: Managed Client properties: @@ -58452,7 +58586,7 @@ components: os_type: flatcar hypervisor: unknown type: CCG - status: null + status: NORMAL timestamp: 2020-01-01T00:00:00Z properties: body: @@ -58767,8 +58901,12 @@ components: title: Account Selection for John.Doe targetUser: Jane.Doe sections: - - null - - null + - formItems: [] + name: Field1 + label: Section 1 + - formItems: [] + name: Field1 + label: Section 1 remediationItems: - targetName: john.smith targetId: 2c9180835d2e5168015d32f890ca1581 @@ -58905,8 +59043,12 @@ components: title: Account Selection for John.Doe targetUser: Jane.Doe sections: - - null - - null + - formItems: [] + name: Field1 + label: Section 1 + - formItems: [] + name: Field1 + label: Section 1 nullable: true properties: id: @@ -58959,6 +59101,10 @@ components: type: object type: array type: object + example: + formItems: [] + name: Field1 + label: Section 1 type: object Field: allOf: @@ -58986,13 +59132,12 @@ components: type: object type: array value: - description: Value of the field - type: object + $ref: '#/components/schemas/Field_allOf_value' type: object type: object AccountUsage: example: - date: 2023-04-21T00:00:00.000+00:00 + date: 2023-04-21 count: 10 properties: date: @@ -59009,7 +59154,7 @@ components: type: object SourceUsage: example: - date: 2023-04-21T00:00:00.000+00:00 + date: 2023-04-21 count: 10.45 properties: date: @@ -59102,6 +59247,27 @@ components: type: array type: object ErrorResponseDto: + example: + causes: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + messages: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + detailCode: 400.1 Bad Request Content + trackingId: e7eab60924f64aa284175b9fa3309599 properties: detailCode: description: Fine-grained error code providing more detail of the error. @@ -59407,7 +59573,10 @@ components: type: array Entitlement: example: - owner: null + owner: + name: identity 1 + id: 2a2fdacca5e345f18bf7970cfbb8fec2 + type: IDENTITY created: 2020-10-08T18:33:52.029Z description: "CN=LauncherTest2,OU=LauncherTestOrg,OU=slpt-automation,DC=TestAutomationAD,DC=local" source: @@ -59427,13 +59596,29 @@ components: - SELECT - SELECT target: SYS.GV_$TRANSACTION - manuallyUpdatedFields: null + manuallyUpdatedFields: + DESCRIPTION: true + DISPLAY_NAME: true name: LauncherTest2 modified: 2020-10-08T18:33:52.029Z sourceSchemaObjectType: group attributes: fieldName: fieldValue - accessModelMetadata: null + accessModelMetadata: + attributes: + - key: iscPrivacy + name: Privacy + multiselect: false + status: active + type: governance + objectTypes: + - all + description: Specifies the level of privacy associated with an access + item. + values: + - value: public + name: Public + status: active id: 2c91808874ff91550175097daaec161c attribute: memberOf requestable: true @@ -59730,7 +59915,10 @@ components: id: 2c7180a46faadee4016fb4e018c20642 type: IDENTITY scheme: MANAGER - currentOwner: null + currentOwner: + name: Allen Albertson + id: 2c3780a46faadee4016fb4e018c20652 + type: IDENTITY modified: 2019-08-23T18:52:57.398Z comment: I approve this request forwarded: false @@ -59750,7 +59938,10 @@ components: id: 2c7180a46faadee4016fb4e018c20642 type: IDENTITY scheme: MANAGER - currentOwner: null + currentOwner: + name: Allen Albertson + id: 2c3780a46faadee4016fb4e018c20652 + type: IDENTITY modified: 2019-08-23T18:52:57.398Z comment: I approve this request forwarded: false @@ -59758,17 +59949,116 @@ components: cancelable: true requestType: GRANT_ACCESS created: 2019-08-23T18:40:35.772Z - requesterComment: null - preApprovalTriggerDetails: null + requesterComment: + created: 2017-07-11T18:45:37.098Z + author: + name: john.doe + id: 2c9180847e25f377017e2ae8cae4650b + type: IDENTITY + comment: This is a comment. + preApprovalTriggerDetails: + decision: APPROVED + comment: Access is Approved + reviewer: John Doe description: This is the Engineering role that engineers are granted. type: ACCESS_PROFILE errorMessages: - - null - - null - sodViolationContext: null - cancelledRequestDetails: null + - - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + sodViolationContext: + violationCheckResult: + clientMetadata: + requestedAppName: test-app + requestedAppId: 2c91808f7892918f0178b78da4a305a1 + violationContexts: + - conflictingAccessCriteria: + leftCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + rightCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + policy: + name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + - conflictingAccessCriteria: + leftCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + rightCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + policy: + name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + violatedPolicies: + - name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + - name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + message: + localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + state: SUCCESS + uuid: f73d16e9-a038-46c5-b217-1246e15fdbdd + cancelledRequestDetails: + owner: + name: Support + id: 2c9180a46faadee4016fb4e018c20639 + type: IDENTITY + modified: 2019-12-20T09:17:12.192Z + comment: This request must be cancelled. accessRequestId: 2b838de9-db9b-abcf-e646-d4f274ad4238 - provisioningDetails: null + provisioningDetails: + orderedSubPhaseReferences: manualWorkItemDetails accountActivityItemId: 2c9180926cbfbddd016cbfc7c3b10010 name: AccessProfile1 manualWorkItemDetails: @@ -60178,7 +60468,7 @@ components: name: Support id: 2c9180a46faadee4016fb4e018c20639 type: IDENTITY - reviewerComment: null + reviewerComment: "{}" removeDate: 2020-07-11T00:00:00Z clientMetadata: requestedAppName: test-app @@ -60349,7 +60639,11 @@ components: requesterComment: $ref: '#/components/schemas/CommentDto_1' reviewerComment: - $ref: '#/components/schemas/CompletedApproval_reviewerComment' + allOf: + - $ref: '#/components/schemas/CommentDto' + description: The approval's reviewer's comment. + nullable: true + type: object previousReviewersComments: description: The history of the previous reviewers comments. items: @@ -60679,6 +60973,50 @@ components: - systemAccount - uncorrelated type: object + example: + sourceId: 2c9180835d2e5168015d32f890ca1581 + origin: AGGREGATED + description: description + type: NON_HUMAN + sourceOwner: + name: SailPoint Support + id: 4c5c8534e99445de98eef6c75e25eb01 + type: IDENTITY + connectionType: direct + uuid: slpt.support + ownerIdentity: + name: Adam Kennedy + id: 2c918084660f45d6016617daa9210584 + type: IDENTITY + features: ENABLE + identity: + name: Adam Kennedy + id: 2c918084660f45d6016617daa9210584 + type: IDENTITY + modified: 2023-01-03T21:16:22.432Z + disabled: false + hasEntitlements: true + id: id12345 + locked: false + authoritative: false + created: 2023-01-03T21:16:22.432Z + ownerGroup: + name: GovGroup AX17Z + id: 8d3e0094e99445de98eef6c75e25jc04 + type: GOVERNANCE_GROUP + manuallyCorrelated: false + identityState: ACTIVE + nativeIdentity: "552775" + uncorrelated: false + identityId: 2c9180835d2e5168015d32f890ca1581 + name: aName + cloudLifecycleState: active + attributes: + firstName: SailPoint + lastName: Support + displayName: SailPoint Support + sourceName: Employees + systemAccount: false AccountAttributesCreate: example: attributes: @@ -61165,6 +61503,102 @@ components: example: NO_DECISIONS type: string type: object + example: + totalCertifications: 100 + sourcesWithOrphanEntitlements: + - name: Source with orphan entitlements + id: 2c90ad2a70ace7d50170acf22ca90010 + type: SOURCE + - name: Source with orphan entitlements + id: 2c90ad2a70ace7d50170acf22ca90010 + type: SOURCE + recommendationsEnabled: true + sunsetCommentsRequired: true + created: 2020-03-03T22:15:13.611Z + description: Everyone needs to be reviewed by their manager + type: MANAGER + sourceOwnerCampaignInfo: + sourceIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 + emailNotificationEnabled: false + alerts: + - level: ERROR + localizations: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - level: ERROR + localizations: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + filter: + name: Test Filter + id: 0fbe863c063c4c88a35fd7f17e8a3df5 + type: CAMPAIGN_FILTER + searchCampaignInfo: + identityIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 + query: Search Campaign query description + description: Search Campaign description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + type: ACCESS + accessConstraints: + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + autoRevokeAllowed: false + name: Manager Campaign + mandatoryCommentRequirement: NO_DECISIONS + modified: 2020-03-03T22:20:12.674Z + roleCompositionCampaignInfo: + remediatorRef: + name: Role Admin + id: 2c90ad2a70ace7d50170acf22ca90010 + type: IDENTITY + roleIds: + - 2c90ad2a70ace7d50170acf22ca90010 + query: Search Query + description: Role Composition Description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + completedCertifications: 10 + id: 2c9079b270a266a60170a2779fcb0007 + deadline: 2020-03-15T10:00:01.456Z + status: ACTIVE + correlatedStatus: CORRELATED title: Campaign type: object DeleteCampaignsRequest: @@ -61366,7 +61800,102 @@ components: name: Manager Campaign Template description: Template for the annual manager campaign. modified: 2020-03-05T22:52:09.969Z - campaign: null + campaign: + totalCertifications: 100 + sourcesWithOrphanEntitlements: + - name: Source with orphan entitlements + id: 2c90ad2a70ace7d50170acf22ca90010 + type: SOURCE + - name: Source with orphan entitlements + id: 2c90ad2a70ace7d50170acf22ca90010 + type: SOURCE + recommendationsEnabled: true + sunsetCommentsRequired: true + created: 2020-03-03T22:15:13.611Z + description: Everyone needs to be reviewed by their manager + type: MANAGER + sourceOwnerCampaignInfo: + sourceIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 + emailNotificationEnabled: false + alerts: + - level: ERROR + localizations: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - level: ERROR + localizations: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + filter: + name: Test Filter + id: 0fbe863c063c4c88a35fd7f17e8a3df5 + type: CAMPAIGN_FILTER + searchCampaignInfo: + identityIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 + query: Search Campaign query description + description: Search Campaign description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + type: ACCESS + accessConstraints: + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + autoRevokeAllowed: false + name: Manager Campaign + mandatoryCommentRequirement: NO_DECISIONS + modified: 2020-03-03T22:20:12.674Z + roleCompositionCampaignInfo: + remediatorRef: + name: Role Admin + id: 2c90ad2a70ace7d50170acf22ca90010 + type: IDENTITY + roleIds: + - 2c90ad2a70ace7d50170acf22ca90010 + query: Search Query + description: Role Composition Description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + completedCertifications: 10 + id: 2c9079b270a266a60170a2779fcb0007 + deadline: 2020-03-15T10:00:01.456Z + status: ACTIVE + correlatedStatus: CORRELATED id: 2c9079b270a266a60170a277bb960008 properties: id: @@ -61676,6 +62205,29 @@ components: - id type: object description: ConnectorRuleResponse + example: + sourceCode: + version: "1.0" + script: return "Mr. " + firstName; + signature: + output: + name: firstName + description: the first name of the identity + type: String + input: + - name: firstName + description: the first name of the identity + type: String + - name: firstName + description: the first name of the identity + type: String + created: 021-07-22T15:59:23Z + name: WebServiceBeforeOperationRule + description: This rule does that + modified: 021-07-22T15:59:23Z + attributes: {} + id: 8113d48c0b914f17b4c6072d4dcb9dfe + type: BuildMap ConnectorRuleCreateRequest: description: ConnectorRuleCreateRequest example: @@ -61761,6 +62313,27 @@ components: type: object - $ref: '#/components/schemas/ConnectorRuleCreateRequest' description: ConnectorRuleUpdateRequest + example: + sourceCode: + version: "1.0" + script: return "Mr. " + firstName; + signature: + output: + name: firstName + description: the first name of the identity + type: String + input: + - name: firstName + description: the first name of the identity + type: String + - name: firstName + description: the first name of the identity + type: String + name: WebServiceBeforeOperationRule + description: This rule does that + attributes: {} + id: 8113d48c0b914f17b4c6072d4dcb9dfe + type: BuildMap SourceCode: description: SourceCode example: @@ -62177,6 +62750,19 @@ components: type: object type: object AccessItemAccessProfileResponse: + example: + accessType: accessProfile + sourceId: 2793o32dwd + entitlementCount: "12" + removeDate: 2024-07-01T06:00:00.00Z + displayName: Dr. Arden Rogahn MD + appDisplayName: AppName + name: sample + standalone: false + description: AccessProfile - Workday/Citizenship access + id: 2c918087763e69d901763e72e97f006f + sourceName: DataScienceDataset + revocable: true properties: accessType: description: the access item type. accessProfile in this case @@ -62402,7 +62988,7 @@ components: name: name description: description id: id - type: null + type: ACCESS_PROFILE ownerId: ownerId createdByUser: false commonAccessType: UNSET @@ -62447,9 +63033,9 @@ components: name: name description: description id: id - type: null + type: ACCESS_PROFILE ownerId: ownerId - status: null + status: CONFIRMED properties: access: $ref: '#/components/schemas/CommonAccessItemAccess' @@ -62464,12 +63050,12 @@ components: name: name description: description id: id - type: null + type: ACCESS_PROFILE ownerId: ownerId createdByUser: createdByUser id: id reviewedByUser: true - status: null + status: CONFIRMED lastReviewed: lastReviewed properties: id: @@ -62511,6 +63097,31 @@ components: type: array type: object AccessItemAssociated: + example: + dt: 2019-03-08T22:37:33.901Z + governanceEvent: + dt: 2019-03-08T22:37:33.901Z + name: Manager Certification for Jon Snow + owners: + - id: 8a80828f643d484f01643e14202e206f + displayName: John Snow + decisionMaker: + displayName: John Snow + id: 8a80828f643d484f01643e14202e206f + type: certification + reviewers: + - id: 8a80828f643d484f01643e14202e206f + displayName: John Snow + governanceId: 2c91808a77ff216301782327a50f09bf + identityId: 8c190e6787aa4ed9a90bd9d5344523fb + eventType: AccessItemAssociated + accessItem: + id: 8c190e6787aa4ed9a90bd9d5344523fb + accessType: account + nativeIdentity: 127999 + sourceName: JDBC Entitlements Source + entitlementCount: 0 + displayName: Sample Name properties: accessItem: $ref: '#/components/schemas/AccessItemAssociated_accessItem' @@ -62802,17 +63413,47 @@ components: format: date-time type: string attributes: - description: A map with the identity attributes for the identity - example: "{\"uid\":\"Walter White\",\"firstname\":\"walter\",\"cloudStatus\"\ - :\"UNREGISTERED\",\"displayName\":\"Walter White\",\"identificationNumber\"\ - :\"942\",\"lastSyncDate\":1470348809380,\"email\":\"walter@gmail.com\"\ - ,\"lastname\":\"white\"}" - type: object + $ref: '#/components/schemas/IdentityDto_attributes' lifecycleState: $ref: '#/components/schemas/IdentityDto_lifecycleState' title: IdentityDto type: object + example: + lifecycleState: + stateName: active + manuallyUpdated: true + lastRefresh: 2020-11-22T15:42:31.123Z + created: 2023-01-03T21:16:22.432Z + processingState: ERROR + emailAddress: sender@example.com + identityStatus: LOCKED + name: aName + modified: 2023-01-03T21:16:22.432Z + alias: walter.white + isManager: true + attributes: "{\"uid\":\"Walter White\",\"firstname\":\"walter\",\"cloudStatus\"\ + :\"UNREGISTERED\",\"displayName\":\"Walter White\",\"identificationNumber\"\ + :\"942\",\"lastSyncDate\":1470348809380,\"email\":\"walter@gmail.com\",\"\ + lastname\":\"white\"}" + id: id12345 + managerRef: + name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY IdentityAssociationDetails: + example: + associationDetails: + - entities: + id: b660a232f05b4e04812ca974b3011e0f + name: Gaston.800ddf9640a + type: CAMPAIGN_CAMPAIGNER + associationType: CAMPAIGN_OWNER + - entities: + id: b660a232f05b4e04812ca974b3011e0f + name: Gaston.800ddf9640a + type: CAMPAIGN_CAMPAIGNER + associationType: CAMPAIGN_OWNER + message: Identity cannot be deleted as it is owner of following resources properties: message: description: any additional context information of the http call result @@ -63070,6 +63711,11 @@ components: type: string type: object RoleAssignmentRef: + example: + role: + name: Github + id: ff8081814d977c21014da056804a0af3 + id: 1cbb0705b38c4226b1334eadd8874086 properties: id: description: Assignment Id @@ -63321,7 +63967,44 @@ components: id: 2c9180835d191a86015d28455b4b232a type: SOURCE version: 1 - object: null + object: + owner: + name: William Wilson + id: 2c9180835d191a86015d28455b4b232a + type: IDENTITY + identityExceptionReportReference: + reportName: My annual report + taskResultId: 2b838de9-db9b-abcf-e646-d4f274ad4238 + authoritativeSource: + name: HR Active Directory + id: 2c9180835d191a86015d28455b4b232a + type: SOURCE + hasTimeBasedAttr: true + created: 2015-05-28T14:07:17Z + description: My custom flat file profile + identityRefreshRequired: true + identityCount: 8 + priority: 10 + identityAttributeConfig: + attributeTransforms: + - transformDefinition: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute + identityAttributeName: email + - transformDefinition: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute + identityAttributeName: email + enabled: true + name: aName + modified: 2015-05-28T14:07:17Z + id: id12345 properties: version: description: Version or object from the target service. @@ -63804,6 +64487,52 @@ components: format: date-time type: string type: object + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + approvalStatus: null + lastName: Smith + manager: jane.doe + data: + key: data + accountName: william.smith + endDate: 2021-03-25T00:00:00-05:00 + created: 2020-03-24T11:11:41.139-05:00 + approvalItems: + - approver: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + accountName: test.account + approvalOrder: 1 + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + comment: comment + id: 2c1e388b-1e55-4b0a-ab5c-897f1204159c + - approver: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + accountName: test.account + approvalOrder: 1 + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + comment: comment + id: 2c1e388b-1e55-4b0a-ab5c-897f1204159c + description: Source description + nonEmployeeSource: + sourceId: 2c91808568c529c60168cca6f90c1313 + name: Retail + description: Source description + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + firstName: William + phone: "5555555555" + name: Retail + modified: 2020-03-24T11:11:41.139-05:00 + comment: comment + completionDate: 2020-03-24T11:11:41.139-05:00 + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + email: william.smith@example.com + startDate: 2020-03-24T00:00:00-05:00 NonEmployeeRequestSummary: example: approved: 0.8008281904610115 @@ -63838,6 +64567,24 @@ components: format: int32 type: integer type: object + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + created: 2019-08-23T18:40:35.772Z + accountManagers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + name: Retail + description: Source description + approvers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + modified: 2019-08-23T18:52:59.162Z + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + nonEmployeeCount: 2 NonEmployeeSourceRequestBody: example: owner: @@ -63898,6 +64645,25 @@ components: example: "99999" type: string type: object + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + created: 2019-08-23T18:40:35.772Z + accountManagers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + name: Retail + description: Source description + approvers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + modified: 2019-08-23T18:52:59.162Z + cloudExternalId: "99999" + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + nonEmployeeCount: 2 NonEmployeeSource: allOf: - $ref: '#/components/schemas/NonEmployeeSourceLite' @@ -63930,6 +64696,24 @@ components: nullable: true type: integer type: object + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + created: 2019-08-23T18:40:35.772Z + accountManagers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + name: Retail + description: Source description + approvers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + modified: 2019-08-23T18:52:59.162Z + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + nonEmployeeCount: 2 NonEmployeeBulkUploadJob: example: sourceId: 2c91808568c529c60168cca6f90c1313 @@ -63998,6 +64782,22 @@ components: nonEmployeeRequest: $ref: '#/components/schemas/NonEmployeeRequestLite' type: object + example: + approver: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + accountName: test.account + approvalOrder: 1 + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + comment: comment + id: 2c1e388b-1e55-4b0a-ab5c-897f1204159c + nonEmployeeRequest: + requester: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + id: id NonEmployeeApprovalItemDetail: allOf: - $ref: '#/components/schemas/NonEmployeeApprovalItemBase' @@ -64005,6 +64805,63 @@ components: nonEmployeeRequest: $ref: '#/components/schemas/NonEmployeeRequestWithoutApprovalItem' type: object + example: + approver: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + accountName: test.account + approvalOrder: 1 + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + comment: comment + id: 2c1e388b-1e55-4b0a-ab5c-897f1204159c + nonEmployeeRequest: + requester: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: null + lastName: Smith + manager: jane.doe + data: + key: data + accountName: william.smith + endDate: 2021-03-25 + created: 2020-03-24T11:11:41.139-05:00 + nonEmployeeSource: + sourceId: 2c91808568c529c60168cca6f90c1313 + name: Retail + description: Source description + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + schemaAttributes: + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true + firstName: William + phone: "5555555555" + modified: 2020-03-24T11:11:41.139-05:00 + comment: comment + completionDate: 2020-03-24T11:11:41.139-05:00 + id: id + email: william.smith@example.com + startDate: 2020-03-24 NonEmployeeApprovalDecision: example: comment: comment @@ -64050,7 +64907,7 @@ components: id: ac110005-7156-1150-8171-5b292e3e0084 label: Account Name placeholder: Enter a unique user name for this account. - type: null + type: TEXT technicalName: account.name required: true properties: @@ -64255,7 +65112,7 @@ components: windowClusterTime: 2021-07-29T01:35:24Z windowFinishTime: 2021-07-29T04:00:00Z type: CCG - status: null + status: NORMAL timestamp: 2020-01-01T00:00:00Z properties: body: @@ -67766,7 +68623,9 @@ components: id: e0cc5d7d-bf7f-4f81-b2af-8885b09d9923 quality: 80 createdDate: 2000-01-23T04:56:07.000+00:00 - createdBy: null + createdBy: + displayName: Ashley.Pierce + id: 2c918090761a5aac0176215c46a62d58 name: Potential Role - e0cc5d id: e0cc5d7d-bf7f-4f81-b2af-8885b09d9923 identityGroupStatus: OBTAINED @@ -67894,7 +68753,9 @@ components: - attributeValue: NM Tier 3 count: 6 createdDate: 2000-01-23T04:56:07.000+00:00 - createdBy: null + createdBy: + displayName: Ashley.Pierce + id: 2c918090761a5aac0176215c46a62d58 name: Saved Potential Role - 07/10 modifiedDate: 2000-01-23T04:56:07.000+00:00 id: e0cc5d7d-bf7f-4f81-b2af-8885b09d9923 @@ -68645,6 +69506,34 @@ components: - name - type type: object + example: + ownerRef: "" + cluster: xyzzy999 + managedSources: + - 2c9180835d191a86015d28455b4a2329 + - 2c5680835d191a85765d28455b4a9823 + provisioningConfig: + managedResourceRefs: + - type: SOURCE + id: 2c9180855d191c59015d291ceb051111 + name: My Source 1 + - type: SOURCE + id: 2c9180855d191c59015d291ceb052222 + name: My Source 2 + provisioningRequestExpiration: 7 + noProvisioningRequests: true + universalManager: true + planInitializerScript: + source: | + \r\n\r\n\r\n Before Provisioning Rule which changes disables and enables to a modify.\r\n + name: Service Desk Integration Name + description: A very nice Service Desk integration + attributes: + property: value + key: value + clusterRef: "" + type: ServiceNowSDIM + beforeProvisioningRule: "" ServiceDeskIntegrationTemplateType: description: This represents a Service Desk Integration template type. example: @@ -68692,6 +69581,28 @@ components: - provisioningConfig - type type: object + example: + provisioningConfig: + managedResourceRefs: + - type: SOURCE + id: 2c9180855d191c59015d291ceb051111 + name: My Source 1 + - type: SOURCE + id: 2c9180855d191c59015d291ceb052222 + name: My Source 2 + provisioningRequestExpiration: 7 + noProvisioningRequests: true + universalManager: true + planInitializerScript: + source: | + \r\n\r\n\r\n Before Provisioning Rule which changes disables and enables to a modify.\r\n + created: 2023-01-03T21:16:22.432Z + name: aName + modified: 2023-01-03T21:16:22.432Z + attributes: + key: "" + id: id12345 + type: Web Service SDIM QueuedCheckConfigDetails: description: Configuration of maximum number days and interval for checking Service Desk integration queue status @@ -68726,14 +69637,7 @@ components: nullable: false type: string attributes: - description: The attributes map containing the credentials used to configure - the integration. - example: "{\"uid\":\"Walter White\",\"firstname\":\"walter\",\"cloudStatus\"\ - :\"UNREGISTERED\",\"displayName\":\"Walter White\",\"identificationNumber\"\ - :\"942\",\"lastSyncDate\":1470348809380,\"email\":\"walter@gmail.com\"\ - ,\"lastname\":\"white\"}" - nullable: true - type: object + $ref: '#/components/schemas/SimIntegrationDetails_allOf_attributes' sources: description: The list of sources (managed resources) example: @@ -68749,28 +69653,37 @@ components: nullable: false type: string statusMap: - description: Custom mapping between the integration result and the provisioning - result - example: - closed_cancelled: Failed - closed_complete: Committed - closed_incomplete: Failed - closed_rejected: Failed - in_process: Queued - requested: Queued - type: object + $ref: '#/components/schemas/SimIntegrationDetails_allOf_statusMap' request: - description: Request data to customize desc and body of the created ticket - example: - description: "SailPoint Access Request," - req_description: "The Service Request created by SailPoint ServiceNow\ - \ Service Integration Module (SIM).," - req_short_description: "SailPoint New Access Request Created from IdentityNow," - short_description: SailPoint Access Request $!plan.arguments.identityRequestId - type: object + $ref: '#/components/schemas/SimIntegrationDetails_allOf_request' beforeProvisioningRule: $ref: '#/components/schemas/SimIntegrationDetails_allOf_beforeProvisioningRule' type: object + example: + cluster: xyzzy999 + statusMap: "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed,\ + \ closed_rejected=Failed, in_process=Queued, requested=Queued}" + request: "{description=SailPoint Access Request,, req_description=The Service\ + \ Request created by SailPoint ServiceNow Service Integration Module (SIM).,,\ + \ req_short_description=SailPoint New Access Request Created from IdentityNow,,\ + \ short_description=SailPoint Access Request $!plan.arguments.identityRequestId}" + sources: + - 2c9180835d191a86015d28455b4a2329 + - 2c5680835d191a85765d28455b4a9823 + created: 2023-01-03T21:16:22.432Z + name: aName + modified: 2023-01-03T21:16:22.432Z + description: Integration description + attributes: "{\"uid\":\"Walter White\",\"firstname\":\"walter\",\"cloudStatus\"\ + :\"UNREGISTERED\",\"displayName\":\"Walter White\",\"identificationNumber\"\ + :\"942\",\"lastSyncDate\":1470348809380,\"email\":\"walter@gmail.com\",\"\ + lastname\":\"white\"}" + id: id12345 + type: ServiceNow Service Desk + beforeProvisioningRule: + name: Example Rule + id: 2c918085708c274401708c2a8a760001 + type: IDENTITY title: Sim Integration Details type: object JsonPatch: @@ -68806,6 +69719,14 @@ components: required: - description type: object + example: + jobId: 3469b87d-48ca-439a-868f-2160001da8c1 + created: 2021-05-11T22:23:16Z + modified: 2021-05-11T22:23:16Z + description: ETS configuration objects from Acme-Solar sandbox + expiration: 2021-05-11T22:23:16Z + type: IMPORT + status: COMPLETE SpConfigExportJobStatus: allOf: - $ref: '#/components/schemas/SpConfigExportJob' @@ -68818,6 +69739,15 @@ components: required: - completed type: object + example: + jobId: 3469b87d-48ca-439a-868f-2160001da8c1 + created: 2021-05-11T22:23:16Z + modified: 2021-05-11T22:23:16Z + description: ETS configuration objects from Acme-Solar sandbox + expiration: 2021-05-11T22:23:16Z + completed: 2021-05-11T22:23:16Z + type: IMPORT + status: COMPLETE SpConfigExportResults: description: Response model for config export download response. example: @@ -69013,6 +69943,15 @@ components: - completed - message type: object + example: + jobId: 3469b87d-48ca-439a-868f-2160001da8c1 + created: 2021-05-11T22:23:16Z + modified: 2021-05-11T22:23:16Z + expiration: 2021-05-11T22:23:16Z + completed: 2021-05-11T22:23:16Z + type: IMPORT + message: Download import results for details. + status: COMPLETE SpConfigImportResults: description: Response Body for Config Import command. example: @@ -70533,6 +71472,12 @@ components: - id - internal type: object + example: + internal: false + name: Timestamp To Date + attributes: "{}" + id: 2cd78adghjkja34jh2b1hkjhasuecd + type: dateFormat Transform: description: The representation of an internally- or customer-defined transform. example: @@ -70627,8 +71572,60 @@ components: :true,\"properties\":{\"type\":{\"type\":\"string\"},\"id\":{\"type\":\"\ string\"},\"name\":{\"type\":\"string\"}}}},\"$ref\":\"#/definitions/record:AccessRequestDynamicApproverInput\"\ }" - exampleOutput: null - exampleInput: null + exampleOutput: + name: Adam Adams + id: 2c91808b6ef1d43e016efba0ce470906 + type: IDENTITY + exampleInput: + requestedFor: + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + requestedBy: "" + accessRequestId: 4b4d982dddff4267ab12f0f1e72b5a6d + requestedItems: + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add name: Access Request Dynamic Approver description: Trigger for getting a dynamic approver. id: idn:access-request-dynamic-approver @@ -71282,7 +72279,25 @@ components: type: object SodPolicy: example: - conflictingAccessCriteria: null + conflictingAccessCriteria: + leftCriteria: + name: money-in + criteriaList: + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a66 + name: Administrator + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a67 + name: Administrator + rightCriteria: + name: money-in + criteriaList: + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a66 + name: Administrator + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a67 + name: Administrator ownerRef: name: Support id: 2c9180a46faadee4016fb4e018c20639 @@ -71409,10 +72424,25 @@ components: SodPolicySchedule: example: schedule: - hours: null - months: null + hours: + values: + - MON + - WED + interval: 3 + type: LIST + months: + values: + - MON + - WED + interval: 3 + type: LIST timeZoneId: America/Chicago - days: null + days: + values: + - MON + - WED + interval: 3 + type: LIST expiration: 2018-06-25T20:22:28.104Z type: WEEKLY created: 2020-01-01T00:00:00Z @@ -71483,6 +72513,11 @@ components: example: PENDING type: string type: object + example: + name: SOD Policy 1 Violation + id: 2c9180835d191a86015d28455b4b232a + type: REPORT_RESULT + status: PENDING IdentityWithNewAccess: description: An identity with a set of access to be added example: @@ -71636,6 +72671,46 @@ components: $ref: '#/components/schemas/Workflow_allOf_creator' type: object - $ref: '#/components/schemas/WorkflowBody' + example: + owner: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + creator: + name: Michael Michaels + id: 2c7180a46faadee4016fb4e018c20642 + type: IDENTITY + created: 2022-01-10T16:06:16.636381447Z + description: Send an email to the identity who's attributes changed. + trigger: + displayName: displayName + attributes: "{}" + type: EVENT + enabled: false + name: Send Email + modified: 2023-12-05T15:18:27.699132301Z + executionCount: 2 + modifiedBy: + name: Thomas Edison + id: 2c9180a46faadee4016fb4e018c20639 + type: IDENTITY + definition: + start: Send Email Test + steps: + Send Email: + actionId: sp:send-email + attributes: + body: This is a test + from: sailpoint@sailpoint.com + recipientId.$: $.identity.id + subject: test + nextStep: success + selectResult: null + type: ACTION + success: + type: success + id: d201c5e9-d37b-4aff-af14-66414f39d569 + failureCount: 0 WorkflowBody: example: owner: @@ -71851,7 +72926,7 @@ components: type: string title: sp:create-campaign type: object - exampleOutput: null + exampleOutput: "{}" deprecated: true isSimulationEnabled: true name: Create Certification Campaign @@ -72248,7 +73323,12 @@ components: type: object WorkgroupDto: example: - owner: null + owner: + emailAddress: support@sailpoint.com + displayName: Support + name: Support + id: 2c9180a46faadee4016fb4e018c20639 + type: IDENTITY connectionCount: 1641498673000 created: 2022-01-06T19:51:13Z memberCount: 1641498673000 @@ -72580,6 +73660,16 @@ components: type: object x-go-package: github.com/sailpoint/atlas-go/atlas/web Error: + example: + messages: + - localeOrigin: DEFAULT + text: This is an error + locale: en-US + - localeOrigin: DEFAULT + text: This is an error + locale: en-US + detailCode: Internal Server Error + trackingId: 9cd03ef80e6a425eb6b11bdbb057cdb4 properties: detailCode: description: DetailCode is the text of the status code returned @@ -73477,9 +74567,6 @@ components: type: object x-go-package: github.com/sailpoint/sp-forms/domain ManualDiscoverApplicationsTemplate: - example: - application_name: Example Application - description: Example Description properties: application_name: description: Name of the example application. @@ -73506,6 +74593,18 @@ components: type: object SlimDiscoveredApplications: description: Discovered applications + example: + createdAt: 2023-01-01T12:00:00Z + discoveredVendor: ExampleVendor + discoverySource: csv + name: ExampleApp + recommendedConnectors: + - ConnectorA + - ConnectorB + description: An application for managing examples. + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + discoveredAt: 2023-01-01T12:00:00Z + status: ACTIVE properties: id: description: Unique identifier for the discovered application. @@ -74001,6 +75100,9 @@ components: - name type: object IdentityExceptionReportReference: + example: + reportName: My annual report + taskResultId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 nullable: true properties: taskResultId: @@ -74223,8 +75325,12 @@ components: title: Account Selection for John.Doe targetUser: Jane.Doe sections: - - null - - null + - formItems: [] + name: Field1 + label: Section 1 + - formItems: [] + name: Field1 + label: Section 1 nullable: true properties: id: @@ -74277,6 +75383,10 @@ components: type: object type: array type: object + example: + formItems: [] + name: Field1 + label: Section 1 type: object FieldDetails: allOf: @@ -74304,8 +75414,7 @@ components: type: object type: array value: - description: Value of the field - type: object + $ref: '#/components/schemas/Field_allOf_value' type: object type: object ErrorMessageDto: @@ -74832,7 +75941,10 @@ components: id: 2c7180a46faadee4016fb4e018c20642 type: IDENTITY scheme: MANAGER - currentOwner: null + currentOwner: + name: Allen Albertson + id: 2c3780a46faadee4016fb4e018c20652 + type: IDENTITY modified: 2019-08-23T18:52:57.398Z comment: I approve this request forwarded: false @@ -75544,6 +76656,11 @@ components: type: string type: object AccessConstraint: + example: + ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED properties: type: description: Type of Access @@ -75650,7 +76767,7 @@ components: name: name description: description id: id - type: null + type: ACCESS_PROFILE ownerId: ownerId properties: id: @@ -75679,6 +76796,20 @@ components: - DENIED type: string CorrelatedGovernanceEvent: + example: + dt: 2019-03-08T22:37:33.901Z + name: Manager Certification for Jon Snow + owners: + - id: 8a80828f643d484f01643e14202e206f + displayName: John Snow + decisionMaker: + displayName: John Snow + id: 8a80828f643d484f01643e14202e206f + type: certification + reviewers: + - id: 8a80828f643d484f01643e14202e206f + displayName: John Snow + governanceId: 2c91808a77ff216301782327a50f09bf properties: name: description: "The name of the governance event, such as the certification\ @@ -75765,6 +76896,9 @@ components: type: array type: object CertifierResponse: + example: + displayName: John Snow + id: 8a80828f643d484f01643e14202e206f properties: id: description: the id of the certifier @@ -76123,6 +77257,44 @@ components: required: - authoritativeSource type: object + example: + owner: + name: William Wilson + id: 2c9180835d191a86015d28455b4b232a + type: IDENTITY + identityExceptionReportReference: + reportName: My annual report + taskResultId: 2b838de9-db9b-abcf-e646-d4f274ad4238 + authoritativeSource: + name: HR Active Directory + id: 2c9180835d191a86015d28455b4b232a + type: SOURCE + hasTimeBasedAttr: true + created: 2015-05-28T14:07:17Z + description: My custom flat file profile + identityRefreshRequired: true + identityCount: 8 + priority: 10 + identityAttributeConfig: + attributeTransforms: + - transformDefinition: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute + identityAttributeName: email + - transformDefinition: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute + identityAttributeName: email + enabled: true + name: aName + modified: 2015-05-28T14:07:17Z + id: id12345 SpConfigMessage: description: Message model for Config Import/Export. example: @@ -76294,6 +77466,11 @@ components: type: array type: object NonEmployeeSourceLite: + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + name: Retail + description: Source description + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 properties: id: description: Non-Employee source id. @@ -76314,6 +77491,17 @@ components: type: string type: object NonEmployeeApprovalItemBase: + example: + approver: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + accountName: test.account + approvalOrder: 1 + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + comment: comment + id: 2c1e388b-1e55-4b0a-ab5c-897f1204159c properties: id: description: Non-Employee approval item id @@ -76368,6 +77556,9 @@ components: - id type: object IdentityReferenceWithId: + example: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY properties: type: $ref: '#/components/schemas/DtoType' @@ -76377,6 +77568,11 @@ components: type: string type: object NonEmployeeRequestLite: + example: + requester: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + id: id properties: id: description: Non-Employee request id. @@ -76452,6 +77648,52 @@ components: format: date-time type: string type: object + example: + requester: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: null + lastName: Smith + manager: jane.doe + data: + key: data + accountName: william.smith + endDate: 2021-03-25 + created: 2020-03-24T11:11:41.139-05:00 + nonEmployeeSource: + sourceId: 2c91808568c529c60168cca6f90c1313 + name: Retail + description: Source description + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + schemaAttributes: + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true + firstName: William + phone: "5555555555" + modified: 2020-03-24T11:11:41.139-05:00 + comment: comment + completionDate: 2020-03-24T11:11:41.139-05:00 + id: id + email: william.smith@example.com + startDate: 2020-03-24 NonEmployeeSchemaAttributeType: description: Enum representing the type of data a schema attribute accepts. enum: @@ -77154,6 +78396,9 @@ components: type: array type: object EntityCreatedByDTO: + example: + displayName: Ashley.Pierce + id: 2c918090761a5aac0176215c46a62d58 properties: id: description: ID of the creator @@ -77536,6 +78781,10 @@ components: type: object OwnerDto: description: Owner's identity. + example: + name: Support + id: 2c9180a46faadee4016fb4e018c20639 + type: IDENTITY properties: type: description: Owner's DTO type. @@ -77572,6 +78821,20 @@ components: type: object ProvisioningConfig: description: Specification of a Service Desk integration provisioning configuration. + example: + managedResourceRefs: + - type: SOURCE + id: 2c9180855d191c59015d291ceb051111 + name: My Source 1 + - type: SOURCE + id: 2c9180855d191c59015d291ceb052222 + name: My Source 2 + provisioningRequestExpiration: 7 + noProvisioningRequests: true + universalManager: true + planInitializerScript: + source: | + \r\n\r\n\r\n Before Provisioning Rule which changes disables and enables to a modify.\r\n properties: universalManager: default: false @@ -78306,6 +79569,56 @@ components: example: FIRE_AND_FORGET type: string AccessRequestDynamicApprover: + example: + requestedFor: + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + requestedBy: "" + accessRequestId: 4b4d982dddff4267ab12f0f1e72b5a6d + requestedItems: + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add properties: accessRequestId: description: | @@ -79053,6 +80366,10 @@ components: title: VA Cluster Status Change Event type: object AccessRequestDynamicApprover_1: + example: + name: Adam Adams + id: 2c91808b6ef1d43e016efba0ce470906 + type: IDENTITY nullable: true properties: id: @@ -79243,10 +80560,25 @@ components: Schedule_1: description: The schedule information. example: - hours: null - months: null + hours: + values: + - MON + - WED + interval: 3 + type: LIST + months: + values: + - MON + - WED + interval: 3 + type: LIST timeZoneId: America/Chicago - days: null + days: + values: + - MON + - WED + interval: 3 + type: LIST expiration: 2018-06-25T20:22:28.104Z type: WEEKLY properties: @@ -79343,6 +80675,10 @@ components: $ref: '#/components/schemas/ExceptionAccessCriteria' type: object WorkflowModifiedBy: + example: + name: Thomas Edison + id: 2c9180a46faadee4016fb4e018c20639 + type: IDENTITY properties: type: enum: @@ -80211,6 +81547,73 @@ components: type: string SodViolationCheckResult: description: The inner object representing the completed SOD Violation check + example: + clientMetadata: + requestedAppName: test-app + requestedAppId: 2c91808f7892918f0178b78da4a305a1 + violationContexts: + - conflictingAccessCriteria: + leftCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + rightCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + policy: + name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + - conflictingAccessCriteria: + leftCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + rightCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + policy: + name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + violatedPolicies: + - name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + - name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + message: + localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US properties: message: $ref: '#/components/schemas/ErrorMessageDto' @@ -80596,6 +81999,23 @@ components: description: Defines all the identity attribute mapping configurations. This defines how to generate or collect data for each identity attributes in identity refresh process. + example: + attributeTransforms: + - transformDefinition: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute + identityAttributeName: email + - transformDefinition: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute + identityAttributeName: email + enabled: true properties: enabled: default: false @@ -80609,6 +82029,9 @@ components: type: array type: object IdentityExceptionReportReference_1: + example: + reportName: My annual report + taskResultId: 2b838de9-db9b-abcf-e646-d4f274ad4238 nullable: true properties: taskResultId: @@ -80654,6 +82077,32 @@ components: $ref: '#/components/schemas/NonEmployeeSchemaAttribute' type: array type: object + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + name: Retail + description: Source description + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + schemaAttributes: + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true ManagedClusterQueue: description: Managed Cluster key pair for Cluster example: @@ -81043,6 +82492,15 @@ components: example: null type: object AccessCriteria: + example: + name: money-in + criteriaList: + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a66 + name: Administrator + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a67 + name: Administrator properties: name: description: Business name for the access construct list @@ -81460,6 +82918,32 @@ components: type: object SodViolationContext: description: The contextual information of the violated criteria + example: + conflictingAccessCriteria: + leftCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + rightCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + policy: + name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY properties: policy: $ref: '#/components/schemas/SodPolicyDto' @@ -81535,6 +83019,14 @@ components: type: object IdentityAttributeTransform_1: description: Defines a transformation definition for an identity attribute. + example: + transformDefinition: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute + identityAttributeName: email properties: identityAttributeName: description: Name of the identity attribute. @@ -81747,6 +83239,11 @@ components: type: object SodExemptCriteria: description: Details of the Entitlement criteria + example: + existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY properties: existing: default: false @@ -81789,6 +83286,12 @@ components: type: string type: object TransformDefinition_1: + example: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute properties: type: description: The type of the transform definition. @@ -81884,6 +83387,8 @@ components: type: string type: object listAccessModelMetadataAttribute_401_response: + example: + error: "JWT validation failed: JWT is expired" properties: error: description: A message describing the error @@ -81891,6 +83396,8 @@ components: type: object type: object listAccessModelMetadataAttribute_429_response: + example: + message: ' Rate Limit Exceeded ' properties: message: description: A message describing the error @@ -81898,6 +83405,8 @@ components: type: object type: object updateAccessProfilesInBulk_412_response: + example: + message: ' API/Feature not enabled for your organization.' properties: message: description: A message describing the error @@ -82050,6 +83559,10 @@ components: type: string type: object createDomainDkim_405_response: + example: + errorName: NotSupportedException + errorMessage: Cannot consume content type + trackingId: e7eab60924f64aa284175b9fa3309599 properties: errorName: description: A message describing the error @@ -82165,6 +83678,17 @@ components: type: string type: object searchFormDefinitionsByTenant_400_response: + example: + messages: + - localeOrigin: DEFAULT + text: This is an error + locale: en-US + - localeOrigin: DEFAULT + text: This is an error + locale: en-US + detailCode: detailCode + statusCode: 0 + trackingId: trackingId properties: detailCode: type: string @@ -82179,6 +83703,17 @@ components: type: string type: object getFormDefinitionByKey_400_response: + example: + messages: + - localeOrigin: DEFAULT + text: This is an error + locale: en-US + - localeOrigin: DEFAULT + text: This is an error + locale: en-US + detailCode: detailCode + statusCode: 0 + trackingId: trackingId properties: detailCode: type: string @@ -82613,6 +84148,10 @@ components: fullcampaign_allOf_filter: description: Determines which items will be included in this campaign. The default campaign filter is used if this field is left blank. + example: + name: Test Filter + id: 0fbe863c063c4c88a35fd7f17e8a3df5 + type: CAMPAIGN_FILTER properties: id: description: The ID of whatever type of filter is being used. @@ -82630,9 +84169,11 @@ components: example: Test Filter type: string type: object - example: null fullcampaign_allOf_sourceOwnerCampaignInfo: description: Must be set only if the campaign type is SOURCE_OWNER. + example: + sourceIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 properties: sourceIds: description: The list of sources to be included in the campaign. @@ -82642,11 +84183,14 @@ components: type: string type: array type: object - example: null fullcampaign_allOf_searchCampaignInfo_reviewer: description: "If specified, this identity or governance group will be the reviewer\ \ for all certifications in this campaign. The allowed DTO types are IDENTITY\ \ and GOVERNANCE_GROUP." + example: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY properties: type: description: The reviewer's DTO type. @@ -82664,9 +84208,39 @@ components: example: William Wilson type: string type: object - example: null fullcampaign_allOf_searchCampaignInfo: description: Must be set only if the campaign type is SEARCH. + example: + identityIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 + query: Search Campaign query description + description: Search Campaign description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + type: ACCESS + accessConstraints: + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED properties: type: description: The type of search campaign represented. @@ -82707,12 +84281,15 @@ components: required: - type type: object - example: null fullcampaign_allOf_roleCompositionCampaignInfo_remediatorRef: description: "This determines who remediation tasks will be assigned to. Remediation\ \ tasks are created for each revoke decision on items in the campaign. The\ \ only legal remediator type is 'IDENTITY', and the chosen identity must be\ \ a Role Admin or Org Admin." + example: + name: Role Admin + id: 2c90ad2a70ace7d50170acf22ca90010 + type: IDENTITY properties: type: description: Legal Remediator Type @@ -82733,9 +84310,21 @@ components: - id - type type: object - example: null fullcampaign_allOf_roleCompositionCampaignInfo: description: Optional configuration options for role composition campaigns. + example: + remediatorRef: + name: Role Admin + id: 2c90ad2a70ace7d50170acf22ca90010 + type: IDENTITY + roleIds: + - 2c90ad2a70ace7d50170acf22ca90010 + query: Search Query + description: Role Composition Description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY properties: reviewer: $ref: '#/components/schemas/fullcampaign_allOf_searchCampaignInfo_reviewer' @@ -82764,8 +84353,11 @@ components: required: - remediatorRef type: object - example: null fullcampaign_allOf_sourcesWithOrphanEntitlements: + example: + name: Source with orphan entitlements + id: 2c90ad2a70ace7d50170acf22ca90010 + type: SOURCE properties: id: description: Id of the source @@ -82782,9 +84374,12 @@ components: example: Source with orphan entitlements type: string type: object - example: null IdentityProfile_allOf_owner: description: The owner of the Identity Profile. + example: + name: William Wilson + id: 2c9180835d191a86015d28455b4b232a + type: IDENTITY nullable: true properties: type: @@ -82803,9 +84398,12 @@ components: example: William Wilson type: string type: object - example: null IdentityProfile_allOf_authoritativeSource: description: The authoritative source for this Identity Profile. + example: + name: HR Active Directory + id: 2c9180835d191a86015d28455b4b232a + type: SOURCE properties: type: description: Type of the object to which this reference applies @@ -82823,7 +84421,9 @@ components: example: HR Active Directory type: string type: object - example: null + Field_allOf_value: + description: Value of the field + type: object array_inner: anyOf: - type: string @@ -82893,6 +84493,10 @@ components: - $ref: '#/components/schemas/OwnerReferenceDto' - nullable: true type: object + example: + name: identity 1 + id: 2a2fdacca5e345f18bf7970cfbb8fec2 + type: IDENTITY Entitlement_manuallyUpdatedFields: allOf: - $ref: '#/components/schemas/ManuallyUpdatedFieldsDTO' @@ -82907,17 +84511,41 @@ components: DESCRIPTION: true nullable: true type: object + example: + DESCRIPTION: true + DISPLAY_NAME: true Entitlement_accessModelMetadata: allOf: - $ref: '#/components/schemas/AttributeDTOList' - description: Access Model Metadata (beta). nullable: true type: object + example: + attributes: + - key: iscPrivacy + name: Privacy + multiselect: false + status: active + type: governance + objectTypes: + - all + description: Specifies the level of privacy associated with an access item. + values: + - value: public + name: Public + status: active RequestedItemStatus_cancelledRequestDetails: allOf: - $ref: '#/components/schemas/CancelledRequestDetails' - nullable: true type: object + example: + owner: + name: Support + id: 2c9180a46faadee4016fb4e018c20639 + type: IDENTITY + modified: 2019-12-20T09:17:12.192Z + comment: This request must be cancelled. RequestedItemStatus_requestedFor: description: Identity access was requested for. example: @@ -82947,22 +84575,105 @@ components: - description: The requester's comment. nullable: true type: object + example: + created: 2017-07-11T18:45:37.098Z + author: + name: john.doe + id: 2c9180847e25f377017e2ae8cae4650b + type: IDENTITY + comment: This is a comment. RequestedItemStatus_sodViolationContext: allOf: - $ref: '#/components/schemas/SodViolationContextCheckCompleted' - description: The details of the SOD violations for the associated approval. nullable: true type: object + example: + violationCheckResult: + clientMetadata: + requestedAppName: test-app + requestedAppId: 2c91808f7892918f0178b78da4a305a1 + violationContexts: + - conflictingAccessCriteria: + leftCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + rightCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + policy: + name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + - conflictingAccessCriteria: + leftCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + rightCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + policy: + name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + violatedPolicies: + - name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + - name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + message: + localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + state: SUCCESS + uuid: f73d16e9-a038-46c5-b217-1246e15fdbdd RequestedItemStatus_provisioningDetails: allOf: - $ref: '#/components/schemas/ProvisioningDetails' - nullable: true type: object + example: + orderedSubPhaseReferences: manualWorkItemDetails RequestedItemStatus_preApprovalTriggerDetails: allOf: - $ref: '#/components/schemas/PreApprovalTriggerDetails' - nullable: true type: object + example: + decision: APPROVED + comment: Access is Approved + reviewer: John Doe CompletedApproval_reviewedBy: description: Identity who reviewed the access item request. example: @@ -82986,12 +84697,6 @@ components: example: Allen Albertson type: string type: object - CompletedApproval_reviewerComment: - allOf: - - $ref: '#/components/schemas/CommentDto' - description: The approval's reviewer's comment. - nullable: true - type: object CompletedApproval_preApprovalTriggerResult: description: "If the access request submitted event trigger is configured and\ \ this access request was intercepted by it, then this is the result of the\ @@ -83065,6 +84770,10 @@ components: type: object Account_allOf_identity: description: The identity this account is correlated to + example: + name: Adam Kennedy + id: 2c918084660f45d6016617daa9210584 + type: IDENTITY properties: type: description: The type of object being referenced @@ -83081,9 +84790,12 @@ components: example: Adam Kennedy type: string type: object - example: null Account_allOf_sourceOwner: description: The owner of the source this account belongs to + example: + name: SailPoint Support + id: 4c5c8534e99445de98eef6c75e25eb01 + type: IDENTITY nullable: true properties: type: @@ -83101,10 +84813,13 @@ components: example: SailPoint Support type: string type: object - example: null Account_allOf_ownerIdentity: description: "The identity who owns this account, typically used for non-human\ \ accounts" + example: + name: Adam Kennedy + id: 2c918084660f45d6016617daa9210584 + type: IDENTITY nullable: true properties: type: @@ -83122,10 +84837,13 @@ components: example: Adam Kennedy type: string type: object - example: null Account_allOf_ownerGroup: description: "The governance group who owns this account, typically used for\ \ non-human accounts" + example: + name: GovGroup AX17Z + id: 8d3e0094e99445de98eef6c75e25jc04 + type: GOVERNANCE_GROUP nullable: true properties: type: @@ -83143,7 +84861,6 @@ components: example: GovGroup AX17Z type: string type: object - example: null AccountAttributesCreate_attributes: additionalProperties: type: string @@ -83502,6 +85219,10 @@ components: type: object IdentityDto_managerRef: description: Identity's manager. + example: + name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY nullable: true properties: type: @@ -83519,7 +85240,13 @@ components: example: Robert Robinson type: string type: object - example: null + IdentityDto_attributes: + description: A map with the identity attributes for the identity + example: "{\"uid\":\"Walter White\",\"firstname\":\"walter\",\"cloudStatus\"\ + :\"UNREGISTERED\",\"displayName\":\"Walter White\",\"identificationNumber\"\ + :\"942\",\"lastSyncDate\":1470348809380,\"email\":\"walter@gmail.com\",\"\ + lastname\":\"white\"}" + type: object IdentityDto_lifecycleState: allOf: - $ref: '#/components/schemas/LifecycleStateDto' @@ -83527,7 +85254,16 @@ components: whether this lifecycle state has been set manually nullable: true type: object + example: + stateName: active + manuallyUpdated: true IdentityAssociationDetails_associationDetails_inner: + example: + entities: + id: b660a232f05b4e04812ca974b3011e0f + name: Gaston.800ddf9640a + type: CAMPAIGN_CAMPAIGNER + associationType: CAMPAIGN_OWNER properties: associationType: description: association type with the identity @@ -83607,8 +85343,34 @@ components: oneOf: - $ref: '#/components/schemas/EntityCreatedByDTO' - $ref: '#/components/schemas/NullableEntityCreatedByDTO' + SimIntegrationDetails_allOf_attributes: + description: The attributes map containing the credentials used to configure + the integration. + example: "{\"uid\":\"Walter White\",\"firstname\":\"walter\",\"cloudStatus\"\ + :\"UNREGISTERED\",\"displayName\":\"Walter White\",\"identificationNumber\"\ + :\"942\",\"lastSyncDate\":1470348809380,\"email\":\"walter@gmail.com\",\"\ + lastname\":\"white\"}" + nullable: true + type: object + SimIntegrationDetails_allOf_statusMap: + description: Custom mapping between the integration result and the provisioning + result + example: "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed,\ + \ closed_rejected=Failed, in_process=Queued, requested=Queued}" + type: object + SimIntegrationDetails_allOf_request: + description: Request data to customize desc and body of the created ticket + example: "{description=SailPoint Access Request,, req_description=The Service\ + \ Request created by SailPoint ServiceNow Service Integration Module (SIM).,,\ + \ req_short_description=SailPoint New Access Request Created from IdentityNow,,\ + \ short_description=SailPoint Access Request $!plan.arguments.identityRequestId}" + type: object SimIntegrationDetails_allOf_beforeProvisioningRule: description: Before provisioning rule of integration + example: + name: Example Rule + id: 2c918085708c274401708c2a8a760001 + type: IDENTITY properties: type: $ref: '#/components/schemas/DtoType' @@ -83621,7 +85383,6 @@ components: example: Example Rule type: string type: object - example: null Source_owner: description: Reference to identity object who owns the source. example: @@ -84568,6 +86329,25 @@ components: - $ref: '#/components/schemas/ConflictingAccessCriteria' - nullable: true type: object + example: + leftCriteria: + name: money-in + criteriaList: + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a66 + name: Administrator + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a67 + name: Administrator + rightCriteria: + name: money-in + criteriaList: + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a66 + name: Administrator + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a67 + name: Administrator IdentityWithNewAccess_accessRefs_inner: description: Entitlement including a specific set of access. properties: @@ -84588,6 +86368,10 @@ components: type: object Workflow_allOf_creator: description: Workflow creator's identity. + example: + name: Michael Michaels + id: 2c7180a46faadee4016fb4e018c20642 + type: IDENTITY properties: type: description: Workflow creator's DTO type. @@ -84604,7 +86388,6 @@ components: example: Michael Michaels type: string type: object - example: null WorkflowBody_owner: description: The identity that owns the workflow. The owner's permissions in IDN will determine what actions the workflow is allowed to perform. Ownership @@ -84652,6 +86435,12 @@ components: readOnly: true type: string type: object + example: + emailAddress: support@sailpoint.com + displayName: Support + name: Support + id: 2c9180a46faadee4016fb4e018c20639 + type: IDENTITY BulkWorkgroupMembersRequest_inner: description: Identity's basic details. properties: @@ -84809,6 +86598,10 @@ components: - $ref: '#/components/schemas/AccessItemReviewedBy' - nullable: true type: object + example: + name: Allen Albertson + id: 2c3780a46faadee4016fb4e018c20652 + type: IDENTITY ManualWorkItemDetails_originalOwner: description: "Identity of original work item owner, if the work item has been\ \ forwarded." @@ -84897,6 +86690,10 @@ components: type: string type: object IdentityProfile_1_allOf_authoritativeSource: + example: + name: HR Active Directory + id: 2c9180835d191a86015d28455b4b232a + type: SOURCE properties: type: description: Type of the object to which this reference applies @@ -84914,7 +86711,6 @@ components: example: HR Active Directory type: string type: object - example: null TemplateSlack_autoApprovalData: example: itemId: itemId @@ -84981,6 +86777,9 @@ components: type: object ProvisioningConfig_planInitializerScript: description: This is a reference to a plan initializer script. + example: + source: | + \r\n\r\n\r\n Before Provisioning Rule which changes disables and enables to a modify.\r\n properties: source: description: This is a Rule that allows provisioning instruction changes. @@ -85008,6 +86807,13 @@ components: type: string type: object AccessRequestDynamicApprover_requestedItems_inner: + example: + name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add properties: id: description: The unique ID of the access item. @@ -86352,6 +88158,12 @@ components: - "12" nullable: true type: object + example: + values: + - MON + - WED + interval: 3 + type: LIST Schedule_1_days: allOf: - $ref: '#/components/schemas/Selector' @@ -86369,6 +88181,12 @@ components: - FRI nullable: true type: object + example: + values: + - MON + - WED + interval: 3 + type: LIST Schedule_1_hours: allOf: - $ref: '#/components/schemas/Selector' @@ -86380,6 +88198,12 @@ components: - "18" interval: 3 type: object + example: + values: + - MON + - WED + interval: 3 + type: LIST ViolationContext_policy: allOf: - $ref: '#/components/schemas/SodPolicyDto' @@ -86443,6 +88267,16 @@ components: type: object x-go-name: Config SodViolationContext_conflictingAccessCriteria_leftCriteria: + example: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY properties: criteriaList: items: @@ -86452,6 +88286,27 @@ components: SodViolationContext_conflictingAccessCriteria: description: The object which contains the left and right hand side of the entitlements that got violated according to the policy. + example: + leftCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + rightCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY properties: leftCriteria: $ref: '#/components/schemas/SodViolationContext_conflictingAccessCriteria_leftCriteria' diff --git a/api_beta/api_access_model_metadata.go b/api_beta/api_access_model_metadata.go index 67313b72b..f71e188a2 100644 --- a/api_beta/api_access_model_metadata.go +++ b/api_beta/api_access_model_metadata.go @@ -394,7 +394,7 @@ func (a *AccessModelMetadataAPIService) ListAccessModelMetadataAttributeExecute( localVarFormParams := url.Values{} if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_access_profiles.go b/api_beta/api_access_profiles.go index e0afd7864..6fac9f4a4 100644 --- a/api_beta/api_access_profiles.go +++ b/api_beta/api_access_profiles.go @@ -752,28 +752,28 @@ func (a *AccessProfilesAPIService) GetAccessProfileEntitlementsExecute(r ApiGetA localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -986,37 +986,37 @@ func (a *AccessProfilesAPIService) ListAccessProfilesExecute(r ApiListAccessProf localVarFormParams := url.Values{} if r.forSubadmin != nil { - parameterAddToQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 50 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.forSegmentIds != nil { - parameterAddToQuery(localVarQueryParams, "for-segment-ids", r.forSegmentIds, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "for-segment-ids", r.forSegmentIds, "", "") } if r.includeUnsegmented != nil { - parameterAddToQuery(localVarQueryParams, "include-unsegmented", r.includeUnsegmented, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-unsegmented", r.includeUnsegmented, "", "") } else { var defaultValue bool = true r.includeUnsegmented = &defaultValue diff --git a/api_beta/api_access_request_approvals.go b/api_beta/api_access_request_approvals.go index b1c96334b..d2fc3b001 100644 --- a/api_beta/api_access_request_approvals.go +++ b/api_beta/api_access_request_approvals.go @@ -443,10 +443,10 @@ func (a *AccessRequestApprovalsAPIService) GetAccessRequestApprovalSummaryExecut localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "owner-id", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "owner-id", r.ownerId, "", "") } if r.fromDate != nil { - parameterAddToQuery(localVarQueryParams, "from-date", r.fromDate, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "from-date", r.fromDate, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -644,31 +644,31 @@ func (a *AccessRequestApprovalsAPIService) ListCompletedApprovalsExecute(r ApiLi localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "owner-id", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "owner-id", r.ownerId, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -855,31 +855,31 @@ func (a *AccessRequestApprovalsAPIService) ListPendingApprovalsExecute(r ApiList localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "owner-id", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "owner-id", r.ownerId, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_access_requests.go b/api_beta/api_access_requests.go index 0678507d3..61e7f509e 100644 --- a/api_beta/api_access_requests.go +++ b/api_beta/api_access_requests.go @@ -833,37 +833,37 @@ func (a *AccessRequestsAPIService) ListAccessRequestStatusExecute(r ApiListAcces localVarFormParams := url.Values{} if r.requestedFor != nil { - parameterAddToQuery(localVarQueryParams, "requested-for", r.requestedFor, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-for", r.requestedFor, "", "") } if r.requestedBy != nil { - parameterAddToQuery(localVarQueryParams, "requested-by", r.requestedBy, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-by", r.requestedBy, "", "") } if r.regardingIdentity != nil { - parameterAddToQuery(localVarQueryParams, "regarding-identity", r.regardingIdentity, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "regarding-identity", r.regardingIdentity, "", "") } if r.assignedTo != nil { - parameterAddToQuery(localVarQueryParams, "assigned-to", r.assignedTo, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned-to", r.assignedTo, "", "") } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_account_activities.go b/api_beta/api_account_activities.go index be6c51798..883a43f6e 100644 --- a/api_beta/api_account_activities.go +++ b/api_beta/api_account_activities.go @@ -300,40 +300,40 @@ func (a *AccountActivitiesAPIService) ListAccountActivitiesExecute(r ApiListAcco localVarFormParams := url.Values{} if r.requestedFor != nil { - parameterAddToQuery(localVarQueryParams, "requested-for", r.requestedFor, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-for", r.requestedFor, "", "") } if r.requestedBy != nil { - parameterAddToQuery(localVarQueryParams, "requested-by", r.requestedBy, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-by", r.requestedBy, "", "") } if r.regardingIdentity != nil { - parameterAddToQuery(localVarQueryParams, "regarding-identity", r.regardingIdentity, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "regarding-identity", r.regardingIdentity, "", "") } if r.type_ != nil { - parameterAddToQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_account_usages.go b/api_beta/api_account_usages.go index d3cd875d9..1bfc90963 100644 --- a/api_beta/api_account_usages.go +++ b/api_beta/api_account_usages.go @@ -101,25 +101,25 @@ func (a *AccountUsagesAPIService) GetUsagesByAccountIdExecute(r ApiGetUsagesByAc localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_accounts.go b/api_beta/api_accounts.go index 9affecbd6..52068443f 100644 --- a/api_beta/api_accounts.go +++ b/api_beta/api_accounts.go @@ -1800,19 +1800,19 @@ func (a *AccountsAPIService) GetAccountEntitlementsExecute(r ApiGetAccountEntitl localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -2025,31 +2025,31 @@ func (a *AccountsAPIService) ListAccountsExecute(r ApiListAccountsRequest) ([]Ac localVarFormParams := url.Values{} if r.detailLevel != nil { - parameterAddToQuery(localVarQueryParams, "detailLevel", r.detailLevel, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "detailLevel", r.detailLevel, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_application_discovery.go b/api_beta/api_application_discovery.go index 194656f33..36a463275 100644 --- a/api_beta/api_application_discovery.go +++ b/api_beta/api_application_discovery.go @@ -105,25 +105,25 @@ func (a *ApplicationDiscoveryAPIService) GetDiscoveredApplicationsExecute(r ApiG localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.detail != nil { - parameterAddToQuery(localVarQueryParams, "detail", r.detail, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "detail", r.detail, "", "") } if r.filter != nil { - parameterAddToQuery(localVarQueryParams, "filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filter", r.filter, "form", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_approvals.go b/api_beta/api_approvals.go index 31d8f7055..bef3c8508 100644 --- a/api_beta/api_approvals.go +++ b/api_beta/api_approvals.go @@ -248,13 +248,13 @@ func (a *ApprovalsAPIService) GetApprovalsExecute(r ApiGetApprovalsRequest) ([]A localVarFormParams := url.Values{} if r.mine != nil { - parameterAddToQuery(localVarQueryParams, "mine", r.mine, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "mine", r.mine, "", "") } if r.requesterId != nil { - parameterAddToQuery(localVarQueryParams, "requesterId", r.requesterId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requesterId", r.requesterId, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_certification_campaigns.go b/api_beta/api_certification_campaigns.go index 546708b3f..f8ec5291c 100644 --- a/api_beta/api_certification_campaigns.go +++ b/api_beta/api_certification_campaigns.go @@ -1157,31 +1157,31 @@ func (a *CertificationCampaignsAPIService) GetActiveCampaignsExecute(r ApiGetAct localVarFormParams := url.Values{} if r.detail != nil { - parameterAddToQuery(localVarQueryParams, "detail", r.detail, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "detail", r.detail, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2235,28 +2235,28 @@ func (a *CertificationCampaignsAPIService) GetCampaignTemplatesExecute(r ApiGetC localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_certifications.go b/api_beta/api_certifications.go index 66deb2263..edc69be6a 100644 --- a/api_beta/api_certifications.go +++ b/api_beta/api_certifications.go @@ -108,22 +108,22 @@ func (a *CertificationsAPIService) GetIdentityCertificationItemPermissionsExecut localVarFormParams := url.Values{} if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -675,28 +675,28 @@ func (a *CertificationsAPIService) ListCertificationReviewersExecute(r ApiListCe localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_connectors.go b/api_beta/api_connectors.go index 54318886a..7c1503141 100644 --- a/api_beta/api_connectors.go +++ b/api_beta/api_connectors.go @@ -104,28 +104,28 @@ func (a *ConnectorsAPIService) GetConnectorListExecute(r ApiGetConnectorListRequ localVarFormParams := url.Values{} if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.locale != nil { - parameterAddToQuery(localVarQueryParams, "locale", r.locale, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_custom_forms.go b/api_beta/api_custom_forms.go index 6a6c7c0f3..98aa0ba7c 100644 --- a/api_beta/api_custom_forms.go +++ b/api_beta/api_custom_forms.go @@ -1143,22 +1143,22 @@ func (a *CustomFormsAPIService) ExportFormDefinitionsByTenantExecute(r ApiExport localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int64 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int64 = 250 r.limit = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } else { var defaultValue string = "name" r.sorters = &defaultValue @@ -2568,22 +2568,22 @@ func (a *CustomFormsAPIService) SearchFormDefinitionsByTenantExecute(r ApiSearch localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int64 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int64 = 250 r.limit = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } else { var defaultValue string = "name" r.sorters = &defaultValue @@ -2772,16 +2772,16 @@ func (a *CustomFormsAPIService) SearchFormElementDataByElementIDExecute(r ApiSea localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int64 = 250 r.limit = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.query != nil { - parameterAddToQuery(localVarQueryParams, "query", r.query, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "query", r.query, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3284,16 +3284,16 @@ func (a *CustomFormsAPIService) ShowPreviewDataSourceExecute(r ApiShowPreviewDat localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int64 = 10 r.limit = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.query != nil { - parameterAddToQuery(localVarQueryParams, "query", r.query, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "query", r.query, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} diff --git a/api_beta/api_custom_password_instructions.go b/api_beta/api_custom_password_instructions.go index a290a0c26..89837d1b6 100644 --- a/api_beta/api_custom_password_instructions.go +++ b/api_beta/api_custom_password_instructions.go @@ -220,7 +220,7 @@ func (a *CustomPasswordInstructionsAPIService) DeleteCustomPasswordInstructionsE localVarFormParams := url.Values{} if r.locale != nil { - parameterAddToQuery(localVarQueryParams, "locale", r.locale, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -367,7 +367,7 @@ func (a *CustomPasswordInstructionsAPIService) GetCustomPasswordInstructionsExec localVarFormParams := url.Values{} if r.locale != nil { - parameterAddToQuery(localVarQueryParams, "locale", r.locale, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_entitlements.go b/api_beta/api_entitlements.go index 527148566..3275932ac 100644 --- a/api_beta/api_entitlements.go +++ b/api_beta/api_entitlements.go @@ -950,28 +950,28 @@ func (a *EntitlementsAPIService) ListEntitlementChildrenExecute(r ApiListEntitle localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1177,28 +1177,28 @@ func (a *EntitlementsAPIService) ListEntitlementParentsExecute(r ApiListEntitlem localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1433,43 +1433,43 @@ func (a *EntitlementsAPIService) ListEntitlementsExecute(r ApiListEntitlementsRe localVarFormParams := url.Values{} if r.accountId != nil { - parameterAddToQuery(localVarQueryParams, "account-id", r.accountId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "account-id", r.accountId, "", "") } if r.segmentedForIdentity != nil { - parameterAddToQuery(localVarQueryParams, "segmented-for-identity", r.segmentedForIdentity, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "segmented-for-identity", r.segmentedForIdentity, "", "") } if r.forSegmentIds != nil { - parameterAddToQuery(localVarQueryParams, "for-segment-ids", r.forSegmentIds, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "for-segment-ids", r.forSegmentIds, "", "") } if r.includeUnsegmented != nil { - parameterAddToQuery(localVarQueryParams, "include-unsegmented", r.includeUnsegmented, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-unsegmented", r.includeUnsegmented, "", "") } else { var defaultValue bool = true r.includeUnsegmented = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_governance_groups.go b/api_beta/api_governance_groups.go index d81b34dad..e2787345d 100644 --- a/api_beta/api_governance_groups.go +++ b/api_beta/api_governance_groups.go @@ -916,25 +916,25 @@ func (a *GovernanceGroupsAPIService) ListConnectionsExecute(r ApiListConnections localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 50 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1122,25 +1122,25 @@ func (a *GovernanceGroupsAPIService) ListWorkgroupMembersExecute(r ApiListWorkgr localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 50 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1331,28 +1331,28 @@ func (a *GovernanceGroupsAPIService) ListWorkgroupsExecute(r ApiListWorkgroupsRe localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 50 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_iai_access_request_recommendations.go b/api_beta/api_iai_access_request_recommendations.go index d21827ff9..3b712c610 100644 --- a/api_beta/api_iai_access_request_recommendations.go +++ b/api_beta/api_iai_access_request_recommendations.go @@ -777,40 +777,40 @@ func (a *IAIAccessRequestRecommendationsAPIService) GetAccessRequestRecommendati localVarFormParams := url.Values{} if r.identityId != nil { - parameterAddToQuery(localVarQueryParams, "identity-id", r.identityId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "identity-id", r.identityId, "", "") } else { var defaultValue string = "me" r.identityId = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 15 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.includeTranslationMessages != nil { - parameterAddToQuery(localVarQueryParams, "include-translation-messages", r.includeTranslationMessages, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-translation-messages", r.includeTranslationMessages, "", "") } else { var defaultValue bool = false r.includeTranslationMessages = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1001,28 +1001,28 @@ func (a *IAIAccessRequestRecommendationsAPIService) GetAccessRequestRecommendati localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1213,28 +1213,28 @@ func (a *IAIAccessRequestRecommendationsAPIService) GetAccessRequestRecommendati localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1425,28 +1425,28 @@ func (a *IAIAccessRequestRecommendationsAPIService) GetAccessRequestRecommendati localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_iai_common_access.go b/api_beta/api_iai_common_access.go index c9c50d876..d52ac4f9d 100644 --- a/api_beta/api_iai_common_access.go +++ b/api_beta/api_iai_common_access.go @@ -267,28 +267,28 @@ func (a *IAICommonAccessAPIService) GetCommonAccessExecute(r ApiGetCommonAccessR localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_iai_outliers.go b/api_beta/api_iai_outliers.go index 2725e78f8..969097182 100644 --- a/api_beta/api_iai_outliers.go +++ b/api_beta/api_iai_outliers.go @@ -78,7 +78,7 @@ func (a *IAIOutliersAPIService) ExportOutliersZipExecute(r ApiExportOutliersZipR localVarFormParams := url.Values{} if r.type_ != nil { - parameterAddToQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -270,25 +270,25 @@ func (a *IAIOutliersAPIService) GetIdentityOutlierSnapshotsExecute(r ApiGetIdent localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.type_ != nil { - parameterAddToQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -487,31 +487,31 @@ func (a *IAIOutliersAPIService) GetIdentityOutliersExecute(r ApiGetIdentityOutli localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.type_ != nil { - parameterAddToQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -675,7 +675,7 @@ func (a *IAIOutliersAPIService) GetLatestIdentityOutlierSnapshotsExecute(r ApiGe localVarFormParams := url.Values{} if r.type_ != nil { - parameterAddToQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1040,28 +1040,28 @@ func (a *IAIOutliersAPIService) GetPeerGroupOutliersContributingFeaturesExecute( localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.includeTranslationMessages != nil { - parameterAddToQuery(localVarQueryParams, "include-translation-messages", r.includeTranslationMessages, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-translation-messages", r.includeTranslationMessages, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1426,28 +1426,28 @@ func (a *IAIOutliersAPIService) ListOutliersContributingFeatureAccessItemsExecut localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.accessType != nil { - parameterAddToQuery(localVarQueryParams, "accessType", r.accessType, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "accessType", r.accessType, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_iai_peer_group_strategies.go b/api_beta/api_iai_peer_group_strategies.go index fa0b07007..dda6c0322 100644 --- a/api_beta/api_iai_peer_group_strategies.go +++ b/api_beta/api_iai_peer_group_strategies.go @@ -97,19 +97,19 @@ func (a *IAIPeerGroupStrategiesAPIService) GetPeerGroupOutliersExecute(r ApiGetP localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_beta/api_iai_role_mining.go b/api_beta/api_iai_role_mining.go index 1ddb9b3a4..263601dbb 100644 --- a/api_beta/api_iai_role_mining.go +++ b/api_beta/api_iai_role_mining.go @@ -99,13 +99,13 @@ func (a *IAIRoleMiningAPIService) CreatePotentialRoleProvisionRequestExecute(r A localVarFormParams := url.Values{} if r.minEntitlementPopularity != nil { - parameterAddToQuery(localVarQueryParams, "min-entitlement-popularity", r.minEntitlementPopularity, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "min-entitlement-popularity", r.minEntitlementPopularity, "form", "") } else { var defaultValue int32 = 0 r.minEntitlementPopularity = &defaultValue } if r.includeCommonAccess != nil { - parameterAddToQuery(localVarQueryParams, "include-common-access", r.includeCommonAccess, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-common-access", r.includeCommonAccess, "form", "") } else { var defaultValue bool = true r.includeCommonAccess = &defaultValue @@ -1082,25 +1082,25 @@ func (a *IAIRoleMiningAPIService) GetAllPotentialRoleSummariesExecute(r ApiGetAl localVarFormParams := url.Values{} if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -1274,7 +1274,7 @@ func (a *IAIRoleMiningAPIService) GetEntitlementDistributionPotentialRoleExecute localVarFormParams := url.Values{} if r.includeCommonAccess != nil { - parameterAddToQuery(localVarQueryParams, "includeCommonAccess", r.includeCommonAccess, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "includeCommonAccess", r.includeCommonAccess, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1469,31 +1469,31 @@ func (a *IAIRoleMiningAPIService) GetEntitlementsPotentialRoleExecute(r ApiGetEn localVarFormParams := url.Values{} if r.includeCommonAccess != nil { - parameterAddToQuery(localVarQueryParams, "includeCommonAccess", r.includeCommonAccess, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "includeCommonAccess", r.includeCommonAccess, "form", "") } else { var defaultValue bool = true r.includeCommonAccess = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -1695,25 +1695,25 @@ func (a *IAIRoleMiningAPIService) GetExcludedEntitlementsPotentialRoleExecute(r localVarFormParams := url.Values{} if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -1904,25 +1904,25 @@ func (a *IAIRoleMiningAPIService) GetIdentitiesPotentialRoleExecute(r ApiGetIden localVarFormParams := url.Values{} if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -2260,19 +2260,19 @@ func (a *IAIRoleMiningAPIService) GetPotentialRoleApplicationsExecute(r ApiGetPo localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -2456,22 +2456,22 @@ func (a *IAIRoleMiningAPIService) GetPotentialRoleSourceIdentityUsageExecute(r A localVarFormParams := url.Values{} if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -2669,25 +2669,25 @@ func (a *IAIRoleMiningAPIService) GetPotentialRoleSummariesExecute(r ApiGetPoten localVarFormParams := url.Values{} if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -3352,25 +3352,25 @@ func (a *IAIRoleMiningAPIService) GetRoleMiningSessionsExecute(r ApiGetRoleMinin localVarFormParams := url.Values{} if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -3557,22 +3557,22 @@ func (a *IAIRoleMiningAPIService) GetSavedPotentialRolesExecute(r ApiGetSavedPot localVarFormParams := url.Values{} if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_beta/api_identities.go b/api_beta/api_identities.go index 33c789737..1cc75e160 100644 --- a/api_beta/api_identities.go +++ b/api_beta/api_identities.go @@ -752,10 +752,10 @@ func (a *IdentitiesAPIService) GetRoleAssignmentsExecute(r ApiGetRoleAssignments localVarFormParams := url.Values{} if r.roleId != nil { - parameterAddToQuery(localVarQueryParams, "roleId", r.roleId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "roleId", r.roleId, "", "") } if r.roleName != nil { - parameterAddToQuery(localVarQueryParams, "roleName", r.roleName, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "roleName", r.roleName, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -964,31 +964,31 @@ func (a *IdentitiesAPIService) ListIdentitiesExecute(r ApiListIdentitiesRequest) localVarFormParams := url.Values{} if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.defaultFilter != nil { - parameterAddToQuery(localVarQueryParams, "defaultFilter", r.defaultFilter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "defaultFilter", r.defaultFilter, "", "") } else { var defaultValue string = "CORRELATED_ONLY" r.defaultFilter = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue diff --git a/api_beta/api_identity_attributes.go b/api_beta/api_identity_attributes.go index 7303f94e5..4bb2f9df9 100644 --- a/api_beta/api_identity_attributes.go +++ b/api_beta/api_identity_attributes.go @@ -761,25 +761,25 @@ func (a *IdentityAttributesAPIService) ListIdentityAttributesExecute(r ApiListId localVarFormParams := url.Values{} if r.includeSystem != nil { - parameterAddToQuery(localVarQueryParams, "includeSystem", r.includeSystem, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "includeSystem", r.includeSystem, "", "") } else { var defaultValue bool = false r.includeSystem = &defaultValue } if r.includeSilent != nil { - parameterAddToQuery(localVarQueryParams, "includeSilent", r.includeSilent, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "includeSilent", r.includeSilent, "", "") } else { var defaultValue bool = false r.includeSilent = &defaultValue } if r.searchableOnly != nil { - parameterAddToQuery(localVarQueryParams, "searchableOnly", r.searchableOnly, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "searchableOnly", r.searchableOnly, "", "") } else { var defaultValue bool = false r.searchableOnly = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_beta/api_identity_history.go b/api_beta/api_identity_history.go index bcbca1b93..a85c66b6f 100644 --- a/api_beta/api_identity_history.go +++ b/api_beta/api_identity_history.go @@ -115,28 +115,28 @@ func (a *IdentityHistoryAPIService) CompareIdentitySnapshotsExecute(r ApiCompare localVarFormParams := url.Values{} if r.snapshot1 != nil { - parameterAddToQuery(localVarQueryParams, "snapshot1", r.snapshot1, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "snapshot1", r.snapshot1, "", "") } if r.snapshot2 != nil { - parameterAddToQuery(localVarQueryParams, "snapshot2", r.snapshot2, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "snapshot2", r.snapshot2, "", "") } if r.accessItemTypes != nil { - parameterAddToQuery(localVarQueryParams, "accessItemTypes", r.accessItemTypes, "csv") + parameterAddToHeaderOrQuery(localVarQueryParams, "accessItemTypes", r.accessItemTypes, "", "csv") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -345,28 +345,28 @@ func (a *IdentityHistoryAPIService) CompareIdentitySnapshotsAccessTypeExecute(r localVarFormParams := url.Values{} if r.accessAssociated != nil { - parameterAddToQuery(localVarQueryParams, "access-associated", r.accessAssociated, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "access-associated", r.accessAssociated, "", "") } if r.snapshot1 != nil { - parameterAddToQuery(localVarQueryParams, "snapshot1", r.snapshot1, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "snapshot1", r.snapshot1, "", "") } if r.snapshot2 != nil { - parameterAddToQuery(localVarQueryParams, "snapshot2", r.snapshot2, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "snapshot2", r.snapshot2, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -728,28 +728,28 @@ func (a *IdentityHistoryAPIService) GetHistoricalIdentityEventsExecute(r ApiGetH localVarFormParams := url.Values{} if r.from != nil { - parameterAddToQuery(localVarQueryParams, "from", r.from, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "from", r.from, "", "") } if r.eventTypes != nil { - parameterAddToQuery(localVarQueryParams, "eventTypes", r.eventTypes, "csv") + parameterAddToHeaderOrQuery(localVarQueryParams, "eventTypes", r.eventTypes, "", "csv") } if r.accessItemTypes != nil { - parameterAddToQuery(localVarQueryParams, "accessItemTypes", r.accessItemTypes, "csv") + parameterAddToHeaderOrQuery(localVarQueryParams, "accessItemTypes", r.accessItemTypes, "", "csv") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -1126,28 +1126,28 @@ func (a *IdentityHistoryAPIService) GetIdentitySnapshotSummaryExecute(r ApiGetId localVarFormParams := url.Values{} if r.before != nil { - parameterAddToQuery(localVarQueryParams, "before", r.before, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "before", r.before, "", "") } if r.interval != nil { - parameterAddToQuery(localVarQueryParams, "interval", r.interval, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval", r.interval, "", "") } if r.timeZone != nil { - parameterAddToQuery(localVarQueryParams, "time-zone", r.timeZone, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "time-zone", r.timeZone, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -1498,22 +1498,22 @@ func (a *IdentityHistoryAPIService) ListHistoricalIdentitiesExecute(r ApiListHis localVarFormParams := url.Values{} if r.startsWithQuery != nil { - parameterAddToQuery(localVarQueryParams, "starts-with-query", r.startsWithQuery, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "starts-with-query", r.startsWithQuery, "", "") } if r.isDeleted != nil { - parameterAddToQuery(localVarQueryParams, "is-deleted", r.isDeleted, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "is-deleted", r.isDeleted, "", "") } if r.isActive != nil { - parameterAddToQuery(localVarQueryParams, "is-active", r.isActive, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "is-active", r.isActive, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue @@ -1704,16 +1704,16 @@ func (a *IdentityHistoryAPIService) ListIdentityAccessItemsExecute(r ApiListIden localVarFormParams := url.Values{} if r.type_ != nil { - parameterAddToQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.query != nil { - parameterAddToQuery(localVarQueryParams, "query", r.query, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "query", r.query, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1895,7 +1895,7 @@ func (a *IdentityHistoryAPIService) ListIdentitySnapshotAccessItemsExecute(r Api localVarFormParams := url.Values{} if r.type_ != nil { - parameterAddToQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2101,25 +2101,25 @@ func (a *IdentityHistoryAPIService) ListIdentitySnapshotsExecute(r ApiListIdenti localVarFormParams := url.Values{} if r.start != nil { - parameterAddToQuery(localVarQueryParams, "start", r.start, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "start", r.start, "", "") } if r.interval != nil { - parameterAddToQuery(localVarQueryParams, "interval", r.interval, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval", r.interval, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_beta/api_identity_profiles.go b/api_beta/api_identity_profiles.go index 71a75ea50..23a4fd10d 100644 --- a/api_beta/api_identity_profiles.go +++ b/api_beta/api_identity_profiles.go @@ -615,28 +615,28 @@ func (a *IdentityProfilesAPIService) ExportIdentityProfilesExecute(r ApiExportId localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1343,28 +1343,28 @@ func (a *IdentityProfilesAPIService) ListIdentityProfilesExecute(r ApiListIdenti localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_managed_clients.go b/api_beta/api_managed_clients.go index dcc1c54a1..4c09c165d 100644 --- a/api_beta/api_managed_clients.go +++ b/api_beta/api_managed_clients.go @@ -85,7 +85,7 @@ func (a *ManagedClientsAPIService) GetManagedClientStatusExecute(r ApiGetManaged return localVarReturnValue, nil, reportError("type_ is required and must be specified") } - parameterAddToQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_managed_clusters.go b/api_beta/api_managed_clusters.go index 6a1674ecd..8dc262e47 100644 --- a/api_beta/api_managed_clusters.go +++ b/api_beta/api_managed_clusters.go @@ -442,25 +442,25 @@ func (a *ManagedClustersAPIService) GetManagedClustersExecute(r ApiGetManagedClu localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_mfa_configuration.go b/api_beta/api_mfa_configuration.go index 3e1026fa1..f52d94174 100644 --- a/api_beta/api_mfa_configuration.go +++ b/api_beta/api_mfa_configuration.go @@ -387,7 +387,7 @@ func (a *MFAConfigurationAPIService) GetMFAKbaConfigExecute(r ApiGetMFAKbaConfig localVarFormParams := url.Values{} if r.allLanguages != nil { - parameterAddToQuery(localVarQueryParams, "allLanguages", r.allLanguages, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "allLanguages", r.allLanguages, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_non_employee_lifecycle_management.go b/api_beta/api_non_employee_lifecycle_management.go index 91764e1a3..6098e9029 100644 --- a/api_beta/api_non_employee_lifecycle_management.go +++ b/api_beta/api_non_employee_lifecycle_management.go @@ -2134,7 +2134,7 @@ func (a *NonEmployeeLifecycleManagementAPIService) GetNonEmployeeApprovalExecute localVarFormParams := url.Values{} if r.includeDetail != nil { - parameterAddToQuery(localVarQueryParams, "include-detail", r.includeDetail, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-detail", r.includeDetail, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3809,31 +3809,31 @@ func (a *NonEmployeeLifecycleManagementAPIService) ListNonEmployeeApprovalExecut localVarFormParams := url.Values{} if r.requestedFor != nil { - parameterAddToQuery(localVarQueryParams, "requested-for", r.requestedFor, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-for", r.requestedFor, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4024,28 +4024,28 @@ func (a *NonEmployeeLifecycleManagementAPIService) ListNonEmployeeRecordsExecute localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4246,29 +4246,29 @@ func (a *NonEmployeeLifecycleManagementAPIService) ListNonEmployeeRequestsExecut } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } - parameterAddToQuery(localVarQueryParams, "requested-for", r.requestedFor, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-for", r.requestedFor, "", "") if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4472,27 +4472,27 @@ func (a *NonEmployeeLifecycleManagementAPIService) ListNonEmployeeSourcesExecute } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } - parameterAddToQuery(localVarQueryParams, "requested-for", r.requestedFor, "") - parameterAddToQuery(localVarQueryParams, "non-employee-count", r.nonEmployeeCount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-for", r.requestedFor, "", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "non-employee-count", r.nonEmployeeCount, "", "") if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_notifications.go b/api_beta/api_notifications.go index c72c7c07b..783c7cdbe 100644 --- a/api_beta/api_notifications.go +++ b/api_beta/api_notifications.go @@ -1046,7 +1046,7 @@ func (a *NotificationsAPIService) GetMailFromAttributesExecute(r ApiGetMailFromA return localVarReturnValue, nil, reportError("id is required and must be specified") } - parameterAddToQuery(localVarQueryParams, "id", r.id, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1547,28 +1547,28 @@ func (a *NotificationsAPIService) ListFromAddressesExecute(r ApiListFromAddresse localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1898,19 +1898,19 @@ func (a *NotificationsAPIService) ListNotificationTemplateDefaultsExecute(r ApiL localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2087,19 +2087,19 @@ func (a *NotificationsAPIService) ListNotificationTemplatesExecute(r ApiListNoti localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_o_auth_clients.go b/api_beta/api_o_auth_clients.go index 772856cfe..14f8db3e9 100644 --- a/api_beta/api_o_auth_clients.go +++ b/api_beta/api_o_auth_clients.go @@ -565,7 +565,7 @@ func (a *OAuthClientsAPIService) ListOauthClientsExecute(r ApiListOauthClientsRe localVarFormParams := url.Values{} if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_password_policies.go b/api_beta/api_password_policies.go index 6259af60e..3663eb6f8 100644 --- a/api_beta/api_password_policies.go +++ b/api_beta/api_password_policies.go @@ -591,19 +591,19 @@ func (a *PasswordPoliciesAPIService) ListPasswordPoliciesExecute(r ApiListPasswo localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_beta/api_password_sync_groups.go b/api_beta/api_password_sync_groups.go index 0ae9520a2..a6e6d38ba 100644 --- a/api_beta/api_password_sync_groups.go +++ b/api_beta/api_password_sync_groups.go @@ -568,19 +568,19 @@ func (a *PasswordSyncGroupsAPIService) GetPasswordSyncGroupsExecute(r ApiGetPass localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_beta/api_personal_access_tokens.go b/api_beta/api_personal_access_tokens.go index a1140c105..4ae4fc28f 100644 --- a/api_beta/api_personal_access_tokens.go +++ b/api_beta/api_personal_access_tokens.go @@ -405,10 +405,10 @@ func (a *PersonalAccessTokensAPIService) ListPersonalAccessTokensExecute(r ApiLi localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "owner-id", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "owner-id", r.ownerId, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_requestable_objects.go b/api_beta/api_requestable_objects.go index e3a09123c..ddfee733e 100644 --- a/api_beta/api_requestable_objects.go +++ b/api_beta/api_requestable_objects.go @@ -132,40 +132,40 @@ func (a *RequestableObjectsAPIService) ListRequestableObjectsExecute(r ApiListRe localVarFormParams := url.Values{} if r.identityId != nil { - parameterAddToQuery(localVarQueryParams, "identity-id", r.identityId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "identity-id", r.identityId, "", "") } if r.types != nil { - parameterAddToQuery(localVarQueryParams, "types", r.types, "csv") + parameterAddToHeaderOrQuery(localVarQueryParams, "types", r.types, "", "csv") } if r.term != nil { - parameterAddToQuery(localVarQueryParams, "term", r.term, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "term", r.term, "", "") } if r.statuses != nil { - parameterAddToQuery(localVarQueryParams, "statuses", r.statuses, "csv") + parameterAddToHeaderOrQuery(localVarQueryParams, "statuses", r.statuses, "", "csv") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_role_insights.go b/api_beta/api_role_insights.go index ef0188212..7bd7cc3b1 100644 --- a/api_beta/api_role_insights.go +++ b/api_beta/api_role_insights.go @@ -243,10 +243,10 @@ func (a *RoleInsightsAPIService) DownloadRoleInsightsEntitlementsChangesExecute( localVarFormParams := url.Values{} if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -441,34 +441,34 @@ func (a *RoleInsightsAPIService) GetEntitlementChangesIdentitiesExecute(r ApiGet localVarFormParams := url.Values{} if r.hasEntitlement != nil { - parameterAddToQuery(localVarQueryParams, "hasEntitlement", r.hasEntitlement, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "hasEntitlement", r.hasEntitlement, "form", "") } else { var defaultValue bool = false r.hasEntitlement = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -794,28 +794,28 @@ func (a *RoleInsightsAPIService) GetRoleInsightsExecute(r ApiGetRoleInsightsRequ localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -971,7 +971,7 @@ func (a *RoleInsightsAPIService) GetRoleInsightsCurrentEntitlementsExecute(r Api localVarFormParams := url.Values{} if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1134,10 +1134,10 @@ func (a *RoleInsightsAPIService) GetRoleInsightsEntitlementsChangesExecute(r Api localVarFormParams := url.Values{} if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_roles.go b/api_beta/api_roles.go index e580fe38f..d312cf5fc 100644 --- a/api_beta/api_roles.go +++ b/api_beta/api_roles.go @@ -750,28 +750,28 @@ func (a *RolesAPIService) GetRoleAssignedIdentitiesExecute(r ApiGetRoleAssignedI localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -968,28 +968,28 @@ func (a *RolesAPIService) GetRoleEntitlementsExecute(r ApiGetRoleEntitlementsReq localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1203,37 +1203,37 @@ func (a *RolesAPIService) ListRolesExecute(r ApiListRolesRequest) ([]Role, *http localVarFormParams := url.Values{} if r.forSubadmin != nil { - parameterAddToQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 50 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.forSegmentIds != nil { - parameterAddToQuery(localVarQueryParams, "for-segment-ids", r.forSegmentIds, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "for-segment-ids", r.forSegmentIds, "", "") } if r.includeUnsegmented != nil { - parameterAddToQuery(localVarQueryParams, "include-unsegmented", r.includeUnsegmented, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-unsegmented", r.includeUnsegmented, "", "") } else { var defaultValue bool = true r.includeUnsegmented = &defaultValue diff --git a/api_beta/api_segments.go b/api_beta/api_segments.go index 319b7c5b3..92a3e1dc0 100644 --- a/api_beta/api_segments.go +++ b/api_beta/api_segments.go @@ -585,19 +585,19 @@ func (a *SegmentsAPIService) ListSegmentsExecute(r ApiListSegmentsRequest) ([]Se localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_beta/api_service_desk_integration.go b/api_beta/api_service_desk_integration.go index b74e638d0..6c6b209b4 100644 --- a/api_beta/api_service_desk_integration.go +++ b/api_beta/api_service_desk_integration.go @@ -605,25 +605,25 @@ func (a *ServiceDeskIntegrationAPIService) GetServiceDeskIntegrationListExecute( localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_beta/api_sod_policies.go b/api_beta/api_sod_policies.go index 3e4ef7df1..41ac90e2c 100644 --- a/api_beta/api_sod_policies.go +++ b/api_beta/api_sod_policies.go @@ -251,7 +251,7 @@ func (a *SODPoliciesAPIService) DeleteSodPolicyExecute(r ApiDeleteSodPolicyReque localVarFormParams := url.Values{} if r.logical != nil { - parameterAddToQuery(localVarQueryParams, "logical", r.logical, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "logical", r.logical, "", "") } else { var defaultValue bool = true r.logical = &defaultValue @@ -1794,28 +1794,28 @@ func (a *SODPoliciesAPIService) ListSodPoliciesExecute(r ApiListSodPoliciesReque localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_source_usages.go b/api_beta/api_source_usages.go index e2347eaaa..a91467cfe 100644 --- a/api_beta/api_source_usages.go +++ b/api_beta/api_source_usages.go @@ -258,25 +258,25 @@ func (a *SourceUsagesAPIService) GetUsagesBySourceIdExecute(r ApiGetUsagesBySour localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_sources.go b/api_beta/api_sources.go index e4080c6bd..af63a3454 100644 --- a/api_beta/api_sources.go +++ b/api_beta/api_sources.go @@ -269,7 +269,7 @@ func (a *SourcesAPIService) CreateSourceExecute(r ApiCreateSourceRequest) (*Sour } if r.provisionAsCsv != nil { - parameterAddToQuery(localVarQueryParams, "provisionAsCsv", r.provisionAsCsv, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "provisionAsCsv", r.provisionAsCsv, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -2423,7 +2423,7 @@ func (a *SourcesAPIService) GetSourceConfigExecute(r ApiGetSourceConfigRequest) localVarFormParams := url.Values{} if r.locale != nil { - parameterAddToQuery(localVarQueryParams, "locale", r.locale, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2745,7 +2745,7 @@ func (a *SourcesAPIService) GetSourceEntitlementsSchemaExecute(r ApiGetSourceEnt localVarFormParams := url.Values{} if r.schemaName != nil { - parameterAddToQuery(localVarQueryParams, "schemaName", r.schemaName, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "schemaName", r.schemaName, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3087,7 +3087,7 @@ func (a *SourcesAPIService) GetSourceSchemasExecute(r ApiGetSourceSchemasRequest localVarFormParams := url.Values{} if r.includeTypes != nil { - parameterAddToQuery(localVarQueryParams, "include-types", r.includeTypes, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-types", r.includeTypes, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3307,7 +3307,7 @@ func (a *SourcesAPIService) ImportAccountsExecute(r ApiImportAccountsRequest) (* formFiles = append(formFiles, formFile{fileBytes: fileLocalVarFileBytes, fileName: fileLocalVarFileName, formFileName: fileLocalVarFormFileName}) } if r.disableOptimization != nil { - parameterAddToQuery(localVarFormParams, "disableOptimization", r.disableOptimization, "") + parameterAddToHeaderOrQuery(localVarFormParams, "disableOptimization", r.disableOptimization, "", "") } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { @@ -4002,7 +4002,7 @@ func (a *SourcesAPIService) ImportSourceEntitlementsSchemaExecute(r ApiImportSou localVarFormParams := url.Values{} if r.schemaName != nil { - parameterAddToQuery(localVarQueryParams, "schemaName", r.schemaName, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "schemaName", r.schemaName, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{"multipart/form-data"} @@ -4564,31 +4564,31 @@ func (a *SourcesAPIService) ListSourcesExecute(r ApiListSourcesRequest) ([]Sourc localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.forSubadmin != nil { - parameterAddToQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_sp_config.go b/api_beta/api_sp_config.go index add8e1660..7f28cd8f2 100644 --- a/api_beta/api_sp_config.go +++ b/api_beta/api_sp_config.go @@ -955,7 +955,7 @@ func (a *SPConfigAPIService) ImportSpConfigExecute(r ApiImportSpConfigRequest) ( } if r.preview != nil { - parameterAddToQuery(localVarQueryParams, "preview", r.preview, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "preview", r.preview, "", "") } else { var defaultValue bool = false r.preview = &defaultValue diff --git a/api_beta/api_suggested_entitlement_description.go b/api_beta/api_suggested_entitlement_description.go index 853535547..e94c7ac10 100644 --- a/api_beta/api_suggested_entitlement_description.go +++ b/api_beta/api_suggested_entitlement_description.go @@ -445,22 +445,22 @@ func (a *SuggestedEntitlementDescriptionAPIService) ListSedsExecute(r ApiListSed localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } if r.countOnly != nil { - parameterAddToQuery(localVarQueryParams, "count-only", r.countOnly, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count-only", r.countOnly, "", "") } if r.requestedByAnyone != nil { - parameterAddToQuery(localVarQueryParams, "requested-by-anyone", r.requestedByAnyone, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-by-anyone", r.requestedByAnyone, "", "") } if r.showPendingStatusOnly != nil { - parameterAddToQuery(localVarQueryParams, "show-pending-status-only", r.showPendingStatusOnly, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "show-pending-status-only", r.showPendingStatusOnly, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_tagged_objects.go b/api_beta/api_tagged_objects.go index 85867f84e..e1942b599 100644 --- a/api_beta/api_tagged_objects.go +++ b/api_beta/api_tagged_objects.go @@ -566,25 +566,25 @@ func (a *TaggedObjectsAPIService) ListTaggedObjectsExecute(r ApiListTaggedObject localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -774,25 +774,25 @@ func (a *TaggedObjectsAPIService) ListTaggedObjectsByTypeExecute(r ApiListTagged localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_task_management.go b/api_beta/api_task_management.go index 81319fbc8..4b95ec2af 100644 --- a/api_beta/api_task_management.go +++ b/api_beta/api_task_management.go @@ -88,19 +88,19 @@ func (a *TaskManagementAPIService) GetPendingTaskHeadersExecute(r ApiGetPendingT localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -238,19 +238,19 @@ func (a *TaskManagementAPIService) GetPendingTasksExecute(r ApiGetPendingTasksRe localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -558,28 +558,28 @@ func (a *TaskManagementAPIService) GetTaskStatusListExecute(r ApiGetTaskStatusLi localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_transforms.go b/api_beta/api_transforms.go index 856313418..99a81f1e7 100644 --- a/api_beta/api_transforms.go +++ b/api_beta/api_transforms.go @@ -608,28 +608,28 @@ func (a *TransformsAPIService) ListTransformsExecute(r ApiListTransformsRequest) localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.name != nil { - parameterAddToQuery(localVarQueryParams, "name", r.name, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_triggers.go b/api_beta/api_triggers.go index f52412b03..6f2f7f1b8 100644 --- a/api_beta/api_triggers.go +++ b/api_beta/api_triggers.go @@ -584,28 +584,28 @@ func (a *TriggersAPIService) ListSubscriptionsExecute(r ApiListSubscriptionsRequ localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -798,28 +798,28 @@ func (a *TriggersAPIService) ListTriggerInvocationStatusExecute(r ApiListTrigger localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1010,28 +1010,28 @@ func (a *TriggersAPIService) ListTriggersExecute(r ApiListTriggersRequest) ([]Tr localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_work_items.go b/api_beta/api_work_items.go index c22e97c47..9dfabf963 100644 --- a/api_beta/api_work_items.go +++ b/api_beta/api_work_items.go @@ -663,22 +663,22 @@ func (a *WorkItemsAPIService) GetCompletedWorkItemsExecute(r ApiGetCompletedWork localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "ownerId", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ownerId", r.ownerId, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -822,7 +822,7 @@ func (a *WorkItemsAPIService) GetCountCompletedWorkItemsExecute(r ApiGetCountCom localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "ownerId", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ownerId", r.ownerId, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -963,7 +963,7 @@ func (a *WorkItemsAPIService) GetCountWorkItemsExecute(r ApiGetCountWorkItemsReq localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "ownerId", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ownerId", r.ownerId, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1108,7 +1108,7 @@ func (a *WorkItemsAPIService) GetWorkItemExecute(r ApiGetWorkItemRequest) ([]Wor localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "ownerId", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ownerId", r.ownerId, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1249,7 +1249,7 @@ func (a *WorkItemsAPIService) GetWorkItemsSummaryExecute(r ApiGetWorkItemsSummar localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "ownerId", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ownerId", r.ownerId, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1411,25 +1411,25 @@ func (a *WorkItemsAPIService) ListWorkItemsExecute(r ApiListWorkItemsRequest) ([ localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "ownerId", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ownerId", r.ownerId, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_work_reassignment.go b/api_beta/api_work_reassignment.go index 6b52aeb07..4d1a38ca3 100644 --- a/api_beta/api_work_reassignment.go +++ b/api_beta/api_work_reassignment.go @@ -394,7 +394,7 @@ func (a *WorkReassignmentAPIService) GetEvaluateReassignmentConfigurationExecute localVarFormParams := url.Values{} if r.exclusionFilters != nil { - parameterAddToQuery(localVarQueryParams, "exclusionFilters", r.exclusionFilters, "csv") + parameterAddToHeaderOrQuery(localVarQueryParams, "exclusionFilters", r.exclusionFilters, "", "csv") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/api_workflows.go b/api_beta/api_workflows.go index baac47edf..254956eb1 100644 --- a/api_beta/api_workflows.go +++ b/api_beta/api_workflows.go @@ -1071,25 +1071,25 @@ func (a *WorkflowsAPIService) GetWorkflowExecutionsExecute(r ApiGetWorkflowExecu localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1270,13 +1270,13 @@ func (a *WorkflowsAPIService) ListCompleteWorkflowLibraryExecute(r ApiListComple localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue @@ -1456,19 +1456,19 @@ func (a *WorkflowsAPIService) ListWorkflowLibraryActionsExecute(r ApiListWorkflo localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1798,19 +1798,19 @@ func (a *WorkflowsAPIService) ListWorkflowLibraryTriggersExecute(r ApiListWorkfl localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_beta/client.go b/api_beta/client.go index 38f4b0478..d6cf4d16d 100644 --- a/api_beta/client.go +++ b/api_beta/client.go @@ -38,8 +38,8 @@ retryablehttp "github.com/hashicorp/go-retryablehttp" ) var ( - jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) - xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) ) @@ -353,8 +353,9 @@ func parameterValueToString( obj interface{}, key string ) string { return fmt.Sprintf("%v", dataMap[key]) } -// parameterAddToQuery adds the provided object to the url query supporting deep object syntax -func parameterAddToQuery(queryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { var v = reflect.ValueOf(obj) var value = "" if v == reflect.ValueOf(nil) { @@ -370,11 +371,11 @@ func parameterAddToQuery(queryParams interface{}, keyPrefix string, obj interfac if err != nil { return } - parameterAddToQuery(queryParams, keyPrefix, dataMap, collectionType) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) return } if t, ok := obj.(time.Time); ok { - parameterAddToQuery(queryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) return } value = v.Type().String() + " value" @@ -386,7 +387,11 @@ func parameterAddToQuery(queryParams interface{}, keyPrefix string, obj interfac var lenIndValue = indValue.Len() for i:=0;i 1 { // more than 1 match // reset to nil - dst.ArrayOfMapmapOfStringinterface = nil - dst.MapmapOfStringinterface = nil + dst.ArrayOfMapmapOfStringAny = nil + dst.MapmapOfStringAny = nil return fmt.Errorf("data matches more than one schema in oneOf(WorkflowLibraryActionExampleOutput)") } else if match == 1 { @@ -81,12 +90,12 @@ func (dst *WorkflowLibraryActionExampleOutput) UnmarshalJSON(data []byte) error // Marshal data from the first non-nil pointers in the struct to JSON func (src WorkflowLibraryActionExampleOutput) MarshalJSON() ([]byte, error) { - if src.ArrayOfMapmapOfStringinterface != nil { - return json.Marshal(&src.ArrayOfMapmapOfStringinterface) + if src.ArrayOfMapmapOfStringAny != nil { + return json.Marshal(&src.ArrayOfMapmapOfStringAny) } - if src.MapmapOfStringinterface != nil { - return json.Marshal(&src.MapmapOfStringinterface) + if src.MapmapOfStringAny != nil { + return json.Marshal(&src.MapmapOfStringAny) } return nil, nil // no data in oneOf schemas @@ -97,12 +106,12 @@ func (obj *WorkflowLibraryActionExampleOutput) GetActualInstance() (interface{}) if obj == nil { return nil } - if obj.ArrayOfMapmapOfStringinterface != nil { - return obj.ArrayOfMapmapOfStringinterface + if obj.ArrayOfMapmapOfStringAny != nil { + return obj.ArrayOfMapmapOfStringAny } - if obj.MapmapOfStringinterface != nil { - return obj.MapmapOfStringinterface + if obj.MapmapOfStringAny != nil { + return obj.MapmapOfStringAny } // all schemas are nil diff --git a/api_beta/model_workflow_library_form_fields.go b/api_beta/model_workflow_library_form_fields.go index 3ccdc2d4d..05283920f 100644 --- a/api_beta/model_workflow_library_form_fields.go +++ b/api_beta/model_workflow_library_form_fields.go @@ -55,7 +55,7 @@ func NewWorkflowLibraryFormFieldsWithDefaults() *WorkflowLibraryFormFields { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowLibraryFormFields) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -65,7 +65,7 @@ func (o *WorkflowLibraryFormFields) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryFormFields) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -73,7 +73,7 @@ func (o *WorkflowLibraryFormFields) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkflowLibraryFormFields) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -87,7 +87,7 @@ func (o *WorkflowLibraryFormFields) SetDescription(v string) { // GetHelpText returns the HelpText field value if set, zero value otherwise. func (o *WorkflowLibraryFormFields) GetHelpText() string { - if o == nil || isNil(o.HelpText) { + if o == nil || IsNil(o.HelpText) { var ret string return ret } @@ -97,7 +97,7 @@ func (o *WorkflowLibraryFormFields) GetHelpText() string { // GetHelpTextOk returns a tuple with the HelpText field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryFormFields) GetHelpTextOk() (*string, bool) { - if o == nil || isNil(o.HelpText) { + if o == nil || IsNil(o.HelpText) { return nil, false } return o.HelpText, true @@ -105,7 +105,7 @@ func (o *WorkflowLibraryFormFields) GetHelpTextOk() (*string, bool) { // HasHelpText returns a boolean if a field has been set. func (o *WorkflowLibraryFormFields) HasHelpText() bool { - if o != nil && !isNil(o.HelpText) { + if o != nil && !IsNil(o.HelpText) { return true } @@ -119,7 +119,7 @@ func (o *WorkflowLibraryFormFields) SetHelpText(v string) { // GetLabel returns the Label field value if set, zero value otherwise. func (o *WorkflowLibraryFormFields) GetLabel() string { - if o == nil || isNil(o.Label) { + if o == nil || IsNil(o.Label) { var ret string return ret } @@ -129,7 +129,7 @@ func (o *WorkflowLibraryFormFields) GetLabel() string { // GetLabelOk returns a tuple with the Label field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryFormFields) GetLabelOk() (*string, bool) { - if o == nil || isNil(o.Label) { + if o == nil || IsNil(o.Label) { return nil, false } return o.Label, true @@ -137,7 +137,7 @@ func (o *WorkflowLibraryFormFields) GetLabelOk() (*string, bool) { // HasLabel returns a boolean if a field has been set. func (o *WorkflowLibraryFormFields) HasLabel() bool { - if o != nil && !isNil(o.Label) { + if o != nil && !IsNil(o.Label) { return true } @@ -151,7 +151,7 @@ func (o *WorkflowLibraryFormFields) SetLabel(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowLibraryFormFields) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -161,7 +161,7 @@ func (o *WorkflowLibraryFormFields) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryFormFields) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -169,7 +169,7 @@ func (o *WorkflowLibraryFormFields) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkflowLibraryFormFields) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -183,7 +183,7 @@ func (o *WorkflowLibraryFormFields) SetName(v string) { // GetRequired returns the Required field value if set, zero value otherwise. func (o *WorkflowLibraryFormFields) GetRequired() bool { - if o == nil || isNil(o.Required) { + if o == nil || IsNil(o.Required) { var ret bool return ret } @@ -193,7 +193,7 @@ func (o *WorkflowLibraryFormFields) GetRequired() bool { // GetRequiredOk returns a tuple with the Required field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryFormFields) GetRequiredOk() (*bool, bool) { - if o == nil || isNil(o.Required) { + if o == nil || IsNil(o.Required) { return nil, false } return o.Required, true @@ -201,7 +201,7 @@ func (o *WorkflowLibraryFormFields) GetRequiredOk() (*bool, bool) { // HasRequired returns a boolean if a field has been set. func (o *WorkflowLibraryFormFields) HasRequired() bool { - if o != nil && !isNil(o.Required) { + if o != nil && !IsNil(o.Required) { return true } @@ -215,7 +215,7 @@ func (o *WorkflowLibraryFormFields) SetRequired(v bool) { // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowLibraryFormFields) GetType() string { - if o == nil || isNil(o.Type.Get()) { + if o == nil || IsNil(o.Type.Get()) { var ret string return ret } @@ -265,19 +265,19 @@ func (o WorkflowLibraryFormFields) MarshalJSON() ([]byte, error) { func (o WorkflowLibraryFormFields) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.HelpText) { + if !IsNil(o.HelpText) { toSerialize["helpText"] = o.HelpText } - if !isNil(o.Label) { + if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Required) { + if !IsNil(o.Required) { toSerialize["required"] = o.Required } if o.Type.IsSet() { @@ -291,16 +291,20 @@ func (o WorkflowLibraryFormFields) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowLibraryFormFields) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowLibraryFormFields) UnmarshalJSON(data []byte) (err error) { varWorkflowLibraryFormFields := _WorkflowLibraryFormFields{} - if err = json.Unmarshal(bytes, &varWorkflowLibraryFormFields); err == nil { + err = json.Unmarshal(data, &varWorkflowLibraryFormFields) + + if err != nil { + return err + } + *o = WorkflowLibraryFormFields(varWorkflowLibraryFormFields) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "description") delete(additionalProperties, "helpText") delete(additionalProperties, "label") diff --git a/api_beta/model_workflow_library_operator.go b/api_beta/model_workflow_library_operator.go index f82eeedf8..9323e8e6c 100644 --- a/api_beta/model_workflow_library_operator.go +++ b/api_beta/model_workflow_library_operator.go @@ -59,7 +59,7 @@ func NewWorkflowLibraryOperatorWithDefaults() *WorkflowLibraryOperator { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -69,7 +69,7 @@ func (o *WorkflowLibraryOperator) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -77,7 +77,7 @@ func (o *WorkflowLibraryOperator) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -91,7 +91,7 @@ func (o *WorkflowLibraryOperator) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -101,7 +101,7 @@ func (o *WorkflowLibraryOperator) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -109,7 +109,7 @@ func (o *WorkflowLibraryOperator) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -123,7 +123,7 @@ func (o *WorkflowLibraryOperator) SetName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -133,7 +133,7 @@ func (o *WorkflowLibraryOperator) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -141,7 +141,7 @@ func (o *WorkflowLibraryOperator) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -155,7 +155,7 @@ func (o *WorkflowLibraryOperator) SetType(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -165,7 +165,7 @@ func (o *WorkflowLibraryOperator) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -173,7 +173,7 @@ func (o *WorkflowLibraryOperator) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -187,7 +187,7 @@ func (o *WorkflowLibraryOperator) SetDescription(v string) { // GetIsDynamicSchema returns the IsDynamicSchema field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetIsDynamicSchema() bool { - if o == nil || isNil(o.IsDynamicSchema) { + if o == nil || IsNil(o.IsDynamicSchema) { var ret bool return ret } @@ -197,7 +197,7 @@ func (o *WorkflowLibraryOperator) GetIsDynamicSchema() bool { // GetIsDynamicSchemaOk returns a tuple with the IsDynamicSchema field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetIsDynamicSchemaOk() (*bool, bool) { - if o == nil || isNil(o.IsDynamicSchema) { + if o == nil || IsNil(o.IsDynamicSchema) { return nil, false } return o.IsDynamicSchema, true @@ -205,7 +205,7 @@ func (o *WorkflowLibraryOperator) GetIsDynamicSchemaOk() (*bool, bool) { // HasIsDynamicSchema returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasIsDynamicSchema() bool { - if o != nil && !isNil(o.IsDynamicSchema) { + if o != nil && !IsNil(o.IsDynamicSchema) { return true } @@ -219,7 +219,7 @@ func (o *WorkflowLibraryOperator) SetIsDynamicSchema(v bool) { // GetDeprecated returns the Deprecated field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetDeprecated() bool { - if o == nil || isNil(o.Deprecated) { + if o == nil || IsNil(o.Deprecated) { var ret bool return ret } @@ -229,7 +229,7 @@ func (o *WorkflowLibraryOperator) GetDeprecated() bool { // GetDeprecatedOk returns a tuple with the Deprecated field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetDeprecatedOk() (*bool, bool) { - if o == nil || isNil(o.Deprecated) { + if o == nil || IsNil(o.Deprecated) { return nil, false } return o.Deprecated, true @@ -237,7 +237,7 @@ func (o *WorkflowLibraryOperator) GetDeprecatedOk() (*bool, bool) { // HasDeprecated returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasDeprecated() bool { - if o != nil && !isNil(o.Deprecated) { + if o != nil && !IsNil(o.Deprecated) { return true } @@ -251,7 +251,7 @@ func (o *WorkflowLibraryOperator) SetDeprecated(v bool) { // GetDeprecatedBy returns the DeprecatedBy field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetDeprecatedBy() time.Time { - if o == nil || isNil(o.DeprecatedBy) { + if o == nil || IsNil(o.DeprecatedBy) { var ret time.Time return ret } @@ -261,7 +261,7 @@ func (o *WorkflowLibraryOperator) GetDeprecatedBy() time.Time { // GetDeprecatedByOk returns a tuple with the DeprecatedBy field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetDeprecatedByOk() (*time.Time, bool) { - if o == nil || isNil(o.DeprecatedBy) { + if o == nil || IsNil(o.DeprecatedBy) { return nil, false } return o.DeprecatedBy, true @@ -269,7 +269,7 @@ func (o *WorkflowLibraryOperator) GetDeprecatedByOk() (*time.Time, bool) { // HasDeprecatedBy returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasDeprecatedBy() bool { - if o != nil && !isNil(o.DeprecatedBy) { + if o != nil && !IsNil(o.DeprecatedBy) { return true } @@ -283,7 +283,7 @@ func (o *WorkflowLibraryOperator) SetDeprecatedBy(v time.Time) { // GetIsSimulationEnabled returns the IsSimulationEnabled field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetIsSimulationEnabled() bool { - if o == nil || isNil(o.IsSimulationEnabled) { + if o == nil || IsNil(o.IsSimulationEnabled) { var ret bool return ret } @@ -293,7 +293,7 @@ func (o *WorkflowLibraryOperator) GetIsSimulationEnabled() bool { // GetIsSimulationEnabledOk returns a tuple with the IsSimulationEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetIsSimulationEnabledOk() (*bool, bool) { - if o == nil || isNil(o.IsSimulationEnabled) { + if o == nil || IsNil(o.IsSimulationEnabled) { return nil, false } return o.IsSimulationEnabled, true @@ -301,7 +301,7 @@ func (o *WorkflowLibraryOperator) GetIsSimulationEnabledOk() (*bool, bool) { // HasIsSimulationEnabled returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasIsSimulationEnabled() bool { - if o != nil && !isNil(o.IsSimulationEnabled) { + if o != nil && !IsNil(o.IsSimulationEnabled) { return true } @@ -326,7 +326,7 @@ func (o *WorkflowLibraryOperator) GetFormFields() []WorkflowLibraryFormFields { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WorkflowLibraryOperator) GetFormFieldsOk() ([]WorkflowLibraryFormFields, bool) { - if o == nil || isNil(o.FormFields) { + if o == nil || IsNil(o.FormFields) { return nil, false } return o.FormFields, true @@ -334,7 +334,7 @@ func (o *WorkflowLibraryOperator) GetFormFieldsOk() ([]WorkflowLibraryFormFields // HasFormFields returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasFormFields() bool { - if o != nil && isNil(o.FormFields) { + if o != nil && !IsNil(o.FormFields) { return true } @@ -356,28 +356,28 @@ func (o WorkflowLibraryOperator) MarshalJSON() ([]byte, error) { func (o WorkflowLibraryOperator) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.IsDynamicSchema) { + if !IsNil(o.IsDynamicSchema) { toSerialize["isDynamicSchema"] = o.IsDynamicSchema } - if !isNil(o.Deprecated) { + if !IsNil(o.Deprecated) { toSerialize["deprecated"] = o.Deprecated } - if !isNil(o.DeprecatedBy) { + if !IsNil(o.DeprecatedBy) { toSerialize["deprecatedBy"] = o.DeprecatedBy } - if !isNil(o.IsSimulationEnabled) { + if !IsNil(o.IsSimulationEnabled) { toSerialize["isSimulationEnabled"] = o.IsSimulationEnabled } if o.FormFields != nil { @@ -391,16 +391,20 @@ func (o WorkflowLibraryOperator) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowLibraryOperator) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowLibraryOperator) UnmarshalJSON(data []byte) (err error) { varWorkflowLibraryOperator := _WorkflowLibraryOperator{} - if err = json.Unmarshal(bytes, &varWorkflowLibraryOperator); err == nil { + err = json.Unmarshal(data, &varWorkflowLibraryOperator) + + if err != nil { + return err + } + *o = WorkflowLibraryOperator(varWorkflowLibraryOperator) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "type") diff --git a/api_beta/model_workflow_library_trigger.go b/api_beta/model_workflow_library_trigger.go index ec6214072..78eff79da 100644 --- a/api_beta/model_workflow_library_trigger.go +++ b/api_beta/model_workflow_library_trigger.go @@ -63,7 +63,7 @@ func NewWorkflowLibraryTriggerWithDefaults() *WorkflowLibraryTrigger { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -73,7 +73,7 @@ func (o *WorkflowLibraryTrigger) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -81,7 +81,7 @@ func (o *WorkflowLibraryTrigger) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -95,7 +95,7 @@ func (o *WorkflowLibraryTrigger) SetId(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -105,7 +105,7 @@ func (o *WorkflowLibraryTrigger) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -113,7 +113,7 @@ func (o *WorkflowLibraryTrigger) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -127,7 +127,7 @@ func (o *WorkflowLibraryTrigger) SetType(v string) { // GetDeprecated returns the Deprecated field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetDeprecated() bool { - if o == nil || isNil(o.Deprecated) { + if o == nil || IsNil(o.Deprecated) { var ret bool return ret } @@ -137,7 +137,7 @@ func (o *WorkflowLibraryTrigger) GetDeprecated() bool { // GetDeprecatedOk returns a tuple with the Deprecated field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetDeprecatedOk() (*bool, bool) { - if o == nil || isNil(o.Deprecated) { + if o == nil || IsNil(o.Deprecated) { return nil, false } return o.Deprecated, true @@ -145,7 +145,7 @@ func (o *WorkflowLibraryTrigger) GetDeprecatedOk() (*bool, bool) { // HasDeprecated returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasDeprecated() bool { - if o != nil && !isNil(o.Deprecated) { + if o != nil && !IsNil(o.Deprecated) { return true } @@ -159,7 +159,7 @@ func (o *WorkflowLibraryTrigger) SetDeprecated(v bool) { // GetDeprecatedBy returns the DeprecatedBy field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetDeprecatedBy() time.Time { - if o == nil || isNil(o.DeprecatedBy) { + if o == nil || IsNil(o.DeprecatedBy) { var ret time.Time return ret } @@ -169,7 +169,7 @@ func (o *WorkflowLibraryTrigger) GetDeprecatedBy() time.Time { // GetDeprecatedByOk returns a tuple with the DeprecatedBy field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetDeprecatedByOk() (*time.Time, bool) { - if o == nil || isNil(o.DeprecatedBy) { + if o == nil || IsNil(o.DeprecatedBy) { return nil, false } return o.DeprecatedBy, true @@ -177,7 +177,7 @@ func (o *WorkflowLibraryTrigger) GetDeprecatedByOk() (*time.Time, bool) { // HasDeprecatedBy returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasDeprecatedBy() bool { - if o != nil && !isNil(o.DeprecatedBy) { + if o != nil && !IsNil(o.DeprecatedBy) { return true } @@ -191,7 +191,7 @@ func (o *WorkflowLibraryTrigger) SetDeprecatedBy(v time.Time) { // GetIsSimulationEnabled returns the IsSimulationEnabled field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetIsSimulationEnabled() bool { - if o == nil || isNil(o.IsSimulationEnabled) { + if o == nil || IsNil(o.IsSimulationEnabled) { var ret bool return ret } @@ -201,7 +201,7 @@ func (o *WorkflowLibraryTrigger) GetIsSimulationEnabled() bool { // GetIsSimulationEnabledOk returns a tuple with the IsSimulationEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetIsSimulationEnabledOk() (*bool, bool) { - if o == nil || isNil(o.IsSimulationEnabled) { + if o == nil || IsNil(o.IsSimulationEnabled) { return nil, false } return o.IsSimulationEnabled, true @@ -209,7 +209,7 @@ func (o *WorkflowLibraryTrigger) GetIsSimulationEnabledOk() (*bool, bool) { // HasIsSimulationEnabled returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasIsSimulationEnabled() bool { - if o != nil && !isNil(o.IsSimulationEnabled) { + if o != nil && !IsNil(o.IsSimulationEnabled) { return true } @@ -223,7 +223,7 @@ func (o *WorkflowLibraryTrigger) SetIsSimulationEnabled(v bool) { // GetOutputSchema returns the OutputSchema field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetOutputSchema() map[string]interface{} { - if o == nil || isNil(o.OutputSchema) { + if o == nil || IsNil(o.OutputSchema) { var ret map[string]interface{} return ret } @@ -233,7 +233,7 @@ func (o *WorkflowLibraryTrigger) GetOutputSchema() map[string]interface{} { // GetOutputSchemaOk returns a tuple with the OutputSchema field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetOutputSchemaOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.OutputSchema) { + if o == nil || IsNil(o.OutputSchema) { return map[string]interface{}{}, false } return o.OutputSchema, true @@ -241,7 +241,7 @@ func (o *WorkflowLibraryTrigger) GetOutputSchemaOk() (map[string]interface{}, bo // HasOutputSchema returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasOutputSchema() bool { - if o != nil && !isNil(o.OutputSchema) { + if o != nil && !IsNil(o.OutputSchema) { return true } @@ -255,7 +255,7 @@ func (o *WorkflowLibraryTrigger) SetOutputSchema(v map[string]interface{}) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -265,7 +265,7 @@ func (o *WorkflowLibraryTrigger) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -273,7 +273,7 @@ func (o *WorkflowLibraryTrigger) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -287,7 +287,7 @@ func (o *WorkflowLibraryTrigger) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -297,7 +297,7 @@ func (o *WorkflowLibraryTrigger) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -305,7 +305,7 @@ func (o *WorkflowLibraryTrigger) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -319,7 +319,7 @@ func (o *WorkflowLibraryTrigger) SetDescription(v string) { // GetIsDynamicSchema returns the IsDynamicSchema field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetIsDynamicSchema() bool { - if o == nil || isNil(o.IsDynamicSchema) { + if o == nil || IsNil(o.IsDynamicSchema) { var ret bool return ret } @@ -329,7 +329,7 @@ func (o *WorkflowLibraryTrigger) GetIsDynamicSchema() bool { // GetIsDynamicSchemaOk returns a tuple with the IsDynamicSchema field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetIsDynamicSchemaOk() (*bool, bool) { - if o == nil || isNil(o.IsDynamicSchema) { + if o == nil || IsNil(o.IsDynamicSchema) { return nil, false } return o.IsDynamicSchema, true @@ -337,7 +337,7 @@ func (o *WorkflowLibraryTrigger) GetIsDynamicSchemaOk() (*bool, bool) { // HasIsDynamicSchema returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasIsDynamicSchema() bool { - if o != nil && !isNil(o.IsDynamicSchema) { + if o != nil && !IsNil(o.IsDynamicSchema) { return true } @@ -362,7 +362,7 @@ func (o *WorkflowLibraryTrigger) GetInputExample() map[string]interface{} { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WorkflowLibraryTrigger) GetInputExampleOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.InputExample) { + if o == nil || IsNil(o.InputExample) { return map[string]interface{}{}, false } return o.InputExample, true @@ -370,7 +370,7 @@ func (o *WorkflowLibraryTrigger) GetInputExampleOk() (map[string]interface{}, bo // HasInputExample returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasInputExample() bool { - if o != nil && isNil(o.InputExample) { + if o != nil && !IsNil(o.InputExample) { return true } @@ -395,7 +395,7 @@ func (o *WorkflowLibraryTrigger) GetFormFields() []WorkflowLibraryFormFields { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WorkflowLibraryTrigger) GetFormFieldsOk() ([]WorkflowLibraryFormFields, bool) { - if o == nil || isNil(o.FormFields) { + if o == nil || IsNil(o.FormFields) { return nil, false } return o.FormFields, true @@ -403,7 +403,7 @@ func (o *WorkflowLibraryTrigger) GetFormFieldsOk() ([]WorkflowLibraryFormFields, // HasFormFields returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasFormFields() bool { - if o != nil && isNil(o.FormFields) { + if o != nil && !IsNil(o.FormFields) { return true } @@ -425,31 +425,31 @@ func (o WorkflowLibraryTrigger) MarshalJSON() ([]byte, error) { func (o WorkflowLibraryTrigger) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Deprecated) { + if !IsNil(o.Deprecated) { toSerialize["deprecated"] = o.Deprecated } - if !isNil(o.DeprecatedBy) { + if !IsNil(o.DeprecatedBy) { toSerialize["deprecatedBy"] = o.DeprecatedBy } - if !isNil(o.IsSimulationEnabled) { + if !IsNil(o.IsSimulationEnabled) { toSerialize["isSimulationEnabled"] = o.IsSimulationEnabled } - if !isNil(o.OutputSchema) { + if !IsNil(o.OutputSchema) { toSerialize["outputSchema"] = o.OutputSchema } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.IsDynamicSchema) { + if !IsNil(o.IsDynamicSchema) { toSerialize["isDynamicSchema"] = o.IsDynamicSchema } if o.InputExample != nil { @@ -466,16 +466,20 @@ func (o WorkflowLibraryTrigger) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowLibraryTrigger) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowLibraryTrigger) UnmarshalJSON(data []byte) (err error) { varWorkflowLibraryTrigger := _WorkflowLibraryTrigger{} - if err = json.Unmarshal(bytes, &varWorkflowLibraryTrigger); err == nil { + err = json.Unmarshal(data, &varWorkflowLibraryTrigger) + + if err != nil { + return err + } + *o = WorkflowLibraryTrigger(varWorkflowLibraryTrigger) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "type") delete(additionalProperties, "deprecated") diff --git a/api_beta/model_workflow_modified_by.go b/api_beta/model_workflow_modified_by.go index b27b890f4..4a879c5d6 100644 --- a/api_beta/model_workflow_modified_by.go +++ b/api_beta/model_workflow_modified_by.go @@ -48,7 +48,7 @@ func NewWorkflowModifiedByWithDefaults() *WorkflowModifiedBy { // GetType returns the Type field value if set, zero value otherwise. func (o *WorkflowModifiedBy) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -58,7 +58,7 @@ func (o *WorkflowModifiedBy) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowModifiedBy) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -66,7 +66,7 @@ func (o *WorkflowModifiedBy) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *WorkflowModifiedBy) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -80,7 +80,7 @@ func (o *WorkflowModifiedBy) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkflowModifiedBy) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -90,7 +90,7 @@ func (o *WorkflowModifiedBy) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowModifiedBy) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -98,7 +98,7 @@ func (o *WorkflowModifiedBy) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkflowModifiedBy) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -112,7 +112,7 @@ func (o *WorkflowModifiedBy) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowModifiedBy) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -122,7 +122,7 @@ func (o *WorkflowModifiedBy) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowModifiedBy) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -130,7 +130,7 @@ func (o *WorkflowModifiedBy) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkflowModifiedBy) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -152,13 +152,13 @@ func (o WorkflowModifiedBy) MarshalJSON() ([]byte, error) { func (o WorkflowModifiedBy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -169,16 +169,20 @@ func (o WorkflowModifiedBy) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowModifiedBy) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowModifiedBy) UnmarshalJSON(data []byte) (err error) { varWorkflowModifiedBy := _WorkflowModifiedBy{} - if err = json.Unmarshal(bytes, &varWorkflowModifiedBy); err == nil { + err = json.Unmarshal(data, &varWorkflowModifiedBy) + + if err != nil { + return err + } + *o = WorkflowModifiedBy(varWorkflowModifiedBy) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_beta/model_workflow_o_auth_client.go b/api_beta/model_workflow_o_auth_client.go index 93ccb3795..5c5443c2d 100644 --- a/api_beta/model_workflow_o_auth_client.go +++ b/api_beta/model_workflow_o_auth_client.go @@ -49,7 +49,7 @@ func NewWorkflowOAuthClientWithDefaults() *WorkflowOAuthClient { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkflowOAuthClient) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *WorkflowOAuthClient) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowOAuthClient) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -67,7 +67,7 @@ func (o *WorkflowOAuthClient) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkflowOAuthClient) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -81,7 +81,7 @@ func (o *WorkflowOAuthClient) SetId(v string) { // GetSecret returns the Secret field value if set, zero value otherwise. func (o *WorkflowOAuthClient) GetSecret() string { - if o == nil || isNil(o.Secret) { + if o == nil || IsNil(o.Secret) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *WorkflowOAuthClient) GetSecret() string { // GetSecretOk returns a tuple with the Secret field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowOAuthClient) GetSecretOk() (*string, bool) { - if o == nil || isNil(o.Secret) { + if o == nil || IsNil(o.Secret) { return nil, false } return o.Secret, true @@ -99,7 +99,7 @@ func (o *WorkflowOAuthClient) GetSecretOk() (*string, bool) { // HasSecret returns a boolean if a field has been set. func (o *WorkflowOAuthClient) HasSecret() bool { - if o != nil && !isNil(o.Secret) { + if o != nil && !IsNil(o.Secret) { return true } @@ -113,7 +113,7 @@ func (o *WorkflowOAuthClient) SetSecret(v string) { // GetUrl returns the Url field value if set, zero value otherwise. func (o *WorkflowOAuthClient) GetUrl() string { - if o == nil || isNil(o.Url) { + if o == nil || IsNil(o.Url) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *WorkflowOAuthClient) GetUrl() string { // GetUrlOk returns a tuple with the Url field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowOAuthClient) GetUrlOk() (*string, bool) { - if o == nil || isNil(o.Url) { + if o == nil || IsNil(o.Url) { return nil, false } return o.Url, true @@ -131,7 +131,7 @@ func (o *WorkflowOAuthClient) GetUrlOk() (*string, bool) { // HasUrl returns a boolean if a field has been set. func (o *WorkflowOAuthClient) HasUrl() bool { - if o != nil && !isNil(o.Url) { + if o != nil && !IsNil(o.Url) { return true } @@ -153,13 +153,13 @@ func (o WorkflowOAuthClient) MarshalJSON() ([]byte, error) { func (o WorkflowOAuthClient) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Secret) { + if !IsNil(o.Secret) { toSerialize["secret"] = o.Secret } - if !isNil(o.Url) { + if !IsNil(o.Url) { toSerialize["url"] = o.Url } @@ -170,16 +170,20 @@ func (o WorkflowOAuthClient) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowOAuthClient) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowOAuthClient) UnmarshalJSON(data []byte) (err error) { varWorkflowOAuthClient := _WorkflowOAuthClient{} - if err = json.Unmarshal(bytes, &varWorkflowOAuthClient); err == nil { + err = json.Unmarshal(data, &varWorkflowOAuthClient) + + if err != nil { + return err + } + *o = WorkflowOAuthClient(varWorkflowOAuthClient) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "secret") delete(additionalProperties, "url") diff --git a/api_beta/model_workflow_trigger.go b/api_beta/model_workflow_trigger.go index 9e4158979..adae48974 100644 --- a/api_beta/model_workflow_trigger.go +++ b/api_beta/model_workflow_trigger.go @@ -75,7 +75,7 @@ func (o *WorkflowTrigger) SetType(v string) { // GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowTrigger) GetDisplayName() string { - if o == nil || isNil(o.DisplayName.Get()) { + if o == nil || IsNil(o.DisplayName.Get()) { var ret string return ret } @@ -162,8 +162,8 @@ func (o WorkflowTrigger) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowTrigger) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *WorkflowTrigger) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -173,7 +173,7 @@ func (o *WorkflowTrigger) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -187,13 +187,17 @@ func (o *WorkflowTrigger) UnmarshalJSON(bytes []byte) (err error) { varWorkflowTrigger := _WorkflowTrigger{} - if err = json.Unmarshal(bytes, &varWorkflowTrigger); err == nil { + err = json.Unmarshal(data, &varWorkflowTrigger) + + if err != nil { + return err + } + *o = WorkflowTrigger(varWorkflowTrigger) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "displayName") delete(additionalProperties, "attributes") diff --git a/api_beta/model_workgroup_bulk_delete_request.go b/api_beta/model_workgroup_bulk_delete_request.go index b528d476e..413bf3df1 100644 --- a/api_beta/model_workgroup_bulk_delete_request.go +++ b/api_beta/model_workgroup_bulk_delete_request.go @@ -45,7 +45,7 @@ func NewWorkgroupBulkDeleteRequestWithDefaults() *WorkgroupBulkDeleteRequest { // GetIds returns the Ids field value if set, zero value otherwise. func (o *WorkgroupBulkDeleteRequest) GetIds() []string { - if o == nil || isNil(o.Ids) { + if o == nil || IsNil(o.Ids) { var ret []string return ret } @@ -55,7 +55,7 @@ func (o *WorkgroupBulkDeleteRequest) GetIds() []string { // GetIdsOk returns a tuple with the Ids field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupBulkDeleteRequest) GetIdsOk() ([]string, bool) { - if o == nil || isNil(o.Ids) { + if o == nil || IsNil(o.Ids) { return nil, false } return o.Ids, true @@ -63,7 +63,7 @@ func (o *WorkgroupBulkDeleteRequest) GetIdsOk() ([]string, bool) { // HasIds returns a boolean if a field has been set. func (o *WorkgroupBulkDeleteRequest) HasIds() bool { - if o != nil && !isNil(o.Ids) { + if o != nil && !IsNil(o.Ids) { return true } @@ -85,7 +85,7 @@ func (o WorkgroupBulkDeleteRequest) MarshalJSON() ([]byte, error) { func (o WorkgroupBulkDeleteRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Ids) { + if !IsNil(o.Ids) { toSerialize["ids"] = o.Ids } @@ -96,16 +96,20 @@ func (o WorkgroupBulkDeleteRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkgroupBulkDeleteRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkgroupBulkDeleteRequest) UnmarshalJSON(data []byte) (err error) { varWorkgroupBulkDeleteRequest := _WorkgroupBulkDeleteRequest{} - if err = json.Unmarshal(bytes, &varWorkgroupBulkDeleteRequest); err == nil { + err = json.Unmarshal(data, &varWorkgroupBulkDeleteRequest) + + if err != nil { + return err + } + *o = WorkgroupBulkDeleteRequest(varWorkgroupBulkDeleteRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "ids") o.AdditionalProperties = additionalProperties } diff --git a/api_beta/model_workgroup_connection_dto.go b/api_beta/model_workgroup_connection_dto.go index 2ff410141..dfe8fbaa6 100644 --- a/api_beta/model_workgroup_connection_dto.go +++ b/api_beta/model_workgroup_connection_dto.go @@ -46,7 +46,7 @@ func NewWorkgroupConnectionDtoWithDefaults() *WorkgroupConnectionDto { // GetObject returns the Object field value if set, zero value otherwise. func (o *WorkgroupConnectionDto) GetObject() ConnectedObject { - if o == nil || isNil(o.Object) { + if o == nil || IsNil(o.Object) { var ret ConnectedObject return ret } @@ -56,7 +56,7 @@ func (o *WorkgroupConnectionDto) GetObject() ConnectedObject { // GetObjectOk returns a tuple with the Object field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupConnectionDto) GetObjectOk() (*ConnectedObject, bool) { - if o == nil || isNil(o.Object) { + if o == nil || IsNil(o.Object) { return nil, false } return o.Object, true @@ -64,7 +64,7 @@ func (o *WorkgroupConnectionDto) GetObjectOk() (*ConnectedObject, bool) { // HasObject returns a boolean if a field has been set. func (o *WorkgroupConnectionDto) HasObject() bool { - if o != nil && !isNil(o.Object) { + if o != nil && !IsNil(o.Object) { return true } @@ -78,7 +78,7 @@ func (o *WorkgroupConnectionDto) SetObject(v ConnectedObject) { // GetConnectionType returns the ConnectionType field value if set, zero value otherwise. func (o *WorkgroupConnectionDto) GetConnectionType() string { - if o == nil || isNil(o.ConnectionType) { + if o == nil || IsNil(o.ConnectionType) { var ret string return ret } @@ -88,7 +88,7 @@ func (o *WorkgroupConnectionDto) GetConnectionType() string { // GetConnectionTypeOk returns a tuple with the ConnectionType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupConnectionDto) GetConnectionTypeOk() (*string, bool) { - if o == nil || isNil(o.ConnectionType) { + if o == nil || IsNil(o.ConnectionType) { return nil, false } return o.ConnectionType, true @@ -96,7 +96,7 @@ func (o *WorkgroupConnectionDto) GetConnectionTypeOk() (*string, bool) { // HasConnectionType returns a boolean if a field has been set. func (o *WorkgroupConnectionDto) HasConnectionType() bool { - if o != nil && !isNil(o.ConnectionType) { + if o != nil && !IsNil(o.ConnectionType) { return true } @@ -118,10 +118,10 @@ func (o WorkgroupConnectionDto) MarshalJSON() ([]byte, error) { func (o WorkgroupConnectionDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Object) { + if !IsNil(o.Object) { toSerialize["object"] = o.Object } - if !isNil(o.ConnectionType) { + if !IsNil(o.ConnectionType) { toSerialize["connectionType"] = o.ConnectionType } @@ -132,16 +132,20 @@ func (o WorkgroupConnectionDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkgroupConnectionDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkgroupConnectionDto) UnmarshalJSON(data []byte) (err error) { varWorkgroupConnectionDto := _WorkgroupConnectionDto{} - if err = json.Unmarshal(bytes, &varWorkgroupConnectionDto); err == nil { + err = json.Unmarshal(data, &varWorkgroupConnectionDto) + + if err != nil { + return err + } + *o = WorkgroupConnectionDto(varWorkgroupConnectionDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "object") delete(additionalProperties, "connectionType") o.AdditionalProperties = additionalProperties diff --git a/api_beta/model_workgroup_delete_item.go b/api_beta/model_workgroup_delete_item.go index 960f9b3a1..45d0f1049 100644 --- a/api_beta/model_workgroup_delete_item.go +++ b/api_beta/model_workgroup_delete_item.go @@ -100,7 +100,7 @@ func (o *WorkgroupDeleteItem) SetStatus(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkgroupDeleteItem) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -110,7 +110,7 @@ func (o *WorkgroupDeleteItem) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDeleteItem) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -118,7 +118,7 @@ func (o *WorkgroupDeleteItem) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkgroupDeleteItem) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -142,7 +142,7 @@ func (o WorkgroupDeleteItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["status"] = o.Status - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -153,8 +153,8 @@ func (o WorkgroupDeleteItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkgroupDeleteItem) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *WorkgroupDeleteItem) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -164,7 +164,7 @@ func (o *WorkgroupDeleteItem) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -178,13 +178,17 @@ func (o *WorkgroupDeleteItem) UnmarshalJSON(bytes []byte) (err error) { varWorkgroupDeleteItem := _WorkgroupDeleteItem{} - if err = json.Unmarshal(bytes, &varWorkgroupDeleteItem); err == nil { + err = json.Unmarshal(data, &varWorkgroupDeleteItem) + + if err != nil { + return err + } + *o = WorkgroupDeleteItem(varWorkgroupDeleteItem) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "status") delete(additionalProperties, "description") diff --git a/api_beta/model_workgroup_dto.go b/api_beta/model_workgroup_dto.go index b0fcdd14b..ebeb2f2fc 100644 --- a/api_beta/model_workgroup_dto.go +++ b/api_beta/model_workgroup_dto.go @@ -57,7 +57,7 @@ func NewWorkgroupDtoWithDefaults() *WorkgroupDto { // GetOwner returns the Owner field value if set, zero value otherwise. func (o *WorkgroupDto) GetOwner() WorkgroupDtoOwner { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { var ret WorkgroupDtoOwner return ret } @@ -67,7 +67,7 @@ func (o *WorkgroupDto) GetOwner() WorkgroupDtoOwner { // GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDto) GetOwnerOk() (*WorkgroupDtoOwner, bool) { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { return nil, false } return o.Owner, true @@ -75,7 +75,7 @@ func (o *WorkgroupDto) GetOwnerOk() (*WorkgroupDtoOwner, bool) { // HasOwner returns a boolean if a field has been set. func (o *WorkgroupDto) HasOwner() bool { - if o != nil && !isNil(o.Owner) { + if o != nil && !IsNil(o.Owner) { return true } @@ -89,7 +89,7 @@ func (o *WorkgroupDto) SetOwner(v WorkgroupDtoOwner) { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkgroupDto) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -99,7 +99,7 @@ func (o *WorkgroupDto) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDto) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -107,7 +107,7 @@ func (o *WorkgroupDto) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkgroupDto) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -121,7 +121,7 @@ func (o *WorkgroupDto) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkgroupDto) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -131,7 +131,7 @@ func (o *WorkgroupDto) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDto) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -139,7 +139,7 @@ func (o *WorkgroupDto) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkgroupDto) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,7 +153,7 @@ func (o *WorkgroupDto) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkgroupDto) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -163,7 +163,7 @@ func (o *WorkgroupDto) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDto) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -171,7 +171,7 @@ func (o *WorkgroupDto) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkgroupDto) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -185,7 +185,7 @@ func (o *WorkgroupDto) SetDescription(v string) { // GetMemberCount returns the MemberCount field value if set, zero value otherwise. func (o *WorkgroupDto) GetMemberCount() int64 { - if o == nil || isNil(o.MemberCount) { + if o == nil || IsNil(o.MemberCount) { var ret int64 return ret } @@ -195,7 +195,7 @@ func (o *WorkgroupDto) GetMemberCount() int64 { // GetMemberCountOk returns a tuple with the MemberCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDto) GetMemberCountOk() (*int64, bool) { - if o == nil || isNil(o.MemberCount) { + if o == nil || IsNil(o.MemberCount) { return nil, false } return o.MemberCount, true @@ -203,7 +203,7 @@ func (o *WorkgroupDto) GetMemberCountOk() (*int64, bool) { // HasMemberCount returns a boolean if a field has been set. func (o *WorkgroupDto) HasMemberCount() bool { - if o != nil && !isNil(o.MemberCount) { + if o != nil && !IsNil(o.MemberCount) { return true } @@ -217,7 +217,7 @@ func (o *WorkgroupDto) SetMemberCount(v int64) { // GetConnectionCount returns the ConnectionCount field value if set, zero value otherwise. func (o *WorkgroupDto) GetConnectionCount() int64 { - if o == nil || isNil(o.ConnectionCount) { + if o == nil || IsNil(o.ConnectionCount) { var ret int64 return ret } @@ -227,7 +227,7 @@ func (o *WorkgroupDto) GetConnectionCount() int64 { // GetConnectionCountOk returns a tuple with the ConnectionCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDto) GetConnectionCountOk() (*int64, bool) { - if o == nil || isNil(o.ConnectionCount) { + if o == nil || IsNil(o.ConnectionCount) { return nil, false } return o.ConnectionCount, true @@ -235,7 +235,7 @@ func (o *WorkgroupDto) GetConnectionCountOk() (*int64, bool) { // HasConnectionCount returns a boolean if a field has been set. func (o *WorkgroupDto) HasConnectionCount() bool { - if o != nil && !isNil(o.ConnectionCount) { + if o != nil && !IsNil(o.ConnectionCount) { return true } @@ -249,7 +249,7 @@ func (o *WorkgroupDto) SetConnectionCount(v int64) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *WorkgroupDto) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -259,7 +259,7 @@ func (o *WorkgroupDto) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDto) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -267,7 +267,7 @@ func (o *WorkgroupDto) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *WorkgroupDto) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -281,7 +281,7 @@ func (o *WorkgroupDto) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *WorkgroupDto) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -291,7 +291,7 @@ func (o *WorkgroupDto) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDto) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -299,7 +299,7 @@ func (o *WorkgroupDto) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *WorkgroupDto) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -321,22 +321,28 @@ func (o WorkgroupDto) MarshalJSON() ([]byte, error) { func (o WorkgroupDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Owner) { + if !IsNil(o.Owner) { toSerialize["owner"] = o.Owner } - // skip: id is readOnly - if !isNil(o.Name) { + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - // skip: memberCount is readOnly - // skip: connectionCount is readOnly - if !isNil(o.Created) { + if !IsNil(o.MemberCount) { + toSerialize["memberCount"] = o.MemberCount + } + if !IsNil(o.ConnectionCount) { + toSerialize["connectionCount"] = o.ConnectionCount + } + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } @@ -347,16 +353,20 @@ func (o WorkgroupDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkgroupDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkgroupDto) UnmarshalJSON(data []byte) (err error) { varWorkgroupDto := _WorkgroupDto{} - if err = json.Unmarshal(bytes, &varWorkgroupDto); err == nil { + err = json.Unmarshal(data, &varWorkgroupDto) + + if err != nil { + return err + } + *o = WorkgroupDto(varWorkgroupDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "owner") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_beta/model_workgroup_dto_owner.go b/api_beta/model_workgroup_dto_owner.go index 05731a262..b827a00b3 100644 --- a/api_beta/model_workgroup_dto_owner.go +++ b/api_beta/model_workgroup_dto_owner.go @@ -53,7 +53,7 @@ func NewWorkgroupDtoOwnerWithDefaults() *WorkgroupDtoOwner { // GetType returns the Type field value if set, zero value otherwise. func (o *WorkgroupDtoOwner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -63,7 +63,7 @@ func (o *WorkgroupDtoOwner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDtoOwner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -71,7 +71,7 @@ func (o *WorkgroupDtoOwner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *WorkgroupDtoOwner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -85,7 +85,7 @@ func (o *WorkgroupDtoOwner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkgroupDtoOwner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -95,7 +95,7 @@ func (o *WorkgroupDtoOwner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDtoOwner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -103,7 +103,7 @@ func (o *WorkgroupDtoOwner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkgroupDtoOwner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -117,7 +117,7 @@ func (o *WorkgroupDtoOwner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkgroupDtoOwner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -127,7 +127,7 @@ func (o *WorkgroupDtoOwner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDtoOwner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -135,7 +135,7 @@ func (o *WorkgroupDtoOwner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkgroupDtoOwner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -149,7 +149,7 @@ func (o *WorkgroupDtoOwner) SetName(v string) { // GetDisplayName returns the DisplayName field value if set, zero value otherwise. func (o *WorkgroupDtoOwner) GetDisplayName() string { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { var ret string return ret } @@ -159,7 +159,7 @@ func (o *WorkgroupDtoOwner) GetDisplayName() string { // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDtoOwner) GetDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { return nil, false } return o.DisplayName, true @@ -167,7 +167,7 @@ func (o *WorkgroupDtoOwner) GetDisplayNameOk() (*string, bool) { // HasDisplayName returns a boolean if a field has been set. func (o *WorkgroupDtoOwner) HasDisplayName() bool { - if o != nil && !isNil(o.DisplayName) { + if o != nil && !IsNil(o.DisplayName) { return true } @@ -181,7 +181,7 @@ func (o *WorkgroupDtoOwner) SetDisplayName(v string) { // GetEmailAddress returns the EmailAddress field value if set, zero value otherwise. func (o *WorkgroupDtoOwner) GetEmailAddress() string { - if o == nil || isNil(o.EmailAddress) { + if o == nil || IsNil(o.EmailAddress) { var ret string return ret } @@ -191,7 +191,7 @@ func (o *WorkgroupDtoOwner) GetEmailAddress() string { // GetEmailAddressOk returns a tuple with the EmailAddress field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDtoOwner) GetEmailAddressOk() (*string, bool) { - if o == nil || isNil(o.EmailAddress) { + if o == nil || IsNil(o.EmailAddress) { return nil, false } return o.EmailAddress, true @@ -199,7 +199,7 @@ func (o *WorkgroupDtoOwner) GetEmailAddressOk() (*string, bool) { // HasEmailAddress returns a boolean if a field has been set. func (o *WorkgroupDtoOwner) HasEmailAddress() bool { - if o != nil && !isNil(o.EmailAddress) { + if o != nil && !IsNil(o.EmailAddress) { return true } @@ -221,17 +221,21 @@ func (o WorkgroupDtoOwner) MarshalJSON() ([]byte, error) { func (o WorkgroupDtoOwner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - // skip: displayName is readOnly - // skip: emailAddress is readOnly + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + if !IsNil(o.EmailAddress) { + toSerialize["emailAddress"] = o.EmailAddress + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -240,16 +244,20 @@ func (o WorkgroupDtoOwner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkgroupDtoOwner) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkgroupDtoOwner) UnmarshalJSON(data []byte) (err error) { varWorkgroupDtoOwner := _WorkgroupDtoOwner{} - if err = json.Unmarshal(bytes, &varWorkgroupDtoOwner); err == nil { + err = json.Unmarshal(data, &varWorkgroupDtoOwner) + + if err != nil { + return err + } + *o = WorkgroupDtoOwner(varWorkgroupDtoOwner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_beta/model_workgroup_member_add_item.go b/api_beta/model_workgroup_member_add_item.go index ae927965f..7706ded24 100644 --- a/api_beta/model_workgroup_member_add_item.go +++ b/api_beta/model_workgroup_member_add_item.go @@ -100,7 +100,7 @@ func (o *WorkgroupMemberAddItem) SetStatus(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkgroupMemberAddItem) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -110,7 +110,7 @@ func (o *WorkgroupMemberAddItem) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupMemberAddItem) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -118,7 +118,7 @@ func (o *WorkgroupMemberAddItem) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkgroupMemberAddItem) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -142,7 +142,7 @@ func (o WorkgroupMemberAddItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["status"] = o.Status - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -153,8 +153,8 @@ func (o WorkgroupMemberAddItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkgroupMemberAddItem) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *WorkgroupMemberAddItem) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -164,7 +164,7 @@ func (o *WorkgroupMemberAddItem) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -178,13 +178,17 @@ func (o *WorkgroupMemberAddItem) UnmarshalJSON(bytes []byte) (err error) { varWorkgroupMemberAddItem := _WorkgroupMemberAddItem{} - if err = json.Unmarshal(bytes, &varWorkgroupMemberAddItem); err == nil { + err = json.Unmarshal(data, &varWorkgroupMemberAddItem) + + if err != nil { + return err + } + *o = WorkgroupMemberAddItem(varWorkgroupMemberAddItem) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "status") delete(additionalProperties, "description") diff --git a/api_beta/model_workgroup_member_delete_item.go b/api_beta/model_workgroup_member_delete_item.go index 7c4c81b0f..848b750c6 100644 --- a/api_beta/model_workgroup_member_delete_item.go +++ b/api_beta/model_workgroup_member_delete_item.go @@ -100,7 +100,7 @@ func (o *WorkgroupMemberDeleteItem) SetStatus(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkgroupMemberDeleteItem) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -110,7 +110,7 @@ func (o *WorkgroupMemberDeleteItem) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupMemberDeleteItem) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -118,7 +118,7 @@ func (o *WorkgroupMemberDeleteItem) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkgroupMemberDeleteItem) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -142,7 +142,7 @@ func (o WorkgroupMemberDeleteItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["status"] = o.Status - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -153,8 +153,8 @@ func (o WorkgroupMemberDeleteItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkgroupMemberDeleteItem) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *WorkgroupMemberDeleteItem) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -164,7 +164,7 @@ func (o *WorkgroupMemberDeleteItem) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -178,13 +178,17 @@ func (o *WorkgroupMemberDeleteItem) UnmarshalJSON(bytes []byte) (err error) { varWorkgroupMemberDeleteItem := _WorkgroupMemberDeleteItem{} - if err = json.Unmarshal(bytes, &varWorkgroupMemberDeleteItem); err == nil { + err = json.Unmarshal(data, &varWorkgroupMemberDeleteItem) + + if err != nil { + return err + } + *o = WorkgroupMemberDeleteItem(varWorkgroupMemberDeleteItem) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "status") delete(additionalProperties, "description") diff --git a/api_beta/test/api_access_model_metadata_test.go b/api_beta/test/api_access_model_metadata_test.go index fb85ceaa7..3bbcc2fcc 100644 --- a/api_beta/test/api_access_model_metadata_test.go +++ b/api_beta/test/api_access_model_metadata_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_AccessModelMetadataAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccessModelMetadataAPIService GetAccessModelMetadataAttribute", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_AccessModelMetadataAPIService(t *testing.T) { var key string - resp, httpRes, err := apiClient.API_BETA.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).Execute() + resp, httpRes, err := apiClient.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -43,7 +43,7 @@ func Test_api_beta_AccessModelMetadataAPIService(t *testing.T) { var key string var value string - resp, httpRes, err := apiClient.API_BETA.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).Execute() + resp, httpRes, err := apiClient.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -55,7 +55,7 @@ func Test_api_beta_AccessModelMetadataAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -69,7 +69,7 @@ func Test_api_beta_AccessModelMetadataAPIService(t *testing.T) { var key string - resp, httpRes, err := apiClient.API_BETA.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).Execute() + resp, httpRes, err := apiClient.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_access_profiles_test.go b/api_beta/test/api_access_profiles_test.go index b8646ad41..6c0a807c7 100644 --- a/api_beta/test/api_access_profiles_test.go +++ b/api_beta/test/api_access_profiles_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_AccessProfilesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccessProfilesAPIService CreateAccessProfile", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccessProfilesAPI.CreateAccessProfile(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.CreateAccessProfile(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_AccessProfilesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() + httpRes, err := apiClient.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -51,7 +51,7 @@ func Test_api_beta_AccessProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_beta_AccessProfilesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_beta_AccessProfilesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -91,7 +91,7 @@ func Test_api_beta_AccessProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -105,7 +105,7 @@ func Test_api_beta_AccessProfilesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -117,7 +117,7 @@ func Test_api_beta_AccessProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_access_request_approvals_test.go b/api_beta/test/api_access_request_approvals_test.go index f4be06304..2fa9eee65 100644 --- a/api_beta/test/api_access_request_approvals_test.go +++ b/api_beta/test/api_access_request_approvals_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_AccessRequestApprovalsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccessRequestApprovalsAPIService ApproveAccessRequest", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_AccessRequestApprovalsAPIService(t *testing.T) { var approvalId string - resp, httpRes, err := apiClient.API_BETA.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -42,7 +42,7 @@ func Test_api_beta_AccessRequestApprovalsAPIService(t *testing.T) { var approvalId string - resp, httpRes, err := apiClient.API_BETA.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -54,7 +54,7 @@ func Test_api_beta_AccessRequestApprovalsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -66,7 +66,7 @@ func Test_api_beta_AccessRequestApprovalsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -78,7 +78,7 @@ func Test_api_beta_AccessRequestApprovalsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -92,7 +92,7 @@ func Test_api_beta_AccessRequestApprovalsAPIService(t *testing.T) { var approvalId string - resp, httpRes, err := apiClient.API_BETA.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_access_request_identity_metrics_test.go b/api_beta/test/api_access_request_identity_metrics_test.go index 2529e3826..1b5a78187 100644 --- a/api_beta/test/api_access_request_identity_metrics_test.go +++ b/api_beta/test/api_access_request_identity_metrics_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_AccessRequestIdentityMetricsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccessRequestIdentityMetricsAPIService GetAccessRequestIdentityMetrics", func(t *testing.T) { @@ -30,7 +30,7 @@ func Test_api_beta_AccessRequestIdentityMetricsAPIService(t *testing.T) { var requestedObjectId string var type_ string - resp, httpRes, err := apiClient.API_BETA.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() + resp, httpRes, err := apiClient.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_access_requests_test.go b/api_beta/test/api_access_requests_test.go index 4adef3381..7421fd3e7 100644 --- a/api_beta/test/api_access_requests_test.go +++ b/api_beta/test/api_access_requests_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_AccessRequestsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccessRequestsAPIService CancelAccessRequest", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccessRequestsAPI.CancelAccessRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestsAPI.CancelAccessRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_beta_AccessRequestsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccessRequestsAPI.CloseAccessRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestsAPI.CloseAccessRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_beta_AccessRequestsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccessRequestsAPI.CreateAccessRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestsAPI.CreateAccessRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -62,7 +62,7 @@ func Test_api_beta_AccessRequestsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -74,7 +74,7 @@ func Test_api_beta_AccessRequestsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -86,7 +86,7 @@ func Test_api_beta_AccessRequestsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_account_activities_test.go b/api_beta/test/api_account_activities_test.go index 04b2965d8..efe1539fb 100644 --- a/api_beta/test/api_account_activities_test.go +++ b/api_beta/test/api_account_activities_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_AccountActivitiesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccountActivitiesAPIService GetAccountActivity", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_AccountActivitiesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_AccountActivitiesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() + resp, httpRes, err := apiClient.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_account_aggregations_test.go b/api_beta/test/api_account_aggregations_test.go index 1b55ff825..0edeb9339 100644 --- a/api_beta/test/api_account_aggregations_test.go +++ b/api_beta/test/api_account_aggregations_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_AccountAggregationsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccountAggregationsAPIService GetAccountAggregationStatus", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_AccountAggregationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_account_usages_test.go b/api_beta/test/api_account_usages_test.go index 04accd57c..7a090a007 100644 --- a/api_beta/test/api_account_usages_test.go +++ b/api_beta/test/api_account_usages_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_AccountUsagesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccountUsagesAPIService GetUsagesByAccountId", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_AccountUsagesAPIService(t *testing.T) { var accountId string - resp, httpRes, err := apiClient.API_BETA.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() + resp, httpRes, err := apiClient.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_accounts_test.go b/api_beta/test/api_accounts_test.go index 06b0352ea..af0a34ab1 100644 --- a/api_beta/test/api_accounts_test.go +++ b/api_beta/test/api_accounts_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_AccountsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccountsAPIService CreateAccount", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccountsAPI.CreateAccount(context.Background()).Execute() + resp, httpRes, err := apiClient.AccountsAPI.CreateAccount(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AccountsAPI.DeleteAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.DeleteAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -54,7 +54,7 @@ func Test_api_beta_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AccountsAPI.DeleteAccountAsync(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.DeleteAccountAsync(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -68,7 +68,7 @@ func Test_api_beta_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AccountsAPI.DisableAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.DisableAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -82,7 +82,7 @@ func Test_api_beta_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AccountsAPI.DisableAccountForIdentity(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.DisableAccountForIdentity(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -94,7 +94,7 @@ func Test_api_beta_AccountsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccountsAPI.DisableAccountsForIdentities(context.Background()).Execute() + resp, httpRes, err := apiClient.AccountsAPI.DisableAccountsForIdentities(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -108,7 +108,7 @@ func Test_api_beta_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AccountsAPI.EnableAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.EnableAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -122,7 +122,7 @@ func Test_api_beta_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AccountsAPI.EnableAccountForIdentity(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.EnableAccountForIdentity(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -134,7 +134,7 @@ func Test_api_beta_AccountsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccountsAPI.EnableAccountsForIdentities(context.Background()).Execute() + resp, httpRes, err := apiClient.AccountsAPI.EnableAccountsForIdentities(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -148,7 +148,7 @@ func Test_api_beta_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AccountsAPI.GetAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.GetAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -162,7 +162,7 @@ func Test_api_beta_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -174,7 +174,7 @@ func Test_api_beta_AccountsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AccountsAPI.ListAccounts(context.Background()).Execute() + resp, httpRes, err := apiClient.AccountsAPI.ListAccounts(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -188,7 +188,7 @@ func Test_api_beta_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AccountsAPI.PutAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.PutAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -202,7 +202,7 @@ func Test_api_beta_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -216,7 +216,7 @@ func Test_api_beta_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AccountsAPI.UnlockAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.UnlockAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -230,7 +230,7 @@ func Test_api_beta_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AccountsAPI.UpdateAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.UpdateAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_application_discovery_test.go b/api_beta/test/api_application_discovery_test.go index ecc971dab..d87db4df7 100644 --- a/api_beta/test/api_application_discovery_test.go +++ b/api_beta/test/api_application_discovery_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_ApplicationDiscoveryAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ApplicationDiscoveryAPIService GetDiscoveredApplications", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() + resp, httpRes, err := apiClient.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_beta_ApplicationDiscoveryAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() + resp, httpRes, err := apiClient.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_beta_ApplicationDiscoveryAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.ApplicationDiscoveryAPI.GetVendorConnectorMappings(context.Background()).Execute() + resp, httpRes, err := apiClient.ApplicationDiscoveryAPI.GetVendorConnectorMappings(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -62,7 +62,7 @@ func Test_api_beta_ApplicationDiscoveryAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_BETA.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() + httpRes, err := apiClient.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) diff --git a/api_beta/test/api_approvals_test.go b/api_beta/test/api_approvals_test.go index 40a038fec..f05c96014 100644 --- a/api_beta/test/api_approvals_test.go +++ b/api_beta/test/api_approvals_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_ApprovalsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ApprovalsAPIService GetApproval", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_ApprovalsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.ApprovalsAPI.GetApproval(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ApprovalsAPI.GetApproval(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_ApprovalsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.ApprovalsAPI.GetApprovals(context.Background()).Execute() + resp, httpRes, err := apiClient.ApprovalsAPI.GetApprovals(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_beta_ApprovalsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.ApprovalsAPI.PatchApproval(context.Background()).Execute() + resp, httpRes, err := apiClient.ApprovalsAPI.PatchApproval(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_auth_profile_test.go b/api_beta/test/api_auth_profile_test.go index 444834dd5..5867b3eb2 100644 --- a/api_beta/test/api_auth_profile_test.go +++ b/api_beta/test/api_auth_profile_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_AuthProfileAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AuthProfileAPIService GetProfileConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AuthProfileAPI.GetProfileConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.AuthProfileAPI.GetProfileConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_beta_AuthProfileAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.AuthProfileAPI.GetProfileConfigList(context.Background()).Execute() + resp, httpRes, err := apiClient.AuthProfileAPI.GetProfileConfigList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_beta_AuthProfileAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.AuthProfileAPI.PatchProfileConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AuthProfileAPI.PatchProfileConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_certification_campaigns_test.go b/api_beta/test/api_certification_campaigns_test.go index 542d956f4..2bef51009 100644 --- a/api_beta/test/api_certification_campaigns_test.go +++ b/api_beta/test/api_certification_campaigns_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CertificationCampaignsAPIService CompleteCampaign", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.CreateCampaign(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.CreateCampaign(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -66,7 +66,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() + httpRes, err := apiClient.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -79,7 +79,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() + httpRes, err := apiClient.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -90,7 +90,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -102,7 +102,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -116,7 +116,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -130,7 +130,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -142,7 +142,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -156,7 +156,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -170,7 +170,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -182,7 +182,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -196,7 +196,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.Move(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.Move(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -210,7 +210,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -222,7 +222,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -236,7 +236,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Execute() + httpRes, err := apiClient.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -249,7 +249,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.StartCampaign(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.StartCampaign(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -263,7 +263,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -278,7 +278,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { var id string var type_ ReportType - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -292,7 +292,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -306,7 +306,7 @@ func Test_api_beta_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_certifications_test.go b/api_beta/test/api_certifications_test.go index 5c34a2328..b4717d7a9 100644 --- a/api_beta/test/api_certifications_test.go +++ b/api_beta/test/api_certifications_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_CertificationsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CertificationsAPIService GetIdentityCertificationItemPermissions", func(t *testing.T) { @@ -29,7 +29,7 @@ func Test_api_beta_CertificationsAPIService(t *testing.T) { var certificationId string var itemId string - resp, httpRes, err := apiClient.API_BETA.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -43,7 +43,7 @@ func Test_api_beta_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.CertificationsAPI.GetIdentityCertificationPendingTasks(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.GetIdentityCertificationPendingTasks(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,7 +58,7 @@ func Test_api_beta_CertificationsAPIService(t *testing.T) { var id string var taskId string - resp, httpRes, err := apiClient.API_BETA.CertificationsAPI.GetIdentityCertificationTaskStatus(context.Background(), id, taskId).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.GetIdentityCertificationTaskStatus(context.Background(), id, taskId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -72,7 +72,7 @@ func Test_api_beta_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -86,7 +86,7 @@ func Test_api_beta_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_connector_rule_management_test.go b/api_beta/test/api_connector_rule_management_test.go index 52fa18410..c3d839160 100644 --- a/api_beta/test/api_connector_rule_management_test.go +++ b/api_beta/test/api_connector_rule_management_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_ConnectorRuleManagementAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ConnectorRuleManagementAPIService CreateConnectorRule", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).Execute() + resp, httpRes, err := apiClient.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_ConnectorRuleManagementAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() + httpRes, err := apiClient.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_beta_ConnectorRuleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_beta_ConnectorRuleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Execute() + resp, httpRes, err := apiClient.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_beta_ConnectorRuleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.ConnectorRuleManagementAPI.UpdateConnectorRule(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ConnectorRuleManagementAPI.UpdateConnectorRule(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -91,7 +91,7 @@ func Test_api_beta_ConnectorRuleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.ConnectorRuleManagementAPI.ValidateConnectorRule(context.Background()).Execute() + resp, httpRes, err := apiClient.ConnectorRuleManagementAPI.ValidateConnectorRule(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_connectors_test.go b/api_beta/test/api_connectors_test.go index b7277244e..f9614c5c2 100644 --- a/api_beta/test/api_connectors_test.go +++ b/api_beta/test/api_connectors_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_ConnectorsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ConnectorsAPIService GetConnectorList", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.ConnectorsAPI.GetConnectorList(context.Background()).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.GetConnectorList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_custom_forms_test.go b/api_beta/test/api_custom_forms_test.go index b69726d16..9160c4862 100644 --- a/api_beta/test/api_custom_forms_test.go +++ b/api_beta/test/api_custom_forms_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_CustomFormsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CustomFormsAPIService CreateFormDefinition", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.CreateFormDefinition(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.CreateFormDefinition(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.CreateFormDefinitionByTemplate(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.CreateFormDefinitionByTemplate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -64,7 +64,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { var formDefinitionID string - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -76,7 +76,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.CreateFormInstance(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.CreateFormInstance(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -90,7 +90,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { var formDefinitionID string - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -102,7 +102,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -117,7 +117,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { var formDefinitionID string var fileID string - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -131,7 +131,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { var formDefinitionID string - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -145,7 +145,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { var formInstanceID string - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -160,7 +160,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { var formInstanceID string var fileID string - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -172,7 +172,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.ImportFormDefinitions(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.ImportFormDefinitions(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -186,7 +186,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { var formDefinitionID string - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -200,7 +200,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { var formInstanceID string - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -212,7 +212,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -227,7 +227,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { var formInstanceID string var formElementID string - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -239,7 +239,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -251,7 +251,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -265,7 +265,7 @@ func Test_api_beta_CustomFormsAPIService(t *testing.T) { var formDefinitionID string - resp, httpRes, err := apiClient.API_BETA.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_custom_password_instructions_test.go b/api_beta/test/api_custom_password_instructions_test.go index 091826d71..d90dd7791 100644 --- a/api_beta/test/api_custom_password_instructions_test.go +++ b/api_beta/test/api_custom_password_instructions_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_CustomPasswordInstructionsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CustomPasswordInstructionsAPIService CreateCustomPasswordInstructions", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_CustomPasswordInstructionsAPIService(t *testing.T) { var pageId string - httpRes, err := apiClient.API_BETA.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).Execute() + httpRes, err := apiClient.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_beta_CustomPasswordInstructionsAPIService(t *testing.T) { var pageId string - resp, httpRes, err := apiClient.API_BETA.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).Execute() + resp, httpRes, err := apiClient.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_entitlements_test.go b/api_beta/test/api_entitlements_test.go index 54f005dc7..14a9e7f34 100644 --- a/api_beta/test/api_entitlements_test.go +++ b/api_beta/test/api_entitlements_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_EntitlementsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test EntitlementsAPIService CreateAccessModelMetadataForEntitlement", func(t *testing.T) { @@ -30,7 +30,7 @@ func Test_api_beta_EntitlementsAPIService(t *testing.T) { var attributeKey string var attributeValue string - resp, httpRes, err := apiClient.API_BETA.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,7 +46,7 @@ func Test_api_beta_EntitlementsAPIService(t *testing.T) { var attributeKey string var attributeValue string - httpRes, err := apiClient.API_BETA.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() + httpRes, err := apiClient.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -59,7 +59,7 @@ func Test_api_beta_EntitlementsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.EntitlementsAPI.GetEntitlement(context.Background(), id).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.GetEntitlement(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -73,7 +73,7 @@ func Test_api_beta_EntitlementsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -87,7 +87,7 @@ func Test_api_beta_EntitlementsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -101,7 +101,7 @@ func Test_api_beta_EntitlementsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -115,7 +115,7 @@ func Test_api_beta_EntitlementsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.EntitlementsAPI.ListEntitlementParents(context.Background(), id).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.ListEntitlementParents(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -127,7 +127,7 @@ func Test_api_beta_EntitlementsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.EntitlementsAPI.ListEntitlements(context.Background()).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.ListEntitlements(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -141,7 +141,7 @@ func Test_api_beta_EntitlementsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.EntitlementsAPI.PatchEntitlement(context.Background(), id).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.PatchEntitlement(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -155,7 +155,7 @@ func Test_api_beta_EntitlementsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -169,7 +169,7 @@ func Test_api_beta_EntitlementsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -181,7 +181,7 @@ func Test_api_beta_EntitlementsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_BETA.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).Execute() + httpRes, err := apiClient.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) diff --git a/api_beta/test/api_governance_groups_test.go b/api_beta/test/api_governance_groups_test.go index 5cf6519b1..2112d2ec8 100644 --- a/api_beta/test/api_governance_groups_test.go +++ b/api_beta/test/api_governance_groups_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_GovernanceGroupsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test GovernanceGroupsAPIService CreateWorkgroup", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_GovernanceGroupsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).Execute() + httpRes, err := apiClient.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_beta_GovernanceGroupsAPIService(t *testing.T) { var workgroupId string - resp, httpRes, err := apiClient.API_BETA.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_beta_GovernanceGroupsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_beta_GovernanceGroupsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -93,7 +93,7 @@ func Test_api_beta_GovernanceGroupsAPIService(t *testing.T) { var workgroupId string - resp, httpRes, err := apiClient.API_BETA.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -107,7 +107,7 @@ func Test_api_beta_GovernanceGroupsAPIService(t *testing.T) { var workgroupId string - resp, httpRes, err := apiClient.API_BETA.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -119,7 +119,7 @@ func Test_api_beta_GovernanceGroupsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.GovernanceGroupsAPI.ListWorkgroups(context.Background()).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.ListWorkgroups(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -133,7 +133,7 @@ func Test_api_beta_GovernanceGroupsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -147,7 +147,7 @@ func Test_api_beta_GovernanceGroupsAPIService(t *testing.T) { var workgroupId string - resp, httpRes, err := apiClient.API_BETA.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_iai_access_request_recommendations_test.go b/api_beta/test/api_iai_access_request_recommendations_test.go index 20abfcd85..87103fb30 100644 --- a/api_beta/test/api_iai_access_request_recommendations_test.go +++ b/api_beta/test/api_iai_access_request_recommendations_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_IAIAccessRequestRecommendationsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IAIAccessRequestRecommendationsAPIService AddAccessRequestRecommendationsIgnoredItem", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_beta_IAIAccessRequestRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_beta_IAIAccessRequestRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -62,7 +62,7 @@ func Test_api_beta_IAIAccessRequestRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -74,7 +74,7 @@ func Test_api_beta_IAIAccessRequestRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -86,7 +86,7 @@ func Test_api_beta_IAIAccessRequestRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -98,7 +98,7 @@ func Test_api_beta_IAIAccessRequestRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -110,7 +110,7 @@ func Test_api_beta_IAIAccessRequestRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_iai_common_access_test.go b/api_beta/test/api_iai_common_access_test.go index d21973e71..b1ddc975a 100644 --- a/api_beta/test/api_iai_common_access_test.go +++ b/api_beta/test/api_iai_common_access_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_IAICommonAccessAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IAICommonAccessAPIService CreateCommonAccess", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAICommonAccessAPI.CreateCommonAccess(context.Background()).Execute() + resp, httpRes, err := apiClient.IAICommonAccessAPI.CreateCommonAccess(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_beta_IAICommonAccessAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAICommonAccessAPI.GetCommonAccess(context.Background()).Execute() + resp, httpRes, err := apiClient.IAICommonAccessAPI.GetCommonAccess(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_beta_IAICommonAccessAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).Execute() + resp, httpRes, err := apiClient.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_iai_message_catalogs_test.go b/api_beta/test/api_iai_message_catalogs_test.go index 6e634c8cb..0272e4bc9 100644 --- a/api_beta/test/api_iai_message_catalogs_test.go +++ b/api_beta/test/api_iai_message_catalogs_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_IAIMessageCatalogsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IAIMessageCatalogsAPIService GetMessageCatalogs", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_IAIMessageCatalogsAPIService(t *testing.T) { var catalogId string - resp, httpRes, err := apiClient.API_BETA.IAIMessageCatalogsAPI.GetMessageCatalogs(context.Background(), catalogId).Execute() + resp, httpRes, err := apiClient.IAIMessageCatalogsAPI.GetMessageCatalogs(context.Background(), catalogId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_iai_outliers_test.go b/api_beta/test/api_iai_outliers_test.go index c452d637b..5f9c6d770 100644 --- a/api_beta/test/api_iai_outliers_test.go +++ b/api_beta/test/api_iai_outliers_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_IAIOutliersAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IAIOutliersAPIService ExportOutliersZip", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIOutliersAPI.ExportOutliersZip(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIOutliersAPI.ExportOutliersZip(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_beta_IAIOutliersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_beta_IAIOutliersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIOutliersAPI.GetIdentityOutliers(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIOutliersAPI.GetIdentityOutliers(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -62,7 +62,7 @@ func Test_api_beta_IAIOutliersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -76,7 +76,7 @@ func Test_api_beta_IAIOutliersAPIService(t *testing.T) { var outlierFeatureId string - resp, httpRes, err := apiClient.API_BETA.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).Execute() + resp, httpRes, err := apiClient.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -90,7 +90,7 @@ func Test_api_beta_IAIOutliersAPIService(t *testing.T) { var outlierId string - resp, httpRes, err := apiClient.API_BETA.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).Execute() + resp, httpRes, err := apiClient.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -102,7 +102,7 @@ func Test_api_beta_IAIOutliersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_BETA.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).Execute() + httpRes, err := apiClient.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -116,7 +116,7 @@ func Test_api_beta_IAIOutliersAPIService(t *testing.T) { var outlierId string var contributingFeatureName string - resp, httpRes, err := apiClient.API_BETA.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).Execute() + resp, httpRes, err := apiClient.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -128,7 +128,7 @@ func Test_api_beta_IAIOutliersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_BETA.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).Execute() + httpRes, err := apiClient.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) diff --git a/api_beta/test/api_iai_peer_group_strategies_test.go b/api_beta/test/api_iai_peer_group_strategies_test.go index 7dcad55a1..c51af23c7 100644 --- a/api_beta/test/api_iai_peer_group_strategies_test.go +++ b/api_beta/test/api_iai_peer_group_strategies_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_IAIPeerGroupStrategiesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IAIPeerGroupStrategiesAPIService GetPeerGroupOutliers", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_IAIPeerGroupStrategiesAPIService(t *testing.T) { var strategy string - resp, httpRes, err := apiClient.API_BETA.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).Execute() + resp, httpRes, err := apiClient.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_iai_recommendations_test.go b/api_beta/test/api_iai_recommendations_test.go index e4f5f66e7..ce6563fdd 100644 --- a/api_beta/test/api_iai_recommendations_test.go +++ b/api_beta/test/api_iai_recommendations_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_IAIRecommendationsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IAIRecommendationsAPIService GetRecommendations", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIRecommendationsAPI.GetRecommendations(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIRecommendationsAPI.GetRecommendations(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_beta_IAIRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_beta_IAIRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_iai_role_mining_test.go b/api_beta/test/api_iai_role_mining_test.go index 1a23c0bf3..57a830626 100644 --- a/api_beta/test/api_iai_role_mining_test.go +++ b/api_beta/test/api_iai_role_mining_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IAIRoleMiningAPIService CreatePotentialRoleProvisionRequest", func(t *testing.T) { @@ -29,7 +29,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -41,7 +41,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -57,7 +57,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var potentialRoleId string var exportId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -72,7 +72,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -87,7 +87,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -103,7 +103,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var potentialRoleId string var exportId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -115,7 +115,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -130,7 +130,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -145,7 +145,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -160,7 +160,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -175,7 +175,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -190,7 +190,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -205,7 +205,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -220,7 +220,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var potentialRoleId string var sourceId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -234,7 +234,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var sessionId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -248,7 +248,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var potentialRoleId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -262,7 +262,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var sessionId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -276,7 +276,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var sessionId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -288,7 +288,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -300,7 +300,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -315,7 +315,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -329,7 +329,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var potentialRoleId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.PatchRoleMiningPotentialRole(context.Background(), potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.PatchRoleMiningPotentialRole(context.Background(), potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -343,7 +343,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var sessionId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -358,7 +358,7 @@ func Test_api_beta_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_BETA.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_icons_test.go b/api_beta/test/api_icons_test.go index 343e63592..b0bbe0b03 100644 --- a/api_beta/test/api_icons_test.go +++ b/api_beta/test/api_icons_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_IconsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IconsAPIService DeleteIcon", func(t *testing.T) { @@ -29,7 +29,7 @@ func Test_api_beta_IconsAPIService(t *testing.T) { var objectType string var objectId string - httpRes, err := apiClient.API_BETA.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).Execute() + httpRes, err := apiClient.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -43,7 +43,7 @@ func Test_api_beta_IconsAPIService(t *testing.T) { var objectType string var objectId string - resp, httpRes, err := apiClient.API_BETA.IconsAPI.SetIcon(context.Background(), objectType, objectId).Execute() + resp, httpRes, err := apiClient.IconsAPI.SetIcon(context.Background(), objectType, objectId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_identities_test.go b/api_beta/test/api_identities_test.go index 4908eee96..106c7b748 100644 --- a/api_beta/test/api_identities_test.go +++ b/api_beta/test/api_identities_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_IdentitiesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IdentitiesAPIService DeleteIdentity", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_IdentitiesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.IdentitiesAPI.DeleteIdentity(context.Background(), id).Execute() + httpRes, err := apiClient.IdentitiesAPI.DeleteIdentity(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -41,7 +41,7 @@ func Test_api_beta_IdentitiesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.IdentitiesAPI.GetIdentity(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IdentitiesAPI.GetIdentity(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -55,7 +55,7 @@ func Test_api_beta_IdentitiesAPIService(t *testing.T) { var identityId string - resp, httpRes, err := apiClient.API_BETA.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).Execute() + resp, httpRes, err := apiClient.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,7 +70,7 @@ func Test_api_beta_IdentitiesAPIService(t *testing.T) { var identityId string var assignmentId string - resp, httpRes, err := apiClient.API_BETA.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).Execute() + resp, httpRes, err := apiClient.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -84,7 +84,7 @@ func Test_api_beta_IdentitiesAPIService(t *testing.T) { var identityId string - resp, httpRes, err := apiClient.API_BETA.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).Execute() + resp, httpRes, err := apiClient.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -96,7 +96,7 @@ func Test_api_beta_IdentitiesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IdentitiesAPI.ListIdentities(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentitiesAPI.ListIdentities(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -110,7 +110,7 @@ func Test_api_beta_IdentitiesAPIService(t *testing.T) { var identityId string - httpRes, err := apiClient.API_BETA.IdentitiesAPI.ResetIdentity(context.Background(), identityId).Execute() + httpRes, err := apiClient.IdentitiesAPI.ResetIdentity(context.Background(), identityId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -121,7 +121,7 @@ func Test_api_beta_IdentitiesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_BETA.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background()).Execute() + httpRes, err := apiClient.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -132,7 +132,7 @@ func Test_api_beta_IdentitiesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IdentitiesAPI.StartIdentitiesInvite(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentitiesAPI.StartIdentitiesInvite(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -144,7 +144,7 @@ func Test_api_beta_IdentitiesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IdentitiesAPI.StartIdentityProcessing(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentitiesAPI.StartIdentityProcessing(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -158,7 +158,7 @@ func Test_api_beta_IdentitiesAPIService(t *testing.T) { var identityId string - resp, httpRes, err := apiClient.API_BETA.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).Execute() + resp, httpRes, err := apiClient.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_identity_attributes_test.go b/api_beta/test/api_identity_attributes_test.go index 6eed4af86..47a1e885b 100644 --- a/api_beta/test/api_identity_attributes_test.go +++ b/api_beta/test/api_identity_attributes_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_IdentityAttributesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IdentityAttributesAPIService CreateIdentityAttribute", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_IdentityAttributesAPIService(t *testing.T) { var name string - httpRes, err := apiClient.API_BETA.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).Execute() + httpRes, err := apiClient.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -51,7 +51,7 @@ func Test_api_beta_IdentityAttributesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_BETA.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).Execute() + httpRes, err := apiClient.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -64,7 +64,7 @@ func Test_api_beta_IdentityAttributesAPIService(t *testing.T) { var name string - resp, httpRes, err := apiClient.API_BETA.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).Execute() + resp, httpRes, err := apiClient.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -76,7 +76,7 @@ func Test_api_beta_IdentityAttributesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -90,7 +90,7 @@ func Test_api_beta_IdentityAttributesAPIService(t *testing.T) { var name string - resp, httpRes, err := apiClient.API_BETA.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).Execute() + resp, httpRes, err := apiClient.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_identity_history_test.go b/api_beta/test/api_identity_history_test.go index 1f2b496e0..c7aa34542 100644 --- a/api_beta/test/api_identity_history_test.go +++ b/api_beta/test/api_identity_history_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_IdentityHistoryAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IdentityHistoryAPIService CompareIdentitySnapshots", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_IdentityHistoryAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -43,7 +43,7 @@ func Test_api_beta_IdentityHistoryAPIService(t *testing.T) { var id string var accessType string - resp, httpRes, err := apiClient.API_BETA.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -57,7 +57,7 @@ func Test_api_beta_IdentityHistoryAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -71,7 +71,7 @@ func Test_api_beta_IdentityHistoryAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -86,7 +86,7 @@ func Test_api_beta_IdentityHistoryAPIService(t *testing.T) { var id string var date string - resp, httpRes, err := apiClient.API_BETA.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -100,7 +100,7 @@ func Test_api_beta_IdentityHistoryAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -114,7 +114,7 @@ func Test_api_beta_IdentityHistoryAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -126,7 +126,7 @@ func Test_api_beta_IdentityHistoryAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -140,7 +140,7 @@ func Test_api_beta_IdentityHistoryAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -155,7 +155,7 @@ func Test_api_beta_IdentityHistoryAPIService(t *testing.T) { var id string var date string - resp, httpRes, err := apiClient.API_BETA.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -169,7 +169,7 @@ func Test_api_beta_IdentityHistoryAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_identity_profiles_test.go b/api_beta/test/api_identity_profiles_test.go index d2243b782..b0e318099 100644 --- a/api_beta/test/api_identity_profiles_test.go +++ b/api_beta/test/api_identity_profiles_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_IdentityProfilesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IdentityProfilesAPIService CreateIdentityProfile", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_IdentityProfilesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_BETA.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_beta_IdentityProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -64,7 +64,7 @@ func Test_api_beta_IdentityProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -78,7 +78,7 @@ func Test_api_beta_IdentityProfilesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_BETA.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -92,7 +92,7 @@ func Test_api_beta_IdentityProfilesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_BETA.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -104,7 +104,7 @@ func Test_api_beta_IdentityProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -116,7 +116,7 @@ func Test_api_beta_IdentityProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -128,7 +128,7 @@ func Test_api_beta_IdentityProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.IdentityProfilesAPI.ShowGenerateIdentityPreview(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.ShowGenerateIdentityPreview(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -142,7 +142,7 @@ func Test_api_beta_IdentityProfilesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_BETA.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -156,7 +156,7 @@ func Test_api_beta_IdentityProfilesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_BETA.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_lifecycle_states_test.go b/api_beta/test/api_lifecycle_states_test.go index c54ef78dc..b384dba35 100644 --- a/api_beta/test/api_lifecycle_states_test.go +++ b/api_beta/test/api_lifecycle_states_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_LifecycleStatesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test LifecycleStatesAPIService GetLifecycleStates", func(t *testing.T) { @@ -29,7 +29,7 @@ func Test_api_beta_LifecycleStatesAPIService(t *testing.T) { var identityProfileId string var lifecycleStateId string - resp, httpRes, err := apiClient.API_BETA.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).Execute() + resp, httpRes, err := apiClient.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -44,7 +44,7 @@ func Test_api_beta_LifecycleStatesAPIService(t *testing.T) { var identityProfileId string var lifecycleStateId string - resp, httpRes, err := apiClient.API_BETA.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).Execute() + resp, httpRes, err := apiClient.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_managed_clients_test.go b/api_beta/test/api_managed_clients_test.go index 5bb808291..7e96f291c 100644 --- a/api_beta/test/api_managed_clients_test.go +++ b/api_beta/test/api_managed_clients_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_ManagedClientsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ManagedClientsAPIService GetManagedClientStatus", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_ManagedClientsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -42,7 +42,7 @@ func Test_api_beta_ManagedClientsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.ManagedClientsAPI.UpdateManagedClientStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ManagedClientsAPI.UpdateManagedClientStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_managed_clusters_test.go b/api_beta/test/api_managed_clusters_test.go index 2e02d1e19..67bd0dd5f 100644 --- a/api_beta/test/api_managed_clusters_test.go +++ b/api_beta/test/api_managed_clusters_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_ManagedClustersAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ManagedClustersAPIService GetClientLogConfiguration", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_ManagedClustersAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -42,7 +42,7 @@ func Test_api_beta_ManagedClustersAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -54,7 +54,7 @@ func Test_api_beta_ManagedClustersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() + resp, httpRes, err := apiClient.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -68,7 +68,7 @@ func Test_api_beta_ManagedClustersAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_mfa_configuration_test.go b/api_beta/test/api_mfa_configuration_test.go index 6f23de237..6ab1cb46f 100644 --- a/api_beta/test/api_mfa_configuration_test.go +++ b/api_beta/test/api_mfa_configuration_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_MFAConfigurationAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test MFAConfigurationAPIService DeleteMFAConfig", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_MFAConfigurationAPIService(t *testing.T) { var method string - resp, httpRes, err := apiClient.API_BETA.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_MFAConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_beta_MFAConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -64,7 +64,7 @@ func Test_api_beta_MFAConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -76,7 +76,7 @@ func Test_api_beta_MFAConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -88,7 +88,7 @@ func Test_api_beta_MFAConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -100,7 +100,7 @@ func Test_api_beta_MFAConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -114,7 +114,7 @@ func Test_api_beta_MFAConfigurationAPIService(t *testing.T) { var method string - resp, httpRes, err := apiClient.API_BETA.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_mfa_controller_test.go b/api_beta/test/api_mfa_controller_test.go index 71cf21c47..127b282c9 100644 --- a/api_beta/test/api_mfa_controller_test.go +++ b/api_beta/test/api_mfa_controller_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_MFAControllerAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test MFAControllerAPIService CreateSendToken", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.MFAControllerAPI.CreateSendToken(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAControllerAPI.CreateSendToken(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_MFAControllerAPIService(t *testing.T) { var method string - resp, httpRes, err := apiClient.API_BETA.MFAControllerAPI.PingVerificationStatus(context.Background(), method).Execute() + resp, httpRes, err := apiClient.MFAControllerAPI.PingVerificationStatus(context.Background(), method).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_beta_MFAControllerAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -64,7 +64,7 @@ func Test_api_beta_MFAControllerAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.MFAControllerAPI.SendKbaAnswers(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAControllerAPI.SendKbaAnswers(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -76,7 +76,7 @@ func Test_api_beta_MFAControllerAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -88,7 +88,7 @@ func Test_api_beta_MFAControllerAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.MFAControllerAPI.SendTokenAuthRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAControllerAPI.SendTokenAuthRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_non_employee_lifecycle_management_test.go b/api_beta/test/api_non_employee_lifecycle_management_test.go index 043e7e411..593be35b2 100644 --- a/api_beta/test/api_non_employee_lifecycle_management_test.go +++ b/api_beta/test/api_non_employee_lifecycle_management_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test NonEmployeeLifecycleManagementAPIService ApproveNonEmployeeRequest", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -64,7 +64,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -78,7 +78,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -92,7 +92,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -103,7 +103,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordInBulk(context.Background()).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordInBulk(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -116,7 +116,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -130,7 +130,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var attributeId string var sourceId string - httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -143,7 +143,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -156,7 +156,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -169,7 +169,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -182,7 +182,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -195,7 +195,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -209,7 +209,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var requestedFor string - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -223,7 +223,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -237,7 +237,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -251,7 +251,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -265,7 +265,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var requestedFor string - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -280,7 +280,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var attributeId string var sourceId string - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -294,7 +294,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -308,7 +308,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -322,7 +322,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -334,7 +334,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApproval(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApproval(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -346,7 +346,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -358,7 +358,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -370,7 +370,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -384,7 +384,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -399,7 +399,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var attributeId string var sourceId string - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -413,7 +413,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -427,7 +427,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -441,7 +441,7 @@ func Test_api_beta_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_notifications_test.go b/api_beta/test/api_notifications_test.go index 116ffc7c8..70735f429 100644 --- a/api_beta/test/api_notifications_test.go +++ b/api_beta/test/api_notifications_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_NotificationsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test NotificationsAPIService CreateDomainDkim", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NotificationsAPI.CreateDomainDkim(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.CreateDomainDkim(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_beta_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NotificationsAPI.CreateNotificationTemplate(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.CreateNotificationTemplate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_beta_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -62,7 +62,7 @@ func Test_api_beta_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_BETA.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).Execute() + httpRes, err := apiClient.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -75,7 +75,7 @@ func Test_api_beta_NotificationsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).Execute() + httpRes, err := apiClient.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -86,7 +86,7 @@ func Test_api_beta_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NotificationsAPI.GetDkimAttributes(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.GetDkimAttributes(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -98,7 +98,7 @@ func Test_api_beta_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NotificationsAPI.GetMailFromAttributes(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.GetMailFromAttributes(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -112,7 +112,7 @@ func Test_api_beta_NotificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.NotificationsAPI.GetNotificationTemplate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.GetNotificationTemplate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -124,7 +124,7 @@ func Test_api_beta_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -136,7 +136,7 @@ func Test_api_beta_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NotificationsAPI.ListFromAddresses(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.ListFromAddresses(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -148,7 +148,7 @@ func Test_api_beta_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NotificationsAPI.ListNotificationPreferences(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.ListNotificationPreferences(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -160,7 +160,7 @@ func Test_api_beta_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -172,7 +172,7 @@ func Test_api_beta_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NotificationsAPI.ListNotificationTemplates(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.ListNotificationTemplates(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -184,7 +184,7 @@ func Test_api_beta_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.NotificationsAPI.PutMailFromAttributes(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.PutMailFromAttributes(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -196,7 +196,7 @@ func Test_api_beta_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_BETA.NotificationsAPI.SendTestNotification(context.Background()).Execute() + httpRes, err := apiClient.NotificationsAPI.SendTestNotification(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) diff --git a/api_beta/test/api_o_auth_clients_test.go b/api_beta/test/api_o_auth_clients_test.go index 7a885425f..7c54ba801 100644 --- a/api_beta/test/api_o_auth_clients_test.go +++ b/api_beta/test/api_o_auth_clients_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_OAuthClientsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test OAuthClientsAPIService CreateOauthClient", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.OAuthClientsAPI.CreateOauthClient(context.Background()).Execute() + resp, httpRes, err := apiClient.OAuthClientsAPI.CreateOauthClient(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_OAuthClientsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() + httpRes, err := apiClient.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_beta_OAuthClientsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() + resp, httpRes, err := apiClient.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_beta_OAuthClientsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() + resp, httpRes, err := apiClient.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_beta_OAuthClientsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.OAuthClientsAPI.PatchOauthClient(context.Background(), id).Execute() + resp, httpRes, err := apiClient.OAuthClientsAPI.PatchOauthClient(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_org_config_test.go b/api_beta/test/api_org_config_test.go index 69afec506..5ea679dbd 100644 --- a/api_beta/test/api_org_config_test.go +++ b/api_beta/test/api_org_config_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_OrgConfigAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test OrgConfigAPIService GetOrgConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.OrgConfigAPI.GetOrgConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.OrgConfigAPI.GetOrgConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_beta_OrgConfigAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.OrgConfigAPI.GetValidTimeZones(context.Background()).Execute() + resp, httpRes, err := apiClient.OrgConfigAPI.GetValidTimeZones(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_beta_OrgConfigAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.OrgConfigAPI.PatchOrgConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.OrgConfigAPI.PatchOrgConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_password_configuration_test.go b/api_beta/test/api_password_configuration_test.go index 18e2882c3..865efb044 100644 --- a/api_beta/test/api_password_configuration_test.go +++ b/api_beta/test/api_password_configuration_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_PasswordConfigurationAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PasswordConfigurationAPIService CreatePasswordOrgConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_beta_PasswordConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_beta_PasswordConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_password_dictionary_test.go b/api_beta/test/api_password_dictionary_test.go index b37b6344b..707ae68fd 100644 --- a/api_beta/test/api_password_dictionary_test.go +++ b/api_beta/test/api_password_dictionary_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_PasswordDictionaryAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PasswordDictionaryAPIService GetPasswordDictionary", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_beta_PasswordDictionaryAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_BETA.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() + httpRes, err := apiClient.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) diff --git a/api_beta/test/api_password_management_test.go b/api_beta/test/api_password_management_test.go index 10f65c576..ef3e65fb0 100644 --- a/api_beta/test/api_password_management_test.go +++ b/api_beta/test/api_password_management_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_PasswordManagementAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PasswordManagementAPIService GenerateDigitToken", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.PasswordManagementAPI.GenerateDigitToken(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordManagementAPI.GenerateDigitToken(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_PasswordManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.PasswordManagementAPI.GetIdentityPasswordChangeStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PasswordManagementAPI.GetIdentityPasswordChangeStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_beta_PasswordManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.PasswordManagementAPI.QueryPasswordInfo(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordManagementAPI.QueryPasswordInfo(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -64,7 +64,7 @@ func Test_api_beta_PasswordManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.PasswordManagementAPI.SetIdentityPassword(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordManagementAPI.SetIdentityPassword(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_password_policies_test.go b/api_beta/test/api_password_policies_test.go index 4b5672e8a..a00490e00 100644 --- a/api_beta/test/api_password_policies_test.go +++ b/api_beta/test/api_password_policies_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_PasswordPoliciesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PasswordPoliciesAPIService CreatePasswordPolicy", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_PasswordPoliciesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() + httpRes, err := apiClient.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_beta_PasswordPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_beta_PasswordPoliciesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_beta_PasswordPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_password_sync_groups_test.go b/api_beta/test/api_password_sync_groups_test.go index 8f1af4ae4..f1fddd214 100644 --- a/api_beta/test/api_password_sync_groups_test.go +++ b/api_beta/test/api_password_sync_groups_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_PasswordSyncGroupsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PasswordSyncGroupsAPIService CreatePasswordSyncGroup", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_PasswordSyncGroupsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() + httpRes, err := apiClient.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_beta_PasswordSyncGroupsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_beta_PasswordSyncGroupsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_beta_PasswordSyncGroupsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_personal_access_tokens_test.go b/api_beta/test/api_personal_access_tokens_test.go index 8dd0988a3..eec9f5a32 100644 --- a/api_beta/test/api_personal_access_tokens_test.go +++ b/api_beta/test/api_personal_access_tokens_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_PersonalAccessTokensAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PersonalAccessTokensAPIService CreatePersonalAccessToken", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).Execute() + resp, httpRes, err := apiClient.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_PersonalAccessTokensAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() + httpRes, err := apiClient.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -51,7 +51,7 @@ func Test_api_beta_PersonalAccessTokensAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() + resp, httpRes, err := apiClient.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_beta_PersonalAccessTokensAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_public_identities_config_test.go b/api_beta/test/api_public_identities_config_test.go index ecdfcb406..ac96e0af1 100644 --- a/api_beta/test/api_public_identities_config_test.go +++ b/api_beta/test/api_public_identities_config_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_PublicIdentitiesConfigAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PublicIdentitiesConfigAPIService GetPublicIdentityConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_beta_PublicIdentitiesConfigAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_requestable_objects_test.go b/api_beta/test/api_requestable_objects_test.go index 6e5007b11..8c0933f6f 100644 --- a/api_beta/test/api_requestable_objects_test.go +++ b/api_beta/test/api_requestable_objects_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_RequestableObjectsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test RequestableObjectsAPIService ListRequestableObjects", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() + resp, httpRes, err := apiClient.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_role_insights_test.go b/api_beta/test/api_role_insights_test.go index 230515a8d..fd3ee65c2 100644 --- a/api_beta/test/api_role_insights_test.go +++ b/api_beta/test/api_role_insights_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_RoleInsightsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test RoleInsightsAPIService CreateRoleInsightRequests", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_RoleInsightsAPIService(t *testing.T) { var insightId string - resp, httpRes, err := apiClient.API_BETA.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -55,7 +55,7 @@ func Test_api_beta_RoleInsightsAPIService(t *testing.T) { var insightId string var entitlementId string - resp, httpRes, err := apiClient.API_BETA.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -69,7 +69,7 @@ func Test_api_beta_RoleInsightsAPIService(t *testing.T) { var insightId string - resp, httpRes, err := apiClient.API_BETA.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -81,7 +81,7 @@ func Test_api_beta_RoleInsightsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.RoleInsightsAPI.GetRoleInsights(context.Background()).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.GetRoleInsights(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -95,7 +95,7 @@ func Test_api_beta_RoleInsightsAPIService(t *testing.T) { var insightId string - resp, httpRes, err := apiClient.API_BETA.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -109,7 +109,7 @@ func Test_api_beta_RoleInsightsAPIService(t *testing.T) { var insightId string - resp, httpRes, err := apiClient.API_BETA.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -123,7 +123,7 @@ func Test_api_beta_RoleInsightsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -135,7 +135,7 @@ func Test_api_beta_RoleInsightsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_roles_test.go b/api_beta/test/api_roles_test.go index c2f5ab22a..449fea808 100644 --- a/api_beta/test/api_roles_test.go +++ b/api_beta/test/api_roles_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_RolesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test RolesAPIService CreateRole", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.RolesAPI.CreateRole(context.Background()).Execute() + resp, httpRes, err := apiClient.RolesAPI.CreateRole(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_beta_RolesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.RolesAPI.DeleteBulkRoles(context.Background()).Execute() + resp, httpRes, err := apiClient.RolesAPI.DeleteBulkRoles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_beta_RolesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.RolesAPI.DeleteRole(context.Background(), id).Execute() + httpRes, err := apiClient.RolesAPI.DeleteRole(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -65,7 +65,7 @@ func Test_api_beta_RolesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.RolesAPI.GetRole(context.Background(), id).Execute() + resp, httpRes, err := apiClient.RolesAPI.GetRole(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_beta_RolesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() + resp, httpRes, err := apiClient.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -93,7 +93,7 @@ func Test_api_beta_RolesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.RolesAPI.GetRoleEntitlements(context.Background(), id).Execute() + resp, httpRes, err := apiClient.RolesAPI.GetRoleEntitlements(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -105,7 +105,7 @@ func Test_api_beta_RolesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.RolesAPI.ListRoles(context.Background()).Execute() + resp, httpRes, err := apiClient.RolesAPI.ListRoles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -119,7 +119,7 @@ func Test_api_beta_RolesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.RolesAPI.PatchRole(context.Background(), id).Execute() + resp, httpRes, err := apiClient.RolesAPI.PatchRole(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_search_attribute_configuration_test.go b/api_beta/test/api_search_attribute_configuration_test.go index 172b95ee2..de281cd53 100644 --- a/api_beta/test/api_search_attribute_configuration_test.go +++ b/api_beta/test/api_search_attribute_configuration_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_SearchAttributeConfigurationAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SearchAttributeConfigurationAPIService CreateSearchAttributeConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_SearchAttributeConfigurationAPIService(t *testing.T) { var name string - httpRes, err := apiClient.API_BETA.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() + httpRes, err := apiClient.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -51,7 +51,7 @@ func Test_api_beta_SearchAttributeConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_beta_SearchAttributeConfigurationAPIService(t *testing.T) { var name string - resp, httpRes, err := apiClient.API_BETA.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() + resp, httpRes, err := apiClient.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_beta_SearchAttributeConfigurationAPIService(t *testing.T) { var name string - resp, httpRes, err := apiClient.API_BETA.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).Execute() + resp, httpRes, err := apiClient.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_segments_test.go b/api_beta/test/api_segments_test.go index 1a6a4699e..c8c7f3b0f 100644 --- a/api_beta/test/api_segments_test.go +++ b/api_beta/test/api_segments_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_SegmentsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SegmentsAPIService CreateSegment", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SegmentsAPI.CreateSegment(context.Background()).Execute() + resp, httpRes, err := apiClient.SegmentsAPI.CreateSegment(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_SegmentsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() + httpRes, err := apiClient.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_beta_SegmentsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SegmentsAPI.GetSegment(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SegmentsAPI.GetSegment(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_beta_SegmentsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SegmentsAPI.ListSegments(context.Background()).Execute() + resp, httpRes, err := apiClient.SegmentsAPI.ListSegments(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_beta_SegmentsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SegmentsAPI.PatchSegment(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SegmentsAPI.PatchSegment(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_service_desk_integration_test.go b/api_beta/test/api_service_desk_integration_test.go index 2ad235734..8dbc54785 100644 --- a/api_beta/test/api_service_desk_integration_test.go +++ b/api_beta/test/api_service_desk_integration_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_ServiceDeskIntegrationAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ServiceDeskIntegrationAPIService CreateServiceDeskIntegration", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_ServiceDeskIntegrationAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() + httpRes, err := apiClient.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_beta_ServiceDeskIntegrationAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_beta_ServiceDeskIntegrationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationList(context.Background()).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_beta_ServiceDeskIntegrationAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_BETA.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -91,7 +91,7 @@ func Test_api_beta_ServiceDeskIntegrationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -103,7 +103,7 @@ func Test_api_beta_ServiceDeskIntegrationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -117,7 +117,7 @@ func Test_api_beta_ServiceDeskIntegrationAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -131,7 +131,7 @@ func Test_api_beta_ServiceDeskIntegrationAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -143,7 +143,7 @@ func Test_api_beta_ServiceDeskIntegrationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_sim_integrations_test.go b/api_beta/test/api_sim_integrations_test.go index 2a69c5435..fa3aa4b5d 100644 --- a/api_beta/test/api_sim_integrations_test.go +++ b/api_beta/test/api_sim_integrations_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_SIMIntegrationsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SIMIntegrationsAPIService CreateSIMIntegration", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).Execute() + resp, httpRes, err := apiClient.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_SIMIntegrationsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).Execute() + httpRes, err := apiClient.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_beta_SIMIntegrationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_beta_SIMIntegrationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).Execute() + resp, httpRes, err := apiClient.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_beta_SIMIntegrationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -93,7 +93,7 @@ func Test_api_beta_SIMIntegrationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -107,7 +107,7 @@ func Test_api_beta_SIMIntegrationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_sod_policies_test.go b/api_beta/test/api_sod_policies_test.go index a5797c7f6..82efbe036 100644 --- a/api_beta/test/api_sod_policies_test.go +++ b/api_beta/test/api_sod_policies_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_SODPoliciesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SODPoliciesAPIService CreateSodPolicy", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SODPoliciesAPI.CreateSodPolicy(context.Background()).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.CreateSodPolicy(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_SODPoliciesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() + httpRes, err := apiClient.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_beta_SODPoliciesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() + httpRes, err := apiClient.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -67,7 +67,7 @@ func Test_api_beta_SODPoliciesAPIService(t *testing.T) { var reportResultId string var fileName string - resp, httpRes, err := apiClient.API_BETA.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -81,7 +81,7 @@ func Test_api_beta_SODPoliciesAPIService(t *testing.T) { var reportResultId string - resp, httpRes, err := apiClient.API_BETA.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -93,7 +93,7 @@ func Test_api_beta_SODPoliciesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -107,7 +107,7 @@ func Test_api_beta_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -121,7 +121,7 @@ func Test_api_beta_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -135,7 +135,7 @@ func Test_api_beta_SODPoliciesAPIService(t *testing.T) { var reportResultId string - resp, httpRes, err := apiClient.API_BETA.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -149,7 +149,7 @@ func Test_api_beta_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -161,7 +161,7 @@ func Test_api_beta_SODPoliciesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -175,7 +175,7 @@ func Test_api_beta_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -189,7 +189,7 @@ func Test_api_beta_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -203,7 +203,7 @@ func Test_api_beta_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SODPoliciesAPI.PutSodPolicy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.PutSodPolicy(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -215,7 +215,7 @@ func Test_api_beta_SODPoliciesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -229,7 +229,7 @@ func Test_api_beta_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_sod_violations_test.go b/api_beta/test/api_sod_violations_test.go index eee3dbcf1..cd8a0c598 100644 --- a/api_beta/test/api_sod_violations_test.go +++ b/api_beta/test/api_sod_violations_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_SODViolationsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SODViolationsAPIService StartPredictSodViolations", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SODViolationsAPI.StartPredictSodViolations(context.Background()).Execute() + resp, httpRes, err := apiClient.SODViolationsAPI.StartPredictSodViolations(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_source_usages_test.go b/api_beta/test/api_source_usages_test.go index 7a95846d3..ae3f5b3a9 100644 --- a/api_beta/test/api_source_usages_test.go +++ b/api_beta/test/api_source_usages_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_SourceUsagesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SourceUsagesAPIService GetStatusBySourceId", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_SourceUsagesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_BETA.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -42,7 +42,7 @@ func Test_api_beta_SourceUsagesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_BETA.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_sources_test.go b/api_beta/test/api_sources_test.go index 64e06b4b9..b176292fc 100644 --- a/api_beta/test/api_sources_test.go +++ b/api_beta/test/api_sources_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_SourcesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SourcesAPIService CreateProvisioningPolicy", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.CreateSource(context.Background()).Execute() + resp, httpRes, err := apiClient.SourcesAPI.CreateSource(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -54,7 +54,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -68,7 +68,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.Delete(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.Delete(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -82,7 +82,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.DeleteAccountsAsync(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.DeleteAccountsAsync(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -96,7 +96,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).Execute() + httpRes, err := apiClient.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -110,7 +110,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string var usageType UsageType - httpRes, err := apiClient.API_BETA.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + httpRes, err := apiClient.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -124,7 +124,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string var schemaId string - httpRes, err := apiClient.API_BETA.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() + httpRes, err := apiClient.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -137,7 +137,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.GetCorrelationConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetCorrelationConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -151,7 +151,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -166,7 +166,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string var usageType UsageType - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -180,7 +180,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.GetSource(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetSource(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -194,7 +194,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.SourcesAPI.GetSourceAccountsSchema(context.Background(), id).Execute() + httpRes, err := apiClient.SourcesAPI.GetSourceAccountsSchema(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -207,7 +207,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -221,7 +221,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.GetSourceConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetSourceConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -233,7 +233,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -247,7 +247,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.SourcesAPI.GetSourceEntitlementsSchema(context.Background(), id).Execute() + httpRes, err := apiClient.SourcesAPI.GetSourceEntitlementsSchema(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -261,7 +261,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string var schemaId string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -275,7 +275,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -289,7 +289,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.ImportAccounts(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ImportAccounts(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -303,7 +303,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.ImportEntitlements(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ImportEntitlements(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -317,7 +317,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.ImportSourceAccountsSchema(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ImportSourceAccountsSchema(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -331,7 +331,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.ImportSourceConnectorFile(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ImportSourceConnectorFile(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -345,7 +345,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.ImportSourceEntitlementsSchema(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ImportSourceEntitlementsSchema(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -359,7 +359,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -373,7 +373,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -385,7 +385,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.ListSources(context.Background()).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ListSources(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -399,7 +399,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.PeekResourceObjects(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PeekResourceObjects(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -413,7 +413,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -427,7 +427,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.PutCorrelationConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PutCorrelationConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -441,7 +441,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -456,7 +456,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string var usageType UsageType - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -470,7 +470,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.PutSource(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PutSource(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -484,7 +484,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -499,7 +499,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string var schemaId string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -513,7 +513,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.SyncAttributesForSource(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.SyncAttributesForSource(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -527,7 +527,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -541,7 +541,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -555,7 +555,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -570,7 +570,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string var usageType UsageType - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + resp, httpRes, err := apiClient.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -584,7 +584,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.UpdateSource(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.UpdateSource(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -596,7 +596,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -611,7 +611,7 @@ func Test_api_beta_SourcesAPIService(t *testing.T) { var sourceId string var schemaId string - resp, httpRes, err := apiClient.API_BETA.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_sp_config_test.go b/api_beta/test/api_sp_config_test.go index d33168f64..e80e44ae1 100644 --- a/api_beta/test/api_sp_config_test.go +++ b/api_beta/test/api_sp_config_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_SPConfigAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SPConfigAPIService ExportSpConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SPConfigAPI.ExportSpConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.SPConfigAPI.ExportSpConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_SPConfigAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -54,7 +54,7 @@ func Test_api_beta_SPConfigAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -68,7 +68,7 @@ func Test_api_beta_SPConfigAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -82,7 +82,7 @@ func Test_api_beta_SPConfigAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -94,7 +94,7 @@ func Test_api_beta_SPConfigAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SPConfigAPI.ImportSpConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.SPConfigAPI.ImportSpConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -106,7 +106,7 @@ func Test_api_beta_SPConfigAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() + resp, httpRes, err := apiClient.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_suggested_entitlement_description_test.go b/api_beta/test/api_suggested_entitlement_description_test.go index 3e01b41c0..96b629fa4 100644 --- a/api_beta/test/api_suggested_entitlement_description_test.go +++ b/api_beta/test/api_suggested_entitlement_description_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_SuggestedEntitlementDescriptionAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SuggestedEntitlementDescriptionAPIService GetSedBatchStats", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_SuggestedEntitlementDescriptionAPIService(t *testing.T) { var batchId string - resp, httpRes, err := apiClient.API_BETA.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() + resp, httpRes, err := apiClient.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_SuggestedEntitlementDescriptionAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() + resp, httpRes, err := apiClient.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_beta_SuggestedEntitlementDescriptionAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Execute() + resp, httpRes, err := apiClient.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -66,7 +66,7 @@ func Test_api_beta_SuggestedEntitlementDescriptionAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -78,7 +78,7 @@ func Test_api_beta_SuggestedEntitlementDescriptionAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).Execute() + resp, httpRes, err := apiClient.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -90,7 +90,7 @@ func Test_api_beta_SuggestedEntitlementDescriptionAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).Execute() + resp, httpRes, err := apiClient.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -102,7 +102,7 @@ func Test_api_beta_SuggestedEntitlementDescriptionAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_tagged_objects_test.go b/api_beta/test/api_tagged_objects_test.go index d9994ab94..a419ccaaf 100644 --- a/api_beta/test/api_tagged_objects_test.go +++ b/api_beta/test/api_tagged_objects_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_TaggedObjectsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test TaggedObjectsAPIService DeleteTaggedObject", func(t *testing.T) { @@ -29,7 +29,7 @@ func Test_api_beta_TaggedObjectsAPIService(t *testing.T) { var type_ string var id string - httpRes, err := apiClient.API_BETA.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() + httpRes, err := apiClient.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -40,7 +40,7 @@ func Test_api_beta_TaggedObjectsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_BETA.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).Execute() + httpRes, err := apiClient.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -54,7 +54,7 @@ func Test_api_beta_TaggedObjectsAPIService(t *testing.T) { var type_ string var id string - resp, httpRes, err := apiClient.API_BETA.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() + resp, httpRes, err := apiClient.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -66,7 +66,7 @@ func Test_api_beta_TaggedObjectsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() + resp, httpRes, err := apiClient.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -80,7 +80,7 @@ func Test_api_beta_TaggedObjectsAPIService(t *testing.T) { var type_ string - resp, httpRes, err := apiClient.API_BETA.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() + resp, httpRes, err := apiClient.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -95,7 +95,7 @@ func Test_api_beta_TaggedObjectsAPIService(t *testing.T) { var type_ string var id string - resp, httpRes, err := apiClient.API_BETA.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).Execute() + resp, httpRes, err := apiClient.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -107,7 +107,7 @@ func Test_api_beta_TaggedObjectsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_BETA.TaggedObjectsAPI.SetTagToObject(context.Background()).Execute() + httpRes, err := apiClient.TaggedObjectsAPI.SetTagToObject(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -118,7 +118,7 @@ func Test_api_beta_TaggedObjectsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).Execute() + resp, httpRes, err := apiClient.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_task_management_test.go b/api_beta/test/api_task_management_test.go index 2daa3f518..977258fa8 100644 --- a/api_beta/test/api_task_management_test.go +++ b/api_beta/test/api_task_management_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_TaskManagementAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test TaskManagementAPIService GetPendingTaskHeaders", func(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_BETA.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).Execute() + httpRes, err := apiClient.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -37,7 +37,7 @@ func Test_api_beta_TaskManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.TaskManagementAPI.GetPendingTasks(context.Background()).Execute() + resp, httpRes, err := apiClient.TaskManagementAPI.GetPendingTasks(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -51,7 +51,7 @@ func Test_api_beta_TaskManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.TaskManagementAPI.GetTaskStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TaskManagementAPI.GetTaskStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -63,7 +63,7 @@ func Test_api_beta_TaskManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.TaskManagementAPI.GetTaskStatusList(context.Background()).Execute() + resp, httpRes, err := apiClient.TaskManagementAPI.GetTaskStatusList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -77,7 +77,7 @@ func Test_api_beta_TaskManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_tenant_test.go b/api_beta/test/api_tenant_test.go index 728a3da25..ae7a4ddf7 100644 --- a/api_beta/test/api_tenant_test.go +++ b/api_beta/test/api_tenant_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_TenantAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test TenantAPIService GetTenant", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.TenantAPI.GetTenant(context.Background()).Execute() + resp, httpRes, err := apiClient.TenantAPI.GetTenant(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_transforms_test.go b/api_beta/test/api_transforms_test.go index 171e2f6e8..c4a1b61f2 100644 --- a/api_beta/test/api_transforms_test.go +++ b/api_beta/test/api_transforms_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_TransformsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test TransformsAPIService CreateTransform", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.TransformsAPI.CreateTransform(context.Background()).Execute() + resp, httpRes, err := apiClient.TransformsAPI.CreateTransform(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_TransformsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.TransformsAPI.DeleteTransform(context.Background(), id).Execute() + httpRes, err := apiClient.TransformsAPI.DeleteTransform(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_beta_TransformsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.TransformsAPI.GetTransform(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TransformsAPI.GetTransform(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_beta_TransformsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.TransformsAPI.ListTransforms(context.Background()).Execute() + resp, httpRes, err := apiClient.TransformsAPI.ListTransforms(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_beta_TransformsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.TransformsAPI.UpdateTransform(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TransformsAPI.UpdateTransform(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_triggers_test.go b/api_beta/test/api_triggers_test.go index 1e9f83a76..ce7a23489 100644 --- a/api_beta/test/api_triggers_test.go +++ b/api_beta/test/api_triggers_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_TriggersAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test TriggersAPIService CompleteTriggerInvocation", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_TriggersAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).Execute() + httpRes, err := apiClient.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -39,7 +39,7 @@ func Test_api_beta_TriggersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.TriggersAPI.CreateSubscription(context.Background()).Execute() + resp, httpRes, err := apiClient.TriggersAPI.CreateSubscription(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -53,7 +53,7 @@ func Test_api_beta_TriggersAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.TriggersAPI.DeleteSubscription(context.Background(), id).Execute() + httpRes, err := apiClient.TriggersAPI.DeleteSubscription(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -64,7 +64,7 @@ func Test_api_beta_TriggersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.TriggersAPI.ListSubscriptions(context.Background()).Execute() + resp, httpRes, err := apiClient.TriggersAPI.ListSubscriptions(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -76,7 +76,7 @@ func Test_api_beta_TriggersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.TriggersAPI.ListTriggerInvocationStatus(context.Background()).Execute() + resp, httpRes, err := apiClient.TriggersAPI.ListTriggerInvocationStatus(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -88,7 +88,7 @@ func Test_api_beta_TriggersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.TriggersAPI.ListTriggers(context.Background()).Execute() + resp, httpRes, err := apiClient.TriggersAPI.ListTriggers(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -102,7 +102,7 @@ func Test_api_beta_TriggersAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.TriggersAPI.PatchSubscription(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TriggersAPI.PatchSubscription(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -114,7 +114,7 @@ func Test_api_beta_TriggersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.TriggersAPI.StartTestTriggerInvocation(context.Background()).Execute() + resp, httpRes, err := apiClient.TriggersAPI.StartTestTriggerInvocation(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -126,7 +126,7 @@ func Test_api_beta_TriggersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.TriggersAPI.TestSubscriptionFilter(context.Background()).Execute() + resp, httpRes, err := apiClient.TriggersAPI.TestSubscriptionFilter(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -140,7 +140,7 @@ func Test_api_beta_TriggersAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.TriggersAPI.UpdateSubscription(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TriggersAPI.UpdateSubscription(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_ui_metadata_test.go b/api_beta/test/api_ui_metadata_test.go index 4625d29a4..278e889eb 100644 --- a/api_beta/test/api_ui_metadata_test.go +++ b/api_beta/test/api_ui_metadata_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_UIMetadataAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test UIMetadataAPIService GetTenantUiMetadata", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.UIMetadataAPI.GetTenantUiMetadata(context.Background()).Execute() + resp, httpRes, err := apiClient.UIMetadataAPI.GetTenantUiMetadata(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_beta_UIMetadataAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.UIMetadataAPI.SetTenantUiMetadata(context.Background()).Execute() + resp, httpRes, err := apiClient.UIMetadataAPI.SetTenantUiMetadata(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_vendor_connector_mappings_test.go b/api_beta/test/api_vendor_connector_mappings_test.go index 335ee546c..5ea29add6 100644 --- a/api_beta/test/api_vendor_connector_mappings_test.go +++ b/api_beta/test/api_vendor_connector_mappings_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_VendorConnectorMappingsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test VendorConnectorMappingsAPIService CreateVendorConnectorMapping", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).Execute() + resp, httpRes, err := apiClient.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_beta_VendorConnectorMappingsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).Execute() + resp, httpRes, err := apiClient.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_work_items_test.go b/api_beta/test/api_work_items_test.go index b5427f1c6..8b3a4da73 100644 --- a/api_beta/test/api_work_items_test.go +++ b/api_beta/test/api_work_items_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_WorkItemsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test WorkItemsAPIService ApproveApprovalItem", func(t *testing.T) { @@ -29,7 +29,7 @@ func Test_api_beta_WorkItemsAPIService(t *testing.T) { var id string var approvalItemId string - resp, httpRes, err := apiClient.API_BETA.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -43,7 +43,7 @@ func Test_api_beta_WorkItemsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -57,7 +57,7 @@ func Test_api_beta_WorkItemsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -71,7 +71,7 @@ func Test_api_beta_WorkItemsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.WorkItemsAPI.ForwardWorkItem(context.Background(), id).Execute() + httpRes, err := apiClient.WorkItemsAPI.ForwardWorkItem(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -82,7 +82,7 @@ func Test_api_beta_WorkItemsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -94,7 +94,7 @@ func Test_api_beta_WorkItemsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -106,7 +106,7 @@ func Test_api_beta_WorkItemsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.WorkItemsAPI.GetCountWorkItems(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.GetCountWorkItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -120,7 +120,7 @@ func Test_api_beta_WorkItemsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -132,7 +132,7 @@ func Test_api_beta_WorkItemsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.WorkItemsAPI.GetWorkItemsSummary(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.GetWorkItemsSummary(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -144,7 +144,7 @@ func Test_api_beta_WorkItemsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.WorkItemsAPI.ListWorkItems(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.ListWorkItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -159,7 +159,7 @@ func Test_api_beta_WorkItemsAPIService(t *testing.T) { var id string var approvalItemId string - resp, httpRes, err := apiClient.API_BETA.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -173,7 +173,7 @@ func Test_api_beta_WorkItemsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -187,7 +187,7 @@ func Test_api_beta_WorkItemsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_work_reassignment_test.go b/api_beta/test/api_work_reassignment_test.go index a73d3d888..7df4fee1b 100644 --- a/api_beta/test/api_work_reassignment_test.go +++ b/api_beta/test/api_work_reassignment_test.go @@ -19,14 +19,14 @@ import ( func Test_api_beta_WorkReassignmentAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test WorkReassignmentAPIService CreateReassignmentConfiguration", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_beta_WorkReassignmentAPIService(t *testing.T) { var identityId string - httpRes, err := apiClient.API_BETA.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId).Execute() + httpRes, err := apiClient.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -54,7 +54,7 @@ func Test_api_beta_WorkReassignmentAPIService(t *testing.T) { var identityId string var configType ConfigTypeEnum - resp, httpRes, err := apiClient.API_BETA.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).Execute() + resp, httpRes, err := apiClient.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -66,7 +66,7 @@ func Test_api_beta_WorkReassignmentAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -80,7 +80,7 @@ func Test_api_beta_WorkReassignmentAPIService(t *testing.T) { var identityId string - resp, httpRes, err := apiClient.API_BETA.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).Execute() + resp, httpRes, err := apiClient.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -92,7 +92,7 @@ func Test_api_beta_WorkReassignmentAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -104,7 +104,7 @@ func Test_api_beta_WorkReassignmentAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -118,7 +118,7 @@ func Test_api_beta_WorkReassignmentAPIService(t *testing.T) { var identityId string - resp, httpRes, err := apiClient.API_BETA.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).Execute() + resp, httpRes, err := apiClient.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -130,7 +130,7 @@ func Test_api_beta_WorkReassignmentAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/test/api_workflows_test.go b/api_beta/test/api_workflows_test.go index ab3d9ba98..ba21d4734 100644 --- a/api_beta/test/api_workflows_test.go +++ b/api_beta/test/api_workflows_test.go @@ -19,7 +19,7 @@ import ( func Test_api_beta_WorkflowsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test WorkflowsAPIService CancelWorkflowExecution", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() + httpRes, err := apiClient.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -39,7 +39,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.WorkflowsAPI.CreateWorkflow(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.CreateWorkflow(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -53,7 +53,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_BETA.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() + httpRes, err := apiClient.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -66,7 +66,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -80,7 +80,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -94,7 +94,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -108,7 +108,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -120,7 +120,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -132,7 +132,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -144,7 +144,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -156,7 +156,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -168,7 +168,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_BETA.WorkflowsAPI.ListWorkflows(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.ListWorkflows(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -182,7 +182,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.WorkflowsAPI.PatchWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.PatchWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -196,7 +196,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.WorkflowsAPI.PostExternalExecuteWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.PostExternalExecuteWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -210,7 +210,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.WorkflowsAPI.PostWorkflowExternalTrigger(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.PostWorkflowExternalTrigger(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -224,7 +224,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -238,7 +238,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.WorkflowsAPI.TestWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.TestWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -252,7 +252,7 @@ func Test_api_beta_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_BETA.WorkflowsAPI.UpdateWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.UpdateWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_beta/utils.go b/api_beta/utils.go index a45a620c3..6f8d6218c 100644 --- a/api_beta/utils.go +++ b/api_beta/utils.go @@ -11,7 +11,9 @@ API version: 3.1.0-beta package api_beta import ( + "bytes" "encoding/json" + "fmt" "reflect" "time" ) @@ -320,7 +322,7 @@ func NewNullableTime(val *time.Time) *NullableTime { } func (v NullableTime) MarshalJSON() ([]byte, error) { - return v.value.MarshalJSON() + return json.Marshal(v.value) } func (v *NullableTime) UnmarshalJSON(src []byte) error { @@ -328,8 +330,8 @@ func (v *NullableTime) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } -// isNil checks if an input is nil -func isNil(i interface{}) bool { +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { if i == nil { return true } @@ -345,3 +347,15 @@ func isNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} \ No newline at end of file diff --git a/api_v2024/.openapi-generator/VERSION b/api_v2024/.openapi-generator/VERSION index 3769235d3..09a6d3084 100644 --- a/api_v2024/.openapi-generator/VERSION +++ b/api_v2024/.openapi-generator/VERSION @@ -1 +1 @@ -7.1.0 \ No newline at end of file +7.8.0 diff --git a/api_v2024/README.md b/api_v2024/README.md index c1f45a6a3..ee01697b3 100644 --- a/api_v2024/README.md +++ b/api_v2024/README.md @@ -7,6 +7,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat - API version: v2024 - Package version: 2.1.8 +- Generator version: 7.8.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit [https://developer.sailpoint.com/discuss/api-help](https://developer.sailpoint.com/discuss/api-help) @@ -14,7 +15,7 @@ For more information, please visit [https://developer.sailpoint.com/discuss/api- Install the following dependencies: -```shell +```sh go get github.com/stretchr/testify/assert go get golang.org/x/oauth2 go get golang.org/x/net/context @@ -22,13 +23,13 @@ go get golang.org/x/net/context Put the package under your project folder and add the following in import: -```golang +```go import api_v2024 "github.com/sailpoint-oss/golang-sdk/v2" ``` To use a proxy, set the environment variable `HTTP_PROXY`: -```golang +```go os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") ``` @@ -40,7 +41,7 @@ Default configuration comes with `Servers` field that contains server objects as For using other server than the one defined on index 0 set context value `api_v2024.ContextServerIndex` of type `int`. -```golang +```go ctx := context.WithValue(context.Background(), api_v2024.ContextServerIndex, 1) ``` @@ -48,7 +49,7 @@ ctx := context.WithValue(context.Background(), api_v2024.ContextServerIndex, 1) Templated server URL is formatted using default variables from configuration or from context value `api_v2024.ContextServerVariables` of type `map[string]string`. -```golang +```go ctx := context.WithValue(context.Background(), api_v2024.ContextServerVariables, map[string]string{ "basePath": "v2", }) @@ -62,7 +63,7 @@ Each operation can use different server URL defined using `OperationServers` map An operation is uniquely identified by `"{classname}Service.{nickname}"` string. Similar rules for overriding default operation server index and variables applies by using `api_v2024.ContextOperationServerIndices` and `api_v2024.ContextOperationServerVariables` context maps. -```golang +```go ctx := context.WithValue(context.Background(), api_v2024.ContextOperationServerIndices, map[string]int{ "{classname}Service.{nickname}": 2, }) @@ -1646,14 +1647,14 @@ Authentication schemes defined for the API: Example -```golang +```go auth := context.WithValue(context.Background(), api_v2024.ContextAccessToken, "ACCESSTOKENSTRING") r, err := client.Service.Operation(auth, args) ``` Or via OAuth2 module to automatically refresh tokens and perform user authentication. -```golang +```go import "golang.org/x/oauth2" /* Perform OAuth2 round trip request and obtain a token */ @@ -1675,14 +1676,14 @@ r, err := client.Service.Operation(auth, args) Example -```golang +```go auth := context.WithValue(context.Background(), api_v2024.ContextAccessToken, "ACCESSTOKENSTRING") r, err := client.Service.Operation(auth, args) ``` Or via OAuth2 module to automatically refresh tokens and perform user authentication. -```golang +```go import "golang.org/x/oauth2" /* Perform OAuth2 round trip request and obtain a token */ @@ -1703,14 +1704,14 @@ r, err := client.Service.Operation(auth, args) Example -```golang +```go auth := context.WithValue(context.Background(), api_v2024.ContextAccessToken, "ACCESSTOKENSTRING") r, err := client.Service.Operation(auth, args) ``` Or via OAuth2 module to automatically refresh tokens and perform user authentication. -```golang +```go import "golang.org/x/oauth2" /* Perform OAuth2 round trip request and obtain a token */ diff --git a/api_v2024/api/openapi.yaml b/api_v2024/api/openapi.yaml index 76edb9411..8f30a67ff 100644 --- a/api_v2024/api/openapi.yaml +++ b/api_v2024/api/openapi.yaml @@ -69504,6 +69504,50 @@ components: - systemAccount - uncorrelated type: object + example: + sourceId: 2c9180835d2e5168015d32f890ca1581 + origin: AGGREGATED + description: description + type: NON_HUMAN + sourceOwner: + name: John Cavender + id: 4c5c8534e99445de98eef6c75e25eb01 + type: IDENTITY + connectionType: direct + uuid: slpt.support + ownerIdentity: + name: Adam Kennedy + id: 2c918084660f45d6016617daa9210584 + type: IDENTITY + features: ENABLE + identity: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + modified: 2015-05-28T14:07:17Z + disabled: false + hasEntitlements: true + id: id12345 + locked: false + authoritative: false + created: 2015-05-28T14:07:17Z + ownerGroup: + name: GovGroup AX17Z + id: 8d3e0094e99445de98eef6c75e25jc04 + type: GOVERNANCE_GROUP + manuallyCorrelated: false + identityState: ACTIVE + nativeIdentity: "552775" + uncorrelated: false + identityId: 2c9180835d2e5168015d32f890ca1581 + name: aName + cloudLifecycleState: active + attributes: + firstName: SailPoint + lastName: Support + displayName: SailPoint Support + sourceName: Employees + systemAccount: false AccountActivity: example: clientMetadata: @@ -69961,6 +70005,102 @@ components: example: NO_DECISIONS type: string type: object + example: + totalCertifications: 100 + sourcesWithOrphanEntitlements: + - name: Source with orphan entitlements + id: 2c90ad2a70ace7d50170acf22ca90010 + type: SOURCE + - name: Source with orphan entitlements + id: 2c90ad2a70ace7d50170acf22ca90010 + type: SOURCE + recommendationsEnabled: true + sunsetCommentsRequired: true + created: 2020-03-03T22:15:13.611Z + description: Everyone needs to be reviewed by their manager + type: MANAGER + sourceOwnerCampaignInfo: + sourceIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 + emailNotificationEnabled: false + alerts: + - level: ERROR + localizations: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - level: ERROR + localizations: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + filter: + name: Test Filter + id: 0fbe863c063c4c88a35fd7f17e8a3df5 + type: CAMPAIGN_FILTER + searchCampaignInfo: + identityIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 + query: Search Campaign query description + description: Search Campaign description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + type: ACCESS + accessConstraints: + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + autoRevokeAllowed: false + name: Manager Campaign + mandatoryCommentRequirement: NO_DECISIONS + modified: 2020-03-03T22:20:12.674Z + roleCompositionCampaignInfo: + remediatorRef: + name: Role Admin + id: 2c90ad2a70ace7d50170acf22ca90010 + type: IDENTITY + roleIds: + - 2c90ad2a70ace7d50170acf22ca90010 + query: Search Query + description: Role Composition Description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + completedCertifications: 10 + id: 2c9079b270a266a60170a2779fcb0007 + deadline: 2020-03-15T10:00:01.456Z + status: ACTIVE + correlatedStatus: CORRELATED title: Campaign type: object Certification: @@ -70470,6 +70610,44 @@ components: required: - authoritativeSource type: object + example: + owner: + name: William Wilson + id: 2c9180835d191a86015d28455b4b232a + type: IDENTITY + identityExceptionReportReference: + reportName: My annual report + taskResultId: 2b838de9-db9b-abcf-e646-d4f274ad4238 + authoritativeSource: + name: HR Active Directory + id: 2c9180835d191a86015d28455b4b232a + type: SOURCE + hasTimeBasedAttr: true + created: 2015-05-28T14:07:17Z + description: My custom flat file profile + identityRefreshRequired: true + identityCount: 8 + priority: 10 + identityAttributeConfig: + attributeTransforms: + - transformDefinition: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute + identityAttributeName: email + - transformDefinition: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute + identityAttributeName: email + enabled: true + name: aName + modified: 2015-05-28T14:07:17Z + id: id12345 IdentityReferenceWithNameAndEmail: example: name: Alison Ferguso @@ -70497,6 +70675,20 @@ components: type: object ProvisioningConfig: description: Specification of a Service Desk integration provisioning configuration. + example: + managedResourceRefs: + - type: SOURCE + id: 2c9180855d191c59015d291ceb051111 + name: My Source 1 + - type: SOURCE + id: 2c9180855d191c59015d291ceb052222 + name: My Source 2 + provisioningRequestExpiration: 7 + noProvisioningRequests: true + universalManager: true + planInitializerScript: + source: | + \r\n\r\n\r\n Before Provisioning Rule which changes disables and enables to a modify.\r\n properties: universalManager: default: false @@ -70902,6 +71094,49 @@ components: type: object - $ref: '#/components/schemas/SavedSearchName' - $ref: '#/components/schemas/SavedSearchDetail' + example: + owner: + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + created: 2018-06-25T20:22:28.104Z + columns: + identity: + - field: displayName + header: Display Name + - field: e-mail + header: Work Email + query: '@accounts(disabled:true)' + description: Disabled accounts + orderBy: + identity: + - lastName + - firstName + role: + - name + sort: + - displayName + filters: + terms: + - account_count + - account_count + range: + lower: + inclusive: false + value: "1" + upper: + inclusive: false + value: "1" + exclude: false + type: RANGE + ownerId: 2c91808568c529c60168cca6f90c1313 + indices: + - identities + public: false + name: Disabled accounts + modified: 2018-06-25T20:22:28.104Z + id: 0de46054-fe90-434a-b84e-c6b3359d0c64 + fields: + - disabled type: object Schedule: example: @@ -70979,6 +71214,47 @@ components: type: object - $ref: '#/components/schemas/ScheduledSearchName' - $ref: '#/components/schemas/SearchSchedule' + example: + owner: + id: 2c9180867624cbd7017642d8c8c81f67 + type: IDENTITY + displayQueryDetails: false + created: "" + description: Daily disabled accounts + ownerId: 2c9180867624cbd7017642d8c8c81f67 + enabled: false + schedule: + hours: + values: + - MON + - WED + interval: 3 + type: LIST + months: + values: + - MON + - WED + interval: 3 + type: LIST + timeZoneId: America/Chicago + days: + values: + - MON + - WED + interval: 3 + type: LIST + expiration: 2018-06-25T20:22:28.104Z + type: WEEKLY + recipients: + - id: 2c9180867624cbd7017642d8c8c81f67 + type: IDENTITY + - id: 2c9180867624cbd7017642d8c8c81f67 + type: IDENTITY + savedSearchId: 554f1511-f0a1-4744-ab14-599514d3e57c + name: Daily disabled accounts + modified: "" + id: 0de46054-fe90-434a-b84e-c6b3359d0c64 + emailEmptyResults: false required: - id - owner @@ -71062,6 +71338,37 @@ components: - name - type type: object + example: + ownerRef: "" + cluster: xyzzy999 + created: 2024-01-17T18:45:25.994Z + description: A very nice Service Desk integration + clusterRef: "" + type: ServiceNowSDIM + managedSources: + - 2c9180835d191a86015d28455b4a2329 + - 2c5680835d191a85765d28455b4a9823 + provisioningConfig: + managedResourceRefs: + - type: SOURCE + id: 2c9180855d191c59015d291ceb051111 + name: My Source 1 + - type: SOURCE + id: 2c9180855d191c59015d291ceb052222 + name: My Source 2 + provisioningRequestExpiration: 7 + noProvisioningRequests: true + universalManager: true + planInitializerScript: + source: | + \r\n\r\n\r\n Before Provisioning Rule which changes disables and enables to a modify.\r\n + name: Service Desk Integration Name + modified: 2024-02-18T18:45:25.994Z + attributes: + property: value + key: value + id: 62945a496ef440189b1f03e3623411c8 + beforeProvisioningRule: "" ServiceDeskIntegrationTemplateDto: allOf: - $ref: '#/components/schemas/BaseCommonDto' @@ -71089,6 +71396,29 @@ components: - provisioningConfig - type type: object + example: + provisioningConfig: + managedResourceRefs: + - type: SOURCE + id: 2c9180855d191c59015d291ceb051111 + name: My Source 1 + - type: SOURCE + id: 2c9180855d191c59015d291ceb052222 + name: My Source 2 + provisioningRequestExpiration: 7 + noProvisioningRequests: true + universalManager: true + planInitializerScript: + source: | + \r\n\r\n\r\n Before Provisioning Rule which changes disables and enables to a modify.\r\n + created: 2015-05-28T14:07:17Z + name: aName + modified: 2015-05-28T14:07:17Z + attributes: + property: value + key: value + id: id12345 + type: Web Service SDIM ServiceDeskIntegrationTemplateType: description: This represents a Service Desk Integration template type. example: @@ -71162,7 +71492,9 @@ components: - uid - mail created: 2022-02-08T14:50:03.827Z - managerCorrelationMapping: null + managerCorrelationMapping: + accountAttributeName: manager + identityAttributeName: manager credentialProviderEnabled: false accountCorrelationConfig: name: "Directory [source-62867] Account Correlation" @@ -71582,7 +71914,19 @@ components: type: Generic numItems: 19 ownerName: Jason Smith - form: null + form: + subtitle: Please select from the following + name: AccountSelection Form + id: 2c9180835d2e5168015d32f890ca1581 + title: Account Selection for John.Doe + targetUser: Jane.Doe + sections: + - formItems: [] + name: Field1 + label: Section 1 + - formItems: [] + name: Field1 + label: Section 1 remediationItems: - targetName: john.smith targetId: 2c9180835d2e5168015d32f890ca1581 @@ -71720,7 +72064,7 @@ components: type: object AccountUsage: example: - date: 2023-04-21T00:00:00.000+00:00 + date: 2023-04-21 count: 10 properties: date: @@ -71737,7 +72081,7 @@ components: type: object SourceUsage: example: - date: 2023-04-21T00:00:00.000+00:00 + date: 2023-04-21 count: 10.45 properties: date: @@ -72007,6 +72351,27 @@ components: - source type: object ErrorResponseDto: + example: + causes: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + messages: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + detailCode: 400.1 Bad Request Content + trackingId: e7eab60924f64aa284175b9fa3309599 properties: detailCode: description: Fine-grained error code providing more detail of the error. @@ -72310,7 +72675,10 @@ components: id: 2c7180a46faadee4016fb4e018c20642 type: IDENTITY scheme: MANAGER - currentOwner: null + currentOwner: + name: Allen Albertson + id: 2c3780a46faadee4016fb4e018c20652 + type: IDENTITY modified: 2019-08-23T18:52:57.398Z comment: I approve this request forwarded: false @@ -72330,7 +72698,10 @@ components: id: 2c7180a46faadee4016fb4e018c20642 type: IDENTITY scheme: MANAGER - currentOwner: null + currentOwner: + name: Allen Albertson + id: 2c3780a46faadee4016fb4e018c20652 + type: IDENTITY modified: 2019-08-23T18:52:57.398Z comment: I approve this request forwarded: false @@ -72338,17 +72709,116 @@ components: cancelable: true requestType: GRANT_ACCESS created: 2019-08-23T18:40:35.772Z - requesterComment: null - preApprovalTriggerDetails: null + requesterComment: + created: 2017-07-11T18:45:37.098Z + author: + name: john.doe + id: 2c9180847e25f377017e2ae8cae4650b + type: IDENTITY + comment: This is a comment. + preApprovalTriggerDetails: + decision: APPROVED + comment: Access is Approved + reviewer: John Doe description: This is the Engineering role that engineers are granted. type: ACCESS_PROFILE errorMessages: - - null - - null - sodViolationContext: null - cancelledRequestDetails: null + - - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + sodViolationContext: + violationCheckResult: + clientMetadata: + requestedAppName: test-app + requestedAppId: 2c91808f7892918f0178b78da4a305a1 + violationContexts: + - conflictingAccessCriteria: + leftCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + rightCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + policy: + name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + - conflictingAccessCriteria: + leftCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + rightCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + policy: + name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + violatedPolicies: + - name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + - name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + message: + localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + state: SUCCESS + uuid: f73d16e9-a038-46c5-b217-1246e15fdbdd + cancelledRequestDetails: + owner: + name: Support + id: 2c9180a46faadee4016fb4e018c20639 + type: IDENTITY + modified: 2019-12-20T09:17:12.192Z + comment: This request must be cancelled. accessRequestId: 2b838de9-db9b-abcf-e646-d4f274ad4238 - provisioningDetails: null + provisioningDetails: + orderedSubPhaseReferences: manualWorkItemDetails accountActivityItemId: 2c9180926cbfbddd016cbfc7c3b10010 name: AccessProfile1 manualWorkItemDetails: @@ -72758,7 +73228,13 @@ components: name: Support id: 2c9180a46faadee4016fb4e018c20639 type: IDENTITY - reviewerComment: null + reviewerComment: + created: 2017-07-11T18:45:37.098Z + author: + name: john.doe + id: 2c9180847e25f377017e2ae8cae4650b + type: IDENTITY + comment: This is a comment. removeDate: 2020-07-11T00:00:00Z clientMetadata: requestedAppName: test-app @@ -72779,7 +73255,13 @@ components: id: 2c9180847e25f377017e2ae8cae4650b type: IDENTITY comment: This is a comment. - requesterComment: null + requesterComment: + created: 2017-07-11T18:45:37.098Z + author: + name: john.doe + id: 2c9180847e25f377017e2ae8cae4650b + type: IDENTITY + comment: This is a comment. currentRemoveDate: 2020-07-11T00:00:00Z reviewedBy: name: Allen Albertson @@ -73094,6 +73576,24 @@ components: source: $ref: '#/components/schemas/EntitlementSource' type: object + example: + privileged: false + created: 2015-05-28T14:07:17Z + name: aName + modified: 2015-05-28T14:07:17Z + description: Active Directory DC + attributes: + GroupType: Security + sAMAccountName: Buyer + sourceSchemaObjectType: group + id: id12345 + attribute: authorizationType + source: + name: HR Active Directory + id: 2c9180835d191a86015d28455b4b232a + type: SOURCE + value: "CN=Users,dc=sailpoint,dc=com" + cloudGoverned: false NetworkConfiguration: example: range: @@ -73671,7 +74171,102 @@ components: name: Manager Campaign Template description: Template for the annual manager campaign. modified: 2020-03-05T22:52:09.969Z - campaign: null + campaign: + totalCertifications: 100 + sourcesWithOrphanEntitlements: + - name: Source with orphan entitlements + id: 2c90ad2a70ace7d50170acf22ca90010 + type: SOURCE + - name: Source with orphan entitlements + id: 2c90ad2a70ace7d50170acf22ca90010 + type: SOURCE + recommendationsEnabled: true + sunsetCommentsRequired: true + created: 2020-03-03T22:15:13.611Z + description: Everyone needs to be reviewed by their manager + type: MANAGER + sourceOwnerCampaignInfo: + sourceIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 + emailNotificationEnabled: false + alerts: + - level: ERROR + localizations: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - level: ERROR + localizations: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + filter: + name: Test Filter + id: 0fbe863c063c4c88a35fd7f17e8a3df5 + type: CAMPAIGN_FILTER + searchCampaignInfo: + identityIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 + query: Search Campaign query description + description: Search Campaign description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + type: ACCESS + accessConstraints: + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + autoRevokeAllowed: false + name: Manager Campaign + mandatoryCommentRequirement: NO_DECISIONS + modified: 2020-03-03T22:20:12.674Z + roleCompositionCampaignInfo: + remediatorRef: + name: Role Admin + id: 2c90ad2a70ace7d50170acf22ca90010 + type: IDENTITY + roleIds: + - 2c90ad2a70ace7d50170acf22ca90010 + query: Search Query + description: Role Composition Description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + completedCertifications: 10 + id: 2c9079b270a266a60170a2779fcb0007 + deadline: 2020-03-15T10:00:01.456Z + status: ACTIVE + correlatedStatus: CORRELATED id: 2c9079b270a266a60170a277bb960008 properties: id: @@ -75944,6 +76539,35 @@ components: required: - technicalName type: object + example: + accessProfileIds: + - 2c918084660f45d6016617daa9210584 + - 2c918084660f45d6016617daa9210500 + emailNotificationOption: + notifyManagers: true + notifySpecificUsers: true + emailAddressList: + - test@test.com + - test2@test.com + notifyAllAdmins: true + created: 2015-05-28T14:07:17Z + name: aName + modified: 2015-05-28T14:07:17Z + description: Lifecycle description + accountActions: + - action: ENABLE + sourceIds: + - 2c918084660f45d6016617daa9210584 + - 2c918084660f45d6016617daa9210500 + - action: ENABLE + sourceIds: + - 2c918084660f45d6016617daa9210584 + - 2c918084660f45d6016617daa9210500 + id: id12345 + identityCount: 42 + technicalName: Technical Name + identityState: identityState + enabled: true LifecyclestateDeleted: description: Deleted lifecycle state. example: @@ -76029,7 +76653,44 @@ components: id: 2c9180835d191a86015d28455b4b232a type: SOURCE version: 1 - object: null + object: + owner: + name: William Wilson + id: 2c9180835d191a86015d28455b4b232a + type: IDENTITY + identityExceptionReportReference: + reportName: My annual report + taskResultId: 2b838de9-db9b-abcf-e646-d4f274ad4238 + authoritativeSource: + name: HR Active Directory + id: 2c9180835d191a86015d28455b4b232a + type: SOURCE + hasTimeBasedAttr: true + created: 2015-05-28T14:07:17Z + description: My custom flat file profile + identityRefreshRequired: true + identityCount: 8 + priority: 10 + identityAttributeConfig: + attributeTransforms: + - transformDefinition: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute + identityAttributeName: email + - transformDefinition: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute + identityAttributeName: email + enabled: true + name: aName + modified: 2015-05-28T14:07:17Z + id: id12345 properties: version: description: Version or object from the target service. @@ -77043,6 +77704,52 @@ components: format: date-time type: string type: object + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + approvalStatus: APPROVED + lastName: Smith + manager: jane.doe + data: + description: Auditing + accountName: william.smith + endDate: 2021-03-25T00:00:00-05:00 + created: 2020-03-24T11:11:41.139-05:00 + approvalItems: + - approver: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + accountName: test.account + approvalOrder: 1 + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + comment: I approve + id: 2c1e388b-1e55-4b0a-ab5c-897f1204159c + - approver: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + accountName: test.account + approvalOrder: 1 + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + comment: I approve + id: 2c1e388b-1e55-4b0a-ab5c-897f1204159c + description: Source description + nonEmployeeSource: + sourceId: 2c91808568c529c60168cca6f90c1313 + name: Retail + description: Source description + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + firstName: William + phone: "5555555555" + name: Retail + modified: 2020-03-24T11:11:41.139-05:00 + comment: approved + completionDate: 2020-03-24T11:11:41.139-05:00 + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + email: william.smith@example.com + startDate: 2020-03-24T00:00:00-05:00 NonEmployeeRequestSummary: example: approved: 2 @@ -77086,6 +77793,24 @@ components: nullable: true type: integer type: object + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + created: 2019-08-23T18:40:35.772Z + accountManagers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + name: Retail + description: Source description + approvers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + modified: 2019-08-23T18:52:59.162Z + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + nonEmployeeCount: 120 NonEmployeeSourceRequestBody: example: owner: @@ -77146,6 +77871,24 @@ components: example: "99999" type: string type: object + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + created: 2019-08-23T18:40:35.772Z + accountManagers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + name: Retail + description: Source description + approvers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + modified: 2019-08-23T18:52:59.162Z + cloudExternalId: "99999" + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 NonEmployeeSource: allOf: - $ref: '#/components/schemas/NonEmployeeSourceLite' @@ -77171,6 +77914,23 @@ components: format: date-time type: string type: object + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + created: 2019-08-23T18:40:35.772Z + accountManagers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + name: Retail + description: Source description + approvers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + modified: 2019-08-23T18:52:59.162Z + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 NonEmployeeBulkUploadJob: example: sourceId: 2c91808568c529c60168cca6f90c1313 @@ -77239,6 +77999,22 @@ components: nonEmployeeRequest: $ref: '#/components/schemas/NonEmployeeRequestLite' type: object + example: + approver: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + accountName: test.account + approvalOrder: 1 + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + comment: I approve + id: 2c1e388b-1e55-4b0a-ab5c-897f1204159c + nonEmployeeRequest: + requester: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + id: ac110005-7156-1150-8171-5b292e3e0084 NonEmployeeApprovalItemDetail: allOf: - $ref: '#/components/schemas/NonEmployeeApprovalItemBase' @@ -77246,6 +78022,63 @@ components: nonEmployeeRequest: $ref: '#/components/schemas/NonEmployeeRequestWithoutApprovalItem' type: object + example: + approver: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + accountName: test.account + approvalOrder: 1 + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + comment: I approve + id: 2c1e388b-1e55-4b0a-ab5c-897f1204159c + nonEmployeeRequest: + requester: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + lastName: Smith + manager: jane.doe + data: + description: Auditing + accountName: william.smith + endDate: 2021-03-25 + created: 2020-03-24T11:11:41.139-05:00 + nonEmployeeSource: + sourceId: 2c91808568c529c60168cca6f90c1313 + name: Retail + description: Source description + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + schemaAttributes: + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true + firstName: William + phone: "5555555555" + modified: 2020-03-24T11:11:41.139-05:00 + comment: approved + completionDate: 2020-03-24T11:11:41.139-05:00 + id: ac110005-7156-1150-8171-5b292e3e0084 + email: william.smith@example.com + startDate: 2020-03-24 NonEmployeeApprovalDecision: example: comment: Approved by manager @@ -78847,7 +79680,63 @@ components: searchAfter: - John Doe - 2c91808375d8e80a0175e1f88a575221 - aggregations: null + aggregations: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + subAggregation: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + subAggregation: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + nested: + name: id + type: access + nested: + name: id + type: access + nested: + name: id + type: access properties: indices: description: "The names of the Elasticsearch indices in which to search.\ @@ -79018,7 +79907,14 @@ components: id: 2c9180a46faadee4016fb4e018c20639 type: IDENTITY created: 2020-01-01T00:00:00Z - visibilityCriteria: null + visibilityCriteria: + expression: + children: [] + attribute: location + value: + type: STRING + value: Austin + operator: EQUALS name: segment-xyz modified: 2020-01-01T00:00:00Z description: This segment represents xyz @@ -79453,7 +80349,25 @@ components: type: object SodPolicy: example: - conflictingAccessCriteria: null + conflictingAccessCriteria: + leftCriteria: + name: money-in + criteriaList: + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a66 + name: Administrator + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a67 + name: Administrator + rightCriteria: + name: money-in + criteriaList: + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a66 + name: Administrator + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a67 + name: Administrator ownerRef: name: Support id: 2c9180a46faadee4016fb4e018c20639 @@ -79593,13 +80507,33 @@ components: example: PENDING type: string type: object + example: + name: SOD Policy 1 Violation + id: 2c9180835d191a86015d28455b4b232a + type: REPORT_RESULT + status: PENDING SodPolicySchedule: example: schedule: - hours: null - months: null + hours: + values: + - MON + - WED + interval: 3 + type: LIST + months: + values: + - MON + - WED + interval: 3 + type: LIST timeZoneId: America/Chicago - days: null + days: + values: + - MON + - WED + interval: 3 + type: LIST expiration: 2018-06-25T20:22:28.104Z type: WEEKLY created: 2020-01-01T00:00:00Z @@ -80202,6 +81136,12 @@ components: - id - internal type: object + example: + internal: false + name: Timestamp To Date + attributes: "{}" + id: 2cd78adghjkja34jh2b1hkjhasuecd + type: dateFormat Workflow: allOf: - properties: @@ -80235,6 +81175,46 @@ components: $ref: '#/components/schemas/Workflow_allOf_creator' type: object - $ref: '#/components/schemas/WorkflowBody' + example: + owner: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + creator: + name: Michael Michaels + id: 2c7180a46faadee4016fb4e018c20642 + type: IDENTITY + created: 2022-01-10T16:06:16.636381447Z + description: Send an email to the identity who's attributes changed. + trigger: + displayName: displayName + attributes: "{}" + type: EVENT + enabled: false + name: Send Email + executionCount: 2 + modified: 2023-12-05T15:18:27.699132301Z + modifiedBy: + name: Thomas Edison + id: 2c9180a46faadee4016fb4e018c20639 + type: IDENTITY + definition: + start: Send Email Test + steps: + Send Email: + actionId: sp:send-email + attributes: + body: This is a test + from: sailpoint@sailpoint.com + recipientId.$: $.identity.id + subject: test + nextStep: success + selectResult: null + type: ACTION + success: + type: success + id: d201c5e9-d37b-4aff-af14-66414f39d569 + failureCount: 0 WorkflowBody: example: owner: @@ -80454,7 +81434,7 @@ components: type: string title: sp:create-campaign type: object - exampleOutput: null + exampleOutput: "{}" deprecated: true isSimulationEnabled: true name: Create Certification Campaign @@ -81388,6 +82368,29 @@ components: - id type: object description: ConnectorRuleResponse + example: + sourceCode: + version: "1.0" + script: return "Mr. " + firstName; + signature: + output: + name: firstName + description: the first name of the identity + type: String + input: + - name: firstName + description: the first name of the identity + type: String + - name: firstName + description: the first name of the identity + type: String + created: 021-07-22T15:59:23Z + name: WebServiceBeforeOperationRule + description: This rule does that + modified: 021-07-22T15:59:23Z + attributes: {} + id: 8113d48c0b914f17b4c6072d4dcb9dfe + type: BuildMap ConnectorRuleCreateRequest: description: ConnectorRuleCreateRequest example: @@ -81473,6 +82476,27 @@ components: type: object - $ref: '#/components/schemas/ConnectorRuleCreateRequest' description: ConnectorRuleUpdateRequest + example: + sourceCode: + version: "1.0" + script: return "Mr. " + firstName; + signature: + output: + name: firstName + description: the first name of the identity + type: String + input: + - name: firstName + description: the first name of the identity + type: String + - name: firstName + description: the first name of the identity + type: String + name: WebServiceBeforeOperationRule + description: This rule does that + attributes: {} + id: 8113d48c0b914f17b4c6072d4dcb9dfe + type: BuildMap SourceCode: description: SourceCode example: @@ -81559,7 +82583,10 @@ components: type: object Entitlement_1: example: - owner: null + owner: + name: identity 1 + id: 2a2fdacca5e345f18bf7970cfbb8fec2 + type: IDENTITY created: 2020-10-08T18:33:52.029Z description: "CN=LauncherTest2,OU=LauncherTestOrg,OU=slpt-automation,DC=TestAutomationAD,DC=local" source: @@ -81579,13 +82606,29 @@ components: - SELECT - SELECT target: SYS.GV_$TRANSACTION - manuallyUpdatedFields: null + manuallyUpdatedFields: + DESCRIPTION: true + DISPLAY_NAME: true name: LauncherTest2 modified: 2020-10-08T18:33:52.029Z sourceSchemaObjectType: group attributes: fieldName: fieldValue - accessModelMetadata: null + accessModelMetadata: + attributes: + - key: iscPrivacy + name: Privacy + multiselect: false + status: active + type: governance + objectTypes: + - all + description: Specifies the level of privacy associated with an access + item. + values: + - value: public + name: Public + status: active id: 2c91808874ff91550175097daaec161c attribute: memberOf requestable: true @@ -81941,6 +82984,19 @@ components: type: object type: object AccessItemAccessProfileResponse: + example: + accessType: accessProfile + sourceId: 2793o32dwd + entitlementCount: "12" + removeDate: 2024-07-01T06:00:00.00Z + displayName: Dr. Arden Rogahn MD + appDisplayName: AppName + name: sample + standalone: false + description: AccessProfile - Workday/Citizenship access + id: 2c918087763e69d901763e72e97f006f + sourceName: DataScienceDataset + revocable: true properties: accessType: description: the access item type. accessProfile in this case @@ -82166,7 +83222,7 @@ components: name: name description: description id: id - type: null + type: ACCESS_PROFILE ownerId: ownerId createdByUser: false commonAccessType: UNSET @@ -82211,9 +83267,9 @@ components: name: name description: description id: id - type: null + type: ACCESS_PROFILE ownerId: ownerId - status: null + status: CONFIRMED properties: access: $ref: '#/components/schemas/CommonAccessItemAccess' @@ -82228,12 +83284,12 @@ components: name: name description: description id: id - type: null + type: ACCESS_PROFILE ownerId: ownerId createdByUser: createdByUser id: id reviewedByUser: true - status: null + status: CONFIRMED lastReviewed: lastReviewed properties: id: @@ -82275,6 +83331,31 @@ components: type: array type: object AccessItemAssociated: + example: + dt: 2019-03-08T22:37:33.901Z + governanceEvent: + dt: 2019-03-08T22:37:33.901Z + name: Manager Certification for Jon Snow + owners: + - id: 8a80828f643d484f01643e14202e206f + displayName: John Snow + decisionMaker: + displayName: John Snow + id: 8a80828f643d484f01643e14202e206f + type: certification + reviewers: + - id: 8a80828f643d484f01643e14202e206f + displayName: John Snow + governanceId: 2c91808a77ff216301782327a50f09bf + identityId: 8c190e6787aa4ed9a90bd9d5344523fb + eventType: AccessItemAssociated + accessItem: + id: 8c190e6787aa4ed9a90bd9d5344523fb + accessType: account + nativeIdentity: 127999 + sourceName: JDBC Entitlements Source + entitlementCount: 0 + displayName: Sample Name properties: accessItem: $ref: '#/components/schemas/AccessItemAssociated_accessItem' @@ -82566,17 +83647,47 @@ components: format: date-time type: string attributes: - description: A map with the identity attributes for the identity - example: "{\"uid\":\"Walter White\",\"firstname\":\"walter\",\"cloudStatus\"\ - :\"UNREGISTERED\",\"displayName\":\"Walter White\",\"identificationNumber\"\ - :\"942\",\"lastSyncDate\":1470348809380,\"email\":\"walter@gmail.com\"\ - ,\"lastname\":\"white\"}" - type: object + $ref: '#/components/schemas/IdentityDto_attributes' lifecycleState: $ref: '#/components/schemas/IdentityDto_lifecycleState' title: IdentityDto type: object + example: + lifecycleState: + stateName: active + manuallyUpdated: true + lastRefresh: 2020-11-22T15:42:31.123Z + created: 2023-01-03T21:16:22.432Z + processingState: ERROR + emailAddress: sender@example.com + identityStatus: LOCKED + name: aName + modified: 2023-01-03T21:16:22.432Z + alias: walter.white + isManager: true + attributes: "{\"uid\":\"Walter White\",\"firstname\":\"walter\",\"cloudStatus\"\ + :\"UNREGISTERED\",\"displayName\":\"Walter White\",\"identificationNumber\"\ + :\"942\",\"lastSyncDate\":1470348809380,\"email\":\"walter@gmail.com\",\"\ + lastname\":\"white\"}" + id: id12345 + managerRef: + name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY IdentityAssociationDetails: + example: + associationDetails: + - entities: + id: b660a232f05b4e04812ca974b3011e0f + name: Gaston.800ddf9640a + type: CAMPAIGN_CAMPAIGNER + associationType: CAMPAIGN_OWNER + - entities: + id: b660a232f05b4e04812ca974b3011e0f + name: Gaston.800ddf9640a + type: CAMPAIGN_CAMPAIGNER + associationType: CAMPAIGN_OWNER + message: Identity cannot be deleted as it is owner of following resources properties: message: description: any additional context information of the http call result @@ -82626,6 +83737,11 @@ components: type: string type: object RoleAssignmentRef: + example: + role: + name: Github + id: ff8081814d977c21014da056804a0af3 + id: 1cbb0705b38c4226b1334eadd8874086 properties: id: description: Assignment Id @@ -84626,7 +85742,9 @@ components: id: e0cc5d7d-bf7f-4f81-b2af-8885b09d9923 quality: 80 createdDate: 2000-01-23T04:56:07.000+00:00 - createdBy: null + createdBy: + displayName: Ashley.Pierce + id: 2c918090761a5aac0176215c46a62d58 name: Potential Role - e0cc5d id: e0cc5d7d-bf7f-4f81-b2af-8885b09d9923 identityGroupStatus: OBTAINED @@ -84754,7 +85872,9 @@ components: - attributeValue: NM Tier 3 count: 6 createdDate: 2000-01-23T04:56:07.000+00:00 - createdBy: null + createdBy: + displayName: Ashley.Pierce + id: 2c918090761a5aac0176215c46a62d58 name: Saved Potential Role - 07/10 modifiedDate: 2000-01-23T04:56:07.000+00:00 id: e0cc5d7d-bf7f-4f81-b2af-8885b09d9923 @@ -85206,6 +86326,34 @@ components: - name - type type: object + example: + ownerRef: "" + cluster: xyzzy999 + managedSources: + - 2c9180835d191a86015d28455b4a2329 + - 2c5680835d191a85765d28455b4a9823 + provisioningConfig: + managedResourceRefs: + - type: SOURCE + id: 2c9180855d191c59015d291ceb051111 + name: My Source 1 + - type: SOURCE + id: 2c9180855d191c59015d291ceb052222 + name: My Source 2 + provisioningRequestExpiration: 7 + noProvisioningRequests: true + universalManager: true + planInitializerScript: + source: | + \r\n\r\n\r\n Before Provisioning Rule which changes disables and enables to a modify.\r\n + name: Service Desk Integration Name + description: A very nice Service Desk integration + attributes: + property: value + key: value + clusterRef: "" + type: ServiceNowSDIM + beforeProvisioningRule: "" SimIntegrationDetails: allOf: - $ref: '#/components/schemas/BaseCommonDto_1' @@ -85221,14 +86369,7 @@ components: nullable: false type: string attributes: - description: The attributes map containing the credentials used to configure - the integration. - example: "{\"uid\":\"Walter White\",\"firstname\":\"walter\",\"cloudStatus\"\ - :\"UNREGISTERED\",\"displayName\":\"Walter White\",\"identificationNumber\"\ - :\"942\",\"lastSyncDate\":1470348809380,\"email\":\"walter@gmail.com\"\ - ,\"lastname\":\"white\"}" - nullable: true - type: object + $ref: '#/components/schemas/SimIntegrationDetails_allOf_attributes' sources: description: The list of sources (managed resources) example: @@ -85244,28 +86385,37 @@ components: nullable: false type: string statusMap: - description: Custom mapping between the integration result and the provisioning - result - example: - closed_cancelled: Failed - closed_complete: Committed - closed_incomplete: Failed - closed_rejected: Failed - in_process: Queued - requested: Queued - type: object + $ref: '#/components/schemas/SimIntegrationDetails_allOf_statusMap' request: - description: Request data to customize desc and body of the created ticket - example: - description: "SailPoint Access Request," - req_description: "The Service Request created by SailPoint ServiceNow\ - \ Service Integration Module (SIM).," - req_short_description: "SailPoint New Access Request Created from IdentityNow," - short_description: SailPoint Access Request $!plan.arguments.identityRequestId - type: object + $ref: '#/components/schemas/SimIntegrationDetails_allOf_request' beforeProvisioningRule: $ref: '#/components/schemas/SimIntegrationDetails_allOf_beforeProvisioningRule' type: object + example: + cluster: xyzzy999 + statusMap: "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed,\ + \ closed_rejected=Failed, in_process=Queued, requested=Queued}" + request: "{description=SailPoint Access Request,, req_description=The Service\ + \ Request created by SailPoint ServiceNow Service Integration Module (SIM).,,\ + \ req_short_description=SailPoint New Access Request Created from IdentityNow,,\ + \ short_description=SailPoint Access Request $!plan.arguments.identityRequestId}" + sources: + - 2c9180835d191a86015d28455b4a2329 + - 2c5680835d191a85765d28455b4a9823 + created: 2023-01-03T21:16:22.432Z + name: aName + modified: 2023-01-03T21:16:22.432Z + description: Integration description + attributes: "{\"uid\":\"Walter White\",\"firstname\":\"walter\",\"cloudStatus\"\ + :\"UNREGISTERED\",\"displayName\":\"Walter White\",\"identificationNumber\"\ + :\"942\",\"lastSyncDate\":1470348809380,\"email\":\"walter@gmail.com\",\"\ + lastname\":\"white\"}" + id: id12345 + type: ServiceNow Service Desk + beforeProvisioningRule: + name: Example Rule + id: 2c918085708c274401708c2a8a760001 + type: IDENTITY title: Sim Integration Details type: object JsonPatch: @@ -85301,6 +86451,14 @@ components: required: - description type: object + example: + jobId: 3469b87d-48ca-439a-868f-2160001da8c1 + created: 2021-05-11T22:23:16Z + modified: 2021-05-11T22:23:16Z + description: ETS configuration objects from Acme-Solar sandbox + expiration: 2021-05-11T22:23:16Z + type: IMPORT + status: COMPLETE SpConfigExportJobStatus: allOf: - $ref: '#/components/schemas/SpConfigExportJob' @@ -85313,6 +86471,15 @@ components: required: - completed type: object + example: + jobId: 3469b87d-48ca-439a-868f-2160001da8c1 + created: 2021-05-11T22:23:16Z + modified: 2021-05-11T22:23:16Z + description: ETS configuration objects from Acme-Solar sandbox + expiration: 2021-05-11T22:23:16Z + completed: 2021-05-11T22:23:16Z + type: IMPORT + status: COMPLETE SpConfigExportResults: description: Response model for config export download response. example: @@ -85508,6 +86675,15 @@ components: - completed - message type: object + example: + jobId: 3469b87d-48ca-439a-868f-2160001da8c1 + created: 2021-05-11T22:23:16Z + modified: 2021-05-11T22:23:16Z + expiration: 2021-05-11T22:23:16Z + completed: 2021-05-11T22:23:16Z + type: IMPORT + message: Download import results for details. + status: COMPLETE SpConfigImportResults: description: Response Body for Config Import command. example: @@ -86526,8 +87702,60 @@ components: :true,\"properties\":{\"type\":{\"type\":\"string\"},\"id\":{\"type\":\"\ string\"},\"name\":{\"type\":\"string\"}}}},\"$ref\":\"#/definitions/record:AccessRequestDynamicApproverInput\"\ }" - exampleOutput: null - exampleInput: null + exampleOutput: + name: Adam Adams + id: 2c91808b6ef1d43e016efba0ce470906 + type: IDENTITY + exampleInput: + requestedFor: + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + requestedBy: "" + accessRequestId: 4b4d982dddff4267ab12f0f1e72b5a6d + requestedItems: + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add name: Access Request Dynamic Approver description: Trigger for getting a dynamic approver. id: idn:access-request-dynamic-approver @@ -87181,7 +88409,12 @@ components: type: object WorkgroupDto: example: - owner: null + owner: + emailAddress: support@sailpoint.com + displayName: Support + name: Support + id: 2c9180a46faadee4016fb4e018c20639 + type: IDENTITY connectionCount: 1641498673000 created: 2022-01-06T19:51:13Z memberCount: 1641498673000 @@ -87513,6 +88746,16 @@ components: type: object x-go-package: github.com/sailpoint/atlas-go/atlas/web Error: + example: + messages: + - localeOrigin: DEFAULT + text: This is an error + locale: en-US + - localeOrigin: DEFAULT + text: This is an error + locale: en-US + detailCode: Internal Server Error + trackingId: 9cd03ef80e6a425eb6b11bdbb057cdb4 properties: detailCode: description: DetailCode is the text of the status code returned @@ -88841,6 +90084,18 @@ components: type: object SlimDiscoveredApplications: description: Discovered applications + example: + createdAt: 2023-01-01T12:00:00Z + discoveredVendor: ExampleVendor + discoverySource: csv + name: ExampleApp + recommendedConnectors: + - ConnectorA + - ConnectorB + description: An application for managing examples. + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + discoveredAt: 2023-01-01T12:00:00Z + status: ACTIVE properties: id: description: Unique identifier for the discovered application. @@ -88959,9 +90214,6 @@ components: title: Discovered Application type: object ManualDiscoverApplicationsTemplate: - example: - application_name: Example Application - description: Example Description properties: application_name: description: Name of the application. @@ -89073,6 +90325,10 @@ components: - name type: object BaseReferenceDto: + example: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY properties: type: $ref: '#/components/schemas/DtoType' @@ -89376,6 +90632,11 @@ components: type: object type: object AccessConstraint: + example: + ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED properties: type: description: Type of Access @@ -89507,6 +90768,9 @@ components: type: object description: Event IdentityExceptionReportReference: + example: + reportName: My annual report + taskResultId: 2b838de9-db9b-abcf-e646-d4f274ad4238 nullable: true properties: taskResultId: @@ -90177,7 +91441,10 @@ components: id: 2c7180a46faadee4016fb4e018c20642 type: IDENTITY scheme: MANAGER - currentOwner: null + currentOwner: + name: Allen Albertson + id: 2c3780a46faadee4016fb4e018c20652 + type: IDENTITY modified: 2019-08-23T18:52:57.398Z comment: I approve this request forwarded: false @@ -90596,6 +91863,10 @@ components: type: string EntitlementSource: description: Source the entitlement belongs to. + example: + name: HR Active Directory + id: 2c9180835d191a86015d28455b4b232a + type: SOURCE properties: type: description: DTO type of source the entitlement belongs to. @@ -91382,6 +92653,13 @@ components: EmailNotificationOption: description: This is used for representing email configuration for a lifecycle state + example: + notifyManagers: true + notifySpecificUsers: true + emailAddressList: + - test@test.com + - test2@test.com + notifyAllAdmins: true properties: notifyManagers: default: false @@ -91414,6 +92692,11 @@ components: AccountAction: description: Object for specifying Actions to be performed on a specified list of sources' account. + example: + action: ENABLE + sourceIds: + - 2c918084660f45d6016617daa9210584 + - 2c918084660f45d6016617daa9210500 properties: action: description: Describes if action will be enabled or disabled @@ -91623,6 +92906,11 @@ components: - rootLevel type: object NonEmployeeSourceLite: + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + name: Retail + description: Source description + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 properties: id: description: Non-Employee source id. @@ -91643,6 +92931,17 @@ components: type: string type: object NonEmployeeApprovalItemBase: + example: + approver: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + accountName: test.account + approvalOrder: 1 + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + comment: I approve + id: 2c1e388b-1e55-4b0a-ab5c-897f1204159c properties: id: description: Non-Employee approval item id @@ -91700,6 +92999,9 @@ components: - id type: object NonEmployeeIdentityReferenceWithId: + example: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY properties: type: $ref: '#/components/schemas/NonEmployeeIdentityDtoType' @@ -91709,6 +93011,11 @@ components: type: string type: object NonEmployeeRequestLite: + example: + requester: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + id: ac110005-7156-1150-8171-5b292e3e0084 properties: id: description: Non-Employee request id. @@ -91788,6 +93095,52 @@ components: format: date-time type: string type: object + example: + requester: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + lastName: Smith + manager: jane.doe + data: + description: Auditing + accountName: william.smith + endDate: 2021-03-25 + created: 2020-03-24T11:11:41.139-05:00 + nonEmployeeSource: + sourceId: 2c91808568c529c60168cca6f90c1313 + name: Retail + description: Source description + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + schemaAttributes: + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true + firstName: William + phone: "5555555555" + modified: 2020-03-24T11:11:41.139-05:00 + comment: approved + completionDate: 2020-03-24T11:11:41.139-05:00 + id: ac110005-7156-1150-8171-5b292e3e0084 + email: william.smith@example.com + startDate: 2020-03-24 NonEmployeeSchemaAttributeType: description: Enum representing the type of data a schema attribute accepts. enum: @@ -92116,10 +93469,25 @@ components: Schedule_1: description: The schedule information. example: - hours: null - months: null + hours: + values: + - MON + - WED + interval: 3 + type: LIST + months: + values: + - MON + - WED + interval: 3 + type: LIST timeZoneId: America/Chicago - days: null + days: + values: + - MON + - WED + interval: 3 + type: LIST expiration: 2018-06-25T20:22:28.104Z type: WEEKLY properties: @@ -92355,6 +93723,63 @@ components: subAggregation: $ref: '#/components/schemas/SubSearchAggregationSpecification' type: object + example: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + subAggregation: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + subAggregation: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + nested: + name: id + type: access + nested: + name: id + type: access + nested: + name: id + type: access OwnerReferenceSegments: description: The owner of this object. example: @@ -92755,6 +94180,10 @@ components: type: string type: object WorkflowModifiedBy: + example: + name: Thomas Edison + id: 2c9180a46faadee4016fb4e018c20639 + type: IDENTITY properties: type: enum: @@ -93127,7 +94556,7 @@ components: name: name description: description id: id - type: null + type: ACCESS_PROFILE ownerId: ownerId properties: id: @@ -93156,6 +94585,20 @@ components: - DENIED type: string CorrelatedGovernanceEvent: + example: + dt: 2019-03-08T22:37:33.901Z + name: Manager Certification for Jon Snow + owners: + - id: 8a80828f643d484f01643e14202e206f + displayName: John Snow + decisionMaker: + displayName: John Snow + id: 8a80828f643d484f01643e14202e206f + type: certification + reviewers: + - id: 8a80828f643d484f01643e14202e206f + displayName: John Snow + governanceId: 2c91808a77ff216301782327a50f09bf properties: name: description: "The name of the governance event, such as the certification\ @@ -93242,6 +94685,9 @@ components: type: array type: object CertifierResponse: + example: + displayName: John Snow + id: 8a80828f643d484f01643e14202e206f properties: id: description: the id of the certifier @@ -94016,6 +95462,9 @@ components: example: SPECIALIZED type: string EntityCreatedByDTO: + example: + displayName: Ashley.Pierce + id: 2c918090761a5aac0176215c46a62d58 properties: id: description: ID of the creator @@ -94183,6 +95632,20 @@ components: type: string ProvisioningConfig_1: description: Specification of a Service Desk integration provisioning configuration. + example: + managedResourceRefs: + - type: SOURCE + id: 2c9180855d191c59015d291ceb051111 + name: My Source 1 + - type: SOURCE + id: 2c9180855d191c59015d291ceb052222 + name: My Source 2 + provisioningRequestExpiration: 7 + noProvisioningRequests: true + universalManager: true + planInitializerScript: + source: | + \r\n\r\n\r\n Before Provisioning Rule which changes disables and enables to a modify.\r\n properties: universalManager: default: false @@ -94817,6 +96280,56 @@ components: example: FIRE_AND_FORGET type: string AccessRequestDynamicApprover: + example: + requestedFor: + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + - name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY + requestedBy: "" + accessRequestId: 4b4d982dddff4267ab12f0f1e72b5a6d + requestedItems: + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add + - name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add properties: accessRequestId: description: | @@ -95564,6 +97077,10 @@ components: title: VA Cluster Status Change Event type: object AccessRequestDynamicApprover_1: + example: + name: Adam Adams + id: 2c91808b6ef1d43e016efba0ce470906 + type: IDENTITY nullable: true properties: id: @@ -96747,6 +98264,10 @@ components: type: object type: array type: object + example: + formItems: [] + name: Field1 + label: Section 1 type: object AccessProfileApprovalScheme: example: @@ -97144,6 +98665,32 @@ components: $ref: '#/components/schemas/NonEmployeeSchemaAttribute' type: array type: object + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + name: Retail + description: Source description + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + schemaAttributes: + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true RoleMembershipSelectorType: description: |- This enum characterizes the type of a Role's membership selector. Only the following two are fully supported: @@ -97294,6 +98841,13 @@ components: type: string Range: description: The range of values to be filtered. + example: + lower: + inclusive: false + value: "1" + upper: + inclusive: false + value: "1" properties: lower: $ref: '#/components/schemas/Bound' @@ -97361,6 +98915,25 @@ components: - type type: object Aggregations: + example: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + nested: + name: id + type: access properties: nested: $ref: '#/components/schemas/NestedAggregation' @@ -97378,7 +98951,52 @@ components: subAggregation: $ref: '#/components/schemas/Aggregations' type: object + example: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + subAggregation: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + nested: + name: id + type: access + nested: + name: id + type: access Expression: + example: + children: [] + attribute: location + value: + type: STRING + value: Austin + operator: EQUALS properties: operator: description: Operator for the expression @@ -97403,6 +99021,15 @@ components: type: array type: object AccessCriteria: + example: + name: money-in + criteriaList: + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a66 + name: Administrator + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a67 + name: Administrator properties: name: description: Business name for the access construct list @@ -97803,6 +99430,10 @@ components: type: object AccessItemRequestedForDto: description: Identity the access item is requested for. + example: + name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY properties: type: description: DTO type of identity the access item is requested for. @@ -98444,6 +100075,9 @@ components: type: array type: object Bound: + example: + inclusive: false + value: "1" properties: value: description: The value of the range's endpoint. @@ -98473,6 +100107,9 @@ components: type: string NestedAggregation: description: The nested aggregation object. + example: + name: id + type: access properties: name: description: The name of the nested aggregate to be included in the result. @@ -98488,6 +100125,10 @@ components: type: object MetricAggregation: description: The calculation done on the results of the query + example: + field: '@access.name' + name: Access Name Count + type: COUNT properties: name: description: |- @@ -98510,6 +100151,11 @@ components: type: object FilterAggregation: description: An additional filter to constrain the results of the search query. + example: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT properties: name: description: The name of the filter aggregate to be included in the result. @@ -98535,6 +100181,12 @@ components: type: object BucketAggregation: description: The bucket to group the results of the aggregation query by. + example: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS properties: name: description: The name of the bucket aggregate to be included in the result. @@ -98563,6 +100215,9 @@ components: - name type: object Value: + example: + type: STRING + value: Austin nullable: true properties: type: @@ -98827,6 +100482,8 @@ components: type: string type: object listAccessProfiles_401_response: + example: + error: "JWT validation failed: JWT is expired" properties: error: description: A message describing the error @@ -98834,6 +100491,8 @@ components: type: object type: object listAccessProfiles_429_response: + example: + message: ' Rate Limit Exceeded ' properties: message: description: A message describing the error @@ -99104,6 +100763,8 @@ components: type: object type: object updateAccessProfilesInBulk_412_response: + example: + message: ' API/Feature not enabled for your organization.' properties: message: description: A message describing the error @@ -99171,6 +100832,10 @@ components: type: string type: object createDomainDkim_405_response: + example: + errorName: NotSupportedException + errorMessage: Cannot consume content type + trackingId: e7eab60924f64aa284175b9fa3309599 properties: errorName: description: A message describing the error @@ -99213,6 +100878,17 @@ components: type: string type: object searchFormDefinitionsByTenant_400_response: + example: + messages: + - localeOrigin: DEFAULT + text: This is an error + locale: en-US + - localeOrigin: DEFAULT + text: This is an error + locale: en-US + detailCode: detailCode + statusCode: 0 + trackingId: trackingId properties: detailCode: type: string @@ -99638,9 +101314,12 @@ components: example: Employees type: string type: object - example: null Account_allOf_sourceOwner: description: The owner of this object. + example: + name: John Cavender + id: 4c5c8534e99445de98eef6c75e25eb01 + type: IDENTITY nullable: true properties: type: @@ -99658,10 +101337,13 @@ components: example: John Cavender type: string type: object - example: null Account_allOf_ownerIdentity: description: "The identity who owns this account, typically used for non-human\ \ accounts" + example: + name: Adam Kennedy + id: 2c918084660f45d6016617daa9210584 + type: IDENTITY nullable: true properties: type: @@ -99679,10 +101361,13 @@ components: example: Adam Kennedy type: string type: object - example: null Account_allOf_ownerGroup: description: "The governance group who owns this account, typically used for\ \ non-human accounts" + example: + name: GovGroup AX17Z + id: 8d3e0094e99445de98eef6c75e25jc04 + type: GOVERNANCE_GROUP nullable: true properties: type: @@ -99700,10 +101385,13 @@ components: example: GovGroup AX17Z type: string type: object - example: null Campaign_allOf_filter: description: Determines which items will be included in this campaign. The default campaign filter is used if this field is left blank. + example: + name: Test Filter + id: 0fbe863c063c4c88a35fd7f17e8a3df5 + type: CAMPAIGN_FILTER properties: id: description: The ID of whatever type of filter is being used. @@ -99721,9 +101409,11 @@ components: example: Test Filter type: string type: object - example: null Campaign_allOf_sourceOwnerCampaignInfo: description: Must be set only if the campaign type is SOURCE_OWNER. + example: + sourceIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 properties: sourceIds: description: The list of sources to be included in the campaign. @@ -99733,11 +101423,14 @@ components: type: string type: array type: object - example: null Campaign_allOf_searchCampaignInfo_reviewer: description: "If specified, this identity or governance group will be the reviewer\ \ for all certifications in this campaign. The allowed DTO types are IDENTITY\ \ and GOVERNANCE_GROUP." + example: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY properties: type: description: The reviewer's DTO type. @@ -99755,9 +101448,39 @@ components: example: William Wilson type: string type: object - example: null Campaign_allOf_searchCampaignInfo: description: Must be set only if the campaign type is SEARCH. + example: + identityIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 + query: Search Campaign query description + description: Search Campaign description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + type: ACCESS + accessConstraints: + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED properties: type: description: The type of search campaign represented. @@ -99798,12 +101521,15 @@ components: required: - type type: object - example: null Campaign_allOf_roleCompositionCampaignInfo_remediatorRef: description: "This determines who remediation tasks will be assigned to. Remediation\ \ tasks are created for each revoke decision on items in the campaign. The\ \ only legal remediator type is 'IDENTITY', and the chosen identity must be\ \ a Role Admin or Org Admin." + example: + name: Role Admin + id: 2c90ad2a70ace7d50170acf22ca90010 + type: IDENTITY properties: type: description: Legal Remediator Type @@ -99824,9 +101550,21 @@ components: - id - type type: object - example: null Campaign_allOf_roleCompositionCampaignInfo: description: Optional configuration options for role composition campaigns. + example: + remediatorRef: + name: Role Admin + id: 2c90ad2a70ace7d50170acf22ca90010 + type: IDENTITY + roleIds: + - 2c90ad2a70ace7d50170acf22ca90010 + query: Search Query + description: Role Composition Description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY properties: reviewer: $ref: '#/components/schemas/Campaign_allOf_searchCampaignInfo_reviewer' @@ -99855,8 +101593,11 @@ components: required: - remediatorRef type: object - example: null Campaign_allOf_sourcesWithOrphanEntitlements: + example: + name: Source with orphan entitlements + id: 2c90ad2a70ace7d50170acf22ca90010 + type: SOURCE properties: id: description: Id of the source @@ -99873,7 +101614,6 @@ components: example: Source with orphan entitlements type: string type: object - example: null EntitlementDocument_allOf_source: description: Entitlement's source. properties: @@ -99886,7 +101626,6 @@ components: example: ODS-HR-Employees type: string type: object - example: null IdentityDocument_allOf_manager: description: Identity's manager. nullable: true @@ -99904,7 +101643,6 @@ components: example: Amanda.Ross type: string type: object - example: null IdentityDocument_allOf_identityProfile: description: Identity's identity profile. properties: @@ -99917,7 +101655,6 @@ components: example: HR Employees type: string type: object - example: null IdentityDocument_allOf_source: description: Identity's source. properties: @@ -99930,9 +101667,12 @@ components: example: ODS-HR-Employees type: string type: object - example: null IdentityProfile_allOf_owner: description: The owner of the Identity Profile. + example: + name: William Wilson + id: 2c9180835d191a86015d28455b4b232a + type: IDENTITY nullable: true properties: type: @@ -99951,8 +101691,11 @@ components: example: William Wilson type: string type: object - example: null IdentityProfile_allOf_authoritativeSource: + example: + name: HR Active Directory + id: 2c9180835d191a86015d28455b4b232a + type: SOURCE properties: type: description: Type of the object to which this reference applies @@ -99970,9 +101713,11 @@ components: example: HR Active Directory type: string type: object - example: null ProvisioningConfig_planInitializerScript: description: This is a reference to a plan initializer script. + example: + source: | + \r\n\r\n\r\n Before Provisioning Rule which changes disables and enables to a modify.\r\n nullable: true properties: source: @@ -100136,6 +101881,9 @@ components: type: object ScheduledSearch_allOf_owner: description: The owner of the scheduled search + example: + id: 2c9180867624cbd7017642d8c8c81f67 + type: IDENTITY properties: type: description: The type of object being referenced @@ -100152,7 +101900,6 @@ components: - id - type type: object - example: null Source_owner: description: Reference to identity object who owns the source. example: @@ -100257,6 +102004,9 @@ components: account/identity. nullable: true type: object + example: + accountAttributeName: manager + identityAttributeName: manager Source_managerCorrelationRule: description: Reference to the ManagerCorrelationRule. Only use this rule when a simple filter isn't sufficient. @@ -100367,6 +102117,19 @@ components: - $ref: '#/components/schemas/FormDetails' - nullable: true type: object + example: + subtitle: Please select from the following + name: AccountSelection Form + id: 2c9180835d2e5168015d32f890ca1581 + title: Account Selection for John.Doe + targetUser: Jane.Doe + sections: + - formItems: [] + name: Field1 + label: Section 1 + - formItems: [] + name: Field1 + label: Section 1 array_inner: anyOf: - type: string @@ -100423,6 +102186,13 @@ components: - $ref: '#/components/schemas/CancelledRequestDetails' - nullable: true type: object + example: + owner: + name: Support + id: 2c9180a46faadee4016fb4e018c20639 + type: IDENTITY + modified: 2019-12-20T09:17:12.192Z + comment: This request must be cancelled. RequestedItemStatus_requestedFor: description: Identity access was requested for. example: @@ -100452,22 +102222,105 @@ components: - description: The requester's comment. nullable: true type: object + example: + created: 2017-07-11T18:45:37.098Z + author: + name: john.doe + id: 2c9180847e25f377017e2ae8cae4650b + type: IDENTITY + comment: This is a comment. RequestedItemStatus_sodViolationContext: allOf: - $ref: '#/components/schemas/SodViolationContextCheckCompleted' - description: The details of the SOD violations for the associated approval. nullable: true type: object + example: + violationCheckResult: + clientMetadata: + requestedAppName: test-app + requestedAppId: 2c91808f7892918f0178b78da4a305a1 + violationContexts: + - conflictingAccessCriteria: + leftCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + rightCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + policy: + name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + - conflictingAccessCriteria: + leftCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + rightCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + policy: + name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + violatedPolicies: + - name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + - name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + message: + localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + state: SUCCESS + uuid: f73d16e9-a038-46c5-b217-1246e15fdbdd RequestedItemStatus_provisioningDetails: allOf: - $ref: '#/components/schemas/ProvisioningDetails' - nullable: true type: object + example: + orderedSubPhaseReferences: manualWorkItemDetails RequestedItemStatus_preApprovalTriggerDetails: allOf: - $ref: '#/components/schemas/PreApprovalTriggerDetails' - nullable: true type: object + example: + decision: APPROVED + comment: Access is Approved + reviewer: John Doe PendingApproval_owner: description: Access item owner's identity. example: @@ -100495,12 +102348,26 @@ components: - $ref: '#/components/schemas/CommentDto' - description: The requester's comment. type: object + example: + created: 2017-07-11T18:45:37.098Z + author: + name: john.doe + id: 2c9180847e25f377017e2ae8cae4650b + type: IDENTITY + comment: This is a comment. CompletedApproval_reviewerComment: allOf: - $ref: '#/components/schemas/CommentDto' - description: The approval's reviewer's comment. nullable: true type: object + example: + created: 2017-07-11T18:45:37.098Z + author: + name: john.doe + id: 2c9180847e25f377017e2ae8cae4650b + type: IDENTITY + comment: This is a comment. CompletedApproval_preApprovalTriggerResult: description: "If the access request submitted event trigger is configured and\ \ this access request was intercepted by it, then this is the result of the\ @@ -100735,8 +102602,24 @@ components: - "true" type: object - $ref: '#/components/schemas/Filter' + example: + terms: + - account_count + - account_count + range: + lower: + inclusive: false + value: "1" + upper: + inclusive: false + value: "1" + exclude: false + type: RANGE nullable: true SearchSchedule_recipients_inner: + example: + id: 2c9180867624cbd7017642d8c8c81f67 + type: IDENTITY properties: type: description: The type of object being referenced @@ -100757,6 +102640,14 @@ components: - $ref: '#/components/schemas/VisibilityCriteria' - nullable: true type: object + example: + expression: + children: [] + attribute: location + value: + type: STRING + value: Austin + operator: EQUALS ReportDetails_arguments: description: The string-object map(dictionary) with the arguments needed for report processing. @@ -100838,6 +102729,25 @@ components: - $ref: '#/components/schemas/ConflictingAccessCriteria' - nullable: true type: object + example: + leftCriteria: + name: money-in + criteriaList: + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a66 + name: Administrator + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a67 + name: Administrator + rightCriteria: + name: money-in + criteriaList: + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a66 + name: Administrator + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a67 + name: Administrator IdentityWithNewAccess_accessRefs_inner: description: Entitlement including a specific set of access. properties: @@ -100858,6 +102768,10 @@ components: type: object Workflow_allOf_creator: description: Workflow creator's identity. + example: + name: Michael Michaels + id: 2c7180a46faadee4016fb4e018c20642 + type: IDENTITY properties: type: description: Workflow creator's DTO type. @@ -100874,7 +102788,6 @@ components: example: Michael Michaels type: string type: object - example: null WorkflowBody_owner: description: The identity that owns the workflow. The owner's permissions in IDN will determine what actions the workflow is allowed to perform. Ownership @@ -101037,6 +102950,10 @@ components: - $ref: '#/components/schemas/OwnerReferenceDto' - nullable: true type: object + example: + name: identity 1 + id: 2a2fdacca5e345f18bf7970cfbb8fec2 + type: IDENTITY Entitlement_1_manuallyUpdatedFields: allOf: - $ref: '#/components/schemas/ManuallyUpdatedFieldsDTO' @@ -101051,12 +102968,29 @@ components: DESCRIPTION: true nullable: true type: object + example: + DESCRIPTION: true + DISPLAY_NAME: true Entitlement_1_accessModelMetadata: allOf: - $ref: '#/components/schemas/AttributeDTOList' - description: Access Model Metadata (beta). nullable: true type: object + example: + attributes: + - key: iscPrivacy + name: Privacy + multiselect: false + status: active + type: governance + objectTypes: + - all + description: Specifies the level of privacy associated with an access item. + values: + - value: public + name: Public + status: active LoadEntitlementTask_returns_inner: properties: displayLabel: @@ -101148,6 +103082,10 @@ components: type: object IdentityDto_managerRef: description: Identity's manager. + example: + name: Robert Robinson + id: 2c4180a46faadee4016fb4e018c20626 + type: IDENTITY nullable: true properties: type: @@ -101165,7 +103103,13 @@ components: example: Robert Robinson type: string type: object - example: null + IdentityDto_attributes: + description: A map with the identity attributes for the identity + example: "{\"uid\":\"Walter White\",\"firstname\":\"walter\",\"cloudStatus\"\ + :\"UNREGISTERED\",\"displayName\":\"Walter White\",\"identificationNumber\"\ + :\"942\",\"lastSyncDate\":1470348809380,\"email\":\"walter@gmail.com\",\"\ + lastname\":\"white\"}" + type: object IdentityDto_lifecycleState: allOf: - $ref: '#/components/schemas/LifecycleStateDto' @@ -101173,7 +103117,16 @@ components: whether this lifecycle state has been set manually nullable: true type: object + example: + stateName: active + manuallyUpdated: true IdentityAssociationDetails_associationDetails_inner: + example: + entities: + id: b660a232f05b4e04812ca974b3011e0f + name: Gaston.800ddf9640a + type: CAMPAIGN_CAMPAIGNER + associationType: CAMPAIGN_OWNER properties: associationType: description: association type with the identity @@ -101231,8 +103184,34 @@ components: oneOf: - $ref: '#/components/schemas/EntityCreatedByDTO' - $ref: '#/components/schemas/NullableEntityCreatedByDTO' + SimIntegrationDetails_allOf_attributes: + description: The attributes map containing the credentials used to configure + the integration. + example: "{\"uid\":\"Walter White\",\"firstname\":\"walter\",\"cloudStatus\"\ + :\"UNREGISTERED\",\"displayName\":\"Walter White\",\"identificationNumber\"\ + :\"942\",\"lastSyncDate\":1470348809380,\"email\":\"walter@gmail.com\",\"\ + lastname\":\"white\"}" + nullable: true + type: object + SimIntegrationDetails_allOf_statusMap: + description: Custom mapping between the integration result and the provisioning + result + example: "{closed_cancelled=Failed, closed_complete=Committed, closed_incomplete=Failed,\ + \ closed_rejected=Failed, in_process=Queued, requested=Queued}" + type: object + SimIntegrationDetails_allOf_request: + description: Request data to customize desc and body of the created ticket + example: "{description=SailPoint Access Request,, req_description=The Service\ + \ Request created by SailPoint ServiceNow Service Integration Module (SIM).,,\ + \ req_short_description=SailPoint New Access Request Created from IdentityNow,,\ + \ short_description=SailPoint Access Request $!plan.arguments.identityRequestId}" + type: object SimIntegrationDetails_allOf_beforeProvisioningRule: description: Before provisioning rule of integration + example: + name: Example Rule + id: 2c918085708c274401708c2a8a760001 + type: IDENTITY properties: type: $ref: '#/components/schemas/DtoType' @@ -101245,7 +103224,6 @@ components: example: Example Rule type: string type: object - example: null LoadAccountsTask_task_messages_inner: properties: type: @@ -101901,6 +103879,12 @@ components: readOnly: true type: string type: object + example: + emailAddress: support@sailpoint.com + displayName: Support + name: Support + id: 2c9180a46faadee4016fb4e018c20639 + type: IDENTITY FormDefinitionDynamicSchemaRequest_attributes: example: formDefinitionId: 00000000-0000-0000-0000-000000000000 @@ -102040,6 +104024,10 @@ components: - $ref: '#/components/schemas/AccessItemReviewedBy' - nullable: true type: object + example: + name: Allen Albertson + id: 2c3780a46faadee4016fb4e018c20652 + type: IDENTITY ManualWorkItemDetails_originalOwner: description: "Identity of original work item owner, if the work item has been\ \ forwarded." @@ -102161,6 +104149,12 @@ components: - "12" nullable: true type: object + example: + values: + - MON + - WED + interval: 3 + type: LIST Schedule_1_days: allOf: - $ref: '#/components/schemas/Selector' @@ -102178,6 +104172,12 @@ components: - FRI nullable: true type: object + example: + values: + - MON + - WED + interval: 3 + type: LIST Schedule_1_hours: allOf: - $ref: '#/components/schemas/Selector' @@ -102189,6 +104189,12 @@ components: - "18" interval: 3 type: object + example: + values: + - MON + - WED + interval: 3 + type: LIST ViolationOwnerAssignmentConfig_ownerRef: description: The owner of the violation assignment config. example: @@ -102336,6 +104342,9 @@ components: type: object ProvisioningConfig_1_planInitializerScript: description: This is a reference to a plan initializer script. + example: + source: | + \r\n\r\n\r\n Before Provisioning Rule which changes disables and enables to a modify.\r\n properties: source: description: This is a Rule that allows provisioning instruction changes. @@ -102344,6 +104353,13 @@ components: type: string type: object AccessRequestDynamicApprover_requestedItems_inner: + example: + name: Engineering Access + description: Engineering Access + comment: William needs this access for his day to day job activities. + id: 2c91808b6ef1d43e016efba0ce470904 + type: ACCESS_PROFILE + operation: Add properties: id: description: The unique ID of the access item. @@ -103670,7 +105686,6 @@ components: example: cloud-support@sailpoint.com type: string type: object - example: null AccountRequest_result: properties: errors: @@ -103708,7 +105723,6 @@ components: example: "CN=Carol Adams,OU=Austin,OU=Americas,OU=Demo,DC=seri,DC=sailpointdemo,DC=com" type: string type: object - example: null DataAccess_policies_inner: example: value: GDPR-20 diff --git a/api_v2024/api_access_model_metadata.go b/api_v2024/api_access_model_metadata.go index 265da6e0e..d07192d7c 100644 --- a/api_v2024/api_access_model_metadata.go +++ b/api_v2024/api_access_model_metadata.go @@ -105,7 +105,7 @@ func (a *AccessModelMetadataAPIService) GetAccessModelMetadataAttributeExecute(r if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -283,7 +283,7 @@ func (a *AccessModelMetadataAPIService) GetAccessModelMetadataAttributeValueExec if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -444,7 +444,7 @@ func (a *AccessModelMetadataAPIService) ListAccessModelMetadataAttributeExecute( } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -463,7 +463,7 @@ func (a *AccessModelMetadataAPIService) ListAccessModelMetadataAttributeExecute( if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -637,7 +637,7 @@ func (a *AccessModelMetadataAPIService) ListAccessModelMetadataAttributeValueExe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_v2024/api_access_profiles.go b/api_v2024/api_access_profiles.go index 219941b74..1e97638d9 100644 --- a/api_v2024/api_access_profiles.go +++ b/api_v2024/api_access_profiles.go @@ -753,28 +753,28 @@ func (a *AccessProfilesAPIService) GetAccessProfileEntitlementsExecute(r ApiGetA localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -988,37 +988,37 @@ func (a *AccessProfilesAPIService) ListAccessProfilesExecute(r ApiListAccessProf localVarFormParams := url.Values{} if r.forSubadmin != nil { - parameterAddToQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 50 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.forSegmentIds != nil { - parameterAddToQuery(localVarQueryParams, "for-segment-ids", r.forSegmentIds, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "for-segment-ids", r.forSegmentIds, "", "") } if r.includeUnsegmented != nil { - parameterAddToQuery(localVarQueryParams, "include-unsegmented", r.includeUnsegmented, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-unsegmented", r.includeUnsegmented, "", "") } else { var defaultValue bool = true r.includeUnsegmented = &defaultValue @@ -1427,7 +1427,7 @@ func (a *AccessProfilesAPIService) UpdateAccessProfilesInBulkExecute(r ApiUpdate if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.accessProfileBulkUpdateRequestInner req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_access_request_approvals.go b/api_v2024/api_access_request_approvals.go index bea459bb9..c4a84cc6f 100644 --- a/api_v2024/api_access_request_approvals.go +++ b/api_v2024/api_access_request_approvals.go @@ -443,10 +443,10 @@ func (a *AccessRequestApprovalsAPIService) GetAccessRequestApprovalSummaryExecut localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "owner-id", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "owner-id", r.ownerId, "", "") } if r.fromDate != nil { - parameterAddToQuery(localVarQueryParams, "from-date", r.fromDate, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "from-date", r.fromDate, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -644,31 +644,31 @@ func (a *AccessRequestApprovalsAPIService) ListCompletedApprovalsExecute(r ApiLi localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "owner-id", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "owner-id", r.ownerId, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -866,31 +866,31 @@ func (a *AccessRequestApprovalsAPIService) ListPendingApprovalsExecute(r ApiList localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "owner-id", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "owner-id", r.ownerId, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_access_request_identity_metrics.go b/api_v2024/api_access_request_identity_metrics.go index ba42d3461..e5d72b6f3 100644 --- a/api_v2024/api_access_request_identity_metrics.go +++ b/api_v2024/api_access_request_identity_metrics.go @@ -113,7 +113,7 @@ func (a *AccessRequestIdentityMetricsAPIService) GetAccessRequestIdentityMetrics if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_v2024/api_access_requests.go b/api_v2024/api_access_requests.go index fb877daee..6e1e073bb 100644 --- a/api_v2024/api_access_requests.go +++ b/api_v2024/api_access_requests.go @@ -302,7 +302,7 @@ func (a *AccessRequestsAPIService) CloseAccessRequestExecute(r ApiCloseAccessReq if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.closeAccessRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -856,37 +856,37 @@ func (a *AccessRequestsAPIService) ListAccessRequestStatusExecute(r ApiListAcces localVarFormParams := url.Values{} if r.requestedFor != nil { - parameterAddToQuery(localVarQueryParams, "requested-for", r.requestedFor, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-for", r.requestedFor, "", "") } if r.requestedBy != nil { - parameterAddToQuery(localVarQueryParams, "requested-by", r.requestedBy, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-by", r.requestedBy, "", "") } if r.regardingIdentity != nil { - parameterAddToQuery(localVarQueryParams, "regarding-identity", r.regardingIdentity, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "regarding-identity", r.regardingIdentity, "", "") } if r.assignedTo != nil { - parameterAddToQuery(localVarQueryParams, "assigned-to", r.assignedTo, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned-to", r.assignedTo, "", "") } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_account_activities.go b/api_v2024/api_account_activities.go index 5d7bc1d17..b17fdefb5 100644 --- a/api_v2024/api_account_activities.go +++ b/api_v2024/api_account_activities.go @@ -293,37 +293,37 @@ func (a *AccountActivitiesAPIService) ListAccountActivitiesExecute(r ApiListAcco localVarFormParams := url.Values{} if r.requestedFor != nil { - parameterAddToQuery(localVarQueryParams, "requested-for", r.requestedFor, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-for", r.requestedFor, "", "") } if r.requestedBy != nil { - parameterAddToQuery(localVarQueryParams, "requested-by", r.requestedBy, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-by", r.requestedBy, "", "") } if r.regardingIdentity != nil { - parameterAddToQuery(localVarQueryParams, "regarding-identity", r.regardingIdentity, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "regarding-identity", r.regardingIdentity, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_account_aggregations.go b/api_v2024/api_account_aggregations.go index 3d4506f3b..6fbbeb1e4 100644 --- a/api_v2024/api_account_aggregations.go +++ b/api_v2024/api_account_aggregations.go @@ -113,7 +113,7 @@ func (a *AccountAggregationsAPIService) GetAccountAggregationStatusExecute(r Api if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_v2024/api_account_usages.go b/api_v2024/api_account_usages.go index 548475988..ca645c302 100644 --- a/api_v2024/api_account_usages.go +++ b/api_v2024/api_account_usages.go @@ -101,25 +101,25 @@ func (a *AccountUsagesAPIService) GetUsagesByAccountIdExecute(r ApiGetUsagesByAc localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_accounts.go b/api_v2024/api_accounts.go index e6acfee6a..f8663bc54 100644 --- a/api_v2024/api_accounts.go +++ b/api_v2024/api_accounts.go @@ -460,7 +460,7 @@ func (a *AccountsAPIService) DeleteAccountAsyncExecute(r ApiDeleteAccountAsyncRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -814,7 +814,7 @@ func (a *AccountsAPIService) DisableAccountForIdentityExecute(r ApiDisableAccoun if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1010,7 +1010,7 @@ func (a *AccountsAPIService) DisableAccountsForIdentitiesExecute(r ApiDisableAcc if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.identitiesAccountsBulkRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1366,7 +1366,7 @@ func (a *AccountsAPIService) EnableAccountForIdentityExecute(r ApiEnableAccountF if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1562,7 +1562,7 @@ func (a *AccountsAPIService) EnableAccountsForIdentitiesExecute(r ApiEnableAccou if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.identitiesAccountsBulkRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1897,19 +1897,19 @@ func (a *AccountsAPIService) GetAccountEntitlementsExecute(r ApiGetAccountEntitl localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -2115,28 +2115,28 @@ func (a *AccountsAPIService) ListAccountsExecute(r ApiListAccountsRequest) ([]Ac localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_application_discovery.go b/api_v2024/api_application_discovery.go index dde7a20a1..389fda44f 100644 --- a/api_v2024/api_application_discovery.go +++ b/api_v2024/api_application_discovery.go @@ -105,25 +105,25 @@ func (a *ApplicationDiscoveryAPIService) GetDiscoveredApplicationsExecute(r ApiG localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.detail != nil { - parameterAddToQuery(localVarQueryParams, "detail", r.detail, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "detail", r.detail, "", "") } if r.filter != nil { - parameterAddToQuery(localVarQueryParams, "filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filter", r.filter, "form", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_approvals.go b/api_v2024/api_approvals.go index b3f41814b..c69d5366c 100644 --- a/api_v2024/api_approvals.go +++ b/api_v2024/api_approvals.go @@ -105,7 +105,7 @@ func (a *ApprovalsAPIService) GetApprovalExecute(r ApiGetApprovalRequest) (*Appr if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -281,13 +281,13 @@ func (a *ApprovalsAPIService) GetApprovalsExecute(r ApiGetApprovalsRequest) ([]A } if r.mine != nil { - parameterAddToQuery(localVarQueryParams, "mine", r.mine, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "mine", r.mine, "", "") } if r.requesterId != nil { - parameterAddToQuery(localVarQueryParams, "requesterId", r.requesterId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requesterId", r.requesterId, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -306,7 +306,7 @@ func (a *ApprovalsAPIService) GetApprovalsExecute(r ApiGetApprovalsRequest) ([]A if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -491,7 +491,7 @@ func (a *ApprovalsAPIService) PatchApprovalExecute(r ApiPatchApprovalRequest) (* if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.approvalDto req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_auth_profile.go b/api_v2024/api_auth_profile.go index 7ccce8ab3..a6c27d7fb 100644 --- a/api_v2024/api_auth_profile.go +++ b/api_v2024/api_auth_profile.go @@ -101,7 +101,7 @@ func (a *AuthProfileAPIService) GetProfileConfigExecute(r ApiGetProfileConfigReq if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -282,7 +282,7 @@ func (a *AuthProfileAPIService) GetProfileConfigListExecute(r ApiGetProfileConfi if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -472,7 +472,7 @@ func (a *AuthProfileAPIService) PatchProfileConfigExecute(r ApiPatchProfileConfi if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.jsonPatchOperation req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_branding.go b/api_v2024/api_branding.go index d8ad02ee3..3d841cca0 100644 --- a/api_v2024/api_branding.go +++ b/api_v2024/api_branding.go @@ -149,22 +149,22 @@ func (a *BrandingAPIService) CreateBrandingItemExecute(r ApiCreateBrandingItemRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarFormParams, "name", r.name, "") - parameterAddToQuery(localVarFormParams, "productName", r.productName, "") + parameterAddToHeaderOrQuery(localVarFormParams, "name", r.name, "", "") + parameterAddToHeaderOrQuery(localVarFormParams, "productName", r.productName, "", "") if r.actionButtonColor != nil { - parameterAddToQuery(localVarFormParams, "actionButtonColor", r.actionButtonColor, "") + parameterAddToHeaderOrQuery(localVarFormParams, "actionButtonColor", r.actionButtonColor, "", "") } if r.activeLinkColor != nil { - parameterAddToQuery(localVarFormParams, "activeLinkColor", r.activeLinkColor, "") + parameterAddToHeaderOrQuery(localVarFormParams, "activeLinkColor", r.activeLinkColor, "", "") } if r.navigationColor != nil { - parameterAddToQuery(localVarFormParams, "navigationColor", r.navigationColor, "") + parameterAddToHeaderOrQuery(localVarFormParams, "navigationColor", r.navigationColor, "", "") } if r.emailFromAddress != nil { - parameterAddToQuery(localVarFormParams, "emailFromAddress", r.emailFromAddress, "") + parameterAddToHeaderOrQuery(localVarFormParams, "emailFromAddress", r.emailFromAddress, "", "") } if r.loginInformationalMessage != nil { - parameterAddToQuery(localVarFormParams, "loginInformationalMessage", r.loginInformationalMessage, "") + parameterAddToHeaderOrQuery(localVarFormParams, "loginInformationalMessage", r.loginInformationalMessage, "", "") } var fileStandardLocalVarFormFileName string var fileStandardLocalVarFileName string @@ -883,22 +883,22 @@ func (a *BrandingAPIService) SetBrandingItemExecute(r ApiSetBrandingItemRequest) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarFormParams, "name", r.name2, "") - parameterAddToQuery(localVarFormParams, "productName", r.productName, "") + parameterAddToHeaderOrQuery(localVarFormParams, "name", r.name2, "", "") + parameterAddToHeaderOrQuery(localVarFormParams, "productName", r.productName, "", "") if r.actionButtonColor != nil { - parameterAddToQuery(localVarFormParams, "actionButtonColor", r.actionButtonColor, "") + parameterAddToHeaderOrQuery(localVarFormParams, "actionButtonColor", r.actionButtonColor, "", "") } if r.activeLinkColor != nil { - parameterAddToQuery(localVarFormParams, "activeLinkColor", r.activeLinkColor, "") + parameterAddToHeaderOrQuery(localVarFormParams, "activeLinkColor", r.activeLinkColor, "", "") } if r.navigationColor != nil { - parameterAddToQuery(localVarFormParams, "navigationColor", r.navigationColor, "") + parameterAddToHeaderOrQuery(localVarFormParams, "navigationColor", r.navigationColor, "", "") } if r.emailFromAddress != nil { - parameterAddToQuery(localVarFormParams, "emailFromAddress", r.emailFromAddress, "") + parameterAddToHeaderOrQuery(localVarFormParams, "emailFromAddress", r.emailFromAddress, "", "") } if r.loginInformationalMessage != nil { - parameterAddToQuery(localVarFormParams, "loginInformationalMessage", r.loginInformationalMessage, "") + parameterAddToHeaderOrQuery(localVarFormParams, "loginInformationalMessage", r.loginInformationalMessage, "", "") } var fileStandardLocalVarFormFileName string var fileStandardLocalVarFileName string diff --git a/api_v2024/api_certification_campaign_filters.go b/api_v2024/api_certification_campaign_filters.go index b37c3b7bb..aed66659d 100644 --- a/api_v2024/api_certification_campaign_filters.go +++ b/api_v2024/api_certification_campaign_filters.go @@ -587,19 +587,19 @@ func (a *CertificationCampaignFiltersAPIService) ListCampaignFiltersExecute(r Ap localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.start != nil { - parameterAddToQuery(localVarQueryParams, "start", r.start, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "start", r.start, "", "") } else { var defaultValue int32 = 0 r.start = &defaultValue } if r.includeSystemFilters != nil { - parameterAddToQuery(localVarQueryParams, "includeSystemFilters", r.includeSystemFilters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "includeSystemFilters", r.includeSystemFilters, "", "") } else { var defaultValue bool = true r.includeSystemFilters = &defaultValue diff --git a/api_v2024/api_certification_campaigns.go b/api_v2024/api_certification_campaigns.go index e7a872c96..309bdd9a5 100644 --- a/api_v2024/api_certification_campaigns.go +++ b/api_v2024/api_certification_campaigns.go @@ -1136,31 +1136,31 @@ func (a *CertificationCampaignsAPIService) GetActiveCampaignsExecute(r ApiGetAct localVarFormParams := url.Values{} if r.detail != nil { - parameterAddToQuery(localVarQueryParams, "detail", r.detail, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "detail", r.detail, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1330,7 +1330,7 @@ func (a *CertificationCampaignsAPIService) GetCampaignExecute(r ApiGetCampaignRe localVarFormParams := url.Values{} if r.detail != nil { - parameterAddToQuery(localVarQueryParams, "detail", r.detail, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "detail", r.detail, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2206,28 +2206,28 @@ func (a *CertificationCampaignsAPIService) GetCampaignTemplatesExecute(r ApiGetC localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_certification_summaries.go b/api_v2024/api_certification_summaries.go index af6e9181f..fa3245668 100644 --- a/api_v2024/api_certification_summaries.go +++ b/api_v2024/api_certification_summaries.go @@ -112,28 +112,28 @@ func (a *CertificationSummariesAPIService) GetIdentityAccessSummariesExecute(r A localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -311,7 +311,7 @@ func (a *CertificationSummariesAPIService) GetIdentityDecisionSummaryExecute(r A localVarFormParams := url.Values{} if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -517,28 +517,28 @@ func (a *CertificationSummariesAPIService) GetIdentitySummariesExecute(r ApiGetI localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_certifications.go b/api_v2024/api_certifications.go index 6cc609464..6e1f128fe 100644 --- a/api_v2024/api_certifications.go +++ b/api_v2024/api_certifications.go @@ -441,22 +441,22 @@ func (a *CertificationsAPIService) GetIdentityCertificationItemPermissionsExecut localVarFormParams := url.Values{} if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -661,28 +661,28 @@ func (a *CertificationsAPIService) GetPendingCertificationTasksExecute(r ApiGetP localVarFormParams := url.Values{} if r.reviewerIdentity != nil { - parameterAddToQuery(localVarQueryParams, "reviewer-identity", r.reviewerIdentity, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "reviewer-identity", r.reviewerIdentity, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -888,28 +888,28 @@ func (a *CertificationsAPIService) ListCertificationReviewersExecute(r ApiListCe localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1136,37 +1136,37 @@ func (a *CertificationsAPIService) ListIdentityAccessReviewItemsExecute(r ApiLis localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.entitlements != nil { - parameterAddToQuery(localVarQueryParams, "entitlements", r.entitlements, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "entitlements", r.entitlements, "", "") } if r.accessProfiles != nil { - parameterAddToQuery(localVarQueryParams, "access-profiles", r.accessProfiles, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "access-profiles", r.accessProfiles, "", "") } if r.roles != nil { - parameterAddToQuery(localVarQueryParams, "roles", r.roles, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "roles", r.roles, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1375,31 +1375,31 @@ func (a *CertificationsAPIService) ListIdentityCertificationsExecute(r ApiListId localVarFormParams := url.Values{} if r.reviewerIdentity != nil { - parameterAddToQuery(localVarQueryParams, "reviewer-identity", r.reviewerIdentity, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "reviewer-identity", r.reviewerIdentity, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_configuration_hub.go b/api_v2024/api_configuration_hub.go index 6e149f8ba..598d9f044 100644 --- a/api_v2024/api_configuration_hub.go +++ b/api_v2024/api_configuration_hub.go @@ -1097,7 +1097,7 @@ func (a *ConfigurationHubAPIService) GetUploadedBackupsExecute(r ApiGetUploadedB localVarFormParams := url.Values{} if r.status != nil { - parameterAddToQuery(localVarQueryParams, "status", r.status, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1318,7 +1318,7 @@ func (a *ConfigurationHubAPIService) ImportUploadedBackupExecute(r ApiImportUplo dataLocalVarFile.Close() formFiles = append(formFiles, formFile{fileBytes: dataLocalVarFileBytes, fileName: dataLocalVarFileName, formFileName: dataLocalVarFormFileName}) } - parameterAddToQuery(localVarFormParams, "name", r.name, "") + parameterAddToHeaderOrQuery(localVarFormParams, "name", r.name, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_v2024/api_connector_rule_management.go b/api_v2024/api_connector_rule_management.go index 82a3b288b..a6075d6ab 100644 --- a/api_v2024/api_connector_rule_management.go +++ b/api_v2024/api_connector_rule_management.go @@ -118,7 +118,7 @@ func (a *ConnectorRuleManagementAPIService) CreateConnectorRuleExecute(r ApiCrea if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.connectorRuleCreateRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -293,7 +293,7 @@ func (a *ConnectorRuleManagementAPIService) DeleteConnectorRuleExecute(r ApiDele if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -470,7 +470,7 @@ func (a *ConnectorRuleManagementAPIService) GetConnectorRuleExecute(r ApiGetConn if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -652,7 +652,7 @@ func (a *ConnectorRuleManagementAPIService) GetConnectorRuleListExecute(r ApiGet if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -834,7 +834,7 @@ func (a *ConnectorRuleManagementAPIService) UpdateConnectorRuleExecute(r ApiUpda if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.connectorRuleUpdateRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1034,7 +1034,7 @@ func (a *ConnectorRuleManagementAPIService) ValidateConnectorRuleExecute(r ApiVa if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.sourceCode req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_connectors.go b/api_v2024/api_connectors.go index 4abe8794b..57569ac35 100644 --- a/api_v2024/api_connectors.go +++ b/api_v2024/api_connectors.go @@ -416,7 +416,7 @@ func (a *ConnectorsAPIService) GetConnectorExecute(r ApiGetConnectorRequest) (*C localVarFormParams := url.Values{} if r.locale != nil { - parameterAddToQuery(localVarQueryParams, "locale", r.locale, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -788,28 +788,28 @@ func (a *ConnectorsAPIService) GetConnectorListExecute(r ApiGetConnectorListRequ localVarFormParams := url.Values{} if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.locale != nil { - parameterAddToQuery(localVarQueryParams, "locale", r.locale, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_custom_forms.go b/api_v2024/api_custom_forms.go index 838a0876e..3ee3acf0d 100644 --- a/api_v2024/api_custom_forms.go +++ b/api_v2024/api_custom_forms.go @@ -107,7 +107,7 @@ func (a *CustomFormsAPIService) CreateFormDefinitionExecute(r ApiCreateFormDefin if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -284,7 +284,7 @@ func (a *CustomFormsAPIService) CreateFormDefinitionDynamicSchemaExecute(r ApiCr if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -487,7 +487,7 @@ func (a *CustomFormsAPIService) CreateFormDefinitionFileRequestExecute(r ApiCrea if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") var fileLocalVarFormFileName string var fileLocalVarFileName string var fileLocalVarFileBytes []byte @@ -721,7 +721,7 @@ func (a *CustomFormsAPIService) CreateFormInstanceExecute(r ApiCreateFormInstanc if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -897,7 +897,7 @@ func (a *CustomFormsAPIService) DeleteFormDefinitionExecute(r ApiDeleteFormDefin if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1090,22 +1090,22 @@ func (a *CustomFormsAPIService) ExportFormDefinitionsByTenantExecute(r ApiExport } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int64 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int64 = 250 r.limit = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } else { var defaultValue string = "name" r.sorters = &defaultValue @@ -1127,7 +1127,7 @@ func (a *CustomFormsAPIService) ExportFormDefinitionsByTenantExecute(r ApiExport if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1303,7 +1303,7 @@ func (a *CustomFormsAPIService) GetFileFromS3Execute(r ApiGetFileFromS3Request) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1499,7 +1499,7 @@ func (a *CustomFormsAPIService) GetFormDefinitionByKeyExecute(r ApiGetFormDefini if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1684,7 +1684,7 @@ func (a *CustomFormsAPIService) GetFormInstanceByKeyExecute(r ApiGetFormInstance if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1871,7 +1871,7 @@ func (a *CustomFormsAPIService) GetFormInstanceFileExecute(r ApiGetFormInstanceF if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2068,7 +2068,7 @@ func (a *CustomFormsAPIService) ImportFormDefinitionsExecute(r ApiImportFormDefi if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -2251,7 +2251,7 @@ func (a *CustomFormsAPIService) PatchFormDefinitionExecute(r ApiPatchFormDefinit if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -2445,7 +2445,7 @@ func (a *CustomFormsAPIService) PatchFormInstanceExecute(r ApiPatchFormInstanceR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -2651,22 +2651,22 @@ func (a *CustomFormsAPIService) SearchFormDefinitionsByTenantExecute(r ApiSearch } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int64 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int64 = 250 r.limit = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } else { var defaultValue string = "name" r.sorters = &defaultValue @@ -2688,7 +2688,7 @@ func (a *CustomFormsAPIService) SearchFormDefinitionsByTenantExecute(r ApiSearch if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2872,16 +2872,16 @@ func (a *CustomFormsAPIService) SearchFormElementDataByElementIDExecute(r ApiSea } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int64 = 250 r.limit = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.query != nil { - parameterAddToQuery(localVarQueryParams, "query", r.query, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "query", r.query, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2900,7 +2900,7 @@ func (a *CustomFormsAPIService) SearchFormElementDataByElementIDExecute(r ApiSea if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3081,7 +3081,7 @@ func (a *CustomFormsAPIService) SearchFormInstancesByTenantExecute(r ApiSearchFo if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3251,7 +3251,7 @@ func (a *CustomFormsAPIService) SearchPreDefinedSelectOptionsExecute(r ApiSearch if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3435,16 +3435,16 @@ func (a *CustomFormsAPIService) ShowPreviewDataSourceExecute(r ApiShowPreviewDat } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int64 = 10 r.limit = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.query != nil { - parameterAddToQuery(localVarQueryParams, "query", r.query, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "query", r.query, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -3463,7 +3463,7 @@ func (a *CustomFormsAPIService) ShowPreviewDataSourceExecute(r ApiShowPreviewDat if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.formElementPreviewRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_custom_password_instructions.go b/api_v2024/api_custom_password_instructions.go index 7b63b1cde..e716e2df4 100644 --- a/api_v2024/api_custom_password_instructions.go +++ b/api_v2024/api_custom_password_instructions.go @@ -116,7 +116,7 @@ func (a *CustomPasswordInstructionsAPIService) CreateCustomPasswordInstructionsE if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.customPasswordInstruction req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -259,7 +259,7 @@ func (a *CustomPasswordInstructionsAPIService) DeleteCustomPasswordInstructionsE } if r.locale != nil { - parameterAddToQuery(localVarQueryParams, "locale", r.locale, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -278,7 +278,7 @@ func (a *CustomPasswordInstructionsAPIService) DeleteCustomPasswordInstructionsE if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -423,7 +423,7 @@ func (a *CustomPasswordInstructionsAPIService) GetCustomPasswordInstructionsExec } if r.locale != nil { - parameterAddToQuery(localVarQueryParams, "locale", r.locale, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -442,7 +442,7 @@ func (a *CustomPasswordInstructionsAPIService) GetCustomPasswordInstructionsExec if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_v2024/api_entitlements.go b/api_v2024/api_entitlements.go index 0cd9ecc31..df5057eca 100644 --- a/api_v2024/api_entitlements.go +++ b/api_v2024/api_entitlements.go @@ -114,7 +114,7 @@ func (a *EntitlementsAPIService) CreateAccessModelMetadataForEntitlementExecute( if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -294,7 +294,7 @@ func (a *EntitlementsAPIService) DeleteAccessModelMetadataFromEntitlementExecute if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -459,7 +459,7 @@ func (a *EntitlementsAPIService) GetEntitlementExecute(r ApiGetEntitlementReques if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -644,7 +644,7 @@ func (a *EntitlementsAPIService) GetEntitlementRequestConfigExecute(r ApiGetEnti if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -843,7 +843,7 @@ func (a *EntitlementsAPIService) ImportEntitlementsBySourceExecute(r ApiImportEn if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") var csvFileLocalVarFormFileName string var csvFileLocalVarFileName string var csvFileLocalVarFileBytes []byte @@ -1051,28 +1051,28 @@ func (a *EntitlementsAPIService) ListEntitlementChildrenExecute(r ApiListEntitle } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1091,7 +1091,7 @@ func (a *EntitlementsAPIService) ListEntitlementChildrenExecute(r ApiListEntitle if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1295,28 +1295,28 @@ func (a *EntitlementsAPIService) ListEntitlementParentsExecute(r ApiListEntitlem } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1335,7 +1335,7 @@ func (a *EntitlementsAPIService) ListEntitlementParentsExecute(r ApiListEntitlem if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1567,43 +1567,43 @@ func (a *EntitlementsAPIService) ListEntitlementsExecute(r ApiListEntitlementsRe } if r.accountId != nil { - parameterAddToQuery(localVarQueryParams, "account-id", r.accountId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "account-id", r.accountId, "", "") } if r.segmentedForIdentity != nil { - parameterAddToQuery(localVarQueryParams, "segmented-for-identity", r.segmentedForIdentity, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "segmented-for-identity", r.segmentedForIdentity, "", "") } if r.forSegmentIds != nil { - parameterAddToQuery(localVarQueryParams, "for-segment-ids", r.forSegmentIds, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "for-segment-ids", r.forSegmentIds, "", "") } if r.includeUnsegmented != nil { - parameterAddToQuery(localVarQueryParams, "include-unsegmented", r.includeUnsegmented, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-unsegmented", r.includeUnsegmented, "", "") } else { var defaultValue bool = true r.includeUnsegmented = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1622,7 +1622,7 @@ func (a *EntitlementsAPIService) ListEntitlementsExecute(r ApiListEntitlementsRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1808,7 +1808,7 @@ func (a *EntitlementsAPIService) PatchEntitlementExecute(r ApiPatchEntitlementRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.jsonPatchOperation req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -2010,7 +2010,7 @@ func (a *EntitlementsAPIService) PutEntitlementRequestConfigExecute(r ApiPutEnti if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.entitlementRequestConfig req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -2197,7 +2197,7 @@ func (a *EntitlementsAPIService) ResetSourceEntitlementsExecute(r ApiResetSource if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2386,7 +2386,7 @@ func (a *EntitlementsAPIService) UpdateEntitlementsInBulkExecute(r ApiUpdateEnti if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.entitlementBulkUpdateRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_governance_groups.go b/api_v2024/api_governance_groups.go index 540dd598c..456257614 100644 --- a/api_v2024/api_governance_groups.go +++ b/api_v2024/api_governance_groups.go @@ -116,7 +116,7 @@ func (a *GovernanceGroupsAPIService) CreateWorkgroupExecute(r ApiCreateWorkgroup if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.workgroupDto req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -290,7 +290,7 @@ func (a *GovernanceGroupsAPIService) DeleteWorkgroupExecute(r ApiDeleteWorkgroup if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -475,7 +475,7 @@ func (a *GovernanceGroupsAPIService) DeleteWorkgroupMembersExecute(r ApiDeleteWo if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.identityPreviewResponseIdentity req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -673,7 +673,7 @@ func (a *GovernanceGroupsAPIService) DeleteWorkgroupsInBulkExecute(r ApiDeleteWo if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.workgroupBulkDeleteRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -849,7 +849,7 @@ func (a *GovernanceGroupsAPIService) GetWorkgroupExecute(r ApiGetWorkgroupReques if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1035,25 +1035,25 @@ func (a *GovernanceGroupsAPIService) ListConnectionsExecute(r ApiListConnections } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 50 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1072,7 +1072,7 @@ func (a *GovernanceGroupsAPIService) ListConnectionsExecute(r ApiListConnections if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1258,25 +1258,25 @@ func (a *GovernanceGroupsAPIService) ListWorkgroupMembersExecute(r ApiListWorkgr } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 50 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1295,7 +1295,7 @@ func (a *GovernanceGroupsAPIService) ListWorkgroupMembersExecute(r ApiListWorkgr if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1484,28 +1484,28 @@ func (a *GovernanceGroupsAPIService) ListWorkgroupsExecute(r ApiListWorkgroupsRe } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 50 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1524,7 +1524,7 @@ func (a *GovernanceGroupsAPIService) ListWorkgroupsExecute(r ApiListWorkgroupsRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1710,7 +1710,7 @@ func (a *GovernanceGroupsAPIService) PatchWorkgroupExecute(r ApiPatchWorkgroupRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.jsonPatchOperation req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1906,7 +1906,7 @@ func (a *GovernanceGroupsAPIService) UpdateWorkgroupMembersExecute(r ApiUpdateWo if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.identityPreviewResponseIdentity req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_iai_access_request_recommendations.go b/api_v2024/api_iai_access_request_recommendations.go index 236b7a64b..d8038e9dd 100644 --- a/api_v2024/api_iai_access_request_recommendations.go +++ b/api_v2024/api_iai_access_request_recommendations.go @@ -116,7 +116,7 @@ func (a *IAIAccessRequestRecommendationsAPIService) AddAccessRequestRecommendati if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.accessRequestRecommendationActionItemDto req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -304,7 +304,7 @@ func (a *IAIAccessRequestRecommendationsAPIService) AddAccessRequestRecommendati if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.accessRequestRecommendationActionItemDto req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -492,7 +492,7 @@ func (a *IAIAccessRequestRecommendationsAPIService) AddAccessRequestRecommendati if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.accessRequestRecommendationActionItemDto req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -680,7 +680,7 @@ func (a *IAIAccessRequestRecommendationsAPIService) AddAccessRequestRecommendati if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.accessRequestRecommendationActionItemDto req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -885,40 +885,40 @@ func (a *IAIAccessRequestRecommendationsAPIService) GetAccessRequestRecommendati } if r.identityId != nil { - parameterAddToQuery(localVarQueryParams, "identity-id", r.identityId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "identity-id", r.identityId, "", "") } else { var defaultValue string = "me" r.identityId = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 15 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.includeTranslationMessages != nil { - parameterAddToQuery(localVarQueryParams, "include-translation-messages", r.includeTranslationMessages, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-translation-messages", r.includeTranslationMessages, "", "") } else { var defaultValue bool = false r.includeTranslationMessages = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -937,7 +937,7 @@ func (a *IAIAccessRequestRecommendationsAPIService) GetAccessRequestRecommendati if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1126,28 +1126,28 @@ func (a *IAIAccessRequestRecommendationsAPIService) GetAccessRequestRecommendati } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1166,7 +1166,7 @@ func (a *IAIAccessRequestRecommendationsAPIService) GetAccessRequestRecommendati if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1355,28 +1355,28 @@ func (a *IAIAccessRequestRecommendationsAPIService) GetAccessRequestRecommendati } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1395,7 +1395,7 @@ func (a *IAIAccessRequestRecommendationsAPIService) GetAccessRequestRecommendati if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1584,28 +1584,28 @@ func (a *IAIAccessRequestRecommendationsAPIService) GetAccessRequestRecommendati } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1624,7 +1624,7 @@ func (a *IAIAccessRequestRecommendationsAPIService) GetAccessRequestRecommendati if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_v2024/api_iai_common_access.go b/api_v2024/api_iai_common_access.go index 025e5eaa3..5b570657c 100644 --- a/api_v2024/api_iai_common_access.go +++ b/api_v2024/api_iai_common_access.go @@ -115,7 +115,7 @@ func (a *IAICommonAccessAPIService) CreateCommonAccessExecute(r ApiCreateCommonA if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.commonAccessItemRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -306,28 +306,28 @@ func (a *IAICommonAccessAPIService) GetCommonAccessExecute(r ApiGetCommonAccessR } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -346,7 +346,7 @@ func (a *IAICommonAccessAPIService) GetCommonAccessExecute(r ApiGetCommonAccessR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -521,7 +521,7 @@ func (a *IAICommonAccessAPIService) UpdateCommonAccessStatusInBulkExecute(r ApiU if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.commonAccessIDStatus req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_iai_outliers.go b/api_v2024/api_iai_outliers.go index 31c2e5a56..710c3ab35 100644 --- a/api_v2024/api_iai_outliers.go +++ b/api_v2024/api_iai_outliers.go @@ -94,7 +94,7 @@ func (a *IAIOutliersAPIService) ExportOutliersZipExecute(r ApiExportOutliersZipR } if r.type_ != nil { - parameterAddToQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -113,7 +113,7 @@ func (a *IAIOutliersAPIService) ExportOutliersZipExecute(r ApiExportOutliersZipR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -303,25 +303,25 @@ func (a *IAIOutliersAPIService) GetIdentityOutlierSnapshotsExecute(r ApiGetIdent } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.type_ != nil { - parameterAddToQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -340,7 +340,7 @@ func (a *IAIOutliersAPIService) GetIdentityOutlierSnapshotsExecute(r ApiGetIdent if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -537,31 +537,31 @@ func (a *IAIOutliersAPIService) GetIdentityOutliersExecute(r ApiGetIdentityOutli } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.type_ != nil { - parameterAddToQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -580,7 +580,7 @@ func (a *IAIOutliersAPIService) GetIdentityOutliersExecute(r ApiGetIdentityOutli if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -742,7 +742,7 @@ func (a *IAIOutliersAPIService) GetLatestIdentityOutlierSnapshotsExecute(r ApiGe } if r.type_ != nil { - parameterAddToQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -761,7 +761,7 @@ func (a *IAIOutliersAPIService) GetLatestIdentityOutlierSnapshotsExecute(r ApiGe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -936,7 +936,7 @@ func (a *IAIOutliersAPIService) GetOutlierContributingFeatureSummaryExecute(r Ap if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1141,28 +1141,28 @@ func (a *IAIOutliersAPIService) GetPeerGroupOutliersContributingFeaturesExecute( } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.includeTranslationMessages != nil { - parameterAddToQuery(localVarQueryParams, "include-translation-messages", r.includeTranslationMessages, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-translation-messages", r.includeTranslationMessages, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1181,7 +1181,7 @@ func (a *IAIOutliersAPIService) GetPeerGroupOutliersContributingFeaturesExecute( if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1376,7 +1376,7 @@ func (a *IAIOutliersAPIService) IgnoreIdentityOutliersExecute(r ApiIgnoreIdentit if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.requestBody req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1567,28 +1567,28 @@ func (a *IAIOutliersAPIService) ListOutliersContributingFeatureAccessItemsExecut } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.accessType != nil { - parameterAddToQuery(localVarQueryParams, "accessType", r.accessType, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "accessType", r.accessType, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1607,7 +1607,7 @@ func (a *IAIOutliersAPIService) ListOutliersContributingFeatureAccessItemsExecut if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1802,7 +1802,7 @@ func (a *IAIOutliersAPIService) UnIgnoreIdentityOutliersExecute(r ApiUnIgnoreIde if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.requestBody req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_iai_peer_group_strategies.go b/api_v2024/api_iai_peer_group_strategies.go index c4b947e30..154dab5c1 100644 --- a/api_v2024/api_iai_peer_group_strategies.go +++ b/api_v2024/api_iai_peer_group_strategies.go @@ -113,19 +113,19 @@ func (a *IAIPeerGroupStrategiesAPIService) GetPeerGroupOutliersExecute(r ApiGetP } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -147,7 +147,7 @@ func (a *IAIPeerGroupStrategiesAPIService) GetPeerGroupOutliersExecute(r ApiGetP if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_v2024/api_iai_recommendations.go b/api_v2024/api_iai_recommendations.go index ca0584edd..e71349314 100644 --- a/api_v2024/api_iai_recommendations.go +++ b/api_v2024/api_iai_recommendations.go @@ -115,7 +115,7 @@ func (a *IAIRecommendationsAPIService) GetRecommendationsExecute(r ApiGetRecomme if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.recommendationRequestDto req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -287,7 +287,7 @@ func (a *IAIRecommendationsAPIService) GetRecommendationsConfigExecute(r ApiGetR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -461,7 +461,7 @@ func (a *IAIRecommendationsAPIService) UpdateRecommendationsConfigExecute(r ApiU if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.recommendationConfigDto req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_iai_role_mining.go b/api_v2024/api_iai_role_mining.go index 0f4dafa40..8f8be5034 100644 --- a/api_v2024/api_iai_role_mining.go +++ b/api_v2024/api_iai_role_mining.go @@ -115,13 +115,13 @@ func (a *IAIRoleMiningAPIService) CreatePotentialRoleProvisionRequestExecute(r A } if r.minEntitlementPopularity != nil { - parameterAddToQuery(localVarQueryParams, "min-entitlement-popularity", r.minEntitlementPopularity, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "min-entitlement-popularity", r.minEntitlementPopularity, "form", "") } else { var defaultValue int32 = 0 r.minEntitlementPopularity = &defaultValue } if r.includeCommonAccess != nil { - parameterAddToQuery(localVarQueryParams, "include-common-access", r.includeCommonAccess, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-common-access", r.includeCommonAccess, "form", "") } else { var defaultValue bool = true r.includeCommonAccess = &defaultValue @@ -143,7 +143,7 @@ func (a *IAIRoleMiningAPIService) CreatePotentialRoleProvisionRequestExecute(r A if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.roleMiningPotentialRoleProvisionRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -331,7 +331,7 @@ func (a *IAIRoleMiningAPIService) CreateRoleMiningSessionsExecute(r ApiCreateRol if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.roleMiningSessionDto req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -515,7 +515,7 @@ func (a *IAIRoleMiningAPIService) DownloadRoleMiningPotentialRoleZipExecute(r Ap if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -682,7 +682,7 @@ func (a *IAIRoleMiningAPIService) ExportRoleMiningPotentialRoleExecute(r ApiExpo if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -855,7 +855,7 @@ func (a *IAIRoleMiningAPIService) ExportRoleMiningPotentialRoleAsyncExecute(r Ap if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.roleMiningPotentialRoleExportRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1028,7 +1028,7 @@ func (a *IAIRoleMiningAPIService) ExportRoleMiningPotentialRoleStatusExecute(r A if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1206,25 +1206,25 @@ func (a *IAIRoleMiningAPIService) GetAllPotentialRoleSummariesExecute(r ApiGetAl } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -1246,7 +1246,7 @@ func (a *IAIRoleMiningAPIService) GetAllPotentialRoleSummariesExecute(r ApiGetAl if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1415,7 +1415,7 @@ func (a *IAIRoleMiningAPIService) GetEntitlementDistributionPotentialRoleExecute } if r.includeCommonAccess != nil { - parameterAddToQuery(localVarQueryParams, "includeCommonAccess", r.includeCommonAccess, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "includeCommonAccess", r.includeCommonAccess, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1434,7 +1434,7 @@ func (a *IAIRoleMiningAPIService) GetEntitlementDistributionPotentialRoleExecute if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1627,31 +1627,31 @@ func (a *IAIRoleMiningAPIService) GetEntitlementsPotentialRoleExecute(r ApiGetEn } if r.includeCommonAccess != nil { - parameterAddToQuery(localVarQueryParams, "includeCommonAccess", r.includeCommonAccess, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "includeCommonAccess", r.includeCommonAccess, "form", "") } else { var defaultValue bool = true r.includeCommonAccess = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -1673,7 +1673,7 @@ func (a *IAIRoleMiningAPIService) GetEntitlementsPotentialRoleExecute(r ApiGetEn if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1870,25 +1870,25 @@ func (a *IAIRoleMiningAPIService) GetExcludedEntitlementsPotentialRoleExecute(r } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -1910,7 +1910,7 @@ func (a *IAIRoleMiningAPIService) GetExcludedEntitlementsPotentialRoleExecute(r if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2096,25 +2096,25 @@ func (a *IAIRoleMiningAPIService) GetIdentitiesPotentialRoleExecute(r ApiGetIden } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -2136,7 +2136,7 @@ func (a *IAIRoleMiningAPIService) GetIdentitiesPotentialRoleExecute(r ApiGetIden if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2303,7 +2303,7 @@ func (a *IAIRoleMiningAPIService) GetPotentialRoleExecute(r ApiGetPotentialRoleR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2486,19 +2486,19 @@ func (a *IAIRoleMiningAPIService) GetPotentialRoleApplicationsExecute(r ApiGetPo } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -2520,7 +2520,7 @@ func (a *IAIRoleMiningAPIService) GetPotentialRoleApplicationsExecute(r ApiGetPo if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2699,22 +2699,22 @@ func (a *IAIRoleMiningAPIService) GetPotentialRoleSourceIdentityUsageExecute(r A } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -2736,7 +2736,7 @@ func (a *IAIRoleMiningAPIService) GetPotentialRoleSourceIdentityUsageExecute(r A if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2929,25 +2929,25 @@ func (a *IAIRoleMiningAPIService) GetPotentialRoleSummariesExecute(r ApiGetPoten } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -2969,7 +2969,7 @@ func (a *IAIRoleMiningAPIService) GetPotentialRoleSummariesExecute(r ApiGetPoten if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3143,7 +3143,7 @@ func (a *IAIRoleMiningAPIService) GetRoleMiningPotentialRoleExecute(r ApiGetRole if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3317,7 +3317,7 @@ func (a *IAIRoleMiningAPIService) GetRoleMiningSessionExecute(r ApiGetRoleMining if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3502,7 +3502,7 @@ func (a *IAIRoleMiningAPIService) GetRoleMiningSessionStatusExecute(r ApiGetRole if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3680,25 +3680,25 @@ func (a *IAIRoleMiningAPIService) GetRoleMiningSessionsExecute(r ApiGetRoleMinin } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -3720,7 +3720,7 @@ func (a *IAIRoleMiningAPIService) GetRoleMiningSessionsExecute(r ApiGetRoleMinin if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3902,22 +3902,22 @@ func (a *IAIRoleMiningAPIService) GetSavedPotentialRolesExecute(r ApiGetSavedPot } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -3939,7 +3939,7 @@ func (a *IAIRoleMiningAPIService) GetSavedPotentialRolesExecute(r ApiGetSavedPot if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -4144,7 +4144,7 @@ func (a *IAIRoleMiningAPIService) PatchPotentialRoleExecute(r ApiPatchPotentialR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.patchPotentialRoleRequestInner req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -4362,7 +4362,7 @@ func (a *IAIRoleMiningAPIService) PatchPotentialRole_1Execute(r ApiPatchPotentia if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.patchPotentialRoleRequestInner req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -4565,7 +4565,7 @@ func (a *IAIRoleMiningAPIService) PatchRoleMiningSessionExecute(r ApiPatchRoleMi if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.jsonPatchOperation req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -4772,7 +4772,7 @@ func (a *IAIRoleMiningAPIService) UpdateEntitlementsPotentialRoleExecute(r ApiUp if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.roleMiningPotentialRoleEditEntitlements req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_icons.go b/api_v2024/api_icons.go index 05cc8bb54..855ad1a8a 100644 --- a/api_v2024/api_icons.go +++ b/api_v2024/api_icons.go @@ -108,7 +108,7 @@ func (a *IconsAPIService) DeleteIconExecute(r ApiDeleteIconRequest) (*http.Respo if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -304,7 +304,7 @@ func (a *IconsAPIService) SetIconExecute(r ApiSetIconRequest) (*SetIcon200Respon if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") var imageLocalVarFormFileName string var imageLocalVarFileName string var imageLocalVarFileBytes []byte diff --git a/api_v2024/api_identities.go b/api_v2024/api_identities.go index d0bc72cfc..2dff386d5 100644 --- a/api_v2024/api_identities.go +++ b/api_v2024/api_identities.go @@ -103,7 +103,7 @@ func (a *IdentitiesAPIService) DeleteIdentityExecute(r ApiDeleteIdentityRequest) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -279,7 +279,7 @@ func (a *IdentitiesAPIService) GetIdentityExecute(r ApiGetIdentityRequest) (*Ide if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -466,7 +466,7 @@ func (a *IdentitiesAPIService) GetIdentityOwnershipDetailsExecute(r ApiGetIdenti if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -653,7 +653,7 @@ func (a *IdentitiesAPIService) GetRoleAssignmentExecute(r ApiGetRoleAssignmentRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -836,10 +836,10 @@ func (a *IdentitiesAPIService) GetRoleAssignmentsExecute(r ApiGetRoleAssignments } if r.roleId != nil { - parameterAddToQuery(localVarQueryParams, "roleId", r.roleId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "roleId", r.roleId, "", "") } if r.roleName != nil { - parameterAddToQuery(localVarQueryParams, "roleName", r.roleName, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "roleName", r.roleName, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -858,7 +858,7 @@ func (a *IdentitiesAPIService) GetRoleAssignmentsExecute(r ApiGetRoleAssignments if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1065,31 +1065,31 @@ func (a *IdentitiesAPIService) ListIdentitiesExecute(r ApiListIdentitiesRequest) } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.defaultFilter != nil { - parameterAddToQuery(localVarQueryParams, "defaultFilter", r.defaultFilter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "defaultFilter", r.defaultFilter, "", "") } else { var defaultValue string = "CORRELATED_ONLY" r.defaultFilter = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue @@ -1111,7 +1111,7 @@ func (a *IdentitiesAPIService) ListIdentitiesExecute(r ApiListIdentitiesRequest) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1283,7 +1283,7 @@ func (a *IdentitiesAPIService) ResetIdentityExecute(r ApiResetIdentityRequest) ( if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -1480,7 +1480,7 @@ func (a *IdentitiesAPIService) StartIdentityProcessingExecute(r ApiStartIdentity if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.processIdentitiesRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1667,7 +1667,7 @@ func (a *IdentitiesAPIService) SynchronizeAttributesForIdentityExecute(r ApiSync if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_v2024/api_identity_attributes.go b/api_v2024/api_identity_attributes.go index ec6804ff5..a6fb3088c 100644 --- a/api_v2024/api_identity_attributes.go +++ b/api_v2024/api_identity_attributes.go @@ -116,7 +116,7 @@ func (a *IdentityAttributesAPIService) CreateIdentityAttributeExecute(r ApiCreat if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.identityAttribute req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -301,7 +301,7 @@ func (a *IdentityAttributesAPIService) DeleteIdentityAttributeExecute(r ApiDelet if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -486,7 +486,7 @@ func (a *IdentityAttributesAPIService) DeleteIdentityAttributesInBulkExecute(r A if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.identityAttributeNames req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -664,7 +664,7 @@ func (a *IdentityAttributesAPIService) GetIdentityAttributeExecute(r ApiGetIdent if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -857,25 +857,25 @@ func (a *IdentityAttributesAPIService) ListIdentityAttributesExecute(r ApiListId } if r.includeSystem != nil { - parameterAddToQuery(localVarQueryParams, "includeSystem", r.includeSystem, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "includeSystem", r.includeSystem, "", "") } else { var defaultValue bool = false r.includeSystem = &defaultValue } if r.includeSilent != nil { - parameterAddToQuery(localVarQueryParams, "includeSilent", r.includeSilent, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "includeSilent", r.includeSilent, "", "") } else { var defaultValue bool = false r.includeSilent = &defaultValue } if r.searchableOnly != nil { - parameterAddToQuery(localVarQueryParams, "searchableOnly", r.searchableOnly, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "searchableOnly", r.searchableOnly, "", "") } else { var defaultValue bool = false r.searchableOnly = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -897,7 +897,7 @@ func (a *IdentityAttributesAPIService) ListIdentityAttributesExecute(r ApiListId if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1086,7 +1086,7 @@ func (a *IdentityAttributesAPIService) PutIdentityAttributeExecute(r ApiPutIdent if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.identityAttribute req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_identity_history.go b/api_v2024/api_identity_history.go index fbcc4cdd4..51be00063 100644 --- a/api_v2024/api_identity_history.go +++ b/api_v2024/api_identity_history.go @@ -131,28 +131,28 @@ func (a *IdentityHistoryAPIService) CompareIdentitySnapshotsExecute(r ApiCompare } if r.snapshot1 != nil { - parameterAddToQuery(localVarQueryParams, "snapshot1", r.snapshot1, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "snapshot1", r.snapshot1, "", "") } if r.snapshot2 != nil { - parameterAddToQuery(localVarQueryParams, "snapshot2", r.snapshot2, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "snapshot2", r.snapshot2, "", "") } if r.accessItemTypes != nil { - parameterAddToQuery(localVarQueryParams, "accessItemTypes", r.accessItemTypes, "csv") + parameterAddToHeaderOrQuery(localVarQueryParams, "accessItemTypes", r.accessItemTypes, "", "csv") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -174,7 +174,7 @@ func (a *IdentityHistoryAPIService) CompareIdentitySnapshotsExecute(r ApiCompare if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -378,28 +378,28 @@ func (a *IdentityHistoryAPIService) CompareIdentitySnapshotsAccessTypeExecute(r } if r.accessAssociated != nil { - parameterAddToQuery(localVarQueryParams, "access-associated", r.accessAssociated, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "access-associated", r.accessAssociated, "", "") } if r.snapshot1 != nil { - parameterAddToQuery(localVarQueryParams, "snapshot1", r.snapshot1, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "snapshot1", r.snapshot1, "", "") } if r.snapshot2 != nil { - parameterAddToQuery(localVarQueryParams, "snapshot2", r.snapshot2, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "snapshot2", r.snapshot2, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -421,7 +421,7 @@ func (a *IdentityHistoryAPIService) CompareIdentitySnapshotsAccessTypeExecute(r if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -595,7 +595,7 @@ func (a *IdentityHistoryAPIService) GetHistoricalIdentityExecute(r ApiGetHistori if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -795,28 +795,28 @@ func (a *IdentityHistoryAPIService) GetHistoricalIdentityEventsExecute(r ApiGetH } if r.from != nil { - parameterAddToQuery(localVarQueryParams, "from", r.from, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "from", r.from, "", "") } if r.eventTypes != nil { - parameterAddToQuery(localVarQueryParams, "eventTypes", r.eventTypes, "csv") + parameterAddToHeaderOrQuery(localVarQueryParams, "eventTypes", r.eventTypes, "", "csv") } if r.accessItemTypes != nil { - parameterAddToQuery(localVarQueryParams, "accessItemTypes", r.accessItemTypes, "csv") + parameterAddToHeaderOrQuery(localVarQueryParams, "accessItemTypes", r.accessItemTypes, "", "csv") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -838,7 +838,7 @@ func (a *IdentityHistoryAPIService) GetHistoricalIdentityEventsExecute(r ApiGetH if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1027,7 +1027,7 @@ func (a *IdentityHistoryAPIService) GetIdentitySnapshotExecute(r ApiGetIdentityS if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1227,28 +1227,28 @@ func (a *IdentityHistoryAPIService) GetIdentitySnapshotSummaryExecute(r ApiGetId } if r.before != nil { - parameterAddToQuery(localVarQueryParams, "before", r.before, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "before", r.before, "", "") } if r.interval != nil { - parameterAddToQuery(localVarQueryParams, "interval", r.interval, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval", r.interval, "", "") } if r.timeZone != nil { - parameterAddToQuery(localVarQueryParams, "time-zone", r.timeZone, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "time-zone", r.timeZone, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -1270,7 +1270,7 @@ func (a *IdentityHistoryAPIService) GetIdentitySnapshotSummaryExecute(r ApiGetId if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1444,7 +1444,7 @@ func (a *IdentityHistoryAPIService) GetIdentityStartDateExecute(r ApiGetIdentity if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1633,22 +1633,22 @@ func (a *IdentityHistoryAPIService) ListHistoricalIdentitiesExecute(r ApiListHis } if r.startsWithQuery != nil { - parameterAddToQuery(localVarQueryParams, "starts-with-query", r.startsWithQuery, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "starts-with-query", r.startsWithQuery, "", "") } if r.isDeleted != nil { - parameterAddToQuery(localVarQueryParams, "is-deleted", r.isDeleted, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "is-deleted", r.isDeleted, "", "") } if r.isActive != nil { - parameterAddToQuery(localVarQueryParams, "is-active", r.isActive, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "is-active", r.isActive, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue @@ -1670,7 +1670,7 @@ func (a *IdentityHistoryAPIService) ListHistoricalIdentitiesExecute(r ApiListHis if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1835,7 +1835,7 @@ func (a *IdentityHistoryAPIService) ListIdentityAccessItemsExecute(r ApiListIden } if r.type_ != nil { - parameterAddToQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1854,7 +1854,7 @@ func (a *IdentityHistoryAPIService) ListIdentityAccessItemsExecute(r ApiListIden if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2023,7 +2023,7 @@ func (a *IdentityHistoryAPIService) ListIdentitySnapshotAccessItemsExecute(r Api } if r.type_ != nil { - parameterAddToQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2042,7 +2042,7 @@ func (a *IdentityHistoryAPIService) ListIdentitySnapshotAccessItemsExecute(r Api if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2235,25 +2235,25 @@ func (a *IdentityHistoryAPIService) ListIdentitySnapshotsExecute(r ApiListIdenti } if r.start != nil { - parameterAddToQuery(localVarQueryParams, "start", r.start, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "start", r.start, "", "") } if r.interval != nil { - parameterAddToQuery(localVarQueryParams, "interval", r.interval, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval", r.interval, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -2275,7 +2275,7 @@ func (a *IdentityHistoryAPIService) ListIdentitySnapshotsExecute(r ApiListIdenti if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_v2024/api_identity_profiles.go b/api_v2024/api_identity_profiles.go index 2ed9bad4a..985d02a36 100644 --- a/api_v2024/api_identity_profiles.go +++ b/api_v2024/api_identity_profiles.go @@ -615,28 +615,28 @@ func (a *IdentityProfilesAPIService) ExportIdentityProfilesExecute(r ApiExportId localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1332,28 +1332,28 @@ func (a *IdentityProfilesAPIService) ListIdentityProfilesExecute(r ApiListIdenti localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_lifecycle_states.go b/api_v2024/api_lifecycle_states.go index 5e1bbdb92..6d2d6dfc7 100644 --- a/api_v2024/api_lifecycle_states.go +++ b/api_v2024/api_lifecycle_states.go @@ -618,25 +618,25 @@ func (a *LifecycleStatesAPIService) GetLifecycleStatesExecute(r ApiGetLifecycleS localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_managed_clients.go b/api_v2024/api_managed_clients.go index 678c2d59d..2bad8cfd0 100644 --- a/api_v2024/api_managed_clients.go +++ b/api_v2024/api_managed_clients.go @@ -561,7 +561,7 @@ func (a *ManagedClientsAPIService) GetManagedClientStatusExecute(r ApiGetManaged return localVarReturnValue, nil, reportError("type_ is required and must be specified") } - parameterAddToQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -755,25 +755,25 @@ func (a *ManagedClientsAPIService) GetManagedClientsExecute(r ApiGetManagedClien localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_managed_clusters.go b/api_v2024/api_managed_clusters.go index 081974d63..42d3b1d18 100644 --- a/api_v2024/api_managed_clusters.go +++ b/api_v2024/api_managed_clusters.go @@ -243,7 +243,7 @@ func (a *ManagedClustersAPIService) DeleteManagedClusterExecute(r ApiDeleteManag localVarFormParams := url.Values{} if r.removeClients != nil { - parameterAddToQuery(localVarQueryParams, "removeClients", r.removeClients, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "removeClients", r.removeClients, "", "") } else { var defaultValue bool = false r.removeClients = &defaultValue @@ -589,25 +589,25 @@ func (a *ManagedClustersAPIService) GetManagedClustersExecute(r ApiGetManagedClu localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_mfa_configuration.go b/api_v2024/api_mfa_configuration.go index ea3ace93c..d10263a7c 100644 --- a/api_v2024/api_mfa_configuration.go +++ b/api_v2024/api_mfa_configuration.go @@ -229,7 +229,7 @@ func (a *MFAConfigurationAPIService) GetMFAKbaConfigExecute(r ApiGetMFAKbaConfig localVarFormParams := url.Values{} if r.allLanguages != nil { - parameterAddToQuery(localVarQueryParams, "allLanguages", r.allLanguages, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "allLanguages", r.allLanguages, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_non_employee_lifecycle_management.go b/api_v2024/api_non_employee_lifecycle_management.go index 5d1e25a0e..862c9e511 100644 --- a/api_v2024/api_non_employee_lifecycle_management.go +++ b/api_v2024/api_non_employee_lifecycle_management.go @@ -2134,7 +2134,7 @@ func (a *NonEmployeeLifecycleManagementAPIService) GetNonEmployeeApprovalExecute localVarFormParams := url.Values{} if r.includeDetail != nil { - parameterAddToQuery(localVarQueryParams, "include-detail", r.includeDetail, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-detail", r.includeDetail, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3830,31 +3830,31 @@ func (a *NonEmployeeLifecycleManagementAPIService) ListNonEmployeeApprovalsExecu localVarFormParams := url.Values{} if r.requestedFor != nil { - parameterAddToQuery(localVarQueryParams, "requested-for", r.requestedFor, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-for", r.requestedFor, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4047,28 +4047,28 @@ func (a *NonEmployeeLifecycleManagementAPIService) ListNonEmployeeRecordsExecute localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4273,29 +4273,29 @@ func (a *NonEmployeeLifecycleManagementAPIService) ListNonEmployeeRequestsExecut } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } - parameterAddToQuery(localVarQueryParams, "requested-for", r.requestedFor, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-for", r.requestedFor, "", "") if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4500,29 +4500,29 @@ func (a *NonEmployeeLifecycleManagementAPIService) ListNonEmployeeSourcesExecute } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } - parameterAddToQuery(localVarQueryParams, "requested-for", r.requestedFor, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-for", r.requestedFor, "", "") if r.nonEmployeeCount != nil { - parameterAddToQuery(localVarQueryParams, "non-employee-count", r.nonEmployeeCount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "non-employee-count", r.nonEmployeeCount, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_notifications.go b/api_v2024/api_notifications.go index 01baa04e4..5c50b7bdd 100644 --- a/api_v2024/api_notifications.go +++ b/api_v2024/api_notifications.go @@ -116,7 +116,7 @@ func (a *NotificationsAPIService) CreateDomainDkimExecute(r ApiCreateDomainDkimR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.domainAddress req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -316,7 +316,7 @@ func (a *NotificationsAPIService) CreateNotificationTemplateExecute(r ApiCreateN if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.templateDto req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -503,7 +503,7 @@ func (a *NotificationsAPIService) CreateVerifiedFromAddressExecute(r ApiCreateVe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.emailStatusDto req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -688,7 +688,7 @@ func (a *NotificationsAPIService) DeleteNotificationTemplatesInBulkExecute(r Api if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.templateBulkDeleteDto req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -853,7 +853,7 @@ func (a *NotificationsAPIService) DeleteVerifiedFromAddressExecute(r ApiDeleteVe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -1025,7 +1025,7 @@ func (a *NotificationsAPIService) GetDkimAttributesExecute(r ApiGetDkimAttribute if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1194,7 +1194,7 @@ func (a *NotificationsAPIService) GetMailFromAttributesExecute(r ApiGetMailFromA return localVarReturnValue, nil, reportError("xSailPointExperimental is required and must be specified") } - parameterAddToQuery(localVarQueryParams, "id", r.id, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1212,7 +1212,7 @@ func (a *NotificationsAPIService) GetMailFromAttributesExecute(r ApiGetMailFromA if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1386,7 +1386,7 @@ func (a *NotificationsAPIService) GetNotificationTemplateExecute(r ApiGetNotific if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1557,7 +1557,7 @@ func (a *NotificationsAPIService) GetNotificationsTemplateContextExecute(r ApiGe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1746,28 +1746,28 @@ func (a *NotificationsAPIService) ListFromAddressesExecute(r ApiListFromAddresse } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1786,7 +1786,7 @@ func (a *NotificationsAPIService) ListFromAddressesExecute(r ApiListFromAddresse if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1945,7 +1945,7 @@ func (a *NotificationsAPIService) ListNotificationPreferencesExecute(r ApiListNo if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2131,19 +2131,19 @@ func (a *NotificationsAPIService) ListNotificationTemplateDefaultsExecute(r ApiL } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2162,7 +2162,7 @@ func (a *NotificationsAPIService) ListNotificationTemplateDefaultsExecute(r ApiL if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2337,19 +2337,19 @@ func (a *NotificationsAPIService) ListNotificationTemplatesExecute(r ApiListNoti } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2368,7 +2368,7 @@ func (a *NotificationsAPIService) ListNotificationTemplatesExecute(r ApiListNoti if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2553,7 +2553,7 @@ func (a *NotificationsAPIService) PutMailFromAttributesExecute(r ApiPutMailFromA if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.mailFromAttributesDto req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -2738,7 +2738,7 @@ func (a *NotificationsAPIService) SendTestNotificationExecute(r ApiSendTestNotif if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.sendTestNotificationRequestDto req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_o_auth_clients.go b/api_v2024/api_o_auth_clients.go index 98c8ceca0..52c4b700d 100644 --- a/api_v2024/api_o_auth_clients.go +++ b/api_v2024/api_o_auth_clients.go @@ -565,7 +565,7 @@ func (a *OAuthClientsAPIService) ListOauthClientsExecute(r ApiListOauthClientsRe localVarFormParams := url.Values{} if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_org_config.go b/api_v2024/api_org_config.go index a27d337b0..4de54035f 100644 --- a/api_v2024/api_org_config.go +++ b/api_v2024/api_org_config.go @@ -100,7 +100,7 @@ func (a *OrgConfigAPIService) GetOrgConfigExecute(r ApiGetOrgConfigRequest) (*Or if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -281,7 +281,7 @@ func (a *OrgConfigAPIService) GetValidTimeZonesExecute(r ApiGetValidTimeZonesReq if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -467,7 +467,7 @@ func (a *OrgConfigAPIService) PatchOrgConfigExecute(r ApiPatchOrgConfigRequest) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.jsonPatchOperation req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_password_management.go b/api_v2024/api_password_management.go index 1fda83aee..2f8d2bf12 100644 --- a/api_v2024/api_password_management.go +++ b/api_v2024/api_password_management.go @@ -116,7 +116,7 @@ func (a *PasswordManagementAPIService) GenerateDigitTokenExecute(r ApiGenerateDi if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.passwordDigitTokenReset req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_password_policies.go b/api_v2024/api_password_policies.go index 287c6b516..40be246dd 100644 --- a/api_v2024/api_password_policies.go +++ b/api_v2024/api_password_policies.go @@ -591,19 +591,19 @@ func (a *PasswordPoliciesAPIService) ListPasswordPoliciesExecute(r ApiListPasswo localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_v2024/api_password_sync_groups.go b/api_v2024/api_password_sync_groups.go index ecd1973bd..f316246e9 100644 --- a/api_v2024/api_password_sync_groups.go +++ b/api_v2024/api_password_sync_groups.go @@ -568,19 +568,19 @@ func (a *PasswordSyncGroupsAPIService) GetPasswordSyncGroupsExecute(r ApiGetPass localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_v2024/api_personal_access_tokens.go b/api_v2024/api_personal_access_tokens.go index 845c30b78..f26b5cb5d 100644 --- a/api_v2024/api_personal_access_tokens.go +++ b/api_v2024/api_personal_access_tokens.go @@ -405,10 +405,10 @@ func (a *PersonalAccessTokensAPIService) ListPersonalAccessTokensExecute(r ApiLi localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "owner-id", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "owner-id", r.ownerId, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_public_identities.go b/api_v2024/api_public_identities.go index 521129a97..ad13e1170 100644 --- a/api_v2024/api_public_identities.go +++ b/api_v2024/api_public_identities.go @@ -108,34 +108,34 @@ func (a *PublicIdentitiesAPIService) GetPublicIdentitiesExecute(r ApiGetPublicId localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.addCoreFilters != nil { - parameterAddToQuery(localVarQueryParams, "add-core-filters", r.addCoreFilters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "add-core-filters", r.addCoreFilters, "", "") } else { var defaultValue bool = false r.addCoreFilters = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_reports_data_extraction.go b/api_v2024/api_reports_data_extraction.go index 3a00f436d..91e28f959 100644 --- a/api_v2024/api_reports_data_extraction.go +++ b/api_v2024/api_reports_data_extraction.go @@ -243,12 +243,12 @@ func (a *ReportsDataExtractionAPIService) GetReportExecute(r ApiGetReportRequest return localVarReturnValue, nil, reportError("fileFormat is required and must be specified") } - parameterAddToQuery(localVarQueryParams, "fileFormat", r.fileFormat, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "fileFormat", r.fileFormat, "", "") if r.name != nil { - parameterAddToQuery(localVarQueryParams, "name", r.name, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "", "") } if r.auditable != nil { - parameterAddToQuery(localVarQueryParams, "auditable", r.auditable, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "auditable", r.auditable, "", "") } else { var defaultValue bool = false r.auditable = &defaultValue @@ -429,7 +429,7 @@ func (a *ReportsDataExtractionAPIService) GetReportResultExecute(r ApiGetReportR localVarFormParams := url.Values{} if r.completed != nil { - parameterAddToQuery(localVarQueryParams, "completed", r.completed, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "completed", r.completed, "", "") } else { var defaultValue bool = false r.completed = &defaultValue diff --git a/api_v2024/api_requestable_objects.go b/api_v2024/api_requestable_objects.go index 7594bfc16..75cfe5aff 100644 --- a/api_v2024/api_requestable_objects.go +++ b/api_v2024/api_requestable_objects.go @@ -132,40 +132,40 @@ func (a *RequestableObjectsAPIService) ListRequestableObjectsExecute(r ApiListRe localVarFormParams := url.Values{} if r.identityId != nil { - parameterAddToQuery(localVarQueryParams, "identity-id", r.identityId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "identity-id", r.identityId, "", "") } if r.types != nil { - parameterAddToQuery(localVarQueryParams, "types", r.types, "csv") + parameterAddToHeaderOrQuery(localVarQueryParams, "types", r.types, "", "csv") } if r.term != nil { - parameterAddToQuery(localVarQueryParams, "term", r.term, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "term", r.term, "", "") } if r.statuses != nil { - parameterAddToQuery(localVarQueryParams, "statuses", r.statuses, "csv") + parameterAddToHeaderOrQuery(localVarQueryParams, "statuses", r.statuses, "", "csv") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_role_insights.go b/api_v2024/api_role_insights.go index f4e798d9b..903e4790c 100644 --- a/api_v2024/api_role_insights.go +++ b/api_v2024/api_role_insights.go @@ -104,7 +104,7 @@ func (a *RoleInsightsAPIService) CreateRoleInsightRequestsExecute(r ApiCreateRol if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -276,10 +276,10 @@ func (a *RoleInsightsAPIService) DownloadRoleInsightsEntitlementsChangesExecute( } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -298,7 +298,7 @@ func (a *RoleInsightsAPIService) DownloadRoleInsightsEntitlementsChangesExecute( if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -491,34 +491,34 @@ func (a *RoleInsightsAPIService) GetEntitlementChangesIdentitiesExecute(r ApiGet } if r.hasEntitlement != nil { - parameterAddToQuery(localVarQueryParams, "hasEntitlement", r.hasEntitlement, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "hasEntitlement", r.hasEntitlement, "form", "") } else { var defaultValue bool = false r.hasEntitlement = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -537,7 +537,7 @@ func (a *RoleInsightsAPIService) GetEntitlementChangesIdentitiesExecute(r ApiGet if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -700,7 +700,7 @@ func (a *RoleInsightsAPIService) GetRoleInsightExecute(r ApiGetRoleInsightReques if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -878,28 +878,28 @@ func (a *RoleInsightsAPIService) GetRoleInsightsExecute(r ApiGetRoleInsightsRequ } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -918,7 +918,7 @@ func (a *RoleInsightsAPIService) GetRoleInsightsExecute(r ApiGetRoleInsightsRequ if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1072,7 +1072,7 @@ func (a *RoleInsightsAPIService) GetRoleInsightsCurrentEntitlementsExecute(r Api } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1091,7 +1091,7 @@ func (a *RoleInsightsAPIService) GetRoleInsightsCurrentEntitlementsExecute(r Api if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1252,10 +1252,10 @@ func (a *RoleInsightsAPIService) GetRoleInsightsEntitlementsChangesExecute(r Api } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1274,7 +1274,7 @@ func (a *RoleInsightsAPIService) GetRoleInsightsEntitlementsChangesExecute(r Api if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1440,7 +1440,7 @@ func (a *RoleInsightsAPIService) GetRoleInsightsRequestsExecute(r ApiGetRoleInsi if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1610,7 +1610,7 @@ func (a *RoleInsightsAPIService) GetRoleInsightsSummaryExecute(r ApiGetRoleInsig if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_v2024/api_roles.go b/api_v2024/api_roles.go index e7ee0f790..8c744a195 100644 --- a/api_v2024/api_roles.go +++ b/api_v2024/api_roles.go @@ -750,28 +750,28 @@ func (a *RolesAPIService) GetRoleAssignedIdentitiesExecute(r ApiGetRoleAssignedI localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -984,28 +984,28 @@ func (a *RolesAPIService) GetRoleEntitlementsExecute(r ApiGetRoleEntitlementsReq } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1024,7 +1024,7 @@ func (a *RolesAPIService) GetRoleEntitlementsExecute(r ApiGetRoleEntitlementsReq if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1220,37 +1220,37 @@ func (a *RolesAPIService) ListRolesExecute(r ApiListRolesRequest) ([]Role, *http localVarFormParams := url.Values{} if r.forSubadmin != nil { - parameterAddToQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 50 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.forSegmentIds != nil { - parameterAddToQuery(localVarQueryParams, "for-segment-ids", r.forSegmentIds, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "for-segment-ids", r.forSegmentIds, "", "") } if r.includeUnsegmented != nil { - parameterAddToQuery(localVarQueryParams, "include-unsegmented", r.includeUnsegmented, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-unsegmented", r.includeUnsegmented, "", "") } else { var defaultValue bool = true r.includeUnsegmented = &defaultValue diff --git a/api_v2024/api_saved_search.go b/api_v2024/api_saved_search.go index 86fa5cb92..95715a9d9 100644 --- a/api_v2024/api_saved_search.go +++ b/api_v2024/api_saved_search.go @@ -761,25 +761,25 @@ func (a *SavedSearchAPIService) ListSavedSearchesExecute(r ApiListSavedSearchesR localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_scheduled_search.go b/api_v2024/api_scheduled_search.go index 5f3664d8b..b23ec7053 100644 --- a/api_v2024/api_scheduled_search.go +++ b/api_v2024/api_scheduled_search.go @@ -601,25 +601,25 @@ func (a *ScheduledSearchAPIService) ListScheduledSearchExecute(r ApiListSchedule localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_search.go b/api_v2024/api_search.go index 1da2bc15a..db64abac5 100644 --- a/api_v2024/api_search.go +++ b/api_v2024/api_search.go @@ -99,19 +99,19 @@ func (a *SearchAPIService) SearchAggregateExecute(r ApiSearchAggregateRequest) ( } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -627,19 +627,19 @@ func (a *SearchAPIService) SearchPostExecute(r ApiSearchPostRequest) ([]map[stri } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 10000 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_v2024/api_segments.go b/api_v2024/api_segments.go index 18e50d8b5..7249fd892 100644 --- a/api_v2024/api_segments.go +++ b/api_v2024/api_segments.go @@ -585,19 +585,19 @@ func (a *SegmentsAPIService) ListSegmentsExecute(r ApiListSegmentsRequest) ([]Se localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_v2024/api_service_desk_integration.go b/api_v2024/api_service_desk_integration.go index 113710f0e..455d5bdc5 100644 --- a/api_v2024/api_service_desk_integration.go +++ b/api_v2024/api_service_desk_integration.go @@ -937,25 +937,25 @@ func (a *ServiceDeskIntegrationAPIService) GetServiceDeskIntegrationsExecute(r A localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_v2024/api_sim_integrations.go b/api_v2024/api_sim_integrations.go index 6ea54728b..1c9320da8 100644 --- a/api_v2024/api_sim_integrations.go +++ b/api_v2024/api_sim_integrations.go @@ -117,7 +117,7 @@ func (a *SIMIntegrationsAPIService) CreateSIMIntegrationExecute(r ApiCreateSIMIn if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.simIntegrationDetails req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -302,7 +302,7 @@ func (a *SIMIntegrationsAPIService) DeleteSIMIntegrationExecute(r ApiDeleteSIMIn if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -478,7 +478,7 @@ func (a *SIMIntegrationsAPIService) GetSIMIntegrationExecute(r ApiGetSIMIntegrat if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -659,7 +659,7 @@ func (a *SIMIntegrationsAPIService) GetSIMIntegrationsExecute(r ApiGetSIMIntegra if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -860,7 +860,7 @@ func (a *SIMIntegrationsAPIService) PatchBeforeProvisioningRuleExecute(r ApiPatc if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.jsonPatch req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1063,7 +1063,7 @@ func (a *SIMIntegrationsAPIService) PatchSIMAttributesExecute(r ApiPatchSIMAttri if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.jsonPatch req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1266,7 +1266,7 @@ func (a *SIMIntegrationsAPIService) PutSIMIntegrationExecute(r ApiPutSIMIntegrat if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.simIntegrationDetails req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_sod_policies.go b/api_v2024/api_sod_policies.go index 1a6627cd3..9081f0612 100644 --- a/api_v2024/api_sod_policies.go +++ b/api_v2024/api_sod_policies.go @@ -245,7 +245,7 @@ func (a *SODPoliciesAPIService) DeleteSodPolicyExecute(r ApiDeleteSodPolicyReque localVarFormParams := url.Values{} if r.logical != nil { - parameterAddToQuery(localVarQueryParams, "logical", r.logical, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "logical", r.logical, "", "") } else { var defaultValue bool = true r.logical = &defaultValue @@ -1754,28 +1754,28 @@ func (a *SODPoliciesAPIService) ListSodPoliciesExecute(r ApiListSodPoliciesReque localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_source_usages.go b/api_v2024/api_source_usages.go index 36b849db3..e493beab5 100644 --- a/api_v2024/api_source_usages.go +++ b/api_v2024/api_source_usages.go @@ -258,25 +258,25 @@ func (a *SourceUsagesAPIService) GetUsagesBySourceIdExecute(r ApiGetUsagesBySour localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_sources.go b/api_v2024/api_sources.go index d5110871e..1b3bfc5e3 100644 --- a/api_v2024/api_sources.go +++ b/api_v2024/api_sources.go @@ -269,7 +269,7 @@ func (a *SourcesAPIService) CreateSourceExecute(r ApiCreateSourceRequest) (*Sour } if r.provisionAsCsv != nil { - parameterAddToQuery(localVarQueryParams, "provisionAsCsv", r.provisionAsCsv, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "provisionAsCsv", r.provisionAsCsv, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -638,7 +638,7 @@ func (a *SourcesAPIService) DeleteAccountsAsyncExecute(r ApiDeleteAccountsAsyncR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -811,7 +811,7 @@ func (a *SourcesAPIService) DeleteNativeChangeDetectionConfigExecute(r ApiDelete if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -1611,7 +1611,7 @@ func (a *SourcesAPIService) GetEntitlementsSchemaExecute(r ApiGetEntitlementsSch localVarFormParams := url.Values{} if r.schemaName != nil { - parameterAddToQuery(localVarQueryParams, "schemaName", r.schemaName, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "schemaName", r.schemaName, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1806,7 +1806,7 @@ func (a *SourcesAPIService) GetNativeChangeDetectionConfigExecute(r ApiGetNative if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2334,7 +2334,7 @@ func (a *SourcesAPIService) GetSourceAttrSyncConfigExecute(r ApiGetSourceAttrSyn if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2511,7 +2511,7 @@ func (a *SourcesAPIService) GetSourceConfigExecute(r ApiGetSourceConfigRequest) } if r.locale != nil { - parameterAddToQuery(localVarQueryParams, "locale", r.locale, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2530,7 +2530,7 @@ func (a *SourcesAPIService) GetSourceConfigExecute(r ApiGetSourceConfigRequest) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2706,7 +2706,7 @@ func (a *SourcesAPIService) GetSourceEntitlementRequestConfigExecute(r ApiGetSou if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3197,7 +3197,7 @@ func (a *SourcesAPIService) GetSourceSchemasExecute(r ApiGetSourceSchemasRequest localVarFormParams := url.Values{} if r.includeTypes != nil { - parameterAddToQuery(localVarQueryParams, "include-types", r.includeTypes, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-types", r.includeTypes, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3417,7 +3417,7 @@ func (a *SourcesAPIService) ImportAccountsExecute(r ApiImportAccountsRequest) (* if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") var fileLocalVarFormFileName string var fileLocalVarFileName string var fileLocalVarFileBytes []byte @@ -3434,7 +3434,7 @@ func (a *SourcesAPIService) ImportAccountsExecute(r ApiImportAccountsRequest) (* formFiles = append(formFiles, formFile{fileBytes: fileLocalVarFileBytes, fileName: fileLocalVarFileName, formFileName: fileLocalVarFormFileName}) } if r.disableOptimization != nil { - parameterAddToQuery(localVarFormParams, "disableOptimization", r.disableOptimization, "") + parameterAddToHeaderOrQuery(localVarFormParams, "disableOptimization", r.disableOptimization, "", "") } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { @@ -3959,7 +3959,7 @@ func (a *SourcesAPIService) ImportEntitlementsSchemaExecute(r ApiImportEntitleme localVarFormParams := url.Values{} if r.schemaName != nil { - parameterAddToQuery(localVarQueryParams, "schemaName", r.schemaName, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "schemaName", r.schemaName, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{"multipart/form-data"} @@ -4172,7 +4172,7 @@ func (a *SourcesAPIService) ImportUncorrelatedAccountsExecute(r ApiImportUncorre if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") var fileLocalVarFormFileName string var fileLocalVarFileName string var fileLocalVarFileBytes []byte @@ -4537,31 +4537,31 @@ func (a *SourcesAPIService) ListSourcesExecute(r ApiListSourcesRequest) ([]Sourc localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.forSubadmin != nil { - parameterAddToQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4780,7 +4780,7 @@ func (a *SourcesAPIService) PeekResourceObjectsExecute(r ApiPeekResourceObjectsR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.resourceObjectsRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -4968,7 +4968,7 @@ func (a *SourcesAPIService) PingClusterExecute(r ApiPingClusterRequest) (*Status if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -5170,7 +5170,7 @@ func (a *SourcesAPIService) PutNativeChangeDetectionConfigExecute(r ApiPutNative if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.nativeChangeDetectionConfig req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -5753,7 +5753,7 @@ func (a *SourcesAPIService) PutSourceAttrSyncConfigExecute(r ApiPutSourceAttrSyn if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.attrSyncSourceConfig req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -6134,7 +6134,7 @@ func (a *SourcesAPIService) SyncAttributesForSourceExecute(r ApiSyncAttributesFo if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -6320,7 +6320,7 @@ func (a *SourcesAPIService) TestSourceConfigurationExecute(r ApiTestSourceConfig if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -6506,7 +6506,7 @@ func (a *SourcesAPIService) TestSourceConnectionExecute(r ApiTestSourceConnectio if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -7272,7 +7272,7 @@ func (a *SourcesAPIService) UpdateSourceEntitlementRequestConfigExecute(r ApiUpd if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.sourceEntitlementRequestConfig req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_sp_config.go b/api_v2024/api_sp_config.go index e37907752..321ab913c 100644 --- a/api_v2024/api_sp_config.go +++ b/api_v2024/api_sp_config.go @@ -119,7 +119,7 @@ func (a *SPConfigAPIService) ExportSpConfigExecute(r ApiExportSpConfigRequest) ( if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.exportPayload req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -308,7 +308,7 @@ func (a *SPConfigAPIService) GetSpConfigExportExecute(r ApiGetSpConfigExportRequ if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -495,7 +495,7 @@ func (a *SPConfigAPIService) GetSpConfigExportStatusExecute(r ApiGetSpConfigExpo if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -682,7 +682,7 @@ func (a *SPConfigAPIService) GetSpConfigImportExecute(r ApiGetSpConfigImportRequ if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -870,7 +870,7 @@ func (a *SPConfigAPIService) GetSpConfigImportStatusExecute(r ApiGetSpConfigImpo if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1068,7 +1068,7 @@ func (a *SPConfigAPIService) ImportSpConfigExecute(r ApiImportSpConfigRequest) ( } if r.preview != nil { - parameterAddToQuery(localVarQueryParams, "preview", r.preview, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "preview", r.preview, "", "") } else { var defaultValue bool = false r.preview = &defaultValue @@ -1090,7 +1090,7 @@ func (a *SPConfigAPIService) ImportSpConfigExecute(r ApiImportSpConfigRequest) ( if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") var dataLocalVarFormFileName string var dataLocalVarFileName string var dataLocalVarFileBytes []byte @@ -1293,7 +1293,7 @@ func (a *SPConfigAPIService) ListSpConfigObjectsExecute(r ApiListSpConfigObjects if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_v2024/api_suggested_entitlement_description.go b/api_v2024/api_suggested_entitlement_description.go index b7e71c2e4..f46381a52 100644 --- a/api_v2024/api_suggested_entitlement_description.go +++ b/api_v2024/api_suggested_entitlement_description.go @@ -106,7 +106,7 @@ func (a *SuggestedEntitlementDescriptionAPIService) GetSedBatchStatsExecute(r Ap if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -288,7 +288,7 @@ func (a *SuggestedEntitlementDescriptionAPIService) GetSedBatchesExecute(r ApiGe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -495,22 +495,22 @@ func (a *SuggestedEntitlementDescriptionAPIService) ListSedsExecute(r ApiListSed } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } if r.countOnly != nil { - parameterAddToQuery(localVarQueryParams, "count-only", r.countOnly, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count-only", r.countOnly, "", "") } if r.requestedByAnyone != nil { - parameterAddToQuery(localVarQueryParams, "requested-by-anyone", r.requestedByAnyone, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-by-anyone", r.requestedByAnyone, "", "") } if r.showPendingStatusOnly != nil { - parameterAddToQuery(localVarQueryParams, "show-pending-status-only", r.showPendingStatusOnly, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "show-pending-status-only", r.showPendingStatusOnly, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -529,7 +529,7 @@ func (a *SuggestedEntitlementDescriptionAPIService) ListSedsExecute(r ApiListSed if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -730,7 +730,7 @@ func (a *SuggestedEntitlementDescriptionAPIService) PatchSedExecute(r ApiPatchSe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.sedPatch req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -930,7 +930,7 @@ func (a *SuggestedEntitlementDescriptionAPIService) SubmitSedApprovalExecute(r A if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.sedApproval req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1130,7 +1130,7 @@ func (a *SuggestedEntitlementDescriptionAPIService) SubmitSedAssignmentExecute(r if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.sedAssignment req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1321,7 +1321,7 @@ func (a *SuggestedEntitlementDescriptionAPIService) SubmitSedBatchRequestExecute if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.sedBatchRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_tagged_objects.go b/api_v2024/api_tagged_objects.go index 4b1d19a29..514db4bb0 100644 --- a/api_v2024/api_tagged_objects.go +++ b/api_v2024/api_tagged_objects.go @@ -566,25 +566,25 @@ func (a *TaggedObjectsAPIService) ListTaggedObjectsExecute(r ApiListTaggedObject localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -774,25 +774,25 @@ func (a *TaggedObjectsAPIService) ListTaggedObjectsByTypeExecute(r ApiListTagged localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_task_management.go b/api_v2024/api_task_management.go index 6131e6abe..57013bb06 100644 --- a/api_v2024/api_task_management.go +++ b/api_v2024/api_task_management.go @@ -104,19 +104,19 @@ func (a *TaskManagementAPIService) GetPendingTaskHeadersExecute(r ApiGetPendingT } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -138,7 +138,7 @@ func (a *TaskManagementAPIService) GetPendingTaskHeadersExecute(r ApiGetPendingT if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -271,19 +271,19 @@ func (a *TaskManagementAPIService) GetPendingTasksExecute(r ApiGetPendingTasksRe } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -305,7 +305,7 @@ func (a *TaskManagementAPIService) GetPendingTasksExecute(r ApiGetPendingTasksRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -446,7 +446,7 @@ func (a *TaskManagementAPIService) GetTaskStatusExecute(r ApiGetTaskStatusReques if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -625,28 +625,28 @@ func (a *TaskManagementAPIService) GetTaskStatusListExecute(r ApiGetTaskStatusLi } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -665,7 +665,7 @@ func (a *TaskManagementAPIService) GetTaskStatusListExecute(r ApiGetTaskStatusLi if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -866,7 +866,7 @@ func (a *TaskManagementAPIService) UpdateTaskStatusExecute(r ApiUpdateTaskStatus if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.jsonPatchOperation req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_tenant.go b/api_v2024/api_tenant.go index 73b6a7346..a7533702d 100644 --- a/api_v2024/api_tenant.go +++ b/api_v2024/api_tenant.go @@ -100,7 +100,7 @@ func (a *TenantAPIService) GetTenantExecute(r ApiGetTenantRequest) (*Tenant, *ht if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_v2024/api_transforms.go b/api_v2024/api_transforms.go index d90bb675b..d96b122e9 100644 --- a/api_v2024/api_transforms.go +++ b/api_v2024/api_transforms.go @@ -608,28 +608,28 @@ func (a *TransformsAPIService) ListTransformsExecute(r ApiListTransformsRequest) localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.name != nil { - parameterAddToQuery(localVarQueryParams, "name", r.name, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_triggers.go b/api_v2024/api_triggers.go index ab21c3885..5b17f4daa 100644 --- a/api_v2024/api_triggers.go +++ b/api_v2024/api_triggers.go @@ -118,7 +118,7 @@ func (a *TriggersAPIService) CompleteTriggerInvocationExecute(r ApiCompleteTrigg if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.completeInvocation req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -298,7 +298,7 @@ func (a *TriggersAPIService) CreateSubscriptionExecute(r ApiCreateSubscriptionRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.subscriptionPostRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -472,7 +472,7 @@ func (a *TriggersAPIService) DeleteSubscriptionExecute(r ApiDeleteSubscriptionRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -663,28 +663,28 @@ func (a *TriggersAPIService) ListSubscriptionsExecute(r ApiListSubscriptionsRequ } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -703,7 +703,7 @@ func (a *TriggersAPIService) ListSubscriptionsExecute(r ApiListSubscriptionsRequ if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -894,28 +894,28 @@ func (a *TriggersAPIService) ListTriggerInvocationStatusExecute(r ApiListTrigger } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -934,7 +934,7 @@ func (a *TriggersAPIService) ListTriggerInvocationStatusExecute(r ApiListTrigger if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1123,28 +1123,28 @@ func (a *TriggersAPIService) ListTriggersExecute(r ApiListTriggersRequest) ([]Tr } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1163,7 +1163,7 @@ func (a *TriggersAPIService) ListTriggersExecute(r ApiListTriggersRequest) ([]Tr if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1354,7 +1354,7 @@ func (a *TriggersAPIService) PatchSubscriptionExecute(r ApiPatchSubscriptionRequ if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.subscriptionPatchRequestInner req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1552,7 +1552,7 @@ func (a *TriggersAPIService) StartTestTriggerInvocationExecute(r ApiStartTestTri if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.testInvocation req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1740,7 +1740,7 @@ func (a *TriggersAPIService) TestSubscriptionFilterExecute(r ApiTestSubscription if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.validateFilterInputDto req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1940,7 +1940,7 @@ func (a *TriggersAPIService) UpdateSubscriptionExecute(r ApiUpdateSubscriptionRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.subscriptionPutRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_ui_metadata.go b/api_v2024/api_ui_metadata.go index b85960f76..e1ce9d344 100644 --- a/api_v2024/api_ui_metadata.go +++ b/api_v2024/api_ui_metadata.go @@ -101,7 +101,7 @@ func (a *UIMetadataAPIService) GetTenantUiMetadataExecute(r ApiGetTenantUiMetada if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -298,7 +298,7 @@ func (a *UIMetadataAPIService) SetTenantUiMetadataExecute(r ApiSetTenantUiMetada if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.tenantUiMetadataItemUpdateRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_work_items.go b/api_v2024/api_work_items.go index 9427ac3a0..40becc590 100644 --- a/api_v2024/api_work_items.go +++ b/api_v2024/api_work_items.go @@ -605,22 +605,22 @@ func (a *WorkItemsAPIService) GetCompletedWorkItemsExecute(r ApiGetCompletedWork localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "ownerId", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ownerId", r.ownerId, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -786,7 +786,7 @@ func (a *WorkItemsAPIService) GetCountCompletedWorkItemsExecute(r ApiGetCountCom localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "ownerId", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ownerId", r.ownerId, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -949,7 +949,7 @@ func (a *WorkItemsAPIService) GetCountWorkItemsExecute(r ApiGetCountWorkItemsReq localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "ownerId", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ownerId", r.ownerId, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1269,7 +1269,7 @@ func (a *WorkItemsAPIService) GetWorkItemsSummaryExecute(r ApiGetWorkItemsSummar localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "ownerId", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ownerId", r.ownerId, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1453,25 +1453,25 @@ func (a *WorkItemsAPIService) ListWorkItemsExecute(r ApiListWorkItemsRequest) ([ localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "ownerId", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ownerId", r.ownerId, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/api_work_reassignment.go b/api_v2024/api_work_reassignment.go index 80bce7b0a..92f550b2f 100644 --- a/api_v2024/api_work_reassignment.go +++ b/api_v2024/api_work_reassignment.go @@ -116,7 +116,7 @@ func (a *WorkReassignmentAPIService) CreateReassignmentConfigurationExecute(r Ap if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.configurationItemRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -290,7 +290,7 @@ func (a *WorkReassignmentAPIService) DeleteReassignmentConfigurationExecute(r Ap if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -450,7 +450,7 @@ func (a *WorkReassignmentAPIService) GetEvaluateReassignmentConfigurationExecute } if r.exclusionFilters != nil { - parameterAddToQuery(localVarQueryParams, "exclusionFilters", r.exclusionFilters, "csv") + parameterAddToHeaderOrQuery(localVarQueryParams, "exclusionFilters", r.exclusionFilters, "", "csv") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -469,7 +469,7 @@ func (a *WorkReassignmentAPIService) GetEvaluateReassignmentConfigurationExecute if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -639,7 +639,7 @@ func (a *WorkReassignmentAPIService) GetReassignmentConfigTypesExecute(r ApiGetR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -813,7 +813,7 @@ func (a *WorkReassignmentAPIService) GetReassignmentConfigurationExecute(r ApiGe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -994,7 +994,7 @@ func (a *WorkReassignmentAPIService) GetTenantConfigConfigurationExecute(r ApiGe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1175,7 +1175,7 @@ func (a *WorkReassignmentAPIService) ListReassignmentConfigurationsExecute(r Api if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1375,7 +1375,7 @@ func (a *WorkReassignmentAPIService) PutReassignmentConfigExecute(r ApiPutReassi if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.configurationItemRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1562,7 +1562,7 @@ func (a *WorkReassignmentAPIService) PutTenantConfigurationExecute(r ApiPutTenan if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "X-SailPoint-Experimental", r.xSailPointExperimental, "", "") // body params localVarPostBody = r.tenantConfigurationRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/api_v2024/api_workflows.go b/api_v2024/api_workflows.go index 0d59aa962..f22ef5512 100644 --- a/api_v2024/api_workflows.go +++ b/api_v2024/api_workflows.go @@ -1393,25 +1393,25 @@ func (a *WorkflowsAPIService) GetWorkflowExecutionsExecute(r ApiGetWorkflowExecu localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1592,13 +1592,13 @@ func (a *WorkflowsAPIService) ListCompleteWorkflowLibraryExecute(r ApiListComple localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue @@ -1778,19 +1778,19 @@ func (a *WorkflowsAPIService) ListWorkflowLibraryActionsExecute(r ApiListWorkflo localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2120,19 +2120,19 @@ func (a *WorkflowsAPIService) ListWorkflowLibraryTriggersExecute(r ApiListWorkfl localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v2024/client.go b/api_v2024/client.go index e9bc8247b..f8c1ef0c1 100644 --- a/api_v2024/client.go +++ b/api_v2024/client.go @@ -38,8 +38,8 @@ retryablehttp "github.com/hashicorp/go-retryablehttp" ) var ( - jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) - xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) ) @@ -380,8 +380,9 @@ func parameterValueToString( obj interface{}, key string ) string { return fmt.Sprintf("%v", dataMap[key]) } -// parameterAddToQuery adds the provided object to the url query supporting deep object syntax -func parameterAddToQuery(queryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { var v = reflect.ValueOf(obj) var value = "" if v == reflect.ValueOf(nil) { @@ -397,11 +398,11 @@ func parameterAddToQuery(queryParams interface{}, keyPrefix string, obj interfac if err != nil { return } - parameterAddToQuery(queryParams, keyPrefix, dataMap, collectionType) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) return } if t, ok := obj.(time.Time); ok { - parameterAddToQuery(queryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) return } value = v.Type().String() + " value" @@ -413,7 +414,11 @@ func parameterAddToQuery(queryParams interface{}, keyPrefix string, obj interfac var lenIndValue = indValue.Len() for i:=0;i 1 { // more than 1 match // reset to nil - dst.ArrayOfMapmapOfStringinterface = nil - dst.MapmapOfStringinterface = nil + dst.ArrayOfMapmapOfStringAny = nil + dst.MapmapOfStringAny = nil return fmt.Errorf("data matches more than one schema in oneOf(WorkflowLibraryActionExampleOutput)") } else if match == 1 { @@ -81,12 +90,12 @@ func (dst *WorkflowLibraryActionExampleOutput) UnmarshalJSON(data []byte) error // Marshal data from the first non-nil pointers in the struct to JSON func (src WorkflowLibraryActionExampleOutput) MarshalJSON() ([]byte, error) { - if src.ArrayOfMapmapOfStringinterface != nil { - return json.Marshal(&src.ArrayOfMapmapOfStringinterface) + if src.ArrayOfMapmapOfStringAny != nil { + return json.Marshal(&src.ArrayOfMapmapOfStringAny) } - if src.MapmapOfStringinterface != nil { - return json.Marshal(&src.MapmapOfStringinterface) + if src.MapmapOfStringAny != nil { + return json.Marshal(&src.MapmapOfStringAny) } return nil, nil // no data in oneOf schemas @@ -97,12 +106,12 @@ func (obj *WorkflowLibraryActionExampleOutput) GetActualInstance() (interface{}) if obj == nil { return nil } - if obj.ArrayOfMapmapOfStringinterface != nil { - return obj.ArrayOfMapmapOfStringinterface + if obj.ArrayOfMapmapOfStringAny != nil { + return obj.ArrayOfMapmapOfStringAny } - if obj.MapmapOfStringinterface != nil { - return obj.MapmapOfStringinterface + if obj.MapmapOfStringAny != nil { + return obj.MapmapOfStringAny } // all schemas are nil diff --git a/api_v2024/model_workflow_library_form_fields.go b/api_v2024/model_workflow_library_form_fields.go index fffce0689..de181318c 100644 --- a/api_v2024/model_workflow_library_form_fields.go +++ b/api_v2024/model_workflow_library_form_fields.go @@ -59,7 +59,7 @@ func NewWorkflowLibraryFormFieldsWithDefaults() *WorkflowLibraryFormFields { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowLibraryFormFields) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -69,7 +69,7 @@ func (o *WorkflowLibraryFormFields) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryFormFields) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -77,7 +77,7 @@ func (o *WorkflowLibraryFormFields) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkflowLibraryFormFields) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -91,7 +91,7 @@ func (o *WorkflowLibraryFormFields) SetDescription(v string) { // GetHelpText returns the HelpText field value if set, zero value otherwise. func (o *WorkflowLibraryFormFields) GetHelpText() string { - if o == nil || isNil(o.HelpText) { + if o == nil || IsNil(o.HelpText) { var ret string return ret } @@ -101,7 +101,7 @@ func (o *WorkflowLibraryFormFields) GetHelpText() string { // GetHelpTextOk returns a tuple with the HelpText field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryFormFields) GetHelpTextOk() (*string, bool) { - if o == nil || isNil(o.HelpText) { + if o == nil || IsNil(o.HelpText) { return nil, false } return o.HelpText, true @@ -109,7 +109,7 @@ func (o *WorkflowLibraryFormFields) GetHelpTextOk() (*string, bool) { // HasHelpText returns a boolean if a field has been set. func (o *WorkflowLibraryFormFields) HasHelpText() bool { - if o != nil && !isNil(o.HelpText) { + if o != nil && !IsNil(o.HelpText) { return true } @@ -123,7 +123,7 @@ func (o *WorkflowLibraryFormFields) SetHelpText(v string) { // GetLabel returns the Label field value if set, zero value otherwise. func (o *WorkflowLibraryFormFields) GetLabel() string { - if o == nil || isNil(o.Label) { + if o == nil || IsNil(o.Label) { var ret string return ret } @@ -133,7 +133,7 @@ func (o *WorkflowLibraryFormFields) GetLabel() string { // GetLabelOk returns a tuple with the Label field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryFormFields) GetLabelOk() (*string, bool) { - if o == nil || isNil(o.Label) { + if o == nil || IsNil(o.Label) { return nil, false } return o.Label, true @@ -141,7 +141,7 @@ func (o *WorkflowLibraryFormFields) GetLabelOk() (*string, bool) { // HasLabel returns a boolean if a field has been set. func (o *WorkflowLibraryFormFields) HasLabel() bool { - if o != nil && !isNil(o.Label) { + if o != nil && !IsNil(o.Label) { return true } @@ -155,7 +155,7 @@ func (o *WorkflowLibraryFormFields) SetLabel(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowLibraryFormFields) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -165,7 +165,7 @@ func (o *WorkflowLibraryFormFields) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryFormFields) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -173,7 +173,7 @@ func (o *WorkflowLibraryFormFields) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkflowLibraryFormFields) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -187,7 +187,7 @@ func (o *WorkflowLibraryFormFields) SetName(v string) { // GetRequired returns the Required field value if set, zero value otherwise. func (o *WorkflowLibraryFormFields) GetRequired() bool { - if o == nil || isNil(o.Required) { + if o == nil || IsNil(o.Required) { var ret bool return ret } @@ -197,7 +197,7 @@ func (o *WorkflowLibraryFormFields) GetRequired() bool { // GetRequiredOk returns a tuple with the Required field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryFormFields) GetRequiredOk() (*bool, bool) { - if o == nil || isNil(o.Required) { + if o == nil || IsNil(o.Required) { return nil, false } return o.Required, true @@ -205,7 +205,7 @@ func (o *WorkflowLibraryFormFields) GetRequiredOk() (*bool, bool) { // HasRequired returns a boolean if a field has been set. func (o *WorkflowLibraryFormFields) HasRequired() bool { - if o != nil && !isNil(o.Required) { + if o != nil && !IsNil(o.Required) { return true } @@ -219,7 +219,7 @@ func (o *WorkflowLibraryFormFields) SetRequired(v bool) { // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowLibraryFormFields) GetType() string { - if o == nil || isNil(o.Type.Get()) { + if o == nil || IsNil(o.Type.Get()) { var ret string return ret } @@ -269,19 +269,19 @@ func (o WorkflowLibraryFormFields) MarshalJSON() ([]byte, error) { func (o WorkflowLibraryFormFields) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.HelpText) { + if !IsNil(o.HelpText) { toSerialize["helpText"] = o.HelpText } - if !isNil(o.Label) { + if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Required) { + if !IsNil(o.Required) { toSerialize["required"] = o.Required } if o.Type.IsSet() { @@ -295,16 +295,20 @@ func (o WorkflowLibraryFormFields) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowLibraryFormFields) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowLibraryFormFields) UnmarshalJSON(data []byte) (err error) { varWorkflowLibraryFormFields := _WorkflowLibraryFormFields{} - if err = json.Unmarshal(bytes, &varWorkflowLibraryFormFields); err == nil { + err = json.Unmarshal(data, &varWorkflowLibraryFormFields) + + if err != nil { + return err + } + *o = WorkflowLibraryFormFields(varWorkflowLibraryFormFields) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "description") delete(additionalProperties, "helpText") delete(additionalProperties, "label") diff --git a/api_v2024/model_workflow_library_operator.go b/api_v2024/model_workflow_library_operator.go index c3aa8e905..22727678e 100644 --- a/api_v2024/model_workflow_library_operator.go +++ b/api_v2024/model_workflow_library_operator.go @@ -59,7 +59,7 @@ func NewWorkflowLibraryOperatorWithDefaults() *WorkflowLibraryOperator { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -69,7 +69,7 @@ func (o *WorkflowLibraryOperator) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -77,7 +77,7 @@ func (o *WorkflowLibraryOperator) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -91,7 +91,7 @@ func (o *WorkflowLibraryOperator) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -101,7 +101,7 @@ func (o *WorkflowLibraryOperator) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -109,7 +109,7 @@ func (o *WorkflowLibraryOperator) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -123,7 +123,7 @@ func (o *WorkflowLibraryOperator) SetName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -133,7 +133,7 @@ func (o *WorkflowLibraryOperator) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -141,7 +141,7 @@ func (o *WorkflowLibraryOperator) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -155,7 +155,7 @@ func (o *WorkflowLibraryOperator) SetType(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -165,7 +165,7 @@ func (o *WorkflowLibraryOperator) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -173,7 +173,7 @@ func (o *WorkflowLibraryOperator) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -187,7 +187,7 @@ func (o *WorkflowLibraryOperator) SetDescription(v string) { // GetIsDynamicSchema returns the IsDynamicSchema field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetIsDynamicSchema() bool { - if o == nil || isNil(o.IsDynamicSchema) { + if o == nil || IsNil(o.IsDynamicSchema) { var ret bool return ret } @@ -197,7 +197,7 @@ func (o *WorkflowLibraryOperator) GetIsDynamicSchema() bool { // GetIsDynamicSchemaOk returns a tuple with the IsDynamicSchema field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetIsDynamicSchemaOk() (*bool, bool) { - if o == nil || isNil(o.IsDynamicSchema) { + if o == nil || IsNil(o.IsDynamicSchema) { return nil, false } return o.IsDynamicSchema, true @@ -205,7 +205,7 @@ func (o *WorkflowLibraryOperator) GetIsDynamicSchemaOk() (*bool, bool) { // HasIsDynamicSchema returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasIsDynamicSchema() bool { - if o != nil && !isNil(o.IsDynamicSchema) { + if o != nil && !IsNil(o.IsDynamicSchema) { return true } @@ -219,7 +219,7 @@ func (o *WorkflowLibraryOperator) SetIsDynamicSchema(v bool) { // GetDeprecated returns the Deprecated field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetDeprecated() bool { - if o == nil || isNil(o.Deprecated) { + if o == nil || IsNil(o.Deprecated) { var ret bool return ret } @@ -229,7 +229,7 @@ func (o *WorkflowLibraryOperator) GetDeprecated() bool { // GetDeprecatedOk returns a tuple with the Deprecated field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetDeprecatedOk() (*bool, bool) { - if o == nil || isNil(o.Deprecated) { + if o == nil || IsNil(o.Deprecated) { return nil, false } return o.Deprecated, true @@ -237,7 +237,7 @@ func (o *WorkflowLibraryOperator) GetDeprecatedOk() (*bool, bool) { // HasDeprecated returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasDeprecated() bool { - if o != nil && !isNil(o.Deprecated) { + if o != nil && !IsNil(o.Deprecated) { return true } @@ -251,7 +251,7 @@ func (o *WorkflowLibraryOperator) SetDeprecated(v bool) { // GetDeprecatedBy returns the DeprecatedBy field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetDeprecatedBy() time.Time { - if o == nil || isNil(o.DeprecatedBy) { + if o == nil || IsNil(o.DeprecatedBy) { var ret time.Time return ret } @@ -261,7 +261,7 @@ func (o *WorkflowLibraryOperator) GetDeprecatedBy() time.Time { // GetDeprecatedByOk returns a tuple with the DeprecatedBy field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetDeprecatedByOk() (*time.Time, bool) { - if o == nil || isNil(o.DeprecatedBy) { + if o == nil || IsNil(o.DeprecatedBy) { return nil, false } return o.DeprecatedBy, true @@ -269,7 +269,7 @@ func (o *WorkflowLibraryOperator) GetDeprecatedByOk() (*time.Time, bool) { // HasDeprecatedBy returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasDeprecatedBy() bool { - if o != nil && !isNil(o.DeprecatedBy) { + if o != nil && !IsNil(o.DeprecatedBy) { return true } @@ -283,7 +283,7 @@ func (o *WorkflowLibraryOperator) SetDeprecatedBy(v time.Time) { // GetIsSimulationEnabled returns the IsSimulationEnabled field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetIsSimulationEnabled() bool { - if o == nil || isNil(o.IsSimulationEnabled) { + if o == nil || IsNil(o.IsSimulationEnabled) { var ret bool return ret } @@ -293,7 +293,7 @@ func (o *WorkflowLibraryOperator) GetIsSimulationEnabled() bool { // GetIsSimulationEnabledOk returns a tuple with the IsSimulationEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetIsSimulationEnabledOk() (*bool, bool) { - if o == nil || isNil(o.IsSimulationEnabled) { + if o == nil || IsNil(o.IsSimulationEnabled) { return nil, false } return o.IsSimulationEnabled, true @@ -301,7 +301,7 @@ func (o *WorkflowLibraryOperator) GetIsSimulationEnabledOk() (*bool, bool) { // HasIsSimulationEnabled returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasIsSimulationEnabled() bool { - if o != nil && !isNil(o.IsSimulationEnabled) { + if o != nil && !IsNil(o.IsSimulationEnabled) { return true } @@ -326,7 +326,7 @@ func (o *WorkflowLibraryOperator) GetFormFields() []WorkflowLibraryFormFields { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WorkflowLibraryOperator) GetFormFieldsOk() ([]WorkflowLibraryFormFields, bool) { - if o == nil || isNil(o.FormFields) { + if o == nil || IsNil(o.FormFields) { return nil, false } return o.FormFields, true @@ -334,7 +334,7 @@ func (o *WorkflowLibraryOperator) GetFormFieldsOk() ([]WorkflowLibraryFormFields // HasFormFields returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasFormFields() bool { - if o != nil && isNil(o.FormFields) { + if o != nil && !IsNil(o.FormFields) { return true } @@ -356,28 +356,28 @@ func (o WorkflowLibraryOperator) MarshalJSON() ([]byte, error) { func (o WorkflowLibraryOperator) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.IsDynamicSchema) { + if !IsNil(o.IsDynamicSchema) { toSerialize["isDynamicSchema"] = o.IsDynamicSchema } - if !isNil(o.Deprecated) { + if !IsNil(o.Deprecated) { toSerialize["deprecated"] = o.Deprecated } - if !isNil(o.DeprecatedBy) { + if !IsNil(o.DeprecatedBy) { toSerialize["deprecatedBy"] = o.DeprecatedBy } - if !isNil(o.IsSimulationEnabled) { + if !IsNil(o.IsSimulationEnabled) { toSerialize["isSimulationEnabled"] = o.IsSimulationEnabled } if o.FormFields != nil { @@ -391,16 +391,20 @@ func (o WorkflowLibraryOperator) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowLibraryOperator) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowLibraryOperator) UnmarshalJSON(data []byte) (err error) { varWorkflowLibraryOperator := _WorkflowLibraryOperator{} - if err = json.Unmarshal(bytes, &varWorkflowLibraryOperator); err == nil { + err = json.Unmarshal(data, &varWorkflowLibraryOperator) + + if err != nil { + return err + } + *o = WorkflowLibraryOperator(varWorkflowLibraryOperator) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "type") diff --git a/api_v2024/model_workflow_library_trigger.go b/api_v2024/model_workflow_library_trigger.go index 8091925e4..03764038f 100644 --- a/api_v2024/model_workflow_library_trigger.go +++ b/api_v2024/model_workflow_library_trigger.go @@ -67,7 +67,7 @@ func NewWorkflowLibraryTriggerWithDefaults() *WorkflowLibraryTrigger { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -77,7 +77,7 @@ func (o *WorkflowLibraryTrigger) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -85,7 +85,7 @@ func (o *WorkflowLibraryTrigger) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -99,7 +99,7 @@ func (o *WorkflowLibraryTrigger) SetId(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -109,7 +109,7 @@ func (o *WorkflowLibraryTrigger) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -117,7 +117,7 @@ func (o *WorkflowLibraryTrigger) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -131,7 +131,7 @@ func (o *WorkflowLibraryTrigger) SetType(v string) { // GetDeprecated returns the Deprecated field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetDeprecated() bool { - if o == nil || isNil(o.Deprecated) { + if o == nil || IsNil(o.Deprecated) { var ret bool return ret } @@ -141,7 +141,7 @@ func (o *WorkflowLibraryTrigger) GetDeprecated() bool { // GetDeprecatedOk returns a tuple with the Deprecated field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetDeprecatedOk() (*bool, bool) { - if o == nil || isNil(o.Deprecated) { + if o == nil || IsNil(o.Deprecated) { return nil, false } return o.Deprecated, true @@ -149,7 +149,7 @@ func (o *WorkflowLibraryTrigger) GetDeprecatedOk() (*bool, bool) { // HasDeprecated returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasDeprecated() bool { - if o != nil && !isNil(o.Deprecated) { + if o != nil && !IsNil(o.Deprecated) { return true } @@ -163,7 +163,7 @@ func (o *WorkflowLibraryTrigger) SetDeprecated(v bool) { // GetDeprecatedBy returns the DeprecatedBy field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetDeprecatedBy() time.Time { - if o == nil || isNil(o.DeprecatedBy) { + if o == nil || IsNil(o.DeprecatedBy) { var ret time.Time return ret } @@ -173,7 +173,7 @@ func (o *WorkflowLibraryTrigger) GetDeprecatedBy() time.Time { // GetDeprecatedByOk returns a tuple with the DeprecatedBy field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetDeprecatedByOk() (*time.Time, bool) { - if o == nil || isNil(o.DeprecatedBy) { + if o == nil || IsNil(o.DeprecatedBy) { return nil, false } return o.DeprecatedBy, true @@ -181,7 +181,7 @@ func (o *WorkflowLibraryTrigger) GetDeprecatedByOk() (*time.Time, bool) { // HasDeprecatedBy returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasDeprecatedBy() bool { - if o != nil && !isNil(o.DeprecatedBy) { + if o != nil && !IsNil(o.DeprecatedBy) { return true } @@ -195,7 +195,7 @@ func (o *WorkflowLibraryTrigger) SetDeprecatedBy(v time.Time) { // GetIsSimulationEnabled returns the IsSimulationEnabled field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetIsSimulationEnabled() bool { - if o == nil || isNil(o.IsSimulationEnabled) { + if o == nil || IsNil(o.IsSimulationEnabled) { var ret bool return ret } @@ -205,7 +205,7 @@ func (o *WorkflowLibraryTrigger) GetIsSimulationEnabled() bool { // GetIsSimulationEnabledOk returns a tuple with the IsSimulationEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetIsSimulationEnabledOk() (*bool, bool) { - if o == nil || isNil(o.IsSimulationEnabled) { + if o == nil || IsNil(o.IsSimulationEnabled) { return nil, false } return o.IsSimulationEnabled, true @@ -213,7 +213,7 @@ func (o *WorkflowLibraryTrigger) GetIsSimulationEnabledOk() (*bool, bool) { // HasIsSimulationEnabled returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasIsSimulationEnabled() bool { - if o != nil && !isNil(o.IsSimulationEnabled) { + if o != nil && !IsNil(o.IsSimulationEnabled) { return true } @@ -227,7 +227,7 @@ func (o *WorkflowLibraryTrigger) SetIsSimulationEnabled(v bool) { // GetOutputSchema returns the OutputSchema field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetOutputSchema() map[string]interface{} { - if o == nil || isNil(o.OutputSchema) { + if o == nil || IsNil(o.OutputSchema) { var ret map[string]interface{} return ret } @@ -237,7 +237,7 @@ func (o *WorkflowLibraryTrigger) GetOutputSchema() map[string]interface{} { // GetOutputSchemaOk returns a tuple with the OutputSchema field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetOutputSchemaOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.OutputSchema) { + if o == nil || IsNil(o.OutputSchema) { return map[string]interface{}{}, false } return o.OutputSchema, true @@ -245,7 +245,7 @@ func (o *WorkflowLibraryTrigger) GetOutputSchemaOk() (map[string]interface{}, bo // HasOutputSchema returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasOutputSchema() bool { - if o != nil && !isNil(o.OutputSchema) { + if o != nil && !IsNil(o.OutputSchema) { return true } @@ -259,7 +259,7 @@ func (o *WorkflowLibraryTrigger) SetOutputSchema(v map[string]interface{}) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -269,7 +269,7 @@ func (o *WorkflowLibraryTrigger) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -277,7 +277,7 @@ func (o *WorkflowLibraryTrigger) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -291,7 +291,7 @@ func (o *WorkflowLibraryTrigger) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -301,7 +301,7 @@ func (o *WorkflowLibraryTrigger) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -309,7 +309,7 @@ func (o *WorkflowLibraryTrigger) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -323,7 +323,7 @@ func (o *WorkflowLibraryTrigger) SetDescription(v string) { // GetIsDynamicSchema returns the IsDynamicSchema field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetIsDynamicSchema() bool { - if o == nil || isNil(o.IsDynamicSchema) { + if o == nil || IsNil(o.IsDynamicSchema) { var ret bool return ret } @@ -333,7 +333,7 @@ func (o *WorkflowLibraryTrigger) GetIsDynamicSchema() bool { // GetIsDynamicSchemaOk returns a tuple with the IsDynamicSchema field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetIsDynamicSchemaOk() (*bool, bool) { - if o == nil || isNil(o.IsDynamicSchema) { + if o == nil || IsNil(o.IsDynamicSchema) { return nil, false } return o.IsDynamicSchema, true @@ -341,7 +341,7 @@ func (o *WorkflowLibraryTrigger) GetIsDynamicSchemaOk() (*bool, bool) { // HasIsDynamicSchema returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasIsDynamicSchema() bool { - if o != nil && !isNil(o.IsDynamicSchema) { + if o != nil && !IsNil(o.IsDynamicSchema) { return true } @@ -366,7 +366,7 @@ func (o *WorkflowLibraryTrigger) GetInputExample() map[string]interface{} { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WorkflowLibraryTrigger) GetInputExampleOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.InputExample) { + if o == nil || IsNil(o.InputExample) { return map[string]interface{}{}, false } return o.InputExample, true @@ -374,7 +374,7 @@ func (o *WorkflowLibraryTrigger) GetInputExampleOk() (map[string]interface{}, bo // HasInputExample returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasInputExample() bool { - if o != nil && isNil(o.InputExample) { + if o != nil && !IsNil(o.InputExample) { return true } @@ -399,7 +399,7 @@ func (o *WorkflowLibraryTrigger) GetFormFields() []WorkflowLibraryFormFields { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WorkflowLibraryTrigger) GetFormFieldsOk() ([]WorkflowLibraryFormFields, bool) { - if o == nil || isNil(o.FormFields) { + if o == nil || IsNil(o.FormFields) { return nil, false } return o.FormFields, true @@ -407,7 +407,7 @@ func (o *WorkflowLibraryTrigger) GetFormFieldsOk() ([]WorkflowLibraryFormFields, // HasFormFields returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasFormFields() bool { - if o != nil && isNil(o.FormFields) { + if o != nil && !IsNil(o.FormFields) { return true } @@ -429,31 +429,31 @@ func (o WorkflowLibraryTrigger) MarshalJSON() ([]byte, error) { func (o WorkflowLibraryTrigger) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Deprecated) { + if !IsNil(o.Deprecated) { toSerialize["deprecated"] = o.Deprecated } - if !isNil(o.DeprecatedBy) { + if !IsNil(o.DeprecatedBy) { toSerialize["deprecatedBy"] = o.DeprecatedBy } - if !isNil(o.IsSimulationEnabled) { + if !IsNil(o.IsSimulationEnabled) { toSerialize["isSimulationEnabled"] = o.IsSimulationEnabled } - if !isNil(o.OutputSchema) { + if !IsNil(o.OutputSchema) { toSerialize["outputSchema"] = o.OutputSchema } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.IsDynamicSchema) { + if !IsNil(o.IsDynamicSchema) { toSerialize["isDynamicSchema"] = o.IsDynamicSchema } if o.InputExample != nil { @@ -470,16 +470,20 @@ func (o WorkflowLibraryTrigger) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowLibraryTrigger) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowLibraryTrigger) UnmarshalJSON(data []byte) (err error) { varWorkflowLibraryTrigger := _WorkflowLibraryTrigger{} - if err = json.Unmarshal(bytes, &varWorkflowLibraryTrigger); err == nil { + err = json.Unmarshal(data, &varWorkflowLibraryTrigger) + + if err != nil { + return err + } + *o = WorkflowLibraryTrigger(varWorkflowLibraryTrigger) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "type") delete(additionalProperties, "deprecated") diff --git a/api_v2024/model_workflow_modified_by.go b/api_v2024/model_workflow_modified_by.go index 151ee3b76..6d24a9ea6 100644 --- a/api_v2024/model_workflow_modified_by.go +++ b/api_v2024/model_workflow_modified_by.go @@ -48,7 +48,7 @@ func NewWorkflowModifiedByWithDefaults() *WorkflowModifiedBy { // GetType returns the Type field value if set, zero value otherwise. func (o *WorkflowModifiedBy) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -58,7 +58,7 @@ func (o *WorkflowModifiedBy) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowModifiedBy) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -66,7 +66,7 @@ func (o *WorkflowModifiedBy) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *WorkflowModifiedBy) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -80,7 +80,7 @@ func (o *WorkflowModifiedBy) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkflowModifiedBy) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -90,7 +90,7 @@ func (o *WorkflowModifiedBy) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowModifiedBy) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -98,7 +98,7 @@ func (o *WorkflowModifiedBy) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkflowModifiedBy) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -112,7 +112,7 @@ func (o *WorkflowModifiedBy) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowModifiedBy) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -122,7 +122,7 @@ func (o *WorkflowModifiedBy) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowModifiedBy) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -130,7 +130,7 @@ func (o *WorkflowModifiedBy) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkflowModifiedBy) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -152,13 +152,13 @@ func (o WorkflowModifiedBy) MarshalJSON() ([]byte, error) { func (o WorkflowModifiedBy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -169,16 +169,20 @@ func (o WorkflowModifiedBy) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowModifiedBy) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowModifiedBy) UnmarshalJSON(data []byte) (err error) { varWorkflowModifiedBy := _WorkflowModifiedBy{} - if err = json.Unmarshal(bytes, &varWorkflowModifiedBy); err == nil { + err = json.Unmarshal(data, &varWorkflowModifiedBy) + + if err != nil { + return err + } + *o = WorkflowModifiedBy(varWorkflowModifiedBy) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v2024/model_workflow_o_auth_client.go b/api_v2024/model_workflow_o_auth_client.go index 6c12821f3..14e6ee833 100644 --- a/api_v2024/model_workflow_o_auth_client.go +++ b/api_v2024/model_workflow_o_auth_client.go @@ -49,7 +49,7 @@ func NewWorkflowOAuthClientWithDefaults() *WorkflowOAuthClient { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkflowOAuthClient) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *WorkflowOAuthClient) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowOAuthClient) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -67,7 +67,7 @@ func (o *WorkflowOAuthClient) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkflowOAuthClient) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -81,7 +81,7 @@ func (o *WorkflowOAuthClient) SetId(v string) { // GetSecret returns the Secret field value if set, zero value otherwise. func (o *WorkflowOAuthClient) GetSecret() string { - if o == nil || isNil(o.Secret) { + if o == nil || IsNil(o.Secret) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *WorkflowOAuthClient) GetSecret() string { // GetSecretOk returns a tuple with the Secret field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowOAuthClient) GetSecretOk() (*string, bool) { - if o == nil || isNil(o.Secret) { + if o == nil || IsNil(o.Secret) { return nil, false } return o.Secret, true @@ -99,7 +99,7 @@ func (o *WorkflowOAuthClient) GetSecretOk() (*string, bool) { // HasSecret returns a boolean if a field has been set. func (o *WorkflowOAuthClient) HasSecret() bool { - if o != nil && !isNil(o.Secret) { + if o != nil && !IsNil(o.Secret) { return true } @@ -113,7 +113,7 @@ func (o *WorkflowOAuthClient) SetSecret(v string) { // GetUrl returns the Url field value if set, zero value otherwise. func (o *WorkflowOAuthClient) GetUrl() string { - if o == nil || isNil(o.Url) { + if o == nil || IsNil(o.Url) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *WorkflowOAuthClient) GetUrl() string { // GetUrlOk returns a tuple with the Url field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowOAuthClient) GetUrlOk() (*string, bool) { - if o == nil || isNil(o.Url) { + if o == nil || IsNil(o.Url) { return nil, false } return o.Url, true @@ -131,7 +131,7 @@ func (o *WorkflowOAuthClient) GetUrlOk() (*string, bool) { // HasUrl returns a boolean if a field has been set. func (o *WorkflowOAuthClient) HasUrl() bool { - if o != nil && !isNil(o.Url) { + if o != nil && !IsNil(o.Url) { return true } @@ -153,13 +153,13 @@ func (o WorkflowOAuthClient) MarshalJSON() ([]byte, error) { func (o WorkflowOAuthClient) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Secret) { + if !IsNil(o.Secret) { toSerialize["secret"] = o.Secret } - if !isNil(o.Url) { + if !IsNil(o.Url) { toSerialize["url"] = o.Url } @@ -170,16 +170,20 @@ func (o WorkflowOAuthClient) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowOAuthClient) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowOAuthClient) UnmarshalJSON(data []byte) (err error) { varWorkflowOAuthClient := _WorkflowOAuthClient{} - if err = json.Unmarshal(bytes, &varWorkflowOAuthClient); err == nil { + err = json.Unmarshal(data, &varWorkflowOAuthClient) + + if err != nil { + return err + } + *o = WorkflowOAuthClient(varWorkflowOAuthClient) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "secret") delete(additionalProperties, "url") diff --git a/api_v2024/model_workflow_trigger.go b/api_v2024/model_workflow_trigger.go index d0e10dca7..b12a11673 100644 --- a/api_v2024/model_workflow_trigger.go +++ b/api_v2024/model_workflow_trigger.go @@ -75,7 +75,7 @@ func (o *WorkflowTrigger) SetType(v string) { // GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowTrigger) GetDisplayName() string { - if o == nil || isNil(o.DisplayName.Get()) { + if o == nil || IsNil(o.DisplayName.Get()) { var ret string return ret } @@ -162,8 +162,8 @@ func (o WorkflowTrigger) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowTrigger) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *WorkflowTrigger) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -173,7 +173,7 @@ func (o *WorkflowTrigger) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -187,13 +187,17 @@ func (o *WorkflowTrigger) UnmarshalJSON(bytes []byte) (err error) { varWorkflowTrigger := _WorkflowTrigger{} - if err = json.Unmarshal(bytes, &varWorkflowTrigger); err == nil { + err = json.Unmarshal(data, &varWorkflowTrigger) + + if err != nil { + return err + } + *o = WorkflowTrigger(varWorkflowTrigger) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "displayName") delete(additionalProperties, "attributes") diff --git a/api_v2024/model_workgroup_bulk_delete_request.go b/api_v2024/model_workgroup_bulk_delete_request.go index c17b4e4c2..d3a0a9ba1 100644 --- a/api_v2024/model_workgroup_bulk_delete_request.go +++ b/api_v2024/model_workgroup_bulk_delete_request.go @@ -45,7 +45,7 @@ func NewWorkgroupBulkDeleteRequestWithDefaults() *WorkgroupBulkDeleteRequest { // GetIds returns the Ids field value if set, zero value otherwise. func (o *WorkgroupBulkDeleteRequest) GetIds() []string { - if o == nil || isNil(o.Ids) { + if o == nil || IsNil(o.Ids) { var ret []string return ret } @@ -55,7 +55,7 @@ func (o *WorkgroupBulkDeleteRequest) GetIds() []string { // GetIdsOk returns a tuple with the Ids field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupBulkDeleteRequest) GetIdsOk() ([]string, bool) { - if o == nil || isNil(o.Ids) { + if o == nil || IsNil(o.Ids) { return nil, false } return o.Ids, true @@ -63,7 +63,7 @@ func (o *WorkgroupBulkDeleteRequest) GetIdsOk() ([]string, bool) { // HasIds returns a boolean if a field has been set. func (o *WorkgroupBulkDeleteRequest) HasIds() bool { - if o != nil && !isNil(o.Ids) { + if o != nil && !IsNil(o.Ids) { return true } @@ -85,7 +85,7 @@ func (o WorkgroupBulkDeleteRequest) MarshalJSON() ([]byte, error) { func (o WorkgroupBulkDeleteRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Ids) { + if !IsNil(o.Ids) { toSerialize["ids"] = o.Ids } @@ -96,16 +96,20 @@ func (o WorkgroupBulkDeleteRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkgroupBulkDeleteRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkgroupBulkDeleteRequest) UnmarshalJSON(data []byte) (err error) { varWorkgroupBulkDeleteRequest := _WorkgroupBulkDeleteRequest{} - if err = json.Unmarshal(bytes, &varWorkgroupBulkDeleteRequest); err == nil { + err = json.Unmarshal(data, &varWorkgroupBulkDeleteRequest) + + if err != nil { + return err + } + *o = WorkgroupBulkDeleteRequest(varWorkgroupBulkDeleteRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "ids") o.AdditionalProperties = additionalProperties } diff --git a/api_v2024/model_workgroup_connection_dto.go b/api_v2024/model_workgroup_connection_dto.go index edcf7f192..d364bb894 100644 --- a/api_v2024/model_workgroup_connection_dto.go +++ b/api_v2024/model_workgroup_connection_dto.go @@ -46,7 +46,7 @@ func NewWorkgroupConnectionDtoWithDefaults() *WorkgroupConnectionDto { // GetObject returns the Object field value if set, zero value otherwise. func (o *WorkgroupConnectionDto) GetObject() ConnectedObject { - if o == nil || isNil(o.Object) { + if o == nil || IsNil(o.Object) { var ret ConnectedObject return ret } @@ -56,7 +56,7 @@ func (o *WorkgroupConnectionDto) GetObject() ConnectedObject { // GetObjectOk returns a tuple with the Object field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupConnectionDto) GetObjectOk() (*ConnectedObject, bool) { - if o == nil || isNil(o.Object) { + if o == nil || IsNil(o.Object) { return nil, false } return o.Object, true @@ -64,7 +64,7 @@ func (o *WorkgroupConnectionDto) GetObjectOk() (*ConnectedObject, bool) { // HasObject returns a boolean if a field has been set. func (o *WorkgroupConnectionDto) HasObject() bool { - if o != nil && !isNil(o.Object) { + if o != nil && !IsNil(o.Object) { return true } @@ -78,7 +78,7 @@ func (o *WorkgroupConnectionDto) SetObject(v ConnectedObject) { // GetConnectionType returns the ConnectionType field value if set, zero value otherwise. func (o *WorkgroupConnectionDto) GetConnectionType() string { - if o == nil || isNil(o.ConnectionType) { + if o == nil || IsNil(o.ConnectionType) { var ret string return ret } @@ -88,7 +88,7 @@ func (o *WorkgroupConnectionDto) GetConnectionType() string { // GetConnectionTypeOk returns a tuple with the ConnectionType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupConnectionDto) GetConnectionTypeOk() (*string, bool) { - if o == nil || isNil(o.ConnectionType) { + if o == nil || IsNil(o.ConnectionType) { return nil, false } return o.ConnectionType, true @@ -96,7 +96,7 @@ func (o *WorkgroupConnectionDto) GetConnectionTypeOk() (*string, bool) { // HasConnectionType returns a boolean if a field has been set. func (o *WorkgroupConnectionDto) HasConnectionType() bool { - if o != nil && !isNil(o.ConnectionType) { + if o != nil && !IsNil(o.ConnectionType) { return true } @@ -118,10 +118,10 @@ func (o WorkgroupConnectionDto) MarshalJSON() ([]byte, error) { func (o WorkgroupConnectionDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Object) { + if !IsNil(o.Object) { toSerialize["object"] = o.Object } - if !isNil(o.ConnectionType) { + if !IsNil(o.ConnectionType) { toSerialize["connectionType"] = o.ConnectionType } @@ -132,16 +132,20 @@ func (o WorkgroupConnectionDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkgroupConnectionDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkgroupConnectionDto) UnmarshalJSON(data []byte) (err error) { varWorkgroupConnectionDto := _WorkgroupConnectionDto{} - if err = json.Unmarshal(bytes, &varWorkgroupConnectionDto); err == nil { + err = json.Unmarshal(data, &varWorkgroupConnectionDto) + + if err != nil { + return err + } + *o = WorkgroupConnectionDto(varWorkgroupConnectionDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "object") delete(additionalProperties, "connectionType") o.AdditionalProperties = additionalProperties diff --git a/api_v2024/model_workgroup_delete_item.go b/api_v2024/model_workgroup_delete_item.go index 604fc1b59..850aa5e45 100644 --- a/api_v2024/model_workgroup_delete_item.go +++ b/api_v2024/model_workgroup_delete_item.go @@ -100,7 +100,7 @@ func (o *WorkgroupDeleteItem) SetStatus(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkgroupDeleteItem) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -110,7 +110,7 @@ func (o *WorkgroupDeleteItem) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDeleteItem) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -118,7 +118,7 @@ func (o *WorkgroupDeleteItem) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkgroupDeleteItem) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -142,7 +142,7 @@ func (o WorkgroupDeleteItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["status"] = o.Status - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -153,8 +153,8 @@ func (o WorkgroupDeleteItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkgroupDeleteItem) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *WorkgroupDeleteItem) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -164,7 +164,7 @@ func (o *WorkgroupDeleteItem) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -178,13 +178,17 @@ func (o *WorkgroupDeleteItem) UnmarshalJSON(bytes []byte) (err error) { varWorkgroupDeleteItem := _WorkgroupDeleteItem{} - if err = json.Unmarshal(bytes, &varWorkgroupDeleteItem); err == nil { + err = json.Unmarshal(data, &varWorkgroupDeleteItem) + + if err != nil { + return err + } + *o = WorkgroupDeleteItem(varWorkgroupDeleteItem) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "status") delete(additionalProperties, "description") diff --git a/api_v2024/model_workgroup_dto.go b/api_v2024/model_workgroup_dto.go index 8c092ef71..fc1cb72ef 100644 --- a/api_v2024/model_workgroup_dto.go +++ b/api_v2024/model_workgroup_dto.go @@ -57,7 +57,7 @@ func NewWorkgroupDtoWithDefaults() *WorkgroupDto { // GetOwner returns the Owner field value if set, zero value otherwise. func (o *WorkgroupDto) GetOwner() WorkgroupDtoOwner { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { var ret WorkgroupDtoOwner return ret } @@ -67,7 +67,7 @@ func (o *WorkgroupDto) GetOwner() WorkgroupDtoOwner { // GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDto) GetOwnerOk() (*WorkgroupDtoOwner, bool) { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { return nil, false } return o.Owner, true @@ -75,7 +75,7 @@ func (o *WorkgroupDto) GetOwnerOk() (*WorkgroupDtoOwner, bool) { // HasOwner returns a boolean if a field has been set. func (o *WorkgroupDto) HasOwner() bool { - if o != nil && !isNil(o.Owner) { + if o != nil && !IsNil(o.Owner) { return true } @@ -89,7 +89,7 @@ func (o *WorkgroupDto) SetOwner(v WorkgroupDtoOwner) { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkgroupDto) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -99,7 +99,7 @@ func (o *WorkgroupDto) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDto) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -107,7 +107,7 @@ func (o *WorkgroupDto) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkgroupDto) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -121,7 +121,7 @@ func (o *WorkgroupDto) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkgroupDto) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -131,7 +131,7 @@ func (o *WorkgroupDto) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDto) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -139,7 +139,7 @@ func (o *WorkgroupDto) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkgroupDto) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,7 +153,7 @@ func (o *WorkgroupDto) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkgroupDto) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -163,7 +163,7 @@ func (o *WorkgroupDto) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDto) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -171,7 +171,7 @@ func (o *WorkgroupDto) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkgroupDto) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -185,7 +185,7 @@ func (o *WorkgroupDto) SetDescription(v string) { // GetMemberCount returns the MemberCount field value if set, zero value otherwise. func (o *WorkgroupDto) GetMemberCount() int64 { - if o == nil || isNil(o.MemberCount) { + if o == nil || IsNil(o.MemberCount) { var ret int64 return ret } @@ -195,7 +195,7 @@ func (o *WorkgroupDto) GetMemberCount() int64 { // GetMemberCountOk returns a tuple with the MemberCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDto) GetMemberCountOk() (*int64, bool) { - if o == nil || isNil(o.MemberCount) { + if o == nil || IsNil(o.MemberCount) { return nil, false } return o.MemberCount, true @@ -203,7 +203,7 @@ func (o *WorkgroupDto) GetMemberCountOk() (*int64, bool) { // HasMemberCount returns a boolean if a field has been set. func (o *WorkgroupDto) HasMemberCount() bool { - if o != nil && !isNil(o.MemberCount) { + if o != nil && !IsNil(o.MemberCount) { return true } @@ -217,7 +217,7 @@ func (o *WorkgroupDto) SetMemberCount(v int64) { // GetConnectionCount returns the ConnectionCount field value if set, zero value otherwise. func (o *WorkgroupDto) GetConnectionCount() int64 { - if o == nil || isNil(o.ConnectionCount) { + if o == nil || IsNil(o.ConnectionCount) { var ret int64 return ret } @@ -227,7 +227,7 @@ func (o *WorkgroupDto) GetConnectionCount() int64 { // GetConnectionCountOk returns a tuple with the ConnectionCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDto) GetConnectionCountOk() (*int64, bool) { - if o == nil || isNil(o.ConnectionCount) { + if o == nil || IsNil(o.ConnectionCount) { return nil, false } return o.ConnectionCount, true @@ -235,7 +235,7 @@ func (o *WorkgroupDto) GetConnectionCountOk() (*int64, bool) { // HasConnectionCount returns a boolean if a field has been set. func (o *WorkgroupDto) HasConnectionCount() bool { - if o != nil && !isNil(o.ConnectionCount) { + if o != nil && !IsNil(o.ConnectionCount) { return true } @@ -249,7 +249,7 @@ func (o *WorkgroupDto) SetConnectionCount(v int64) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *WorkgroupDto) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -259,7 +259,7 @@ func (o *WorkgroupDto) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDto) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -267,7 +267,7 @@ func (o *WorkgroupDto) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *WorkgroupDto) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -281,7 +281,7 @@ func (o *WorkgroupDto) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *WorkgroupDto) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -291,7 +291,7 @@ func (o *WorkgroupDto) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDto) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -299,7 +299,7 @@ func (o *WorkgroupDto) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *WorkgroupDto) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -321,22 +321,28 @@ func (o WorkgroupDto) MarshalJSON() ([]byte, error) { func (o WorkgroupDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Owner) { + if !IsNil(o.Owner) { toSerialize["owner"] = o.Owner } - // skip: id is readOnly - if !isNil(o.Name) { + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - // skip: memberCount is readOnly - // skip: connectionCount is readOnly - if !isNil(o.Created) { + if !IsNil(o.MemberCount) { + toSerialize["memberCount"] = o.MemberCount + } + if !IsNil(o.ConnectionCount) { + toSerialize["connectionCount"] = o.ConnectionCount + } + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } @@ -347,16 +353,20 @@ func (o WorkgroupDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkgroupDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkgroupDto) UnmarshalJSON(data []byte) (err error) { varWorkgroupDto := _WorkgroupDto{} - if err = json.Unmarshal(bytes, &varWorkgroupDto); err == nil { + err = json.Unmarshal(data, &varWorkgroupDto) + + if err != nil { + return err + } + *o = WorkgroupDto(varWorkgroupDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "owner") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v2024/model_workgroup_dto_owner.go b/api_v2024/model_workgroup_dto_owner.go index ba58bf0e8..199b09ce7 100644 --- a/api_v2024/model_workgroup_dto_owner.go +++ b/api_v2024/model_workgroup_dto_owner.go @@ -53,7 +53,7 @@ func NewWorkgroupDtoOwnerWithDefaults() *WorkgroupDtoOwner { // GetType returns the Type field value if set, zero value otherwise. func (o *WorkgroupDtoOwner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -63,7 +63,7 @@ func (o *WorkgroupDtoOwner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDtoOwner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -71,7 +71,7 @@ func (o *WorkgroupDtoOwner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *WorkgroupDtoOwner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -85,7 +85,7 @@ func (o *WorkgroupDtoOwner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkgroupDtoOwner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -95,7 +95,7 @@ func (o *WorkgroupDtoOwner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDtoOwner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -103,7 +103,7 @@ func (o *WorkgroupDtoOwner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkgroupDtoOwner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -117,7 +117,7 @@ func (o *WorkgroupDtoOwner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkgroupDtoOwner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -127,7 +127,7 @@ func (o *WorkgroupDtoOwner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDtoOwner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -135,7 +135,7 @@ func (o *WorkgroupDtoOwner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkgroupDtoOwner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -149,7 +149,7 @@ func (o *WorkgroupDtoOwner) SetName(v string) { // GetDisplayName returns the DisplayName field value if set, zero value otherwise. func (o *WorkgroupDtoOwner) GetDisplayName() string { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { var ret string return ret } @@ -159,7 +159,7 @@ func (o *WorkgroupDtoOwner) GetDisplayName() string { // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDtoOwner) GetDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { return nil, false } return o.DisplayName, true @@ -167,7 +167,7 @@ func (o *WorkgroupDtoOwner) GetDisplayNameOk() (*string, bool) { // HasDisplayName returns a boolean if a field has been set. func (o *WorkgroupDtoOwner) HasDisplayName() bool { - if o != nil && !isNil(o.DisplayName) { + if o != nil && !IsNil(o.DisplayName) { return true } @@ -181,7 +181,7 @@ func (o *WorkgroupDtoOwner) SetDisplayName(v string) { // GetEmailAddress returns the EmailAddress field value if set, zero value otherwise. func (o *WorkgroupDtoOwner) GetEmailAddress() string { - if o == nil || isNil(o.EmailAddress) { + if o == nil || IsNil(o.EmailAddress) { var ret string return ret } @@ -191,7 +191,7 @@ func (o *WorkgroupDtoOwner) GetEmailAddress() string { // GetEmailAddressOk returns a tuple with the EmailAddress field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupDtoOwner) GetEmailAddressOk() (*string, bool) { - if o == nil || isNil(o.EmailAddress) { + if o == nil || IsNil(o.EmailAddress) { return nil, false } return o.EmailAddress, true @@ -199,7 +199,7 @@ func (o *WorkgroupDtoOwner) GetEmailAddressOk() (*string, bool) { // HasEmailAddress returns a boolean if a field has been set. func (o *WorkgroupDtoOwner) HasEmailAddress() bool { - if o != nil && !isNil(o.EmailAddress) { + if o != nil && !IsNil(o.EmailAddress) { return true } @@ -221,17 +221,21 @@ func (o WorkgroupDtoOwner) MarshalJSON() ([]byte, error) { func (o WorkgroupDtoOwner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - // skip: displayName is readOnly - // skip: emailAddress is readOnly + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + if !IsNil(o.EmailAddress) { + toSerialize["emailAddress"] = o.EmailAddress + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -240,16 +244,20 @@ func (o WorkgroupDtoOwner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkgroupDtoOwner) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkgroupDtoOwner) UnmarshalJSON(data []byte) (err error) { varWorkgroupDtoOwner := _WorkgroupDtoOwner{} - if err = json.Unmarshal(bytes, &varWorkgroupDtoOwner); err == nil { + err = json.Unmarshal(data, &varWorkgroupDtoOwner) + + if err != nil { + return err + } + *o = WorkgroupDtoOwner(varWorkgroupDtoOwner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v2024/model_workgroup_member_add_item.go b/api_v2024/model_workgroup_member_add_item.go index af85c288e..633c1571e 100644 --- a/api_v2024/model_workgroup_member_add_item.go +++ b/api_v2024/model_workgroup_member_add_item.go @@ -100,7 +100,7 @@ func (o *WorkgroupMemberAddItem) SetStatus(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkgroupMemberAddItem) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -110,7 +110,7 @@ func (o *WorkgroupMemberAddItem) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupMemberAddItem) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -118,7 +118,7 @@ func (o *WorkgroupMemberAddItem) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkgroupMemberAddItem) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -142,7 +142,7 @@ func (o WorkgroupMemberAddItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["status"] = o.Status - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -153,8 +153,8 @@ func (o WorkgroupMemberAddItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkgroupMemberAddItem) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *WorkgroupMemberAddItem) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -164,7 +164,7 @@ func (o *WorkgroupMemberAddItem) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -178,13 +178,17 @@ func (o *WorkgroupMemberAddItem) UnmarshalJSON(bytes []byte) (err error) { varWorkgroupMemberAddItem := _WorkgroupMemberAddItem{} - if err = json.Unmarshal(bytes, &varWorkgroupMemberAddItem); err == nil { + err = json.Unmarshal(data, &varWorkgroupMemberAddItem) + + if err != nil { + return err + } + *o = WorkgroupMemberAddItem(varWorkgroupMemberAddItem) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "status") delete(additionalProperties, "description") diff --git a/api_v2024/model_workgroup_member_delete_item.go b/api_v2024/model_workgroup_member_delete_item.go index 1ac001863..dcb5ebcf5 100644 --- a/api_v2024/model_workgroup_member_delete_item.go +++ b/api_v2024/model_workgroup_member_delete_item.go @@ -100,7 +100,7 @@ func (o *WorkgroupMemberDeleteItem) SetStatus(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkgroupMemberDeleteItem) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -110,7 +110,7 @@ func (o *WorkgroupMemberDeleteItem) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkgroupMemberDeleteItem) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -118,7 +118,7 @@ func (o *WorkgroupMemberDeleteItem) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkgroupMemberDeleteItem) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -142,7 +142,7 @@ func (o WorkgroupMemberDeleteItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["status"] = o.Status - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -153,8 +153,8 @@ func (o WorkgroupMemberDeleteItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkgroupMemberDeleteItem) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *WorkgroupMemberDeleteItem) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -164,7 +164,7 @@ func (o *WorkgroupMemberDeleteItem) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -178,13 +178,17 @@ func (o *WorkgroupMemberDeleteItem) UnmarshalJSON(bytes []byte) (err error) { varWorkgroupMemberDeleteItem := _WorkgroupMemberDeleteItem{} - if err = json.Unmarshal(bytes, &varWorkgroupMemberDeleteItem); err == nil { + err = json.Unmarshal(data, &varWorkgroupMemberDeleteItem) + + if err != nil { + return err + } + *o = WorkgroupMemberDeleteItem(varWorkgroupMemberDeleteItem) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "status") delete(additionalProperties, "description") diff --git a/api_v2024/test/api_access_model_metadata_test.go b/api_v2024/test/api_access_model_metadata_test.go index 1c11344b5..7cb5e67da 100644 --- a/api_v2024/test/api_access_model_metadata_test.go +++ b/api_v2024/test/api_access_model_metadata_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_AccessModelMetadataAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccessModelMetadataAPIService GetAccessModelMetadataAttribute", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_AccessModelMetadataAPIService(t *testing.T) { var key string - resp, httpRes, err := apiClient.API_V2024.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).Execute() + resp, httpRes, err := apiClient.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -43,7 +43,7 @@ func Test_api_v2024_AccessModelMetadataAPIService(t *testing.T) { var key string var value string - resp, httpRes, err := apiClient.API_V2024.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).Execute() + resp, httpRes, err := apiClient.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -55,7 +55,7 @@ func Test_api_v2024_AccessModelMetadataAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -69,7 +69,7 @@ func Test_api_v2024_AccessModelMetadataAPIService(t *testing.T) { var key string - resp, httpRes, err := apiClient.API_V2024.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).Execute() + resp, httpRes, err := apiClient.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_access_profiles_test.go b/api_v2024/test/api_access_profiles_test.go index eecd52c90..2b7978f47 100644 --- a/api_v2024/test/api_access_profiles_test.go +++ b/api_v2024/test/api_access_profiles_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_AccessProfilesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccessProfilesAPIService CreateAccessProfile", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccessProfilesAPI.CreateAccessProfile(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.CreateAccessProfile(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_AccessProfilesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() + httpRes, err := apiClient.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -51,7 +51,7 @@ func Test_api_v2024_AccessProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v2024_AccessProfilesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v2024_AccessProfilesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -91,7 +91,7 @@ func Test_api_v2024_AccessProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -105,7 +105,7 @@ func Test_api_v2024_AccessProfilesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -117,7 +117,7 @@ func Test_api_v2024_AccessProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_access_request_approvals_test.go b/api_v2024/test/api_access_request_approvals_test.go index 344f58abe..5b9652b27 100644 --- a/api_v2024/test/api_access_request_approvals_test.go +++ b/api_v2024/test/api_access_request_approvals_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_AccessRequestApprovalsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccessRequestApprovalsAPIService ApproveAccessRequest", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_AccessRequestApprovalsAPIService(t *testing.T) { var approvalId string - resp, httpRes, err := apiClient.API_V2024.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -42,7 +42,7 @@ func Test_api_v2024_AccessRequestApprovalsAPIService(t *testing.T) { var approvalId string - resp, httpRes, err := apiClient.API_V2024.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -54,7 +54,7 @@ func Test_api_v2024_AccessRequestApprovalsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -66,7 +66,7 @@ func Test_api_v2024_AccessRequestApprovalsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -78,7 +78,7 @@ func Test_api_v2024_AccessRequestApprovalsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -92,7 +92,7 @@ func Test_api_v2024_AccessRequestApprovalsAPIService(t *testing.T) { var approvalId string - resp, httpRes, err := apiClient.API_V2024.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_access_request_identity_metrics_test.go b/api_v2024/test/api_access_request_identity_metrics_test.go index 4fcd0ed15..97eb34184 100644 --- a/api_v2024/test/api_access_request_identity_metrics_test.go +++ b/api_v2024/test/api_access_request_identity_metrics_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_AccessRequestIdentityMetricsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccessRequestIdentityMetricsAPIService GetAccessRequestIdentityMetrics", func(t *testing.T) { @@ -30,7 +30,7 @@ func Test_api_v2024_AccessRequestIdentityMetricsAPIService(t *testing.T) { var requestedObjectId string var type_ string - resp, httpRes, err := apiClient.API_V2024.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() + resp, httpRes, err := apiClient.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_access_requests_test.go b/api_v2024/test/api_access_requests_test.go index b736a173e..fd32523b2 100644 --- a/api_v2024/test/api_access_requests_test.go +++ b/api_v2024/test/api_access_requests_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_AccessRequestsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccessRequestsAPIService CancelAccessRequest", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccessRequestsAPI.CancelAccessRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestsAPI.CancelAccessRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_AccessRequestsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccessRequestsAPI.CloseAccessRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestsAPI.CloseAccessRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_v2024_AccessRequestsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccessRequestsAPI.CreateAccessRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestsAPI.CreateAccessRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -62,7 +62,7 @@ func Test_api_v2024_AccessRequestsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -74,7 +74,7 @@ func Test_api_v2024_AccessRequestsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -86,7 +86,7 @@ func Test_api_v2024_AccessRequestsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_account_activities_test.go b/api_v2024/test/api_account_activities_test.go index 3ac6b3e21..9c6f3e2a0 100644 --- a/api_v2024/test/api_account_activities_test.go +++ b/api_v2024/test/api_account_activities_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_AccountActivitiesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccountActivitiesAPIService GetAccountActivity", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_AccountActivitiesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_AccountActivitiesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() + resp, httpRes, err := apiClient.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_account_aggregations_test.go b/api_v2024/test/api_account_aggregations_test.go index db21277c4..08d457701 100644 --- a/api_v2024/test/api_account_aggregations_test.go +++ b/api_v2024/test/api_account_aggregations_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_AccountAggregationsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccountAggregationsAPIService GetAccountAggregationStatus", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_AccountAggregationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_account_usages_test.go b/api_v2024/test/api_account_usages_test.go index b3e6c648b..ed8c1ecf8 100644 --- a/api_v2024/test/api_account_usages_test.go +++ b/api_v2024/test/api_account_usages_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_AccountUsagesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccountUsagesAPIService GetUsagesByAccountId", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_AccountUsagesAPIService(t *testing.T) { var accountId string - resp, httpRes, err := apiClient.API_V2024.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() + resp, httpRes, err := apiClient.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_accounts_test.go b/api_v2024/test/api_accounts_test.go index 858b223de..175e12a73 100644 --- a/api_v2024/test/api_accounts_test.go +++ b/api_v2024/test/api_accounts_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_AccountsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccountsAPIService CreateAccount", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccountsAPI.CreateAccount(context.Background()).Execute() + resp, httpRes, err := apiClient.AccountsAPI.CreateAccount(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AccountsAPI.DeleteAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.DeleteAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -54,7 +54,7 @@ func Test_api_v2024_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AccountsAPI.DeleteAccountAsync(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.DeleteAccountAsync(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -68,7 +68,7 @@ func Test_api_v2024_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AccountsAPI.DisableAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.DisableAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -82,7 +82,7 @@ func Test_api_v2024_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AccountsAPI.DisableAccountForIdentity(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.DisableAccountForIdentity(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -94,7 +94,7 @@ func Test_api_v2024_AccountsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccountsAPI.DisableAccountsForIdentities(context.Background()).Execute() + resp, httpRes, err := apiClient.AccountsAPI.DisableAccountsForIdentities(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -108,7 +108,7 @@ func Test_api_v2024_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AccountsAPI.EnableAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.EnableAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -122,7 +122,7 @@ func Test_api_v2024_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AccountsAPI.EnableAccountForIdentity(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.EnableAccountForIdentity(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -134,7 +134,7 @@ func Test_api_v2024_AccountsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccountsAPI.EnableAccountsForIdentities(context.Background()).Execute() + resp, httpRes, err := apiClient.AccountsAPI.EnableAccountsForIdentities(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -148,7 +148,7 @@ func Test_api_v2024_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AccountsAPI.GetAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.GetAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -162,7 +162,7 @@ func Test_api_v2024_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -174,7 +174,7 @@ func Test_api_v2024_AccountsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AccountsAPI.ListAccounts(context.Background()).Execute() + resp, httpRes, err := apiClient.AccountsAPI.ListAccounts(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -188,7 +188,7 @@ func Test_api_v2024_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AccountsAPI.PutAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.PutAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -202,7 +202,7 @@ func Test_api_v2024_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -216,7 +216,7 @@ func Test_api_v2024_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AccountsAPI.UnlockAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.UnlockAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -230,7 +230,7 @@ func Test_api_v2024_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AccountsAPI.UpdateAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.UpdateAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_application_discovery_test.go b/api_v2024/test/api_application_discovery_test.go index e2be81871..2cfe120ec 100644 --- a/api_v2024/test/api_application_discovery_test.go +++ b/api_v2024/test/api_application_discovery_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_ApplicationDiscoveryAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ApplicationDiscoveryAPIService GetDiscoveredApplications", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() + resp, httpRes, err := apiClient.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_ApplicationDiscoveryAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() + resp, httpRes, err := apiClient.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_v2024_ApplicationDiscoveryAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ApplicationDiscoveryAPI.GetVendorConnectorMappings(context.Background()).Execute() + resp, httpRes, err := apiClient.ApplicationDiscoveryAPI.GetVendorConnectorMappings(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -62,7 +62,7 @@ func Test_api_v2024_ApplicationDiscoveryAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V2024.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() + httpRes, err := apiClient.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) diff --git a/api_v2024/test/api_approvals_test.go b/api_v2024/test/api_approvals_test.go index 4fb18adca..a4e9b723c 100644 --- a/api_v2024/test/api_approvals_test.go +++ b/api_v2024/test/api_approvals_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_ApprovalsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ApprovalsAPIService GetApproval", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_ApprovalsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.ApprovalsAPI.GetApproval(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ApprovalsAPI.GetApproval(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_ApprovalsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ApprovalsAPI.GetApprovals(context.Background()).Execute() + resp, httpRes, err := apiClient.ApprovalsAPI.GetApprovals(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_v2024_ApprovalsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ApprovalsAPI.PatchApproval(context.Background()).Execute() + resp, httpRes, err := apiClient.ApprovalsAPI.PatchApproval(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_auth_profile_test.go b/api_v2024/test/api_auth_profile_test.go index a0380f1ae..5511b40fe 100644 --- a/api_v2024/test/api_auth_profile_test.go +++ b/api_v2024/test/api_auth_profile_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_AuthProfileAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AuthProfileAPIService GetProfileConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AuthProfileAPI.GetProfileConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.AuthProfileAPI.GetProfileConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_AuthProfileAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.AuthProfileAPI.GetProfileConfigList(context.Background()).Execute() + resp, httpRes, err := apiClient.AuthProfileAPI.GetProfileConfigList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_v2024_AuthProfileAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AuthProfileAPI.PatchProfileConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AuthProfileAPI.PatchProfileConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_auth_users_test.go b/api_v2024/test/api_auth_users_test.go index 439fde685..ca3b6dfa4 100644 --- a/api_v2024/test/api_auth_users_test.go +++ b/api_v2024/test/api_auth_users_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_AuthUsersAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AuthUsersAPIService GetAuthUser", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_AuthUsersAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -42,7 +42,7 @@ func Test_api_v2024_AuthUsersAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.AuthUsersAPI.PatchAuthUser(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AuthUsersAPI.PatchAuthUser(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_branding_test.go b/api_v2024/test/api_branding_test.go index 880ce4c84..40a4d339e 100644 --- a/api_v2024/test/api_branding_test.go +++ b/api_v2024/test/api_branding_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_BrandingAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test BrandingAPIService CreateBrandingItem", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.BrandingAPI.CreateBrandingItem(context.Background()).Execute() + resp, httpRes, err := apiClient.BrandingAPI.CreateBrandingItem(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_BrandingAPIService(t *testing.T) { var name string - httpRes, err := apiClient.API_V2024.BrandingAPI.DeleteBranding(context.Background(), name).Execute() + httpRes, err := apiClient.BrandingAPI.DeleteBranding(context.Background(), name).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v2024_BrandingAPIService(t *testing.T) { var name string - resp, httpRes, err := apiClient.API_V2024.BrandingAPI.GetBranding(context.Background(), name).Execute() + resp, httpRes, err := apiClient.BrandingAPI.GetBranding(context.Background(), name).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v2024_BrandingAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.BrandingAPI.GetBrandingList(context.Background()).Execute() + resp, httpRes, err := apiClient.BrandingAPI.GetBrandingList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v2024_BrandingAPIService(t *testing.T) { var name string - resp, httpRes, err := apiClient.API_V2024.BrandingAPI.SetBrandingItem(context.Background(), name).Execute() + resp, httpRes, err := apiClient.BrandingAPI.SetBrandingItem(context.Background(), name).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_certification_campaign_filters_test.go b/api_v2024/test/api_certification_campaign_filters_test.go index bec67c796..9e48321f7 100644 --- a/api_v2024/test/api_certification_campaign_filters_test.go +++ b/api_v2024/test/api_certification_campaign_filters_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_CertificationCampaignFiltersAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CertificationCampaignFiltersAPIService CreateCampaignFilter", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_CertificationCampaignFiltersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V2024.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).Execute() + httpRes, err := apiClient.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -51,7 +51,7 @@ func Test_api_v2024_CertificationCampaignFiltersAPIService(t *testing.T) { var filterId string - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), filterId).Execute() + resp, httpRes, err := apiClient.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), filterId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -63,7 +63,7 @@ func Test_api_v2024_CertificationCampaignFiltersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -77,7 +77,7 @@ func Test_api_v2024_CertificationCampaignFiltersAPIService(t *testing.T) { var filterId string - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).Execute() + resp, httpRes, err := apiClient.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_certification_campaigns_test.go b/api_v2024/test/api_certification_campaigns_test.go index 7c239b480..0a848195b 100644 --- a/api_v2024/test/api_certification_campaigns_test.go +++ b/api_v2024/test/api_certification_campaigns_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CertificationCampaignsAPIService CompleteCampaign", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.CreateCampaign(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.CreateCampaign(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -66,7 +66,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() + httpRes, err := apiClient.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -79,7 +79,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() + httpRes, err := apiClient.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -90,7 +90,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -102,7 +102,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -116,7 +116,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -130,7 +130,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -142,7 +142,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -156,7 +156,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -170,7 +170,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -182,7 +182,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -196,7 +196,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.Move(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.Move(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -210,7 +210,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -222,7 +222,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -236,7 +236,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Execute() + httpRes, err := apiClient.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -249,7 +249,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.StartCampaign(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.StartCampaign(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -263,7 +263,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -278,7 +278,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { var id string var type_ ReportType - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -292,7 +292,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -306,7 +306,7 @@ func Test_api_v2024_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_certification_summaries_test.go b/api_v2024/test/api_certification_summaries_test.go index b4f21b098..d38a93613 100644 --- a/api_v2024/test/api_certification_summaries_test.go +++ b/api_v2024/test/api_certification_summaries_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_CertificationSummariesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CertificationSummariesAPIService GetIdentityAccessSummaries", func(t *testing.T) { @@ -29,7 +29,7 @@ func Test_api_v2024_CertificationSummariesAPIService(t *testing.T) { var id string var type_ string - resp, httpRes, err := apiClient.API_V2024.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Execute() + resp, httpRes, err := apiClient.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -43,7 +43,7 @@ func Test_api_v2024_CertificationSummariesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -57,7 +57,7 @@ func Test_api_v2024_CertificationSummariesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -72,7 +72,7 @@ func Test_api_v2024_CertificationSummariesAPIService(t *testing.T) { var id string var identitySummaryId string - resp, httpRes, err := apiClient.API_V2024.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() + resp, httpRes, err := apiClient.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_certifications_test.go b/api_v2024/test/api_certifications_test.go index b84b2c889..75a0f3234 100644 --- a/api_v2024/test/api_certifications_test.go +++ b/api_v2024/test/api_certifications_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_CertificationsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CertificationsAPIService GetCertificationTask", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -42,7 +42,7 @@ func Test_api_v2024_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -57,7 +57,7 @@ func Test_api_v2024_CertificationsAPIService(t *testing.T) { var certificationId string var itemId string - resp, httpRes, err := apiClient.API_V2024.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -69,7 +69,7 @@ func Test_api_v2024_CertificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CertificationsAPI.GetPendingCertificationTasks(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.GetPendingCertificationTasks(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -83,7 +83,7 @@ func Test_api_v2024_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -97,7 +97,7 @@ func Test_api_v2024_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -109,7 +109,7 @@ func Test_api_v2024_CertificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CertificationsAPI.ListIdentityCertifications(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.ListIdentityCertifications(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -123,7 +123,7 @@ func Test_api_v2024_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationsAPI.MakeIdentityDecision(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.MakeIdentityDecision(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -137,7 +137,7 @@ func Test_api_v2024_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -151,7 +151,7 @@ func Test_api_v2024_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -165,7 +165,7 @@ func Test_api_v2024_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_configuration_hub_test.go b/api_v2024/test/api_configuration_hub_test.go index 38328f3e1..78d5ab951 100644 --- a/api_v2024/test/api_configuration_hub_test.go +++ b/api_v2024/test/api_configuration_hub_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_ConfigurationHubAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ConfigurationHubAPIService CreateObjectMapping", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_ConfigurationHubAPIService(t *testing.T) { var sourceOrg string - resp, httpRes, err := apiClient.API_V2024.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).Execute() + resp, httpRes, err := apiClient.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -42,7 +42,7 @@ func Test_api_v2024_ConfigurationHubAPIService(t *testing.T) { var sourceOrg string - resp, httpRes, err := apiClient.API_V2024.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).Execute() + resp, httpRes, err := apiClient.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -57,7 +57,7 @@ func Test_api_v2024_ConfigurationHubAPIService(t *testing.T) { var sourceOrg string var objectMappingId string - httpRes, err := apiClient.API_V2024.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() + httpRes, err := apiClient.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -70,7 +70,7 @@ func Test_api_v2024_ConfigurationHubAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.ConfigurationHubAPI.DeleteUploadedBackup(context.Background(), id).Execute() + httpRes, err := apiClient.ConfigurationHubAPI.DeleteUploadedBackup(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -83,7 +83,7 @@ func Test_api_v2024_ConfigurationHubAPIService(t *testing.T) { var sourceOrg string - resp, httpRes, err := apiClient.API_V2024.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() + resp, httpRes, err := apiClient.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -97,7 +97,7 @@ func Test_api_v2024_ConfigurationHubAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.ConfigurationHubAPI.GetUploadedBackup(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ConfigurationHubAPI.GetUploadedBackup(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -109,7 +109,7 @@ func Test_api_v2024_ConfigurationHubAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ConfigurationHubAPI.GetUploadedBackups(context.Background()).Execute() + resp, httpRes, err := apiClient.ConfigurationHubAPI.GetUploadedBackups(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -121,7 +121,7 @@ func Test_api_v2024_ConfigurationHubAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ConfigurationHubAPI.ImportUploadedBackup(context.Background()).Execute() + resp, httpRes, err := apiClient.ConfigurationHubAPI.ImportUploadedBackup(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -135,7 +135,7 @@ func Test_api_v2024_ConfigurationHubAPIService(t *testing.T) { var sourceOrg string - resp, httpRes, err := apiClient.API_V2024.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).Execute() + resp, httpRes, err := apiClient.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_connector_rule_management_test.go b/api_v2024/test/api_connector_rule_management_test.go index 526399e43..bb9ca4651 100644 --- a/api_v2024/test/api_connector_rule_management_test.go +++ b/api_v2024/test/api_connector_rule_management_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_ConnectorRuleManagementAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ConnectorRuleManagementAPIService CreateConnectorRule", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).Execute() + resp, httpRes, err := apiClient.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_ConnectorRuleManagementAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() + httpRes, err := apiClient.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v2024_ConnectorRuleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v2024_ConnectorRuleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Execute() + resp, httpRes, err := apiClient.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v2024_ConnectorRuleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.ConnectorRuleManagementAPI.UpdateConnectorRule(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ConnectorRuleManagementAPI.UpdateConnectorRule(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -91,7 +91,7 @@ func Test_api_v2024_ConnectorRuleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ConnectorRuleManagementAPI.ValidateConnectorRule(context.Background()).Execute() + resp, httpRes, err := apiClient.ConnectorRuleManagementAPI.ValidateConnectorRule(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_connectors_test.go b/api_v2024/test/api_connectors_test.go index 782fe0985..b19604770 100644 --- a/api_v2024/test/api_connectors_test.go +++ b/api_v2024/test/api_connectors_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_ConnectorsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ConnectorsAPIService CreateCustomConnector", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ConnectorsAPI.CreateCustomConnector(context.Background()).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.CreateCustomConnector(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_ConnectorsAPIService(t *testing.T) { var scriptName string - httpRes, err := apiClient.API_V2024.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() + httpRes, err := apiClient.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v2024_ConnectorsAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V2024.ConnectorsAPI.GetConnector(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.GetConnector(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -67,7 +67,7 @@ func Test_api_v2024_ConnectorsAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V2024.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v2024_ConnectorsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ConnectorsAPI.GetConnectorList(context.Background()).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.GetConnectorList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -93,7 +93,7 @@ func Test_api_v2024_ConnectorsAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V2024.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -107,7 +107,7 @@ func Test_api_v2024_ConnectorsAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V2024.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -122,7 +122,7 @@ func Test_api_v2024_ConnectorsAPIService(t *testing.T) { var scriptName string var locale string - resp, httpRes, err := apiClient.API_V2024.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -136,7 +136,7 @@ func Test_api_v2024_ConnectorsAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V2024.ConnectorsAPI.PutCorrelationConfig(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.PutCorrelationConfig(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -150,7 +150,7 @@ func Test_api_v2024_ConnectorsAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V2024.ConnectorsAPI.PutSourceConfig(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.PutSourceConfig(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -164,7 +164,7 @@ func Test_api_v2024_ConnectorsAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V2024.ConnectorsAPI.PutSourceTemplate(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.PutSourceTemplate(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -179,7 +179,7 @@ func Test_api_v2024_ConnectorsAPIService(t *testing.T) { var scriptName string var locale string - resp, httpRes, err := apiClient.API_V2024.ConnectorsAPI.PutTranslations(context.Background(), scriptName, locale).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.PutTranslations(context.Background(), scriptName, locale).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -193,7 +193,7 @@ func Test_api_v2024_ConnectorsAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V2024.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_custom_forms_test.go b/api_v2024/test/api_custom_forms_test.go index 786299daf..80c9f0168 100644 --- a/api_v2024/test/api_custom_forms_test.go +++ b/api_v2024/test/api_custom_forms_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_CustomFormsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CustomFormsAPIService CreateFormDefinition", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.CreateFormDefinition(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.CreateFormDefinition(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_CustomFormsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_v2024_CustomFormsAPIService(t *testing.T) { var formDefinitionID string - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -64,7 +64,7 @@ func Test_api_v2024_CustomFormsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.CreateFormInstance(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.CreateFormInstance(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -78,7 +78,7 @@ func Test_api_v2024_CustomFormsAPIService(t *testing.T) { var formDefinitionID string - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -90,7 +90,7 @@ func Test_api_v2024_CustomFormsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -105,7 +105,7 @@ func Test_api_v2024_CustomFormsAPIService(t *testing.T) { var formDefinitionID string var fileID string - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -119,7 +119,7 @@ func Test_api_v2024_CustomFormsAPIService(t *testing.T) { var formDefinitionID string - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -133,7 +133,7 @@ func Test_api_v2024_CustomFormsAPIService(t *testing.T) { var formInstanceID string - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -148,7 +148,7 @@ func Test_api_v2024_CustomFormsAPIService(t *testing.T) { var formInstanceID string var fileID string - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -160,7 +160,7 @@ func Test_api_v2024_CustomFormsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.ImportFormDefinitions(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.ImportFormDefinitions(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -174,7 +174,7 @@ func Test_api_v2024_CustomFormsAPIService(t *testing.T) { var formDefinitionID string - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -188,7 +188,7 @@ func Test_api_v2024_CustomFormsAPIService(t *testing.T) { var formInstanceID string - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -200,7 +200,7 @@ func Test_api_v2024_CustomFormsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -215,7 +215,7 @@ func Test_api_v2024_CustomFormsAPIService(t *testing.T) { var formInstanceID string var formElementID string - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -227,7 +227,7 @@ func Test_api_v2024_CustomFormsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -239,7 +239,7 @@ func Test_api_v2024_CustomFormsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -253,7 +253,7 @@ func Test_api_v2024_CustomFormsAPIService(t *testing.T) { var formDefinitionID string - resp, httpRes, err := apiClient.API_V2024.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Execute() + resp, httpRes, err := apiClient.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_custom_password_instructions_test.go b/api_v2024/test/api_custom_password_instructions_test.go index edba2e240..8b91b204a 100644 --- a/api_v2024/test/api_custom_password_instructions_test.go +++ b/api_v2024/test/api_custom_password_instructions_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_CustomPasswordInstructionsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CustomPasswordInstructionsAPIService CreateCustomPasswordInstructions", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).Execute() + resp, httpRes, err := apiClient.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_CustomPasswordInstructionsAPIService(t *testing.T) { var pageId string - httpRes, err := apiClient.API_V2024.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).Execute() + httpRes, err := apiClient.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v2024_CustomPasswordInstructionsAPIService(t *testing.T) { var pageId string - resp, httpRes, err := apiClient.API_V2024.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).Execute() + resp, httpRes, err := apiClient.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_entitlements_test.go b/api_v2024/test/api_entitlements_test.go index 51ed6c357..27beaf446 100644 --- a/api_v2024/test/api_entitlements_test.go +++ b/api_v2024/test/api_entitlements_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_EntitlementsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test EntitlementsAPIService CreateAccessModelMetadataForEntitlement", func(t *testing.T) { @@ -30,7 +30,7 @@ func Test_api_v2024_EntitlementsAPIService(t *testing.T) { var attributeKey string var attributeValue string - resp, httpRes, err := apiClient.API_V2024.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,7 +46,7 @@ func Test_api_v2024_EntitlementsAPIService(t *testing.T) { var attributeKey string var attributeValue string - httpRes, err := apiClient.API_V2024.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() + httpRes, err := apiClient.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -59,7 +59,7 @@ func Test_api_v2024_EntitlementsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.EntitlementsAPI.GetEntitlement(context.Background(), id).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.GetEntitlement(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -73,7 +73,7 @@ func Test_api_v2024_EntitlementsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -87,7 +87,7 @@ func Test_api_v2024_EntitlementsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -101,7 +101,7 @@ func Test_api_v2024_EntitlementsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -115,7 +115,7 @@ func Test_api_v2024_EntitlementsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.EntitlementsAPI.ListEntitlementParents(context.Background(), id).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.ListEntitlementParents(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -127,7 +127,7 @@ func Test_api_v2024_EntitlementsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.EntitlementsAPI.ListEntitlements(context.Background()).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.ListEntitlements(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -141,7 +141,7 @@ func Test_api_v2024_EntitlementsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.EntitlementsAPI.PatchEntitlement(context.Background(), id).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.PatchEntitlement(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -155,7 +155,7 @@ func Test_api_v2024_EntitlementsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -169,7 +169,7 @@ func Test_api_v2024_EntitlementsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).Execute() + resp, httpRes, err := apiClient.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -181,7 +181,7 @@ func Test_api_v2024_EntitlementsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V2024.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).Execute() + httpRes, err := apiClient.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) diff --git a/api_v2024/test/api_global_tenant_security_settings_test.go b/api_v2024/test/api_global_tenant_security_settings_test.go index 50280edc5..8ab7962f5 100644 --- a/api_v2024/test/api_global_tenant_security_settings_test.go +++ b/api_v2024/test/api_global_tenant_security_settings_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_GlobalTenantSecuritySettingsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test GlobalTenantSecuritySettingsAPIService CreateAuthOrgNetworkConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_GlobalTenantSecuritySettingsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_v2024_GlobalTenantSecuritySettingsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_governance_groups_test.go b/api_v2024/test/api_governance_groups_test.go index 2ffe53eb9..f149cc298 100644 --- a/api_v2024/test/api_governance_groups_test.go +++ b/api_v2024/test/api_governance_groups_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_GovernanceGroupsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test GovernanceGroupsAPIService CreateWorkgroup", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_GovernanceGroupsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).Execute() + httpRes, err := apiClient.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v2024_GovernanceGroupsAPIService(t *testing.T) { var workgroupId string - resp, httpRes, err := apiClient.API_V2024.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v2024_GovernanceGroupsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v2024_GovernanceGroupsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -93,7 +93,7 @@ func Test_api_v2024_GovernanceGroupsAPIService(t *testing.T) { var workgroupId string - resp, httpRes, err := apiClient.API_V2024.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -107,7 +107,7 @@ func Test_api_v2024_GovernanceGroupsAPIService(t *testing.T) { var workgroupId string - resp, httpRes, err := apiClient.API_V2024.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -119,7 +119,7 @@ func Test_api_v2024_GovernanceGroupsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.GovernanceGroupsAPI.ListWorkgroups(context.Background()).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.ListWorkgroups(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -133,7 +133,7 @@ func Test_api_v2024_GovernanceGroupsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -147,7 +147,7 @@ func Test_api_v2024_GovernanceGroupsAPIService(t *testing.T) { var workgroupId string - resp, httpRes, err := apiClient.API_V2024.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).Execute() + resp, httpRes, err := apiClient.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_iai_access_request_recommendations_test.go b/api_v2024/test/api_iai_access_request_recommendations_test.go index 4b42dd37c..e195031f7 100644 --- a/api_v2024/test/api_iai_access_request_recommendations_test.go +++ b/api_v2024/test/api_iai_access_request_recommendations_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_IAIAccessRequestRecommendationsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IAIAccessRequestRecommendationsAPIService AddAccessRequestRecommendationsIgnoredItem", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_IAIAccessRequestRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_v2024_IAIAccessRequestRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -62,7 +62,7 @@ func Test_api_v2024_IAIAccessRequestRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -74,7 +74,7 @@ func Test_api_v2024_IAIAccessRequestRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -86,7 +86,7 @@ func Test_api_v2024_IAIAccessRequestRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -98,7 +98,7 @@ func Test_api_v2024_IAIAccessRequestRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -110,7 +110,7 @@ func Test_api_v2024_IAIAccessRequestRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_iai_common_access_test.go b/api_v2024/test/api_iai_common_access_test.go index 8e5a8c92c..3b6dc3448 100644 --- a/api_v2024/test/api_iai_common_access_test.go +++ b/api_v2024/test/api_iai_common_access_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_IAICommonAccessAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IAICommonAccessAPIService CreateCommonAccess", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAICommonAccessAPI.CreateCommonAccess(context.Background()).Execute() + resp, httpRes, err := apiClient.IAICommonAccessAPI.CreateCommonAccess(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_IAICommonAccessAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAICommonAccessAPI.GetCommonAccess(context.Background()).Execute() + resp, httpRes, err := apiClient.IAICommonAccessAPI.GetCommonAccess(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_v2024_IAICommonAccessAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).Execute() + resp, httpRes, err := apiClient.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_iai_outliers_test.go b/api_v2024/test/api_iai_outliers_test.go index 06fc9baea..25067ca9d 100644 --- a/api_v2024/test/api_iai_outliers_test.go +++ b/api_v2024/test/api_iai_outliers_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_IAIOutliersAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IAIOutliersAPIService ExportOutliersZip", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIOutliersAPI.ExportOutliersZip(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIOutliersAPI.ExportOutliersZip(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_IAIOutliersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_v2024_IAIOutliersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIOutliersAPI.GetIdentityOutliers(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIOutliersAPI.GetIdentityOutliers(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -62,7 +62,7 @@ func Test_api_v2024_IAIOutliersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -76,7 +76,7 @@ func Test_api_v2024_IAIOutliersAPIService(t *testing.T) { var outlierFeatureId string - resp, httpRes, err := apiClient.API_V2024.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).Execute() + resp, httpRes, err := apiClient.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -90,7 +90,7 @@ func Test_api_v2024_IAIOutliersAPIService(t *testing.T) { var outlierId string - resp, httpRes, err := apiClient.API_V2024.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).Execute() + resp, httpRes, err := apiClient.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -102,7 +102,7 @@ func Test_api_v2024_IAIOutliersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V2024.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).Execute() + httpRes, err := apiClient.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -116,7 +116,7 @@ func Test_api_v2024_IAIOutliersAPIService(t *testing.T) { var outlierId string var contributingFeatureName string - resp, httpRes, err := apiClient.API_V2024.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).Execute() + resp, httpRes, err := apiClient.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -128,7 +128,7 @@ func Test_api_v2024_IAIOutliersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V2024.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).Execute() + httpRes, err := apiClient.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) diff --git a/api_v2024/test/api_iai_peer_group_strategies_test.go b/api_v2024/test/api_iai_peer_group_strategies_test.go index ec075a01c..edcbe14e2 100644 --- a/api_v2024/test/api_iai_peer_group_strategies_test.go +++ b/api_v2024/test/api_iai_peer_group_strategies_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_IAIPeerGroupStrategiesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IAIPeerGroupStrategiesAPIService GetPeerGroupOutliers", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_IAIPeerGroupStrategiesAPIService(t *testing.T) { var strategy string - resp, httpRes, err := apiClient.API_V2024.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).Execute() + resp, httpRes, err := apiClient.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_iai_recommendations_test.go b/api_v2024/test/api_iai_recommendations_test.go index 18fdf9216..09ea2f427 100644 --- a/api_v2024/test/api_iai_recommendations_test.go +++ b/api_v2024/test/api_iai_recommendations_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_IAIRecommendationsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IAIRecommendationsAPIService GetRecommendations", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIRecommendationsAPI.GetRecommendations(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIRecommendationsAPI.GetRecommendations(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_IAIRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_v2024_IAIRecommendationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_iai_role_mining_test.go b/api_v2024/test/api_iai_role_mining_test.go index 8c4d73ab2..f73573d68 100644 --- a/api_v2024/test/api_iai_role_mining_test.go +++ b/api_v2024/test/api_iai_role_mining_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IAIRoleMiningAPIService CreatePotentialRoleProvisionRequest", func(t *testing.T) { @@ -29,7 +29,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -41,7 +41,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -57,7 +57,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var potentialRoleId string var exportId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -72,7 +72,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -87,7 +87,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -103,7 +103,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var potentialRoleId string var exportId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -115,7 +115,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -130,7 +130,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -145,7 +145,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -160,7 +160,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -175,7 +175,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -190,7 +190,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -205,7 +205,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -220,7 +220,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var potentialRoleId string var sourceId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -234,7 +234,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var sessionId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -248,7 +248,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var potentialRoleId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -262,7 +262,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var sessionId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -276,7 +276,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var sessionId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -288,7 +288,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -300,7 +300,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -315,7 +315,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -330,7 +330,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.PatchPotentialRole_0(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.PatchPotentialRole_0(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -344,7 +344,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var sessionId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -359,7 +359,7 @@ func Test_api_v2024_IAIRoleMiningAPIService(t *testing.T) { var sessionId string var potentialRoleId string - resp, httpRes, err := apiClient.API_V2024.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + resp, httpRes, err := apiClient.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_icons_test.go b/api_v2024/test/api_icons_test.go index 140cb3525..77ad42f1a 100644 --- a/api_v2024/test/api_icons_test.go +++ b/api_v2024/test/api_icons_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_IconsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IconsAPIService DeleteIcon", func(t *testing.T) { @@ -29,7 +29,7 @@ func Test_api_v2024_IconsAPIService(t *testing.T) { var objectType string var objectId string - httpRes, err := apiClient.API_V2024.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).Execute() + httpRes, err := apiClient.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -43,7 +43,7 @@ func Test_api_v2024_IconsAPIService(t *testing.T) { var objectType string var objectId string - resp, httpRes, err := apiClient.API_V2024.IconsAPI.SetIcon(context.Background(), objectType, objectId).Execute() + resp, httpRes, err := apiClient.IconsAPI.SetIcon(context.Background(), objectType, objectId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_identities_test.go b/api_v2024/test/api_identities_test.go index b6a12b14e..41ec0677d 100644 --- a/api_v2024/test/api_identities_test.go +++ b/api_v2024/test/api_identities_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_IdentitiesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IdentitiesAPIService DeleteIdentity", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_IdentitiesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.IdentitiesAPI.DeleteIdentity(context.Background(), id).Execute() + httpRes, err := apiClient.IdentitiesAPI.DeleteIdentity(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -41,7 +41,7 @@ func Test_api_v2024_IdentitiesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.IdentitiesAPI.GetIdentity(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IdentitiesAPI.GetIdentity(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -55,7 +55,7 @@ func Test_api_v2024_IdentitiesAPIService(t *testing.T) { var identityId string - resp, httpRes, err := apiClient.API_V2024.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).Execute() + resp, httpRes, err := apiClient.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,7 +70,7 @@ func Test_api_v2024_IdentitiesAPIService(t *testing.T) { var identityId string var assignmentId string - resp, httpRes, err := apiClient.API_V2024.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).Execute() + resp, httpRes, err := apiClient.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -84,7 +84,7 @@ func Test_api_v2024_IdentitiesAPIService(t *testing.T) { var identityId string - resp, httpRes, err := apiClient.API_V2024.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).Execute() + resp, httpRes, err := apiClient.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -96,7 +96,7 @@ func Test_api_v2024_IdentitiesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IdentitiesAPI.ListIdentities(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentitiesAPI.ListIdentities(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -110,7 +110,7 @@ func Test_api_v2024_IdentitiesAPIService(t *testing.T) { var identityId string - httpRes, err := apiClient.API_V2024.IdentitiesAPI.ResetIdentity(context.Background(), identityId).Execute() + httpRes, err := apiClient.IdentitiesAPI.ResetIdentity(context.Background(), identityId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -121,7 +121,7 @@ func Test_api_v2024_IdentitiesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IdentitiesAPI.StartIdentityProcessing(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentitiesAPI.StartIdentityProcessing(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -135,7 +135,7 @@ func Test_api_v2024_IdentitiesAPIService(t *testing.T) { var identityId string - resp, httpRes, err := apiClient.API_V2024.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).Execute() + resp, httpRes, err := apiClient.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_identity_attributes_test.go b/api_v2024/test/api_identity_attributes_test.go index 5d6a59cce..340fbe137 100644 --- a/api_v2024/test/api_identity_attributes_test.go +++ b/api_v2024/test/api_identity_attributes_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_IdentityAttributesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IdentityAttributesAPIService CreateIdentityAttribute", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_IdentityAttributesAPIService(t *testing.T) { var name string - httpRes, err := apiClient.API_V2024.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).Execute() + httpRes, err := apiClient.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -51,7 +51,7 @@ func Test_api_v2024_IdentityAttributesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V2024.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).Execute() + httpRes, err := apiClient.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -64,7 +64,7 @@ func Test_api_v2024_IdentityAttributesAPIService(t *testing.T) { var name string - resp, httpRes, err := apiClient.API_V2024.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).Execute() + resp, httpRes, err := apiClient.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -76,7 +76,7 @@ func Test_api_v2024_IdentityAttributesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -90,7 +90,7 @@ func Test_api_v2024_IdentityAttributesAPIService(t *testing.T) { var name string - resp, httpRes, err := apiClient.API_V2024.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).Execute() + resp, httpRes, err := apiClient.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_identity_history_test.go b/api_v2024/test/api_identity_history_test.go index 1158f83de..594ab7628 100644 --- a/api_v2024/test/api_identity_history_test.go +++ b/api_v2024/test/api_identity_history_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_IdentityHistoryAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IdentityHistoryAPIService CompareIdentitySnapshots", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_IdentityHistoryAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -43,7 +43,7 @@ func Test_api_v2024_IdentityHistoryAPIService(t *testing.T) { var id string var accessType string - resp, httpRes, err := apiClient.API_V2024.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -57,7 +57,7 @@ func Test_api_v2024_IdentityHistoryAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -71,7 +71,7 @@ func Test_api_v2024_IdentityHistoryAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -86,7 +86,7 @@ func Test_api_v2024_IdentityHistoryAPIService(t *testing.T) { var id string var date string - resp, httpRes, err := apiClient.API_V2024.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -100,7 +100,7 @@ func Test_api_v2024_IdentityHistoryAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -114,7 +114,7 @@ func Test_api_v2024_IdentityHistoryAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -126,7 +126,7 @@ func Test_api_v2024_IdentityHistoryAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -140,7 +140,7 @@ func Test_api_v2024_IdentityHistoryAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -155,7 +155,7 @@ func Test_api_v2024_IdentityHistoryAPIService(t *testing.T) { var id string var date string - resp, httpRes, err := apiClient.API_V2024.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -169,7 +169,7 @@ func Test_api_v2024_IdentityHistoryAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_identity_profiles_test.go b/api_v2024/test/api_identity_profiles_test.go index aea9c92fe..8e103e097 100644 --- a/api_v2024/test/api_identity_profiles_test.go +++ b/api_v2024/test/api_identity_profiles_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_IdentityProfilesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IdentityProfilesAPIService CreateIdentityProfile", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_IdentityProfilesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_V2024.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_v2024_IdentityProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -64,7 +64,7 @@ func Test_api_v2024_IdentityProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -78,7 +78,7 @@ func Test_api_v2024_IdentityProfilesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_V2024.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -92,7 +92,7 @@ func Test_api_v2024_IdentityProfilesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_V2024.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -104,7 +104,7 @@ func Test_api_v2024_IdentityProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -116,7 +116,7 @@ func Test_api_v2024_IdentityProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -128,7 +128,7 @@ func Test_api_v2024_IdentityProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.IdentityProfilesAPI.ShowIdentityPreview(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.ShowIdentityPreview(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -142,7 +142,7 @@ func Test_api_v2024_IdentityProfilesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_V2024.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -156,7 +156,7 @@ func Test_api_v2024_IdentityProfilesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_V2024.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_lifecycle_states_test.go b/api_v2024/test/api_lifecycle_states_test.go index 6a18be2b6..83831d39a 100644 --- a/api_v2024/test/api_lifecycle_states_test.go +++ b/api_v2024/test/api_lifecycle_states_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_LifecycleStatesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test LifecycleStatesAPIService CreateLifecycleState", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_LifecycleStatesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_V2024.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -43,7 +43,7 @@ func Test_api_v2024_LifecycleStatesAPIService(t *testing.T) { var identityProfileId string var lifecycleStateId string - resp, httpRes, err := apiClient.API_V2024.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + resp, httpRes, err := apiClient.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,7 +58,7 @@ func Test_api_v2024_LifecycleStatesAPIService(t *testing.T) { var identityProfileId string var lifecycleStateId string - resp, httpRes, err := apiClient.API_V2024.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + resp, httpRes, err := apiClient.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -72,7 +72,7 @@ func Test_api_v2024_LifecycleStatesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_V2024.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -86,7 +86,7 @@ func Test_api_v2024_LifecycleStatesAPIService(t *testing.T) { var identityId string - resp, httpRes, err := apiClient.API_V2024.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).Execute() + resp, httpRes, err := apiClient.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -101,7 +101,7 @@ func Test_api_v2024_LifecycleStatesAPIService(t *testing.T) { var identityProfileId string var lifecycleStateId string - resp, httpRes, err := apiClient.API_V2024.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).Execute() + resp, httpRes, err := apiClient.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_managed_clients_test.go b/api_v2024/test/api_managed_clients_test.go index f02befb5c..13c92bea5 100644 --- a/api_v2024/test/api_managed_clients_test.go +++ b/api_v2024/test/api_managed_clients_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_ManagedClientsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ManagedClientsAPIService CreateManagedClient", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ManagedClientsAPI.CreateManagedClient(context.Background()).Execute() + resp, httpRes, err := apiClient.ManagedClientsAPI.CreateManagedClient(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_ManagedClientsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() + httpRes, err := apiClient.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v2024_ManagedClientsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -67,7 +67,7 @@ func Test_api_v2024_ManagedClientsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v2024_ManagedClientsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ManagedClientsAPI.GetManagedClients(context.Background()).Execute() + resp, httpRes, err := apiClient.ManagedClientsAPI.GetManagedClients(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -93,7 +93,7 @@ func Test_api_v2024_ManagedClientsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_managed_clusters_test.go b/api_v2024/test/api_managed_clusters_test.go index e22fb95c2..fdc46c73f 100644 --- a/api_v2024/test/api_managed_clusters_test.go +++ b/api_v2024/test/api_managed_clusters_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_ManagedClustersAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ManagedClustersAPIService CreateManagedCluster", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ManagedClustersAPI.CreateManagedCluster(context.Background()).Execute() + resp, httpRes, err := apiClient.ManagedClustersAPI.CreateManagedCluster(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_ManagedClustersAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).Execute() + httpRes, err := apiClient.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v2024_ManagedClustersAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v2024_ManagedClustersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() + resp, httpRes, err := apiClient.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v2024_ManagedClustersAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_mfa_configuration_test.go b/api_v2024/test/api_mfa_configuration_test.go index 89b03c9d8..3889507d9 100644 --- a/api_v2024/test/api_mfa_configuration_test.go +++ b/api_v2024/test/api_mfa_configuration_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_MFAConfigurationAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test MFAConfigurationAPIService GetMFADuoConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_MFAConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_v2024_MFAConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -62,7 +62,7 @@ func Test_api_v2024_MFAConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -74,7 +74,7 @@ func Test_api_v2024_MFAConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -86,7 +86,7 @@ func Test_api_v2024_MFAConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -100,7 +100,7 @@ func Test_api_v2024_MFAConfigurationAPIService(t *testing.T) { var method string - resp, httpRes, err := apiClient.API_V2024.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_non_employee_lifecycle_management_test.go b/api_v2024/test/api_non_employee_lifecycle_management_test.go index 43951c3c7..149938692 100644 --- a/api_v2024/test/api_non_employee_lifecycle_management_test.go +++ b/api_v2024/test/api_non_employee_lifecycle_management_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test NonEmployeeLifecycleManagementAPIService ApproveNonEmployeeRequest", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -64,7 +64,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -78,7 +78,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -92,7 +92,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -103,7 +103,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -116,7 +116,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -130,7 +130,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var attributeId string var sourceId string - httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -143,7 +143,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -156,7 +156,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -169,7 +169,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -182,7 +182,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -195,7 +195,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -209,7 +209,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var requestedFor string - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -223,7 +223,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -237,7 +237,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -251,7 +251,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -265,7 +265,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var requestedFor string - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -280,7 +280,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var attributeId string var sourceId string - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -294,7 +294,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -308,7 +308,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -322,7 +322,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -334,7 +334,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -346,7 +346,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -358,7 +358,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -370,7 +370,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -384,7 +384,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -399,7 +399,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var attributeId string var sourceId string - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -413,7 +413,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -427,7 +427,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -441,7 +441,7 @@ func Test_api_v2024_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_notifications_test.go b/api_v2024/test/api_notifications_test.go index f83dd1be6..804d5b6a8 100644 --- a/api_v2024/test/api_notifications_test.go +++ b/api_v2024/test/api_notifications_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_NotificationsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test NotificationsAPIService CreateDomainDkim", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NotificationsAPI.CreateDomainDkim(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.CreateDomainDkim(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NotificationsAPI.CreateNotificationTemplate(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.CreateNotificationTemplate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_v2024_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -62,7 +62,7 @@ func Test_api_v2024_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V2024.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).Execute() + httpRes, err := apiClient.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -75,7 +75,7 @@ func Test_api_v2024_NotificationsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).Execute() + httpRes, err := apiClient.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -86,7 +86,7 @@ func Test_api_v2024_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NotificationsAPI.GetDkimAttributes(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.GetDkimAttributes(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -98,7 +98,7 @@ func Test_api_v2024_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NotificationsAPI.GetMailFromAttributes(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.GetMailFromAttributes(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -112,7 +112,7 @@ func Test_api_v2024_NotificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.NotificationsAPI.GetNotificationTemplate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.GetNotificationTemplate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -124,7 +124,7 @@ func Test_api_v2024_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -136,7 +136,7 @@ func Test_api_v2024_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NotificationsAPI.ListFromAddresses(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.ListFromAddresses(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -148,7 +148,7 @@ func Test_api_v2024_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NotificationsAPI.ListNotificationPreferences(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.ListNotificationPreferences(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -160,7 +160,7 @@ func Test_api_v2024_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -172,7 +172,7 @@ func Test_api_v2024_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NotificationsAPI.ListNotificationTemplates(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.ListNotificationTemplates(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -184,7 +184,7 @@ func Test_api_v2024_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.NotificationsAPI.PutMailFromAttributes(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationsAPI.PutMailFromAttributes(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -196,7 +196,7 @@ func Test_api_v2024_NotificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V2024.NotificationsAPI.SendTestNotification(context.Background()).Execute() + httpRes, err := apiClient.NotificationsAPI.SendTestNotification(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) diff --git a/api_v2024/test/api_o_auth_clients_test.go b/api_v2024/test/api_o_auth_clients_test.go index 7e8e9f75d..bc67538cd 100644 --- a/api_v2024/test/api_o_auth_clients_test.go +++ b/api_v2024/test/api_o_auth_clients_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_OAuthClientsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test OAuthClientsAPIService CreateOauthClient", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.OAuthClientsAPI.CreateOauthClient(context.Background()).Execute() + resp, httpRes, err := apiClient.OAuthClientsAPI.CreateOauthClient(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_OAuthClientsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() + httpRes, err := apiClient.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v2024_OAuthClientsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() + resp, httpRes, err := apiClient.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v2024_OAuthClientsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() + resp, httpRes, err := apiClient.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v2024_OAuthClientsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.OAuthClientsAPI.PatchOauthClient(context.Background(), id).Execute() + resp, httpRes, err := apiClient.OAuthClientsAPI.PatchOauthClient(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_org_config_test.go b/api_v2024/test/api_org_config_test.go index ffc31af7f..ebe7962fc 100644 --- a/api_v2024/test/api_org_config_test.go +++ b/api_v2024/test/api_org_config_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_OrgConfigAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test OrgConfigAPIService GetOrgConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.OrgConfigAPI.GetOrgConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.OrgConfigAPI.GetOrgConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_OrgConfigAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.OrgConfigAPI.GetValidTimeZones(context.Background()).Execute() + resp, httpRes, err := apiClient.OrgConfigAPI.GetValidTimeZones(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_v2024_OrgConfigAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.OrgConfigAPI.PatchOrgConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.OrgConfigAPI.PatchOrgConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_password_configuration_test.go b/api_v2024/test/api_password_configuration_test.go index 5c4b15a81..b3c3877ae 100644 --- a/api_v2024/test/api_password_configuration_test.go +++ b/api_v2024/test/api_password_configuration_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_PasswordConfigurationAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PasswordConfigurationAPIService CreatePasswordOrgConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_PasswordConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_v2024_PasswordConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_password_dictionary_test.go b/api_v2024/test/api_password_dictionary_test.go index be7d0a496..c609056f7 100644 --- a/api_v2024/test/api_password_dictionary_test.go +++ b/api_v2024/test/api_password_dictionary_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_PasswordDictionaryAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PasswordDictionaryAPIService GetPasswordDictionary", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_PasswordDictionaryAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V2024.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() + httpRes, err := apiClient.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) diff --git a/api_v2024/test/api_password_management_test.go b/api_v2024/test/api_password_management_test.go index 420464d5c..98976075b 100644 --- a/api_v2024/test/api_password_management_test.go +++ b/api_v2024/test/api_password_management_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_PasswordManagementAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PasswordManagementAPIService GenerateDigitToken", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.PasswordManagementAPI.GenerateDigitToken(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordManagementAPI.GenerateDigitToken(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_PasswordManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_v2024_PasswordManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.PasswordManagementAPI.QueryPasswordInfo(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordManagementAPI.QueryPasswordInfo(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -64,7 +64,7 @@ func Test_api_v2024_PasswordManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.PasswordManagementAPI.SetPassword(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordManagementAPI.SetPassword(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_password_policies_test.go b/api_v2024/test/api_password_policies_test.go index c7daa928c..b45721563 100644 --- a/api_v2024/test/api_password_policies_test.go +++ b/api_v2024/test/api_password_policies_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_PasswordPoliciesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PasswordPoliciesAPIService CreatePasswordPolicy", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_PasswordPoliciesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() + httpRes, err := apiClient.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v2024_PasswordPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v2024_PasswordPoliciesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v2024_PasswordPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_password_sync_groups_test.go b/api_v2024/test/api_password_sync_groups_test.go index afca6bd79..767cc648a 100644 --- a/api_v2024/test/api_password_sync_groups_test.go +++ b/api_v2024/test/api_password_sync_groups_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_PasswordSyncGroupsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PasswordSyncGroupsAPIService CreatePasswordSyncGroup", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_PasswordSyncGroupsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() + httpRes, err := apiClient.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v2024_PasswordSyncGroupsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v2024_PasswordSyncGroupsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v2024_PasswordSyncGroupsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_personal_access_tokens_test.go b/api_v2024/test/api_personal_access_tokens_test.go index 28afe4ae7..399af49ed 100644 --- a/api_v2024/test/api_personal_access_tokens_test.go +++ b/api_v2024/test/api_personal_access_tokens_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_PersonalAccessTokensAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PersonalAccessTokensAPIService CreatePersonalAccessToken", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).Execute() + resp, httpRes, err := apiClient.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_PersonalAccessTokensAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() + httpRes, err := apiClient.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -51,7 +51,7 @@ func Test_api_v2024_PersonalAccessTokensAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() + resp, httpRes, err := apiClient.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v2024_PersonalAccessTokensAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_public_identities_config_test.go b/api_v2024/test/api_public_identities_config_test.go index 49f719776..0b37ae5f9 100644 --- a/api_v2024/test/api_public_identities_config_test.go +++ b/api_v2024/test/api_public_identities_config_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_PublicIdentitiesConfigAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PublicIdentitiesConfigAPIService GetPublicIdentityConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_PublicIdentitiesConfigAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_public_identities_test.go b/api_v2024/test/api_public_identities_test.go index 7eaa6c9c0..3600afa69 100644 --- a/api_v2024/test/api_public_identities_test.go +++ b/api_v2024/test/api_public_identities_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_PublicIdentitiesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PublicIdentitiesAPIService GetPublicIdentities", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Execute() + resp, httpRes, err := apiClient.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_reports_data_extraction_test.go b/api_v2024/test/api_reports_data_extraction_test.go index ac98a39d9..6128634f6 100644 --- a/api_v2024/test/api_reports_data_extraction_test.go +++ b/api_v2024/test/api_reports_data_extraction_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_ReportsDataExtractionAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ReportsDataExtractionAPIService CancelReport", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_ReportsDataExtractionAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() + httpRes, err := apiClient.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -41,7 +41,7 @@ func Test_api_v2024_ReportsDataExtractionAPIService(t *testing.T) { var taskResultId string - resp, httpRes, err := apiClient.API_V2024.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).Execute() + resp, httpRes, err := apiClient.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -55,7 +55,7 @@ func Test_api_v2024_ReportsDataExtractionAPIService(t *testing.T) { var taskResultId string - resp, httpRes, err := apiClient.API_V2024.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Execute() + resp, httpRes, err := apiClient.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -67,7 +67,7 @@ func Test_api_v2024_ReportsDataExtractionAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ReportsDataExtractionAPI.StartReport(context.Background()).Execute() + resp, httpRes, err := apiClient.ReportsDataExtractionAPI.StartReport(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_requestable_objects_test.go b/api_v2024/test/api_requestable_objects_test.go index ca4641c3e..a77ad0d6a 100644 --- a/api_v2024/test/api_requestable_objects_test.go +++ b/api_v2024/test/api_requestable_objects_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_RequestableObjectsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test RequestableObjectsAPIService ListRequestableObjects", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() + resp, httpRes, err := apiClient.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_role_insights_test.go b/api_v2024/test/api_role_insights_test.go index a0263af1f..880639824 100644 --- a/api_v2024/test/api_role_insights_test.go +++ b/api_v2024/test/api_role_insights_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_RoleInsightsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test RoleInsightsAPIService CreateRoleInsightRequests", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_RoleInsightsAPIService(t *testing.T) { var insightId string - resp, httpRes, err := apiClient.API_V2024.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -55,7 +55,7 @@ func Test_api_v2024_RoleInsightsAPIService(t *testing.T) { var insightId string var entitlementId string - resp, httpRes, err := apiClient.API_V2024.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -69,7 +69,7 @@ func Test_api_v2024_RoleInsightsAPIService(t *testing.T) { var insightId string - resp, httpRes, err := apiClient.API_V2024.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -81,7 +81,7 @@ func Test_api_v2024_RoleInsightsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.RoleInsightsAPI.GetRoleInsights(context.Background()).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.GetRoleInsights(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -95,7 +95,7 @@ func Test_api_v2024_RoleInsightsAPIService(t *testing.T) { var insightId string - resp, httpRes, err := apiClient.API_V2024.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -109,7 +109,7 @@ func Test_api_v2024_RoleInsightsAPIService(t *testing.T) { var insightId string - resp, httpRes, err := apiClient.API_V2024.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -123,7 +123,7 @@ func Test_api_v2024_RoleInsightsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -135,7 +135,7 @@ func Test_api_v2024_RoleInsightsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).Execute() + resp, httpRes, err := apiClient.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_roles_test.go b/api_v2024/test/api_roles_test.go index ed6c07197..87eda228e 100644 --- a/api_v2024/test/api_roles_test.go +++ b/api_v2024/test/api_roles_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_RolesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test RolesAPIService CreateRole", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.RolesAPI.CreateRole(context.Background()).Execute() + resp, httpRes, err := apiClient.RolesAPI.CreateRole(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_RolesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.RolesAPI.DeleteBulkRoles(context.Background()).Execute() + resp, httpRes, err := apiClient.RolesAPI.DeleteBulkRoles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_v2024_RolesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.RolesAPI.DeleteRole(context.Background(), id).Execute() + httpRes, err := apiClient.RolesAPI.DeleteRole(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -65,7 +65,7 @@ func Test_api_v2024_RolesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.RolesAPI.GetRole(context.Background(), id).Execute() + resp, httpRes, err := apiClient.RolesAPI.GetRole(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v2024_RolesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() + resp, httpRes, err := apiClient.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -93,7 +93,7 @@ func Test_api_v2024_RolesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.RolesAPI.GetRoleEntitlements(context.Background(), id).Execute() + resp, httpRes, err := apiClient.RolesAPI.GetRoleEntitlements(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -105,7 +105,7 @@ func Test_api_v2024_RolesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.RolesAPI.ListRoles(context.Background()).Execute() + resp, httpRes, err := apiClient.RolesAPI.ListRoles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -119,7 +119,7 @@ func Test_api_v2024_RolesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.RolesAPI.PatchRole(context.Background(), id).Execute() + resp, httpRes, err := apiClient.RolesAPI.PatchRole(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_saved_search_test.go b/api_v2024/test/api_saved_search_test.go index 43733e776..6c71d8882 100644 --- a/api_v2024/test/api_saved_search_test.go +++ b/api_v2024/test/api_saved_search_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_SavedSearchAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SavedSearchAPIService CreateSavedSearch", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SavedSearchAPI.CreateSavedSearch(context.Background()).Execute() + resp, httpRes, err := apiClient.SavedSearchAPI.CreateSavedSearch(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_SavedSearchAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() + httpRes, err := apiClient.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v2024_SavedSearchAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).Execute() + httpRes, err := apiClient.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -66,7 +66,7 @@ func Test_api_v2024_SavedSearchAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -78,7 +78,7 @@ func Test_api_v2024_SavedSearchAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SavedSearchAPI.ListSavedSearches(context.Background()).Execute() + resp, httpRes, err := apiClient.SavedSearchAPI.ListSavedSearches(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -92,7 +92,7 @@ func Test_api_v2024_SavedSearchAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SavedSearchAPI.PutSavedSearch(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SavedSearchAPI.PutSavedSearch(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_scheduled_search_test.go b/api_v2024/test/api_scheduled_search_test.go index ac32a0700..f92941ecd 100644 --- a/api_v2024/test/api_scheduled_search_test.go +++ b/api_v2024/test/api_scheduled_search_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_ScheduledSearchAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ScheduledSearchAPIService CreateScheduledSearch", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).Execute() + resp, httpRes, err := apiClient.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_ScheduledSearchAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() + httpRes, err := apiClient.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v2024_ScheduledSearchAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v2024_ScheduledSearchAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Execute() + resp, httpRes, err := apiClient.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v2024_ScheduledSearchAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).Execute() + httpRes, err := apiClient.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -92,7 +92,7 @@ func Test_api_v2024_ScheduledSearchAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_search_attribute_configuration_test.go b/api_v2024/test/api_search_attribute_configuration_test.go index de2824d2d..cbcaf101e 100644 --- a/api_v2024/test/api_search_attribute_configuration_test.go +++ b/api_v2024/test/api_search_attribute_configuration_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_SearchAttributeConfigurationAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SearchAttributeConfigurationAPIService CreateSearchAttributeConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_SearchAttributeConfigurationAPIService(t *testing.T) { var name string - httpRes, err := apiClient.API_V2024.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() + httpRes, err := apiClient.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -51,7 +51,7 @@ func Test_api_v2024_SearchAttributeConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v2024_SearchAttributeConfigurationAPIService(t *testing.T) { var name string - resp, httpRes, err := apiClient.API_V2024.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() + resp, httpRes, err := apiClient.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v2024_SearchAttributeConfigurationAPIService(t *testing.T) { var name string - resp, httpRes, err := apiClient.API_V2024.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).Execute() + resp, httpRes, err := apiClient.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_search_test.go b/api_v2024/test/api_search_test.go index 9d260a76d..21c452a31 100644 --- a/api_v2024/test/api_search_test.go +++ b/api_v2024/test/api_search_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_SearchAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SearchAPIService SearchAggregate", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SearchAPI.SearchAggregate(context.Background()).Execute() + resp, httpRes, err := apiClient.SearchAPI.SearchAggregate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_SearchAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V2024.SearchAPI.SearchCount(context.Background()).Execute() + httpRes, err := apiClient.SearchAPI.SearchCount(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -52,7 +52,7 @@ func Test_api_v2024_SearchAPIService(t *testing.T) { var index string var id string - resp, httpRes, err := apiClient.API_V2024.SearchAPI.SearchGet(context.Background(), index, id).Execute() + resp, httpRes, err := apiClient.SearchAPI.SearchGet(context.Background(), index, id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -64,7 +64,7 @@ func Test_api_v2024_SearchAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SearchAPI.SearchPost(context.Background()).Execute() + resp, httpRes, err := apiClient.SearchAPI.SearchPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_segments_test.go b/api_v2024/test/api_segments_test.go index e85583e46..824273b65 100644 --- a/api_v2024/test/api_segments_test.go +++ b/api_v2024/test/api_segments_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_SegmentsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SegmentsAPIService CreateSegment", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SegmentsAPI.CreateSegment(context.Background()).Execute() + resp, httpRes, err := apiClient.SegmentsAPI.CreateSegment(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_SegmentsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() + httpRes, err := apiClient.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v2024_SegmentsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SegmentsAPI.GetSegment(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SegmentsAPI.GetSegment(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v2024_SegmentsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SegmentsAPI.ListSegments(context.Background()).Execute() + resp, httpRes, err := apiClient.SegmentsAPI.ListSegments(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v2024_SegmentsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SegmentsAPI.PatchSegment(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SegmentsAPI.PatchSegment(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_service_desk_integration_test.go b/api_v2024/test/api_service_desk_integration_test.go index a9b81fed1..0f960106e 100644 --- a/api_v2024/test/api_service_desk_integration_test.go +++ b/api_v2024/test/api_service_desk_integration_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_ServiceDeskIntegrationAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ServiceDeskIntegrationAPIService CreateServiceDeskIntegration", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_ServiceDeskIntegrationAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() + httpRes, err := apiClient.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v2024_ServiceDeskIntegrationAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -67,7 +67,7 @@ func Test_api_v2024_ServiceDeskIntegrationAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v2024_ServiceDeskIntegrationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -91,7 +91,7 @@ func Test_api_v2024_ServiceDeskIntegrationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -103,7 +103,7 @@ func Test_api_v2024_ServiceDeskIntegrationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -117,7 +117,7 @@ func Test_api_v2024_ServiceDeskIntegrationAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -131,7 +131,7 @@ func Test_api_v2024_ServiceDeskIntegrationAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -143,7 +143,7 @@ func Test_api_v2024_ServiceDeskIntegrationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_sim_integrations_test.go b/api_v2024/test/api_sim_integrations_test.go index 3fc72c325..6ced4d07f 100644 --- a/api_v2024/test/api_sim_integrations_test.go +++ b/api_v2024/test/api_sim_integrations_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_SIMIntegrationsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SIMIntegrationsAPIService CreateSIMIntegration", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).Execute() + resp, httpRes, err := apiClient.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_SIMIntegrationsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).Execute() + httpRes, err := apiClient.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v2024_SIMIntegrationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v2024_SIMIntegrationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).Execute() + resp, httpRes, err := apiClient.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v2024_SIMIntegrationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -93,7 +93,7 @@ func Test_api_v2024_SIMIntegrationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -107,7 +107,7 @@ func Test_api_v2024_SIMIntegrationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_sod_policies_test.go b/api_v2024/test/api_sod_policies_test.go index 91222c253..81dd372e1 100644 --- a/api_v2024/test/api_sod_policies_test.go +++ b/api_v2024/test/api_sod_policies_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_SODPoliciesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SODPoliciesAPIService CreateSodPolicy", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SODPoliciesAPI.CreateSodPolicy(context.Background()).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.CreateSodPolicy(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_SODPoliciesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() + httpRes, err := apiClient.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v2024_SODPoliciesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() + httpRes, err := apiClient.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -67,7 +67,7 @@ func Test_api_v2024_SODPoliciesAPIService(t *testing.T) { var reportResultId string var fileName string - resp, httpRes, err := apiClient.API_V2024.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -81,7 +81,7 @@ func Test_api_v2024_SODPoliciesAPIService(t *testing.T) { var reportResultId string - resp, httpRes, err := apiClient.API_V2024.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -93,7 +93,7 @@ func Test_api_v2024_SODPoliciesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -107,7 +107,7 @@ func Test_api_v2024_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -121,7 +121,7 @@ func Test_api_v2024_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -135,7 +135,7 @@ func Test_api_v2024_SODPoliciesAPIService(t *testing.T) { var reportResultId string - resp, httpRes, err := apiClient.API_V2024.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -149,7 +149,7 @@ func Test_api_v2024_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -161,7 +161,7 @@ func Test_api_v2024_SODPoliciesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -175,7 +175,7 @@ func Test_api_v2024_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -189,7 +189,7 @@ func Test_api_v2024_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -203,7 +203,7 @@ func Test_api_v2024_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SODPoliciesAPI.PutSodPolicy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.PutSodPolicy(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -217,7 +217,7 @@ func Test_api_v2024_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -229,7 +229,7 @@ func Test_api_v2024_SODPoliciesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -243,7 +243,7 @@ func Test_api_v2024_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_sod_violations_test.go b/api_v2024/test/api_sod_violations_test.go index 44f9a3f43..7bd1ffab4 100644 --- a/api_v2024/test/api_sod_violations_test.go +++ b/api_v2024/test/api_sod_violations_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_SODViolationsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SODViolationsAPIService StartPredictSodViolations", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SODViolationsAPI.StartPredictSodViolations(context.Background()).Execute() + resp, httpRes, err := apiClient.SODViolationsAPI.StartPredictSodViolations(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_SODViolationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SODViolationsAPI.StartViolationCheck(context.Background()).Execute() + resp, httpRes, err := apiClient.SODViolationsAPI.StartViolationCheck(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_source_usages_test.go b/api_v2024/test/api_source_usages_test.go index 38e14d3c2..d0ac89ce2 100644 --- a/api_v2024/test/api_source_usages_test.go +++ b/api_v2024/test/api_source_usages_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_SourceUsagesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SourceUsagesAPIService GetStatusBySourceId", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_SourceUsagesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V2024.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -42,7 +42,7 @@ func Test_api_v2024_SourceUsagesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V2024.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_sources_test.go b/api_v2024/test/api_sources_test.go index 40ee9097f..f27625666 100644 --- a/api_v2024/test/api_sources_test.go +++ b/api_v2024/test/api_sources_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_SourcesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SourcesAPIService CreateProvisioningPolicy", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.CreateSource(context.Background()).Execute() + resp, httpRes, err := apiClient.SourcesAPI.CreateSource(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -54,7 +54,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -68,7 +68,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.DeleteAccountsAsync(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.DeleteAccountsAsync(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -82,7 +82,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).Execute() + httpRes, err := apiClient.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -96,7 +96,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string var usageType UsageType - httpRes, err := apiClient.API_V2024.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + httpRes, err := apiClient.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -109,7 +109,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.DeleteSource(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.DeleteSource(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -124,7 +124,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string var schemaId string - httpRes, err := apiClient.API_V2024.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() + httpRes, err := apiClient.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -137,7 +137,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() + httpRes, err := apiClient.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -150,7 +150,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.SourcesAPI.GetEntitlementsSchema(context.Background(), id).Execute() + httpRes, err := apiClient.SourcesAPI.GetEntitlementsSchema(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -163,7 +163,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -178,7 +178,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string var usageType UsageType - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -192,7 +192,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.GetSource(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetSource(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -206,7 +206,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -220,7 +220,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.GetSourceConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetSourceConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -232,7 +232,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -246,7 +246,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -261,7 +261,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string var schemaId string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -275,7 +275,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -289,7 +289,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.ImportAccounts(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ImportAccounts(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -303,7 +303,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.ImportAccountsSchema(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ImportAccountsSchema(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -317,7 +317,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -331,7 +331,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -345,7 +345,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -359,7 +359,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -371,7 +371,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.ListSources(context.Background()).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ListSources(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -385,7 +385,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.PeekResourceObjects(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PeekResourceObjects(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -399,7 +399,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -413,7 +413,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -428,7 +428,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string var usageType UsageType - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -442,7 +442,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.PutSource(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PutSource(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -456,7 +456,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -471,7 +471,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string var schemaId string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -485,7 +485,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.SyncAttributesForSource(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.SyncAttributesForSource(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -499,7 +499,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -513,7 +513,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -527,7 +527,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -542,7 +542,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string var usageType UsageType - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + resp, httpRes, err := apiClient.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -556,7 +556,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.UpdateSource(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.UpdateSource(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -568,7 +568,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -583,7 +583,7 @@ func Test_api_v2024_SourcesAPIService(t *testing.T) { var sourceId string var schemaId string - resp, httpRes, err := apiClient.API_V2024.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_sp_config_test.go b/api_v2024/test/api_sp_config_test.go index f453ccb2d..898580990 100644 --- a/api_v2024/test/api_sp_config_test.go +++ b/api_v2024/test/api_sp_config_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_SPConfigAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SPConfigAPIService ExportSpConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SPConfigAPI.ExportSpConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.SPConfigAPI.ExportSpConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_SPConfigAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -54,7 +54,7 @@ func Test_api_v2024_SPConfigAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -68,7 +68,7 @@ func Test_api_v2024_SPConfigAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -82,7 +82,7 @@ func Test_api_v2024_SPConfigAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -94,7 +94,7 @@ func Test_api_v2024_SPConfigAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SPConfigAPI.ImportSpConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.SPConfigAPI.ImportSpConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -106,7 +106,7 @@ func Test_api_v2024_SPConfigAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() + resp, httpRes, err := apiClient.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_suggested_entitlement_description_test.go b/api_v2024/test/api_suggested_entitlement_description_test.go index 5d403efe6..64a31a717 100644 --- a/api_v2024/test/api_suggested_entitlement_description_test.go +++ b/api_v2024/test/api_suggested_entitlement_description_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_SuggestedEntitlementDescriptionAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SuggestedEntitlementDescriptionAPIService GetSedBatchStats", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_SuggestedEntitlementDescriptionAPIService(t *testing.T) { var batchId string - resp, httpRes, err := apiClient.API_V2024.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() + resp, httpRes, err := apiClient.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_SuggestedEntitlementDescriptionAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() + resp, httpRes, err := apiClient.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_v2024_SuggestedEntitlementDescriptionAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Execute() + resp, httpRes, err := apiClient.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -66,7 +66,7 @@ func Test_api_v2024_SuggestedEntitlementDescriptionAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -78,7 +78,7 @@ func Test_api_v2024_SuggestedEntitlementDescriptionAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).Execute() + resp, httpRes, err := apiClient.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -90,7 +90,7 @@ func Test_api_v2024_SuggestedEntitlementDescriptionAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).Execute() + resp, httpRes, err := apiClient.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -102,7 +102,7 @@ func Test_api_v2024_SuggestedEntitlementDescriptionAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_tagged_objects_test.go b/api_v2024/test/api_tagged_objects_test.go index da6363c68..3461d4073 100644 --- a/api_v2024/test/api_tagged_objects_test.go +++ b/api_v2024/test/api_tagged_objects_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_TaggedObjectsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test TaggedObjectsAPIService DeleteTaggedObject", func(t *testing.T) { @@ -29,7 +29,7 @@ func Test_api_v2024_TaggedObjectsAPIService(t *testing.T) { var type_ string var id string - httpRes, err := apiClient.API_V2024.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() + httpRes, err := apiClient.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -40,7 +40,7 @@ func Test_api_v2024_TaggedObjectsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V2024.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).Execute() + httpRes, err := apiClient.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -54,7 +54,7 @@ func Test_api_v2024_TaggedObjectsAPIService(t *testing.T) { var type_ string var id string - resp, httpRes, err := apiClient.API_V2024.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() + resp, httpRes, err := apiClient.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -66,7 +66,7 @@ func Test_api_v2024_TaggedObjectsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() + resp, httpRes, err := apiClient.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -80,7 +80,7 @@ func Test_api_v2024_TaggedObjectsAPIService(t *testing.T) { var type_ string - resp, httpRes, err := apiClient.API_V2024.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() + resp, httpRes, err := apiClient.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -95,7 +95,7 @@ func Test_api_v2024_TaggedObjectsAPIService(t *testing.T) { var type_ string var id string - resp, httpRes, err := apiClient.API_V2024.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).Execute() + resp, httpRes, err := apiClient.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -107,7 +107,7 @@ func Test_api_v2024_TaggedObjectsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V2024.TaggedObjectsAPI.SetTagToObject(context.Background()).Execute() + httpRes, err := apiClient.TaggedObjectsAPI.SetTagToObject(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -118,7 +118,7 @@ func Test_api_v2024_TaggedObjectsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).Execute() + resp, httpRes, err := apiClient.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_task_management_test.go b/api_v2024/test/api_task_management_test.go index 9fa6a49aa..aa55eeac0 100644 --- a/api_v2024/test/api_task_management_test.go +++ b/api_v2024/test/api_task_management_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_TaskManagementAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test TaskManagementAPIService GetPendingTaskHeaders", func(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V2024.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).Execute() + httpRes, err := apiClient.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -37,7 +37,7 @@ func Test_api_v2024_TaskManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.TaskManagementAPI.GetPendingTasks(context.Background()).Execute() + resp, httpRes, err := apiClient.TaskManagementAPI.GetPendingTasks(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -51,7 +51,7 @@ func Test_api_v2024_TaskManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.TaskManagementAPI.GetTaskStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TaskManagementAPI.GetTaskStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -63,7 +63,7 @@ func Test_api_v2024_TaskManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.TaskManagementAPI.GetTaskStatusList(context.Background()).Execute() + resp, httpRes, err := apiClient.TaskManagementAPI.GetTaskStatusList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -77,7 +77,7 @@ func Test_api_v2024_TaskManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_tenant_test.go b/api_v2024/test/api_tenant_test.go index af43533ba..6235ef7fe 100644 --- a/api_v2024/test/api_tenant_test.go +++ b/api_v2024/test/api_tenant_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_TenantAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test TenantAPIService GetTenant", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.TenantAPI.GetTenant(context.Background()).Execute() + resp, httpRes, err := apiClient.TenantAPI.GetTenant(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_transforms_test.go b/api_v2024/test/api_transforms_test.go index a312a03b6..96197e0a3 100644 --- a/api_v2024/test/api_transforms_test.go +++ b/api_v2024/test/api_transforms_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_TransformsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test TransformsAPIService CreateTransform", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.TransformsAPI.CreateTransform(context.Background()).Execute() + resp, httpRes, err := apiClient.TransformsAPI.CreateTransform(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_TransformsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.TransformsAPI.DeleteTransform(context.Background(), id).Execute() + httpRes, err := apiClient.TransformsAPI.DeleteTransform(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v2024_TransformsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.TransformsAPI.GetTransform(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TransformsAPI.GetTransform(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v2024_TransformsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.TransformsAPI.ListTransforms(context.Background()).Execute() + resp, httpRes, err := apiClient.TransformsAPI.ListTransforms(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v2024_TransformsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.TransformsAPI.UpdateTransform(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TransformsAPI.UpdateTransform(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_triggers_test.go b/api_v2024/test/api_triggers_test.go index cd7ab10b6..e864061e8 100644 --- a/api_v2024/test/api_triggers_test.go +++ b/api_v2024/test/api_triggers_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_TriggersAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test TriggersAPIService CompleteTriggerInvocation", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_TriggersAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).Execute() + httpRes, err := apiClient.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -39,7 +39,7 @@ func Test_api_v2024_TriggersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.TriggersAPI.CreateSubscription(context.Background()).Execute() + resp, httpRes, err := apiClient.TriggersAPI.CreateSubscription(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -53,7 +53,7 @@ func Test_api_v2024_TriggersAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.TriggersAPI.DeleteSubscription(context.Background(), id).Execute() + httpRes, err := apiClient.TriggersAPI.DeleteSubscription(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -64,7 +64,7 @@ func Test_api_v2024_TriggersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.TriggersAPI.ListSubscriptions(context.Background()).Execute() + resp, httpRes, err := apiClient.TriggersAPI.ListSubscriptions(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -76,7 +76,7 @@ func Test_api_v2024_TriggersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.TriggersAPI.ListTriggerInvocationStatus(context.Background()).Execute() + resp, httpRes, err := apiClient.TriggersAPI.ListTriggerInvocationStatus(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -88,7 +88,7 @@ func Test_api_v2024_TriggersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.TriggersAPI.ListTriggers(context.Background()).Execute() + resp, httpRes, err := apiClient.TriggersAPI.ListTriggers(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -102,7 +102,7 @@ func Test_api_v2024_TriggersAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.TriggersAPI.PatchSubscription(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TriggersAPI.PatchSubscription(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -114,7 +114,7 @@ func Test_api_v2024_TriggersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.TriggersAPI.StartTestTriggerInvocation(context.Background()).Execute() + resp, httpRes, err := apiClient.TriggersAPI.StartTestTriggerInvocation(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -126,7 +126,7 @@ func Test_api_v2024_TriggersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.TriggersAPI.TestSubscriptionFilter(context.Background()).Execute() + resp, httpRes, err := apiClient.TriggersAPI.TestSubscriptionFilter(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -140,7 +140,7 @@ func Test_api_v2024_TriggersAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.TriggersAPI.UpdateSubscription(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TriggersAPI.UpdateSubscription(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_ui_metadata_test.go b/api_v2024/test/api_ui_metadata_test.go index 6dd5d89e2..e2ca09ded 100644 --- a/api_v2024/test/api_ui_metadata_test.go +++ b/api_v2024/test/api_ui_metadata_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_UIMetadataAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test UIMetadataAPIService GetTenantUiMetadata", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.UIMetadataAPI.GetTenantUiMetadata(context.Background()).Execute() + resp, httpRes, err := apiClient.UIMetadataAPI.GetTenantUiMetadata(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_UIMetadataAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.UIMetadataAPI.SetTenantUiMetadata(context.Background()).Execute() + resp, httpRes, err := apiClient.UIMetadataAPI.SetTenantUiMetadata(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_vendor_connector_mappings_test.go b/api_v2024/test/api_vendor_connector_mappings_test.go index 3c83fe2bc..d33022eb6 100644 --- a/api_v2024/test/api_vendor_connector_mappings_test.go +++ b/api_v2024/test/api_vendor_connector_mappings_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_VendorConnectorMappingsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test VendorConnectorMappingsAPIService CreateVendorConnectorMapping", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).Execute() + resp, httpRes, err := apiClient.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v2024_VendorConnectorMappingsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).Execute() + resp, httpRes, err := apiClient.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_work_items_test.go b/api_v2024/test/api_work_items_test.go index 74013b6bc..aac54e209 100644 --- a/api_v2024/test/api_work_items_test.go +++ b/api_v2024/test/api_work_items_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_WorkItemsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test WorkItemsAPIService ApproveApprovalItem", func(t *testing.T) { @@ -29,7 +29,7 @@ func Test_api_v2024_WorkItemsAPIService(t *testing.T) { var id string var approvalItemId string - resp, httpRes, err := apiClient.API_V2024.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -43,7 +43,7 @@ func Test_api_v2024_WorkItemsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -57,7 +57,7 @@ func Test_api_v2024_WorkItemsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -69,7 +69,7 @@ func Test_api_v2024_WorkItemsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -81,7 +81,7 @@ func Test_api_v2024_WorkItemsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -93,7 +93,7 @@ func Test_api_v2024_WorkItemsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.WorkItemsAPI.GetCountWorkItems(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.GetCountWorkItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -107,7 +107,7 @@ func Test_api_v2024_WorkItemsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -119,7 +119,7 @@ func Test_api_v2024_WorkItemsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.WorkItemsAPI.GetWorkItemsSummary(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.GetWorkItemsSummary(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -131,7 +131,7 @@ func Test_api_v2024_WorkItemsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.WorkItemsAPI.ListWorkItems(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.ListWorkItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -146,7 +146,7 @@ func Test_api_v2024_WorkItemsAPIService(t *testing.T) { var id string var approvalItemId string - resp, httpRes, err := apiClient.API_V2024.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -160,7 +160,7 @@ func Test_api_v2024_WorkItemsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -174,7 +174,7 @@ func Test_api_v2024_WorkItemsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.WorkItemsAPI.SendWorkItemForward(context.Background(), id).Execute() + httpRes, err := apiClient.WorkItemsAPI.SendWorkItemForward(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -187,7 +187,7 @@ func Test_api_v2024_WorkItemsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_work_reassignment_test.go b/api_v2024/test/api_work_reassignment_test.go index f49883e55..0e88175fa 100644 --- a/api_v2024/test/api_work_reassignment_test.go +++ b/api_v2024/test/api_work_reassignment_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v2024_WorkReassignmentAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test WorkReassignmentAPIService CreateReassignmentConfiguration", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v2024_WorkReassignmentAPIService(t *testing.T) { var identityId string - httpRes, err := apiClient.API_V2024.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId).Execute() + httpRes, err := apiClient.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -54,7 +54,7 @@ func Test_api_v2024_WorkReassignmentAPIService(t *testing.T) { var identityId string var configType ConfigTypeEnum - resp, httpRes, err := apiClient.API_V2024.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).Execute() + resp, httpRes, err := apiClient.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -66,7 +66,7 @@ func Test_api_v2024_WorkReassignmentAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -80,7 +80,7 @@ func Test_api_v2024_WorkReassignmentAPIService(t *testing.T) { var identityId string - resp, httpRes, err := apiClient.API_V2024.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).Execute() + resp, httpRes, err := apiClient.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -92,7 +92,7 @@ func Test_api_v2024_WorkReassignmentAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -104,7 +104,7 @@ func Test_api_v2024_WorkReassignmentAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -118,7 +118,7 @@ func Test_api_v2024_WorkReassignmentAPIService(t *testing.T) { var identityId string - resp, httpRes, err := apiClient.API_V2024.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).Execute() + resp, httpRes, err := apiClient.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -130,7 +130,7 @@ func Test_api_v2024_WorkReassignmentAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/test/api_workflows_test.go b/api_v2024/test/api_workflows_test.go index b5ee127c1..2752617b6 100644 --- a/api_v2024/test/api_workflows_test.go +++ b/api_v2024/test/api_workflows_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v2024_WorkflowsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test WorkflowsAPIService CancelWorkflowExecution", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() + httpRes, err := apiClient.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -41,7 +41,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -53,7 +53,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.WorkflowsAPI.CreateWorkflow(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.CreateWorkflow(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -67,7 +67,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -81,7 +81,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V2024.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() + httpRes, err := apiClient.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -94,7 +94,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -108,7 +108,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -122,7 +122,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -136,7 +136,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -148,7 +148,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -160,7 +160,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -172,7 +172,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -184,7 +184,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -196,7 +196,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V2024.WorkflowsAPI.ListWorkflows(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.ListWorkflows(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -210,7 +210,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.WorkflowsAPI.PatchWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.PatchWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -224,7 +224,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.WorkflowsAPI.PutWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.PutWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -238,7 +238,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -252,7 +252,7 @@ func Test_api_v2024_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V2024.WorkflowsAPI.TestWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.TestWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v2024/utils.go b/api_v2024/utils.go index 3d80d7f2b..d3660d664 100644 --- a/api_v2024/utils.go +++ b/api_v2024/utils.go @@ -11,7 +11,9 @@ API version: v2024 package api_v2024 import ( + "bytes" "encoding/json" + "fmt" "reflect" "time" ) @@ -320,7 +322,7 @@ func NewNullableTime(val *time.Time) *NullableTime { } func (v NullableTime) MarshalJSON() ([]byte, error) { - return v.value.MarshalJSON() + return json.Marshal(v.value) } func (v *NullableTime) UnmarshalJSON(src []byte) error { @@ -328,8 +330,8 @@ func (v *NullableTime) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } -// isNil checks if an input is nil -func isNil(i interface{}) bool { +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { if i == nil { return true } @@ -345,3 +347,15 @@ func isNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} \ No newline at end of file diff --git a/api_v3/.openapi-generator/VERSION b/api_v3/.openapi-generator/VERSION index 3769235d3..09a6d3084 100644 --- a/api_v3/.openapi-generator/VERSION +++ b/api_v3/.openapi-generator/VERSION @@ -1 +1 @@ -7.1.0 \ No newline at end of file +7.8.0 diff --git a/api_v3/README.md b/api_v3/README.md index e95cfc3c4..fbd02b165 100644 --- a/api_v3/README.md +++ b/api_v3/README.md @@ -7,6 +7,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat - API version: 3.0.0 - Package version: 2.1.8 +- Generator version: 7.8.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit [https://developer.sailpoint.com/discuss/api-help](https://developer.sailpoint.com/discuss/api-help) @@ -14,7 +15,7 @@ For more information, please visit [https://developer.sailpoint.com/discuss/api- Install the following dependencies: -```shell +```sh go get github.com/stretchr/testify/assert go get golang.org/x/oauth2 go get golang.org/x/net/context @@ -22,13 +23,13 @@ go get golang.org/x/net/context Put the package under your project folder and add the following in import: -```golang +```go import api_v3 "github.com/sailpoint-oss/golang-sdk/v2" ``` To use a proxy, set the environment variable `HTTP_PROXY`: -```golang +```go os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") ``` @@ -40,7 +41,7 @@ Default configuration comes with `Servers` field that contains server objects as For using other server than the one defined on index 0 set context value `api_v3.ContextServerIndex` of type `int`. -```golang +```go ctx := context.WithValue(context.Background(), api_v3.ContextServerIndex, 1) ``` @@ -48,7 +49,7 @@ ctx := context.WithValue(context.Background(), api_v3.ContextServerIndex, 1) Templated server URL is formatted using default variables from configuration or from context value `api_v3.ContextServerVariables` of type `map[string]string`. -```golang +```go ctx := context.WithValue(context.Background(), api_v3.ContextServerVariables, map[string]string{ "basePath": "v2", }) @@ -62,7 +63,7 @@ Each operation can use different server URL defined using `OperationServers` map An operation is uniquely identified by `"{classname}Service.{nickname}"` string. Similar rules for overriding default operation server index and variables applies by using `api_v3.ContextOperationServerIndices` and `api_v3.ContextOperationServerVariables` context maps. -```golang +```go ctx := context.WithValue(context.Background(), api_v3.ContextOperationServerIndices, map[string]int{ "{classname}Service.{nickname}": 2, }) @@ -1008,14 +1009,14 @@ Authentication schemes defined for the API: Example -```golang +```go auth := context.WithValue(context.Background(), api_v3.ContextAccessToken, "ACCESSTOKENSTRING") r, err := client.Service.Operation(auth, args) ``` Or via OAuth2 module to automatically refresh tokens and perform user authentication. -```golang +```go import "golang.org/x/oauth2" /* Perform OAuth2 round trip request and obtain a token */ @@ -1037,14 +1038,14 @@ r, err := client.Service.Operation(auth, args) Example -```golang +```go auth := context.WithValue(context.Background(), api_v3.ContextAccessToken, "ACCESSTOKENSTRING") r, err := client.Service.Operation(auth, args) ``` Or via OAuth2 module to automatically refresh tokens and perform user authentication. -```golang +```go import "golang.org/x/oauth2" /* Perform OAuth2 round trip request and obtain a token */ @@ -1065,14 +1066,14 @@ r, err := client.Service.Operation(auth, args) Example -```golang +```go auth := context.WithValue(context.Background(), api_v3.ContextAccessToken, "ACCESSTOKENSTRING") r, err := client.Service.Operation(auth, args) ``` Or via OAuth2 module to automatically refresh tokens and perform user authentication. -```golang +```go import "golang.org/x/oauth2" /* Perform OAuth2 round trip request and obtain a token */ diff --git a/api_v3/api/openapi.yaml b/api_v3/api/openapi.yaml index 61e851ce0..fce7ff641 100644 --- a/api_v3/api/openapi.yaml +++ b/api_v3/api/openapi.yaml @@ -43323,6 +43323,50 @@ components: - systemAccount - uncorrelated type: object + example: + sourceId: 2c9180835d2e5168015d32f890ca1581 + origin: AGGREGATED + description: description + type: NON_HUMAN + sourceOwner: + name: John Cavender + id: 4c5c8534e99445de98eef6c75e25eb01 + type: IDENTITY + connectionType: direct + uuid: slpt.support + ownerIdentity: + name: Adam Kennedy + id: 2c918084660f45d6016617daa9210584 + type: IDENTITY + features: ENABLE + identity: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + modified: 2015-05-28T14:07:17Z + disabled: false + hasEntitlements: true + id: id12345 + locked: false + authoritative: false + created: 2015-05-28T14:07:17Z + ownerGroup: + name: GovGroup AX17Z + id: 8d3e0094e99445de98eef6c75e25jc04 + type: GOVERNANCE_GROUP + manuallyCorrelated: false + identityState: ACTIVE + nativeIdentity: "552775" + uncorrelated: false + identityId: 2c9180835d2e5168015d32f890ca1581 + name: aName + cloudLifecycleState: active + attributes: + firstName: SailPoint + lastName: Support + displayName: SailPoint Support + sourceName: Employees + systemAccount: false AccountActivity: example: clientMetadata: @@ -43780,6 +43824,102 @@ components: example: NO_DECISIONS type: string type: object + example: + totalCertifications: 100 + sourcesWithOrphanEntitlements: + - name: Source with orphan entitlements + id: 2c90ad2a70ace7d50170acf22ca90010 + type: SOURCE + - name: Source with orphan entitlements + id: 2c90ad2a70ace7d50170acf22ca90010 + type: SOURCE + recommendationsEnabled: true + sunsetCommentsRequired: true + created: 2020-03-03T22:15:13.611Z + description: Everyone needs to be reviewed by their manager + type: MANAGER + sourceOwnerCampaignInfo: + sourceIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 + emailNotificationEnabled: false + alerts: + - level: ERROR + localizations: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - level: ERROR + localizations: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + filter: + name: Test Filter + id: 0fbe863c063c4c88a35fd7f17e8a3df5 + type: CAMPAIGN_FILTER + searchCampaignInfo: + identityIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 + query: Search Campaign query description + description: Search Campaign description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + type: ACCESS + accessConstraints: + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + autoRevokeAllowed: false + name: Manager Campaign + mandatoryCommentRequirement: NO_DECISIONS + modified: 2020-03-03T22:20:12.674Z + roleCompositionCampaignInfo: + remediatorRef: + name: Role Admin + id: 2c90ad2a70ace7d50170acf22ca90010 + type: IDENTITY + roleIds: + - 2c90ad2a70ace7d50170acf22ca90010 + query: Search Query + description: Role Composition Description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + completedCertifications: 10 + id: 2c9079b270a266a60170a2779fcb0007 + deadline: 2020-03-15T10:00:01.456Z + status: ACTIVE + correlatedStatus: CORRELATED title: Campaign type: object Certification: @@ -44289,6 +44429,44 @@ components: required: - authoritativeSource type: object + example: + owner: + name: William Wilson + id: 2c9180835d191a86015d28455b4b232a + type: IDENTITY + identityExceptionReportReference: + reportName: My annual report + taskResultId: 2b838de9-db9b-abcf-e646-d4f274ad4238 + authoritativeSource: + name: HR Active Directory + id: 2c9180835d191a86015d28455b4b232a + type: SOURCE + hasTimeBasedAttr: true + created: 2015-05-28T14:07:17Z + description: My custom flat file profile + identityRefreshRequired: true + identityCount: 8 + priority: 10 + identityAttributeConfig: + attributeTransforms: + - transformDefinition: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute + identityAttributeName: email + - transformDefinition: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute + identityAttributeName: email + enabled: true + name: aName + modified: 2015-05-28T14:07:17Z + id: id12345 IdentityReferenceWithNameAndEmail: example: name: Alison Ferguso @@ -44316,6 +44494,20 @@ components: type: object ProvisioningConfig: description: Specification of a Service Desk integration provisioning configuration. + example: + managedResourceRefs: + - type: SOURCE + id: 2c9180855d191c59015d291ceb051111 + name: My Source 1 + - type: SOURCE + id: 2c9180855d191c59015d291ceb052222 + name: My Source 2 + provisioningRequestExpiration: 7 + noProvisioningRequests: true + universalManager: true + planInitializerScript: + source: | + \r\n\r\n\r\n Before Provisioning Rule which changes disables and enables to a modify.\r\n properties: universalManager: default: false @@ -44721,6 +44913,49 @@ components: type: object - $ref: '#/components/schemas/SavedSearchName' - $ref: '#/components/schemas/SavedSearchDetail' + example: + owner: + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + created: 2018-06-25T20:22:28.104Z + columns: + identity: + - field: displayName + header: Display Name + - field: e-mail + header: Work Email + query: '@accounts(disabled:true)' + description: Disabled accounts + orderBy: + identity: + - lastName + - firstName + role: + - name + sort: + - displayName + filters: + terms: + - account_count + - account_count + range: + lower: + inclusive: false + value: "1" + upper: + inclusive: false + value: "1" + exclude: false + type: RANGE + ownerId: 2c91808568c529c60168cca6f90c1313 + indices: + - identities + public: false + name: Disabled accounts + modified: 2018-06-25T20:22:28.104Z + id: 0de46054-fe90-434a-b84e-c6b3359d0c64 + fields: + - disabled type: object Schedule: example: @@ -44798,6 +45033,47 @@ components: type: object - $ref: '#/components/schemas/ScheduledSearchName' - $ref: '#/components/schemas/SearchSchedule' + example: + owner: + id: 2c9180867624cbd7017642d8c8c81f67 + type: IDENTITY + displayQueryDetails: false + created: "" + description: Daily disabled accounts + ownerId: 2c9180867624cbd7017642d8c8c81f67 + enabled: false + schedule: + hours: + values: + - MON + - WED + interval: 3 + type: LIST + months: + values: + - MON + - WED + interval: 3 + type: LIST + timeZoneId: America/Chicago + days: + values: + - MON + - WED + interval: 3 + type: LIST + expiration: 2018-06-25T20:22:28.104Z + type: WEEKLY + recipients: + - id: 2c9180867624cbd7017642d8c8c81f67 + type: IDENTITY + - id: 2c9180867624cbd7017642d8c8c81f67 + type: IDENTITY + savedSearchId: 554f1511-f0a1-4744-ab14-599514d3e57c + name: Daily disabled accounts + modified: "" + id: 0de46054-fe90-434a-b84e-c6b3359d0c64 + emailEmptyResults: false required: - id - owner @@ -44881,6 +45157,37 @@ components: - name - type type: object + example: + ownerRef: "" + cluster: xyzzy999 + created: 2024-01-17T18:45:25.994Z + description: A very nice Service Desk integration + clusterRef: "" + type: ServiceNowSDIM + managedSources: + - 2c9180835d191a86015d28455b4a2329 + - 2c5680835d191a85765d28455b4a9823 + provisioningConfig: + managedResourceRefs: + - type: SOURCE + id: 2c9180855d191c59015d291ceb051111 + name: My Source 1 + - type: SOURCE + id: 2c9180855d191c59015d291ceb052222 + name: My Source 2 + provisioningRequestExpiration: 7 + noProvisioningRequests: true + universalManager: true + planInitializerScript: + source: | + \r\n\r\n\r\n Before Provisioning Rule which changes disables and enables to a modify.\r\n + name: Service Desk Integration Name + modified: 2024-02-18T18:45:25.994Z + attributes: + property: value + key: value + id: 62945a496ef440189b1f03e3623411c8 + beforeProvisioningRule: "" ServiceDeskIntegrationTemplateDto: allOf: - $ref: '#/components/schemas/BaseCommonDto' @@ -44908,6 +45215,29 @@ components: - provisioningConfig - type type: object + example: + provisioningConfig: + managedResourceRefs: + - type: SOURCE + id: 2c9180855d191c59015d291ceb051111 + name: My Source 1 + - type: SOURCE + id: 2c9180855d191c59015d291ceb052222 + name: My Source 2 + provisioningRequestExpiration: 7 + noProvisioningRequests: true + universalManager: true + planInitializerScript: + source: | + \r\n\r\n\r\n Before Provisioning Rule which changes disables and enables to a modify.\r\n + created: 2015-05-28T14:07:17Z + name: aName + modified: 2015-05-28T14:07:17Z + attributes: + property: value + key: value + id: id12345 + type: Web Service SDIM ServiceDeskIntegrationTemplateType: description: This represents a Service Desk Integration template type. example: @@ -44981,7 +45311,9 @@ components: - uid - mail created: 2022-02-08T14:50:03.827Z - managerCorrelationMapping: null + managerCorrelationMapping: + accountAttributeName: manager + identityAttributeName: manager credentialProviderEnabled: false accountCorrelationConfig: name: "Directory [source-62867] Account Correlation" @@ -45401,7 +45733,19 @@ components: type: Generic numItems: 19 ownerName: Jason Smith - form: null + form: + subtitle: Please select from the following + name: AccountSelection Form + id: 2c9180835d2e5168015d32f890ca1581 + title: Account Selection for John.Doe + targetUser: Jane.Doe + sections: + - formItems: [] + name: Field1 + label: Section 1 + - formItems: [] + name: Field1 + label: Section 1 remediationItems: - targetName: john.smith targetId: 2c9180835d2e5168015d32f890ca1581 @@ -45539,7 +45883,7 @@ components: type: object AccountUsage: example: - date: 2023-04-21T00:00:00.000+00:00 + date: 2023-04-21 count: 10 properties: date: @@ -45556,7 +45900,7 @@ components: type: object SourceUsage: example: - date: 2023-04-21T00:00:00.000+00:00 + date: 2023-04-21 count: 10.45 properties: date: @@ -45826,6 +46170,27 @@ components: - source type: object ErrorResponseDto: + example: + causes: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + messages: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + detailCode: 400.1 Bad Request Content + trackingId: e7eab60924f64aa284175b9fa3309599 properties: detailCode: description: Fine-grained error code providing more detail of the error. @@ -46129,7 +46494,10 @@ components: id: 2c7180a46faadee4016fb4e018c20642 type: IDENTITY scheme: MANAGER - currentOwner: null + currentOwner: + name: Allen Albertson + id: 2c3780a46faadee4016fb4e018c20652 + type: IDENTITY modified: 2019-08-23T18:52:57.398Z comment: I approve this request forwarded: false @@ -46149,7 +46517,10 @@ components: id: 2c7180a46faadee4016fb4e018c20642 type: IDENTITY scheme: MANAGER - currentOwner: null + currentOwner: + name: Allen Albertson + id: 2c3780a46faadee4016fb4e018c20652 + type: IDENTITY modified: 2019-08-23T18:52:57.398Z comment: I approve this request forwarded: false @@ -46157,17 +46528,116 @@ components: cancelable: true requestType: GRANT_ACCESS created: 2019-08-23T18:40:35.772Z - requesterComment: null - preApprovalTriggerDetails: null + requesterComment: + created: 2017-07-11T18:45:37.098Z + author: + name: john.doe + id: 2c9180847e25f377017e2ae8cae4650b + type: IDENTITY + comment: This is a comment. + preApprovalTriggerDetails: + decision: APPROVED + comment: Access is Approved + reviewer: John Doe description: This is the Engineering role that engineers are granted. type: ACCESS_PROFILE errorMessages: - - null - - null - sodViolationContext: null - cancelledRequestDetails: null + - - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + sodViolationContext: + violationCheckResult: + clientMetadata: + requestedAppName: test-app + requestedAppId: 2c91808f7892918f0178b78da4a305a1 + violationContexts: + - conflictingAccessCriteria: + leftCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + rightCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + policy: + name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + - conflictingAccessCriteria: + leftCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + rightCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + policy: + name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + violatedPolicies: + - name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + - name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + message: + localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + state: SUCCESS + uuid: f73d16e9-a038-46c5-b217-1246e15fdbdd + cancelledRequestDetails: + owner: + name: Support + id: 2c9180a46faadee4016fb4e018c20639 + type: IDENTITY + modified: 2019-12-20T09:17:12.192Z + comment: This request must be cancelled. accessRequestId: 2b838de9-db9b-abcf-e646-d4f274ad4238 - provisioningDetails: null + provisioningDetails: + orderedSubPhaseReferences: manualWorkItemDetails accountActivityItemId: 2c9180926cbfbddd016cbfc7c3b10010 name: AccessProfile1 manualWorkItemDetails: @@ -46577,7 +47047,13 @@ components: name: Support id: 2c9180a46faadee4016fb4e018c20639 type: IDENTITY - reviewerComment: null + reviewerComment: + created: 2017-07-11T18:45:37.098Z + author: + name: john.doe + id: 2c9180847e25f377017e2ae8cae4650b + type: IDENTITY + comment: This is a comment. removeDate: 2020-07-11T00:00:00Z clientMetadata: requestedAppName: test-app @@ -46598,7 +47074,13 @@ components: id: 2c9180847e25f377017e2ae8cae4650b type: IDENTITY comment: This is a comment. - requesterComment: null + requesterComment: + created: 2017-07-11T18:45:37.098Z + author: + name: john.doe + id: 2c9180847e25f377017e2ae8cae4650b + type: IDENTITY + comment: This is a comment. currentRemoveDate: 2020-07-11T00:00:00Z reviewedBy: name: Allen Albertson @@ -46913,6 +47395,24 @@ components: source: $ref: '#/components/schemas/EntitlementSource' type: object + example: + privileged: false + created: 2015-05-28T14:07:17Z + name: aName + modified: 2015-05-28T14:07:17Z + description: Active Directory DC + attributes: + GroupType: Security + sAMAccountName: Buyer + sourceSchemaObjectType: group + id: id12345 + attribute: authorizationType + source: + name: HR Active Directory + id: 2c9180835d191a86015d28455b4b232a + type: SOURCE + value: "CN=Users,dc=sailpoint,dc=com" + cloudGoverned: false SearchAttributeConfig: example: displayName: New Mail Attribute @@ -47648,7 +48148,102 @@ components: name: Manager Campaign Template description: Template for the annual manager campaign. modified: 2020-03-05T22:52:09.969Z - campaign: null + campaign: + totalCertifications: 100 + sourcesWithOrphanEntitlements: + - name: Source with orphan entitlements + id: 2c90ad2a70ace7d50170acf22ca90010 + type: SOURCE + - name: Source with orphan entitlements + id: 2c90ad2a70ace7d50170acf22ca90010 + type: SOURCE + recommendationsEnabled: true + sunsetCommentsRequired: true + created: 2020-03-03T22:15:13.611Z + description: Everyone needs to be reviewed by their manager + type: MANAGER + sourceOwnerCampaignInfo: + sourceIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 + emailNotificationEnabled: false + alerts: + - level: ERROR + localizations: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - level: ERROR + localizations: + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + - localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + filter: + name: Test Filter + id: 0fbe863c063c4c88a35fd7f17e8a3df5 + type: CAMPAIGN_FILTER + searchCampaignInfo: + identityIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 + query: Search Campaign query description + description: Search Campaign description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + type: ACCESS + accessConstraints: + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + autoRevokeAllowed: false + name: Manager Campaign + mandatoryCommentRequirement: NO_DECISIONS + modified: 2020-03-03T22:20:12.674Z + roleCompositionCampaignInfo: + remediatorRef: + name: Role Admin + id: 2c90ad2a70ace7d50170acf22ca90010 + type: IDENTITY + roleIds: + - 2c90ad2a70ace7d50170acf22ca90010 + query: Search Query + description: Role Composition Description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + completedCertifications: 10 + id: 2c9079b270a266a60170a2779fcb0007 + deadline: 2020-03-15T10:00:01.456Z + status: ACTIVE + correlatedStatus: CORRELATED id: 2c9079b270a266a60170a277bb960008 properties: id: @@ -49921,6 +50516,35 @@ components: required: - technicalName type: object + example: + accessProfileIds: + - 2c918084660f45d6016617daa9210584 + - 2c918084660f45d6016617daa9210500 + emailNotificationOption: + notifyManagers: true + notifySpecificUsers: true + emailAddressList: + - test@test.com + - test2@test.com + notifyAllAdmins: true + created: 2015-05-28T14:07:17Z + name: aName + modified: 2015-05-28T14:07:17Z + description: Lifecycle description + accountActions: + - action: ENABLE + sourceIds: + - 2c918084660f45d6016617daa9210584 + - 2c918084660f45d6016617daa9210500 + - action: ENABLE + sourceIds: + - 2c918084660f45d6016617daa9210584 + - 2c918084660f45d6016617daa9210500 + id: id12345 + identityCount: 42 + technicalName: Technical Name + identityState: identityState + enabled: true LifecyclestateDeleted: description: Deleted lifecycle state. example: @@ -50006,7 +50630,44 @@ components: id: 2c9180835d191a86015d28455b4b232a type: SOURCE version: 1 - object: null + object: + owner: + name: William Wilson + id: 2c9180835d191a86015d28455b4b232a + type: IDENTITY + identityExceptionReportReference: + reportName: My annual report + taskResultId: 2b838de9-db9b-abcf-e646-d4f274ad4238 + authoritativeSource: + name: HR Active Directory + id: 2c9180835d191a86015d28455b4b232a + type: SOURCE + hasTimeBasedAttr: true + created: 2015-05-28T14:07:17Z + description: My custom flat file profile + identityRefreshRequired: true + identityCount: 8 + priority: 10 + identityAttributeConfig: + attributeTransforms: + - transformDefinition: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute + identityAttributeName: email + - transformDefinition: + attributes: + attributeName: e-mail + sourceName: MySource + sourceId: 2c9180877a826e68017a8c0b03da1a53 + type: accountAttribute + identityAttributeName: email + enabled: true + name: aName + modified: 2015-05-28T14:07:17Z + id: id12345 properties: version: description: Version or object from the target service. @@ -51299,6 +51960,52 @@ components: format: date-time type: string type: object + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + approvalStatus: APPROVED + lastName: Smith + manager: jane.doe + data: + description: Auditing + accountName: william.smith + endDate: 2021-03-25T00:00:00-05:00 + created: 2020-03-24T11:11:41.139-05:00 + approvalItems: + - approver: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + accountName: test.account + approvalOrder: 1 + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + comment: I approve + id: 2c1e388b-1e55-4b0a-ab5c-897f1204159c + - approver: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + accountName: test.account + approvalOrder: 1 + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + comment: I approve + id: 2c1e388b-1e55-4b0a-ab5c-897f1204159c + description: Source description + nonEmployeeSource: + sourceId: 2c91808568c529c60168cca6f90c1313 + name: Retail + description: Source description + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + firstName: William + phone: "5555555555" + name: Retail + modified: 2020-03-24T11:11:41.139-05:00 + comment: approved + completionDate: 2020-03-24T11:11:41.139-05:00 + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + email: william.smith@example.com + startDate: 2020-03-24T00:00:00-05:00 NonEmployeeRequestSummary: example: approved: 2 @@ -51342,6 +52049,24 @@ components: nullable: true type: integer type: object + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + created: 2019-08-23T18:40:35.772Z + accountManagers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + name: Retail + description: Source description + approvers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + modified: 2019-08-23T18:52:59.162Z + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + nonEmployeeCount: 120 NonEmployeeSourceRequestBody: example: owner: @@ -51402,6 +52127,24 @@ components: example: "99999" type: string type: object + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + created: 2019-08-23T18:40:35.772Z + accountManagers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + name: Retail + description: Source description + approvers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + modified: 2019-08-23T18:52:59.162Z + cloudExternalId: "99999" + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 NonEmployeeSource: allOf: - $ref: '#/components/schemas/NonEmployeeSourceLite' @@ -51427,6 +52170,23 @@ components: format: date-time type: string type: object + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + created: 2019-08-23T18:40:35.772Z + accountManagers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + name: Retail + description: Source description + approvers: + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + - id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + modified: 2019-08-23T18:52:59.162Z + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 NonEmployeeBulkUploadJob: example: sourceId: 2c91808568c529c60168cca6f90c1313 @@ -51495,6 +52255,22 @@ components: nonEmployeeRequest: $ref: '#/components/schemas/NonEmployeeRequestLite' type: object + example: + approver: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + accountName: test.account + approvalOrder: 1 + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + comment: I approve + id: 2c1e388b-1e55-4b0a-ab5c-897f1204159c + nonEmployeeRequest: + requester: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + id: ac110005-7156-1150-8171-5b292e3e0084 NonEmployeeApprovalItemDetail: allOf: - $ref: '#/components/schemas/NonEmployeeApprovalItemBase' @@ -51502,6 +52278,63 @@ components: nonEmployeeRequest: $ref: '#/components/schemas/NonEmployeeRequestWithoutApprovalItem' type: object + example: + approver: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + accountName: test.account + approvalOrder: 1 + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + comment: I approve + id: 2c1e388b-1e55-4b0a-ab5c-897f1204159c + nonEmployeeRequest: + requester: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + lastName: Smith + manager: jane.doe + data: + description: Auditing + accountName: william.smith + endDate: 2021-03-25 + created: 2020-03-24T11:11:41.139-05:00 + nonEmployeeSource: + sourceId: 2c91808568c529c60168cca6f90c1313 + name: Retail + description: Source description + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + schemaAttributes: + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true + firstName: William + phone: "5555555555" + modified: 2020-03-24T11:11:41.139-05:00 + comment: approved + completionDate: 2020-03-24T11:11:41.139-05:00 + id: ac110005-7156-1150-8171-5b292e3e0084 + email: william.smith@example.com + startDate: 2020-03-24 NonEmployeeApprovalDecision: example: comment: Approved by manager @@ -53103,7 +53936,63 @@ components: searchAfter: - John Doe - 2c91808375d8e80a0175e1f88a575221 - aggregations: null + aggregations: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + subAggregation: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + subAggregation: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + nested: + name: id + type: access + nested: + name: id + type: access + nested: + name: id + type: access properties: indices: description: "The names of the Elasticsearch indices in which to search.\ @@ -53274,7 +54163,14 @@ components: id: 2c9180a46faadee4016fb4e018c20639 type: IDENTITY created: 2020-01-01T00:00:00Z - visibilityCriteria: null + visibilityCriteria: + expression: + children: [] + attribute: location + value: + type: STRING + value: Austin + operator: EQUALS name: segment-xyz modified: 2020-01-01T00:00:00Z description: This segment represents xyz @@ -53709,7 +54605,25 @@ components: type: object SodPolicy: example: - conflictingAccessCriteria: null + conflictingAccessCriteria: + leftCriteria: + name: money-in + criteriaList: + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a66 + name: Administrator + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a67 + name: Administrator + rightCriteria: + name: money-in + criteriaList: + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a66 + name: Administrator + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a67 + name: Administrator ownerRef: name: Support id: 2c9180a46faadee4016fb4e018c20639 @@ -53849,13 +54763,33 @@ components: example: PENDING type: string type: object + example: + name: SOD Policy 1 Violation + id: 2c9180835d191a86015d28455b4b232a + type: REPORT_RESULT + status: PENDING SodPolicySchedule: example: schedule: - hours: null - months: null + hours: + values: + - MON + - WED + interval: 3 + type: LIST + months: + values: + - MON + - WED + interval: 3 + type: LIST timeZoneId: America/Chicago - days: null + days: + values: + - MON + - WED + interval: 3 + type: LIST expiration: 2018-06-25T20:22:28.104Z type: WEEKLY created: 2020-01-01T00:00:00Z @@ -54458,6 +55392,12 @@ components: - id - internal type: object + example: + internal: false + name: Timestamp To Date + attributes: "{}" + id: 2cd78adghjkja34jh2b1hkjhasuecd + type: dateFormat WorkItemForward: example: targetOwnerId: 2c9180835d2e5168015d32f890ca1581 @@ -54514,6 +55454,46 @@ components: $ref: '#/components/schemas/Workflow_allOf_creator' type: object - $ref: '#/components/schemas/WorkflowBody' + example: + owner: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + creator: + name: Michael Michaels + id: 2c7180a46faadee4016fb4e018c20642 + type: IDENTITY + created: 2022-01-10T16:06:16.636381447Z + description: Send an email to the identity who's attributes changed. + trigger: + displayName: displayName + attributes: "{}" + type: EVENT + enabled: false + name: Send Email + executionCount: 2 + modified: 2023-12-05T15:18:27.699132301Z + modifiedBy: + name: Thomas Edison + id: 2c9180a46faadee4016fb4e018c20639 + type: IDENTITY + definition: + start: Send Email Test + steps: + Send Email: + actionId: sp:send-email + attributes: + body: This is a test + from: sailpoint@sailpoint.com + recipientId.$: $.identity.id + subject: test + nextStep: success + selectResult: null + type: ACTION + success: + type: success + id: d201c5e9-d37b-4aff-af14-66414f39d569 + failureCount: 0 WorkflowBody: example: owner: @@ -54733,7 +55713,7 @@ components: type: string title: sp:create-campaign type: object - exampleOutput: null + exampleOutput: "{}" deprecated: true isSimulationEnabled: true name: Create Certification Campaign @@ -55131,9 +56111,6 @@ components: type: string type: object ManualDiscoverApplicationsTemplate: - example: - application_name: Example Application - description: Example Description properties: application_name: description: Name of the application. @@ -55160,6 +56137,18 @@ components: type: object SlimDiscoveredApplications: description: Discovered applications + example: + createdAt: 2023-01-01T12:00:00Z + discoveredVendor: ExampleVendor + discoverySource: csv + name: ExampleApp + recommendedConnectors: + - ConnectorA + - ConnectorB + description: An application for managing examples. + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + discoveredAt: 2023-01-01T12:00:00Z + status: ACTIVE properties: id: description: Unique identifier for the discovered application. @@ -55364,6 +56353,10 @@ components: - name type: object BaseReferenceDto: + example: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY properties: type: $ref: '#/components/schemas/DtoType' @@ -55667,6 +56660,11 @@ components: type: object type: object AccessConstraint: + example: + ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED properties: type: description: Type of Access @@ -55798,6 +56796,9 @@ components: type: object description: Event IdentityExceptionReportReference: + example: + reportName: My annual report + taskResultId: 2b838de9-db9b-abcf-e646-d4f274ad4238 nullable: true properties: taskResultId: @@ -56468,7 +57469,10 @@ components: id: 2c7180a46faadee4016fb4e018c20642 type: IDENTITY scheme: MANAGER - currentOwner: null + currentOwner: + name: Allen Albertson + id: 2c3780a46faadee4016fb4e018c20652 + type: IDENTITY modified: 2019-08-23T18:52:57.398Z comment: I approve this request forwarded: false @@ -56887,6 +57891,10 @@ components: type: string EntitlementSource: description: Source the entitlement belongs to. + example: + name: HR Active Directory + id: 2c9180835d191a86015d28455b4b232a + type: SOURCE properties: type: description: DTO type of source the entitlement belongs to. @@ -57761,6 +58769,13 @@ components: EmailNotificationOption: description: This is used for representing email configuration for a lifecycle state + example: + notifyManagers: true + notifySpecificUsers: true + emailAddressList: + - test@test.com + - test2@test.com + notifyAllAdmins: true properties: notifyManagers: default: false @@ -57793,6 +58808,11 @@ components: AccountAction: description: Object for specifying Actions to be performed on a specified list of sources' account. + example: + action: ENABLE + sourceIds: + - 2c918084660f45d6016617daa9210584 + - 2c918084660f45d6016617daa9210500 properties: action: description: Describes if action will be enabled or disabled @@ -58047,6 +59067,11 @@ components: type: boolean type: object NonEmployeeSourceLite: + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + name: Retail + description: Source description + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 properties: id: description: Non-Employee source id. @@ -58067,6 +59092,17 @@ components: type: string type: object NonEmployeeApprovalItemBase: + example: + approver: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + accountName: test.account + approvalOrder: 1 + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + comment: I approve + id: 2c1e388b-1e55-4b0a-ab5c-897f1204159c properties: id: description: Non-Employee approval item id @@ -58124,6 +59160,9 @@ components: - id type: object NonEmployeeIdentityReferenceWithId: + example: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY properties: type: $ref: '#/components/schemas/NonEmployeeIdentityDtoType' @@ -58133,6 +59172,11 @@ components: type: string type: object NonEmployeeRequestLite: + example: + requester: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + id: ac110005-7156-1150-8171-5b292e3e0084 properties: id: description: Non-Employee request id. @@ -58212,6 +59256,52 @@ components: format: date-time type: string type: object + example: + requester: + id: 5168015d32f890ca15812c9180835d2e + type: IDENTITY + approvalStatus: APPROVED + lastName: Smith + manager: jane.doe + data: + description: Auditing + accountName: william.smith + endDate: 2021-03-25 + created: 2020-03-24T11:11:41.139-05:00 + nonEmployeeSource: + sourceId: 2c91808568c529c60168cca6f90c1313 + name: Retail + description: Source description + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + schemaAttributes: + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true + firstName: William + phone: "5555555555" + modified: 2020-03-24T11:11:41.139-05:00 + comment: approved + completionDate: 2020-03-24T11:11:41.139-05:00 + id: ac110005-7156-1150-8171-5b292e3e0084 + email: william.smith@example.com + startDate: 2020-03-24 NonEmployeeSchemaAttributeType: description: Enum representing the type of data a schema attribute accepts. enum: @@ -58540,10 +59630,25 @@ components: Schedule_1: description: The schedule information. example: - hours: null - months: null + hours: + values: + - MON + - WED + interval: 3 + type: LIST + months: + values: + - MON + - WED + interval: 3 + type: LIST timeZoneId: America/Chicago - days: null + days: + values: + - MON + - WED + interval: 3 + type: LIST expiration: 2018-06-25T20:22:28.104Z type: WEEKLY properties: @@ -58779,6 +59884,63 @@ components: subAggregation: $ref: '#/components/schemas/SubSearchAggregationSpecification' type: object + example: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + subAggregation: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + subAggregation: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + nested: + name: id + type: access + nested: + name: id + type: access + nested: + name: id + type: access OwnerReferenceSegments: description: The owner of this object. example: @@ -59179,6 +60341,10 @@ components: type: string type: object WorkflowModifiedBy: + example: + name: Thomas Edison + id: 2c9180a46faadee4016fb4e018c20639 + type: IDENTITY properties: type: enum: @@ -59841,6 +61007,10 @@ components: type: object type: array type: object + example: + formItems: [] + name: Field1 + label: Section 1 type: object AccessProfileApprovalScheme: example: @@ -60277,6 +61447,32 @@ components: $ref: '#/components/schemas/NonEmployeeSchemaAttribute' type: array type: object + example: + sourceId: 2c91808568c529c60168cca6f90c1313 + name: Retail + description: Source description + id: a0303682-5e4a-44f7-bdc2-6ce6112549c1 + schemaAttributes: + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true + - system: true + helpText: The unique identifier for the account + created: 2019-08-23T18:40:35.772Z + modified: 2019-08-23T18:52:59.162Z + id: ac110005-7156-1150-8171-5b292e3e0084 + label: Account Name + placeholder: Enter a unique user name for this account. + type: TEXT + technicalName: account.name + required: true RoleMembershipSelectorType: description: |- This enum characterizes the type of a Role's membership selector. Only the following two are fully supported: @@ -60427,6 +61623,13 @@ components: type: string Range: description: The range of values to be filtered. + example: + lower: + inclusive: false + value: "1" + upper: + inclusive: false + value: "1" properties: lower: $ref: '#/components/schemas/Bound' @@ -60494,6 +61697,25 @@ components: - type type: object Aggregations: + example: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + nested: + name: id + type: access properties: nested: $ref: '#/components/schemas/NestedAggregation' @@ -60511,7 +61733,52 @@ components: subAggregation: $ref: '#/components/schemas/Aggregations' type: object + example: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + subAggregation: + filter: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT + bucket: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS + metric: + field: '@access.name' + name: Access Name Count + type: COUNT + nested: + name: id + type: access + nested: + name: id + type: access Expression: + example: + children: [] + attribute: location + value: + type: STRING + value: Austin + operator: EQUALS properties: operator: description: Operator for the expression @@ -60536,6 +61803,15 @@ components: type: array type: object AccessCriteria: + example: + name: money-in + criteriaList: + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a66 + name: Administrator + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a67 + name: Administrator properties: name: description: Business name for the access construct list @@ -60821,6 +62097,9 @@ components: type: array type: object Bound: + example: + inclusive: false + value: "1" properties: value: description: The value of the range's endpoint. @@ -60850,6 +62129,9 @@ components: type: string NestedAggregation: description: The nested aggregation object. + example: + name: id + type: access properties: name: description: The name of the nested aggregate to be included in the result. @@ -60865,6 +62147,10 @@ components: type: object MetricAggregation: description: The calculation done on the results of the query + example: + field: '@access.name' + name: Access Name Count + type: COUNT properties: name: description: |- @@ -60887,6 +62173,11 @@ components: type: object FilterAggregation: description: An additional filter to constrain the results of the search query. + example: + field: access.type + name: Entitlements + type: TERM + value: ENTITLEMENT properties: name: description: The name of the filter aggregate to be included in the result. @@ -60912,6 +62203,12 @@ components: type: object BucketAggregation: description: The bucket to group the results of the aggregation query by. + example: + field: attributes.city + size: 100 + minDocCount: 2 + name: Identity Locations + type: TERMS properties: name: description: The name of the bucket aggregate to be included in the result. @@ -60940,6 +62237,9 @@ components: - name type: object Value: + example: + type: STRING + value: Austin nullable: true properties: type: @@ -61086,6 +62386,8 @@ components: type: boolean type: object listAccessProfiles_401_response: + example: + error: "JWT validation failed: JWT is expired" properties: error: description: A message describing the error @@ -61093,6 +62395,8 @@ components: type: object type: object listAccessProfiles_429_response: + example: + message: ' Rate Limit Exceeded ' properties: message: description: A message describing the error @@ -61367,6 +62671,10 @@ components: - $ref: '#/components/schemas/SlimDiscoveredApplications' - $ref: '#/components/schemas/FullDiscoveredApplications' getVendorConnectorMappings_405_response: + example: + errorName: NotSupportedException + errorMessage: Cannot consume content type + trackingId: e7eab60924f64aa284175b9fa3309599 properties: errorName: description: A message describing the error @@ -61402,9 +62710,12 @@ components: example: Employees type: string type: object - example: null Account_allOf_sourceOwner: description: The owner of this object. + example: + name: John Cavender + id: 4c5c8534e99445de98eef6c75e25eb01 + type: IDENTITY nullable: true properties: type: @@ -61422,10 +62733,13 @@ components: example: John Cavender type: string type: object - example: null Account_allOf_ownerIdentity: description: "The identity who owns this account, typically used for non-human\ \ accounts" + example: + name: Adam Kennedy + id: 2c918084660f45d6016617daa9210584 + type: IDENTITY nullable: true properties: type: @@ -61443,10 +62757,13 @@ components: example: Adam Kennedy type: string type: object - example: null Account_allOf_ownerGroup: description: "The governance group who owns this account, typically used for\ \ non-human accounts" + example: + name: GovGroup AX17Z + id: 8d3e0094e99445de98eef6c75e25jc04 + type: GOVERNANCE_GROUP nullable: true properties: type: @@ -61464,10 +62781,13 @@ components: example: GovGroup AX17Z type: string type: object - example: null Campaign_allOf_filter: description: Determines which items will be included in this campaign. The default campaign filter is used if this field is left blank. + example: + name: Test Filter + id: 0fbe863c063c4c88a35fd7f17e8a3df5 + type: CAMPAIGN_FILTER properties: id: description: The ID of whatever type of filter is being used. @@ -61485,9 +62805,11 @@ components: example: Test Filter type: string type: object - example: null Campaign_allOf_sourceOwnerCampaignInfo: description: Must be set only if the campaign type is SOURCE_OWNER. + example: + sourceIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 properties: sourceIds: description: The list of sources to be included in the campaign. @@ -61497,11 +62819,14 @@ components: type: string type: array type: object - example: null Campaign_allOf_searchCampaignInfo_reviewer: description: "If specified, this identity or governance group will be the reviewer\ \ for all certifications in this campaign. The allowed DTO types are IDENTITY\ \ and GOVERNANCE_GROUP." + example: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY properties: type: description: The reviewer's DTO type. @@ -61519,9 +62844,39 @@ components: example: William Wilson type: string type: object - example: null Campaign_allOf_searchCampaignInfo: description: Must be set only if the campaign type is SEARCH. + example: + identityIds: + - 0fbe863c063c4c88a35fd7f17e8a3df5 + query: Search Campaign query description + description: Search Campaign description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY + type: ACCESS + accessConstraints: + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED + - ids: + - 2c90ad2a70ace7d50170acf22ca90010 + type: ENTITLEMENT + operator: SELECTED properties: type: description: The type of search campaign represented. @@ -61562,12 +62917,15 @@ components: required: - type type: object - example: null Campaign_allOf_roleCompositionCampaignInfo_remediatorRef: description: "This determines who remediation tasks will be assigned to. Remediation\ \ tasks are created for each revoke decision on items in the campaign. The\ \ only legal remediator type is 'IDENTITY', and the chosen identity must be\ \ a Role Admin or Org Admin." + example: + name: Role Admin + id: 2c90ad2a70ace7d50170acf22ca90010 + type: IDENTITY properties: type: description: Legal Remediator Type @@ -61588,9 +62946,21 @@ components: - id - type type: object - example: null Campaign_allOf_roleCompositionCampaignInfo: description: Optional configuration options for role composition campaigns. + example: + remediatorRef: + name: Role Admin + id: 2c90ad2a70ace7d50170acf22ca90010 + type: IDENTITY + roleIds: + - 2c90ad2a70ace7d50170acf22ca90010 + query: Search Query + description: Role Composition Description + reviewer: + name: William Wilson + id: 2c91808568c529c60168cca6f90c1313 + type: IDENTITY properties: reviewer: $ref: '#/components/schemas/Campaign_allOf_searchCampaignInfo_reviewer' @@ -61619,8 +62989,11 @@ components: required: - remediatorRef type: object - example: null Campaign_allOf_sourcesWithOrphanEntitlements: + example: + name: Source with orphan entitlements + id: 2c90ad2a70ace7d50170acf22ca90010 + type: SOURCE properties: id: description: Id of the source @@ -61637,7 +63010,6 @@ components: example: Source with orphan entitlements type: string type: object - example: null EntitlementDocument_allOf_source: description: Entitlement's source. properties: @@ -61650,7 +63022,6 @@ components: example: ODS-HR-Employees type: string type: object - example: null IdentityDocument_allOf_manager: description: Identity's manager. nullable: true @@ -61668,7 +63039,6 @@ components: example: Amanda.Ross type: string type: object - example: null IdentityDocument_allOf_identityProfile: description: Identity's identity profile. properties: @@ -61681,7 +63051,6 @@ components: example: HR Employees type: string type: object - example: null IdentityDocument_allOf_source: description: Identity's source. properties: @@ -61694,9 +63063,12 @@ components: example: ODS-HR-Employees type: string type: object - example: null IdentityProfile_allOf_owner: description: The owner of the Identity Profile. + example: + name: William Wilson + id: 2c9180835d191a86015d28455b4b232a + type: IDENTITY nullable: true properties: type: @@ -61715,8 +63087,11 @@ components: example: William Wilson type: string type: object - example: null IdentityProfile_allOf_authoritativeSource: + example: + name: HR Active Directory + id: 2c9180835d191a86015d28455b4b232a + type: SOURCE properties: type: description: Type of the object to which this reference applies @@ -61734,9 +63109,11 @@ components: example: HR Active Directory type: string type: object - example: null ProvisioningConfig_planInitializerScript: description: This is a reference to a plan initializer script. + example: + source: | + \r\n\r\n\r\n Before Provisioning Rule which changes disables and enables to a modify.\r\n nullable: true properties: source: @@ -61900,6 +63277,9 @@ components: type: object ScheduledSearch_allOf_owner: description: The owner of the scheduled search + example: + id: 2c9180867624cbd7017642d8c8c81f67 + type: IDENTITY properties: type: description: The type of object being referenced @@ -61916,7 +63296,6 @@ components: - id - type type: object - example: null Source_owner: description: Reference to identity object who owns the source. example: @@ -62021,6 +63400,9 @@ components: account/identity. nullable: true type: object + example: + accountAttributeName: manager + identityAttributeName: manager Source_managerCorrelationRule: description: Reference to the ManagerCorrelationRule. Only use this rule when a simple filter isn't sufficient. @@ -62131,6 +63513,19 @@ components: - $ref: '#/components/schemas/FormDetails' - nullable: true type: object + example: + subtitle: Please select from the following + name: AccountSelection Form + id: 2c9180835d2e5168015d32f890ca1581 + title: Account Selection for John.Doe + targetUser: Jane.Doe + sections: + - formItems: [] + name: Field1 + label: Section 1 + - formItems: [] + name: Field1 + label: Section 1 array_inner: anyOf: - type: string @@ -62187,6 +63582,13 @@ components: - $ref: '#/components/schemas/CancelledRequestDetails' - nullable: true type: object + example: + owner: + name: Support + id: 2c9180a46faadee4016fb4e018c20639 + type: IDENTITY + modified: 2019-12-20T09:17:12.192Z + comment: This request must be cancelled. RequestedItemStatus_requestedFor: description: Identity access was requested for. example: @@ -62216,22 +63618,105 @@ components: - description: The requester's comment. nullable: true type: object + example: + created: 2017-07-11T18:45:37.098Z + author: + name: john.doe + id: 2c9180847e25f377017e2ae8cae4650b + type: IDENTITY + comment: This is a comment. RequestedItemStatus_sodViolationContext: allOf: - $ref: '#/components/schemas/SodViolationContextCheckCompleted' - description: The details of the SOD violations for the associated approval. nullable: true type: object + example: + violationCheckResult: + clientMetadata: + requestedAppName: test-app + requestedAppId: 2c91808f7892918f0178b78da4a305a1 + violationContexts: + - conflictingAccessCriteria: + leftCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + rightCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + policy: + name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + - conflictingAccessCriteria: + leftCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + rightCriteria: + criteriaList: + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + - existing: true + name: My HR Entitlement + id: 2c918085771e9d3301773b3cb66f6398 + type: IDENTITY + policy: + name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + violatedPolicies: + - name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + - name: Business SOD Policy + id: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde + type: SOD_POLICY + message: + localeOrigin: DEFAULT + text: The request was syntactically correct but its content is semantically + invalid. + locale: en-US + state: SUCCESS + uuid: f73d16e9-a038-46c5-b217-1246e15fdbdd RequestedItemStatus_provisioningDetails: allOf: - $ref: '#/components/schemas/ProvisioningDetails' - nullable: true type: object + example: + orderedSubPhaseReferences: manualWorkItemDetails RequestedItemStatus_preApprovalTriggerDetails: allOf: - $ref: '#/components/schemas/PreApprovalTriggerDetails' - nullable: true type: object + example: + decision: APPROVED + comment: Access is Approved + reviewer: John Doe PendingApproval_owner: description: Access item owner's identity. example: @@ -62259,12 +63744,26 @@ components: - $ref: '#/components/schemas/CommentDto' - description: The requester's comment. type: object + example: + created: 2017-07-11T18:45:37.098Z + author: + name: john.doe + id: 2c9180847e25f377017e2ae8cae4650b + type: IDENTITY + comment: This is a comment. CompletedApproval_reviewerComment: allOf: - $ref: '#/components/schemas/CommentDto' - description: The approval's reviewer's comment. nullable: true type: object + example: + created: 2017-07-11T18:45:37.098Z + author: + name: john.doe + id: 2c9180847e25f377017e2ae8cae4650b + type: IDENTITY + comment: This is a comment. CompletedApproval_preApprovalTriggerResult: description: "If the access request submitted event trigger is configured and\ \ this access request was intercepted by it, then this is the result of the\ @@ -62525,8 +64024,24 @@ components: - "true" type: object - $ref: '#/components/schemas/Filter' + example: + terms: + - account_count + - account_count + range: + lower: + inclusive: false + value: "1" + upper: + inclusive: false + value: "1" + exclude: false + type: RANGE nullable: true SearchSchedule_recipients_inner: + example: + id: 2c9180867624cbd7017642d8c8c81f67 + type: IDENTITY properties: type: description: The type of object being referenced @@ -62547,6 +64062,14 @@ components: - $ref: '#/components/schemas/VisibilityCriteria' - nullable: true type: object + example: + expression: + children: [] + attribute: location + value: + type: STRING + value: Austin + operator: EQUALS ReportDetails_arguments: description: The string-object map(dictionary) with the arguments needed for report processing. @@ -62628,6 +64151,25 @@ components: - $ref: '#/components/schemas/ConflictingAccessCriteria' - nullable: true type: object + example: + leftCriteria: + name: money-in + criteriaList: + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a66 + name: Administrator + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a67 + name: Administrator + rightCriteria: + name: money-in + criteriaList: + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a66 + name: Administrator + - type: ENTITLEMENT + id: 2c9180866166b5b0016167c32ef31a67 + name: Administrator IdentityWithNewAccess_accessRefs_inner: description: Entitlement including a specific set of access. properties: @@ -62648,6 +64190,10 @@ components: type: object Workflow_allOf_creator: description: Workflow creator's identity. + example: + name: Michael Michaels + id: 2c7180a46faadee4016fb4e018c20642 + type: IDENTITY properties: type: description: Workflow creator's DTO type. @@ -62664,7 +64210,6 @@ components: example: Michael Michaels type: string type: object - example: null WorkflowBody_owner: description: The identity that owns the workflow. The owner's permissions in IDN will determine what actions the workflow is allowed to perform. Ownership @@ -62824,6 +64369,10 @@ components: - $ref: '#/components/schemas/AccessItemReviewedBy' - nullable: true type: object + example: + name: Allen Albertson + id: 2c3780a46faadee4016fb4e018c20652 + type: IDENTITY ManualWorkItemDetails_originalOwner: description: "Identity of original work item owner, if the work item has been\ \ forwarded." @@ -62945,6 +64494,12 @@ components: - "12" nullable: true type: object + example: + values: + - MON + - WED + interval: 3 + type: LIST Schedule_1_days: allOf: - $ref: '#/components/schemas/Selector' @@ -62962,6 +64517,12 @@ components: - FRI nullable: true type: object + example: + values: + - MON + - WED + interval: 3 + type: LIST Schedule_1_hours: allOf: - $ref: '#/components/schemas/Selector' @@ -62973,6 +64534,12 @@ components: - "18" interval: 3 type: object + example: + values: + - MON + - WED + interval: 3 + type: LIST ViolationOwnerAssignmentConfig_ownerRef: description: The owner of the violation assignment config. example: @@ -63061,7 +64628,6 @@ components: example: cloud-support@sailpoint.com type: string type: object - example: null AccountRequest_result: properties: errors: @@ -63099,7 +64665,6 @@ components: example: "CN=Carol Adams,OU=Austin,OU=Americas,OU=Demo,DC=seri,DC=sailpointdemo,DC=com" type: string type: object - example: null DataAccess_policies_inner: example: value: GDPR-20 diff --git a/api_v3/api_access_profiles.go b/api_v3/api_access_profiles.go index df0f8063e..16f22e45d 100644 --- a/api_v3/api_access_profiles.go +++ b/api_v3/api_access_profiles.go @@ -753,28 +753,28 @@ func (a *AccessProfilesAPIService) GetAccessProfileEntitlementsExecute(r ApiGetA localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -988,37 +988,37 @@ func (a *AccessProfilesAPIService) ListAccessProfilesExecute(r ApiListAccessProf localVarFormParams := url.Values{} if r.forSubadmin != nil { - parameterAddToQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 50 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.forSegmentIds != nil { - parameterAddToQuery(localVarQueryParams, "for-segment-ids", r.forSegmentIds, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "for-segment-ids", r.forSegmentIds, "", "") } if r.includeUnsegmented != nil { - parameterAddToQuery(localVarQueryParams, "include-unsegmented", r.includeUnsegmented, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-unsegmented", r.includeUnsegmented, "", "") } else { var defaultValue bool = true r.includeUnsegmented = &defaultValue diff --git a/api_v3/api_access_request_approvals.go b/api_v3/api_access_request_approvals.go index 348cf9a57..50d473ef6 100644 --- a/api_v3/api_access_request_approvals.go +++ b/api_v3/api_access_request_approvals.go @@ -443,10 +443,10 @@ func (a *AccessRequestApprovalsAPIService) GetAccessRequestApprovalSummaryExecut localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "owner-id", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "owner-id", r.ownerId, "", "") } if r.fromDate != nil { - parameterAddToQuery(localVarQueryParams, "from-date", r.fromDate, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "from-date", r.fromDate, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -644,31 +644,31 @@ func (a *AccessRequestApprovalsAPIService) ListCompletedApprovalsExecute(r ApiLi localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "owner-id", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "owner-id", r.ownerId, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -866,31 +866,31 @@ func (a *AccessRequestApprovalsAPIService) ListPendingApprovalsExecute(r ApiList localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "owner-id", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "owner-id", r.ownerId, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_access_requests.go b/api_v3/api_access_requests.go index c588f1f5b..8e9df13b0 100644 --- a/api_v3/api_access_requests.go +++ b/api_v3/api_access_requests.go @@ -658,37 +658,37 @@ func (a *AccessRequestsAPIService) ListAccessRequestStatusExecute(r ApiListAcces localVarFormParams := url.Values{} if r.requestedFor != nil { - parameterAddToQuery(localVarQueryParams, "requested-for", r.requestedFor, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-for", r.requestedFor, "", "") } if r.requestedBy != nil { - parameterAddToQuery(localVarQueryParams, "requested-by", r.requestedBy, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-by", r.requestedBy, "", "") } if r.regardingIdentity != nil { - parameterAddToQuery(localVarQueryParams, "regarding-identity", r.regardingIdentity, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "regarding-identity", r.regardingIdentity, "", "") } if r.assignedTo != nil { - parameterAddToQuery(localVarQueryParams, "assigned-to", r.assignedTo, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned-to", r.assignedTo, "", "") } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_account_activities.go b/api_v3/api_account_activities.go index 5dd5121b1..e7983b5b4 100644 --- a/api_v3/api_account_activities.go +++ b/api_v3/api_account_activities.go @@ -293,37 +293,37 @@ func (a *AccountActivitiesAPIService) ListAccountActivitiesExecute(r ApiListAcco localVarFormParams := url.Values{} if r.requestedFor != nil { - parameterAddToQuery(localVarQueryParams, "requested-for", r.requestedFor, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-for", r.requestedFor, "", "") } if r.requestedBy != nil { - parameterAddToQuery(localVarQueryParams, "requested-by", r.requestedBy, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-by", r.requestedBy, "", "") } if r.regardingIdentity != nil { - parameterAddToQuery(localVarQueryParams, "regarding-identity", r.regardingIdentity, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "regarding-identity", r.regardingIdentity, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_account_usages.go b/api_v3/api_account_usages.go index 172ec840d..4c869027c 100644 --- a/api_v3/api_account_usages.go +++ b/api_v3/api_account_usages.go @@ -101,25 +101,25 @@ func (a *AccountUsagesAPIService) GetUsagesByAccountIdExecute(r ApiGetUsagesByAc localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_accounts.go b/api_v3/api_accounts.go index dd4a0845c..102b75099 100644 --- a/api_v3/api_accounts.go +++ b/api_v3/api_accounts.go @@ -973,19 +973,19 @@ func (a *AccountsAPIService) GetAccountEntitlementsExecute(r ApiGetAccountEntitl localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -1191,28 +1191,28 @@ func (a *AccountsAPIService) ListAccountsExecute(r ApiListAccountsRequest) ([]Ac localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_application_discovery.go b/api_v3/api_application_discovery.go index dd6e41f2b..ee8350229 100644 --- a/api_v3/api_application_discovery.go +++ b/api_v3/api_application_discovery.go @@ -105,25 +105,25 @@ func (a *ApplicationDiscoveryAPIService) GetDiscoveredApplicationsExecute(r ApiG localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.detail != nil { - parameterAddToQuery(localVarQueryParams, "detail", r.detail, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "detail", r.detail, "", "") } if r.filter != nil { - parameterAddToQuery(localVarQueryParams, "filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filter", r.filter, "form", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_branding.go b/api_v3/api_branding.go index fef9ef516..65323b449 100644 --- a/api_v3/api_branding.go +++ b/api_v3/api_branding.go @@ -149,22 +149,22 @@ func (a *BrandingAPIService) CreateBrandingItemExecute(r ApiCreateBrandingItemRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarFormParams, "name", r.name, "") - parameterAddToQuery(localVarFormParams, "productName", r.productName, "") + parameterAddToHeaderOrQuery(localVarFormParams, "name", r.name, "", "") + parameterAddToHeaderOrQuery(localVarFormParams, "productName", r.productName, "", "") if r.actionButtonColor != nil { - parameterAddToQuery(localVarFormParams, "actionButtonColor", r.actionButtonColor, "") + parameterAddToHeaderOrQuery(localVarFormParams, "actionButtonColor", r.actionButtonColor, "", "") } if r.activeLinkColor != nil { - parameterAddToQuery(localVarFormParams, "activeLinkColor", r.activeLinkColor, "") + parameterAddToHeaderOrQuery(localVarFormParams, "activeLinkColor", r.activeLinkColor, "", "") } if r.navigationColor != nil { - parameterAddToQuery(localVarFormParams, "navigationColor", r.navigationColor, "") + parameterAddToHeaderOrQuery(localVarFormParams, "navigationColor", r.navigationColor, "", "") } if r.emailFromAddress != nil { - parameterAddToQuery(localVarFormParams, "emailFromAddress", r.emailFromAddress, "") + parameterAddToHeaderOrQuery(localVarFormParams, "emailFromAddress", r.emailFromAddress, "", "") } if r.loginInformationalMessage != nil { - parameterAddToQuery(localVarFormParams, "loginInformationalMessage", r.loginInformationalMessage, "") + parameterAddToHeaderOrQuery(localVarFormParams, "loginInformationalMessage", r.loginInformationalMessage, "", "") } var fileStandardLocalVarFormFileName string var fileStandardLocalVarFileName string @@ -883,22 +883,22 @@ func (a *BrandingAPIService) SetBrandingItemExecute(r ApiSetBrandingItemRequest) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - parameterAddToQuery(localVarFormParams, "name", r.name2, "") - parameterAddToQuery(localVarFormParams, "productName", r.productName, "") + parameterAddToHeaderOrQuery(localVarFormParams, "name", r.name2, "", "") + parameterAddToHeaderOrQuery(localVarFormParams, "productName", r.productName, "", "") if r.actionButtonColor != nil { - parameterAddToQuery(localVarFormParams, "actionButtonColor", r.actionButtonColor, "") + parameterAddToHeaderOrQuery(localVarFormParams, "actionButtonColor", r.actionButtonColor, "", "") } if r.activeLinkColor != nil { - parameterAddToQuery(localVarFormParams, "activeLinkColor", r.activeLinkColor, "") + parameterAddToHeaderOrQuery(localVarFormParams, "activeLinkColor", r.activeLinkColor, "", "") } if r.navigationColor != nil { - parameterAddToQuery(localVarFormParams, "navigationColor", r.navigationColor, "") + parameterAddToHeaderOrQuery(localVarFormParams, "navigationColor", r.navigationColor, "", "") } if r.emailFromAddress != nil { - parameterAddToQuery(localVarFormParams, "emailFromAddress", r.emailFromAddress, "") + parameterAddToHeaderOrQuery(localVarFormParams, "emailFromAddress", r.emailFromAddress, "", "") } if r.loginInformationalMessage != nil { - parameterAddToQuery(localVarFormParams, "loginInformationalMessage", r.loginInformationalMessage, "") + parameterAddToHeaderOrQuery(localVarFormParams, "loginInformationalMessage", r.loginInformationalMessage, "", "") } var fileStandardLocalVarFormFileName string var fileStandardLocalVarFileName string diff --git a/api_v3/api_certification_campaign_filters.go b/api_v3/api_certification_campaign_filters.go index 21dd39f8e..e4dba671f 100644 --- a/api_v3/api_certification_campaign_filters.go +++ b/api_v3/api_certification_campaign_filters.go @@ -587,19 +587,19 @@ func (a *CertificationCampaignFiltersAPIService) ListCampaignFiltersExecute(r Ap localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.start != nil { - parameterAddToQuery(localVarQueryParams, "start", r.start, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "start", r.start, "", "") } else { var defaultValue int32 = 0 r.start = &defaultValue } if r.includeSystemFilters != nil { - parameterAddToQuery(localVarQueryParams, "includeSystemFilters", r.includeSystemFilters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "includeSystemFilters", r.includeSystemFilters, "", "") } else { var defaultValue bool = true r.includeSystemFilters = &defaultValue diff --git a/api_v3/api_certification_campaigns.go b/api_v3/api_certification_campaigns.go index 923273a26..614a45af0 100644 --- a/api_v3/api_certification_campaigns.go +++ b/api_v3/api_certification_campaigns.go @@ -1136,31 +1136,31 @@ func (a *CertificationCampaignsAPIService) GetActiveCampaignsExecute(r ApiGetAct localVarFormParams := url.Values{} if r.detail != nil { - parameterAddToQuery(localVarQueryParams, "detail", r.detail, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "detail", r.detail, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1330,7 +1330,7 @@ func (a *CertificationCampaignsAPIService) GetCampaignExecute(r ApiGetCampaignRe localVarFormParams := url.Values{} if r.detail != nil { - parameterAddToQuery(localVarQueryParams, "detail", r.detail, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "detail", r.detail, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2206,28 +2206,28 @@ func (a *CertificationCampaignsAPIService) GetCampaignTemplatesExecute(r ApiGetC localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_certification_summaries.go b/api_v3/api_certification_summaries.go index 276da8fb4..3a99746d7 100644 --- a/api_v3/api_certification_summaries.go +++ b/api_v3/api_certification_summaries.go @@ -112,28 +112,28 @@ func (a *CertificationSummariesAPIService) GetIdentityAccessSummariesExecute(r A localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -311,7 +311,7 @@ func (a *CertificationSummariesAPIService) GetIdentityDecisionSummaryExecute(r A localVarFormParams := url.Values{} if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -517,28 +517,28 @@ func (a *CertificationSummariesAPIService) GetIdentitySummariesExecute(r ApiGetI localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_certifications.go b/api_v3/api_certifications.go index f8b5fc84f..e29510489 100644 --- a/api_v3/api_certifications.go +++ b/api_v3/api_certifications.go @@ -441,22 +441,22 @@ func (a *CertificationsAPIService) GetIdentityCertificationItemPermissionsExecut localVarFormParams := url.Values{} if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -661,28 +661,28 @@ func (a *CertificationsAPIService) GetPendingCertificationTasksExecute(r ApiGetP localVarFormParams := url.Values{} if r.reviewerIdentity != nil { - parameterAddToQuery(localVarQueryParams, "reviewer-identity", r.reviewerIdentity, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "reviewer-identity", r.reviewerIdentity, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -888,28 +888,28 @@ func (a *CertificationsAPIService) ListCertificationReviewersExecute(r ApiListCe localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1136,37 +1136,37 @@ func (a *CertificationsAPIService) ListIdentityAccessReviewItemsExecute(r ApiLis localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.entitlements != nil { - parameterAddToQuery(localVarQueryParams, "entitlements", r.entitlements, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "entitlements", r.entitlements, "", "") } if r.accessProfiles != nil { - parameterAddToQuery(localVarQueryParams, "access-profiles", r.accessProfiles, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "access-profiles", r.accessProfiles, "", "") } if r.roles != nil { - parameterAddToQuery(localVarQueryParams, "roles", r.roles, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "roles", r.roles, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1375,31 +1375,31 @@ func (a *CertificationsAPIService) ListIdentityCertificationsExecute(r ApiListId localVarFormParams := url.Values{} if r.reviewerIdentity != nil { - parameterAddToQuery(localVarQueryParams, "reviewer-identity", r.reviewerIdentity, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "reviewer-identity", r.reviewerIdentity, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_configuration_hub.go b/api_v3/api_configuration_hub.go index 5949a4ff2..aa66ad612 100644 --- a/api_v3/api_configuration_hub.go +++ b/api_v3/api_configuration_hub.go @@ -1097,7 +1097,7 @@ func (a *ConfigurationHubAPIService) GetUploadedBackupsExecute(r ApiGetUploadedB localVarFormParams := url.Values{} if r.status != nil { - parameterAddToQuery(localVarQueryParams, "status", r.status, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1318,7 +1318,7 @@ func (a *ConfigurationHubAPIService) ImportUploadedBackupExecute(r ApiImportUplo dataLocalVarFile.Close() formFiles = append(formFiles, formFile{fileBytes: dataLocalVarFileBytes, fileName: dataLocalVarFileName, formFileName: dataLocalVarFormFileName}) } - parameterAddToQuery(localVarFormParams, "name", r.name, "") + parameterAddToHeaderOrQuery(localVarFormParams, "name", r.name, "", "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_v3/api_connectors.go b/api_v3/api_connectors.go index 71ad701a6..7dfd60b82 100644 --- a/api_v3/api_connectors.go +++ b/api_v3/api_connectors.go @@ -416,7 +416,7 @@ func (a *ConnectorsAPIService) GetConnectorExecute(r ApiGetConnectorRequest) (*C localVarFormParams := url.Values{} if r.locale != nil { - parameterAddToQuery(localVarQueryParams, "locale", r.locale, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -788,28 +788,28 @@ func (a *ConnectorsAPIService) GetConnectorListExecute(r ApiGetConnectorListRequ localVarFormParams := url.Values{} if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.locale != nil { - parameterAddToQuery(localVarQueryParams, "locale", r.locale, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_identity_profiles.go b/api_v3/api_identity_profiles.go index 50e522a67..05b0ea389 100644 --- a/api_v3/api_identity_profiles.go +++ b/api_v3/api_identity_profiles.go @@ -615,28 +615,28 @@ func (a *IdentityProfilesAPIService) ExportIdentityProfilesExecute(r ApiExportId localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1332,28 +1332,28 @@ func (a *IdentityProfilesAPIService) ListIdentityProfilesExecute(r ApiListIdenti localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_lifecycle_states.go b/api_v3/api_lifecycle_states.go index 97a42db00..f1294e002 100644 --- a/api_v3/api_lifecycle_states.go +++ b/api_v3/api_lifecycle_states.go @@ -618,25 +618,25 @@ func (a *LifecycleStatesAPIService) GetLifecycleStatesExecute(r ApiGetLifecycleS localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_managed_clients.go b/api_v3/api_managed_clients.go index 1a98a5066..33753f9fa 100644 --- a/api_v3/api_managed_clients.go +++ b/api_v3/api_managed_clients.go @@ -561,7 +561,7 @@ func (a *ManagedClientsAPIService) GetManagedClientStatusExecute(r ApiGetManaged return localVarReturnValue, nil, reportError("type_ is required and must be specified") } - parameterAddToQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -755,25 +755,25 @@ func (a *ManagedClientsAPIService) GetManagedClientsExecute(r ApiGetManagedClien localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_managed_clusters.go b/api_v3/api_managed_clusters.go index 1f5dbb3db..42eac5bfc 100644 --- a/api_v3/api_managed_clusters.go +++ b/api_v3/api_managed_clusters.go @@ -243,7 +243,7 @@ func (a *ManagedClustersAPIService) DeleteManagedClusterExecute(r ApiDeleteManag localVarFormParams := url.Values{} if r.removeClients != nil { - parameterAddToQuery(localVarQueryParams, "removeClients", r.removeClients, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "removeClients", r.removeClients, "", "") } else { var defaultValue bool = false r.removeClients = &defaultValue @@ -589,25 +589,25 @@ func (a *ManagedClustersAPIService) GetManagedClustersExecute(r ApiGetManagedClu localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_mfa_configuration.go b/api_v3/api_mfa_configuration.go index 58ddbedaa..5974d3815 100644 --- a/api_v3/api_mfa_configuration.go +++ b/api_v3/api_mfa_configuration.go @@ -387,7 +387,7 @@ func (a *MFAConfigurationAPIService) GetMFAKbaConfigExecute(r ApiGetMFAKbaConfig localVarFormParams := url.Values{} if r.allLanguages != nil { - parameterAddToQuery(localVarQueryParams, "allLanguages", r.allLanguages, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "allLanguages", r.allLanguages, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_non_employee_lifecycle_management.go b/api_v3/api_non_employee_lifecycle_management.go index 89a4da53a..a52a64245 100644 --- a/api_v3/api_non_employee_lifecycle_management.go +++ b/api_v3/api_non_employee_lifecycle_management.go @@ -2134,7 +2134,7 @@ func (a *NonEmployeeLifecycleManagementAPIService) GetNonEmployeeApprovalExecute localVarFormParams := url.Values{} if r.includeDetail != nil { - parameterAddToQuery(localVarQueryParams, "include-detail", r.includeDetail, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-detail", r.includeDetail, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3830,31 +3830,31 @@ func (a *NonEmployeeLifecycleManagementAPIService) ListNonEmployeeApprovalsExecu localVarFormParams := url.Values{} if r.requestedFor != nil { - parameterAddToQuery(localVarQueryParams, "requested-for", r.requestedFor, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-for", r.requestedFor, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4047,28 +4047,28 @@ func (a *NonEmployeeLifecycleManagementAPIService) ListNonEmployeeRecordsExecute localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4273,29 +4273,29 @@ func (a *NonEmployeeLifecycleManagementAPIService) ListNonEmployeeRequestsExecut } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } - parameterAddToQuery(localVarQueryParams, "requested-for", r.requestedFor, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-for", r.requestedFor, "", "") if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4500,29 +4500,29 @@ func (a *NonEmployeeLifecycleManagementAPIService) ListNonEmployeeSourcesExecute } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } - parameterAddToQuery(localVarQueryParams, "requested-for", r.requestedFor, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "requested-for", r.requestedFor, "", "") if r.nonEmployeeCount != nil { - parameterAddToQuery(localVarQueryParams, "non-employee-count", r.nonEmployeeCount, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "non-employee-count", r.nonEmployeeCount, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_o_auth_clients.go b/api_v3/api_o_auth_clients.go index 265717f46..5cdb48412 100644 --- a/api_v3/api_o_auth_clients.go +++ b/api_v3/api_o_auth_clients.go @@ -565,7 +565,7 @@ func (a *OAuthClientsAPIService) ListOauthClientsExecute(r ApiListOauthClientsRe localVarFormParams := url.Values{} if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_password_policies.go b/api_v3/api_password_policies.go index a1dd63c66..c8688129f 100644 --- a/api_v3/api_password_policies.go +++ b/api_v3/api_password_policies.go @@ -591,19 +591,19 @@ func (a *PasswordPoliciesAPIService) ListPasswordPoliciesExecute(r ApiListPasswo localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_v3/api_password_sync_groups.go b/api_v3/api_password_sync_groups.go index b6d9e8345..ea51ef24a 100644 --- a/api_v3/api_password_sync_groups.go +++ b/api_v3/api_password_sync_groups.go @@ -568,19 +568,19 @@ func (a *PasswordSyncGroupsAPIService) GetPasswordSyncGroupsExecute(r ApiGetPass localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_v3/api_personal_access_tokens.go b/api_v3/api_personal_access_tokens.go index 8d7bc16cf..b9e2b49a9 100644 --- a/api_v3/api_personal_access_tokens.go +++ b/api_v3/api_personal_access_tokens.go @@ -405,10 +405,10 @@ func (a *PersonalAccessTokensAPIService) ListPersonalAccessTokensExecute(r ApiLi localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "owner-id", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "owner-id", r.ownerId, "", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_public_identities.go b/api_v3/api_public_identities.go index 975fff5b9..f23dc2e7f 100644 --- a/api_v3/api_public_identities.go +++ b/api_v3/api_public_identities.go @@ -108,34 +108,34 @@ func (a *PublicIdentitiesAPIService) GetPublicIdentitiesExecute(r ApiGetPublicId localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.addCoreFilters != nil { - parameterAddToQuery(localVarQueryParams, "add-core-filters", r.addCoreFilters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "add-core-filters", r.addCoreFilters, "", "") } else { var defaultValue bool = false r.addCoreFilters = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_reports_data_extraction.go b/api_v3/api_reports_data_extraction.go index 7688b4cfd..4fe1564c1 100644 --- a/api_v3/api_reports_data_extraction.go +++ b/api_v3/api_reports_data_extraction.go @@ -243,12 +243,12 @@ func (a *ReportsDataExtractionAPIService) GetReportExecute(r ApiGetReportRequest return localVarReturnValue, nil, reportError("fileFormat is required and must be specified") } - parameterAddToQuery(localVarQueryParams, "fileFormat", r.fileFormat, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "fileFormat", r.fileFormat, "", "") if r.name != nil { - parameterAddToQuery(localVarQueryParams, "name", r.name, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "", "") } if r.auditable != nil { - parameterAddToQuery(localVarQueryParams, "auditable", r.auditable, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "auditable", r.auditable, "", "") } else { var defaultValue bool = false r.auditable = &defaultValue @@ -429,7 +429,7 @@ func (a *ReportsDataExtractionAPIService) GetReportResultExecute(r ApiGetReportR localVarFormParams := url.Values{} if r.completed != nil { - parameterAddToQuery(localVarQueryParams, "completed", r.completed, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "completed", r.completed, "", "") } else { var defaultValue bool = false r.completed = &defaultValue diff --git a/api_v3/api_requestable_objects.go b/api_v3/api_requestable_objects.go index c74c4975e..20a48dd15 100644 --- a/api_v3/api_requestable_objects.go +++ b/api_v3/api_requestable_objects.go @@ -132,40 +132,40 @@ func (a *RequestableObjectsAPIService) ListRequestableObjectsExecute(r ApiListRe localVarFormParams := url.Values{} if r.identityId != nil { - parameterAddToQuery(localVarQueryParams, "identity-id", r.identityId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "identity-id", r.identityId, "", "") } if r.types != nil { - parameterAddToQuery(localVarQueryParams, "types", r.types, "csv") + parameterAddToHeaderOrQuery(localVarQueryParams, "types", r.types, "", "csv") } if r.term != nil { - parameterAddToQuery(localVarQueryParams, "term", r.term, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "term", r.term, "", "") } if r.statuses != nil { - parameterAddToQuery(localVarQueryParams, "statuses", r.statuses, "csv") + parameterAddToHeaderOrQuery(localVarQueryParams, "statuses", r.statuses, "", "csv") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_roles.go b/api_v3/api_roles.go index 1f6527b87..3e9585bba 100644 --- a/api_v3/api_roles.go +++ b/api_v3/api_roles.go @@ -750,28 +750,28 @@ func (a *RolesAPIService) GetRoleAssignedIdentitiesExecute(r ApiGetRoleAssignedI localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -985,37 +985,37 @@ func (a *RolesAPIService) ListRolesExecute(r ApiListRolesRequest) ([]Role, *http localVarFormParams := url.Values{} if r.forSubadmin != nil { - parameterAddToQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 50 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.forSegmentIds != nil { - parameterAddToQuery(localVarQueryParams, "for-segment-ids", r.forSegmentIds, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "for-segment-ids", r.forSegmentIds, "", "") } if r.includeUnsegmented != nil { - parameterAddToQuery(localVarQueryParams, "include-unsegmented", r.includeUnsegmented, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-unsegmented", r.includeUnsegmented, "", "") } else { var defaultValue bool = true r.includeUnsegmented = &defaultValue diff --git a/api_v3/api_saved_search.go b/api_v3/api_saved_search.go index 1fe369bbb..186ec58f6 100644 --- a/api_v3/api_saved_search.go +++ b/api_v3/api_saved_search.go @@ -761,25 +761,25 @@ func (a *SavedSearchAPIService) ListSavedSearchesExecute(r ApiListSavedSearchesR localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_scheduled_search.go b/api_v3/api_scheduled_search.go index bfa2cc253..ecc7d7500 100644 --- a/api_v3/api_scheduled_search.go +++ b/api_v3/api_scheduled_search.go @@ -601,25 +601,25 @@ func (a *ScheduledSearchAPIService) ListScheduledSearchExecute(r ApiListSchedule localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_search.go b/api_v3/api_search.go index 254f1b829..1a3d6f114 100644 --- a/api_v3/api_search.go +++ b/api_v3/api_search.go @@ -99,19 +99,19 @@ func (a *SearchAPIService) SearchAggregateExecute(r ApiSearchAggregateRequest) ( } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -627,19 +627,19 @@ func (a *SearchAPIService) SearchPostExecute(r ApiSearchPostRequest) ([]map[stri } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 10000 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_v3/api_segments.go b/api_v3/api_segments.go index f3d71b699..c684fc0cf 100644 --- a/api_v3/api_segments.go +++ b/api_v3/api_segments.go @@ -585,19 +585,19 @@ func (a *SegmentsAPIService) ListSegmentsExecute(r ApiListSegmentsRequest) ([]Se localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_v3/api_service_desk_integration.go b/api_v3/api_service_desk_integration.go index ed0479bd2..5e679da1c 100644 --- a/api_v3/api_service_desk_integration.go +++ b/api_v3/api_service_desk_integration.go @@ -937,25 +937,25 @@ func (a *ServiceDeskIntegrationAPIService) GetServiceDeskIntegrationsExecute(r A localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue diff --git a/api_v3/api_sod_policies.go b/api_v3/api_sod_policies.go index 296535510..eef8dec7d 100644 --- a/api_v3/api_sod_policies.go +++ b/api_v3/api_sod_policies.go @@ -245,7 +245,7 @@ func (a *SODPoliciesAPIService) DeleteSodPolicyExecute(r ApiDeleteSodPolicyReque localVarFormParams := url.Values{} if r.logical != nil { - parameterAddToQuery(localVarQueryParams, "logical", r.logical, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "logical", r.logical, "", "") } else { var defaultValue bool = true r.logical = &defaultValue @@ -1754,28 +1754,28 @@ func (a *SODPoliciesAPIService) ListSodPoliciesExecute(r ApiListSodPoliciesReque localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_source_usages.go b/api_v3/api_source_usages.go index 0dc3437e1..b79ed46c6 100644 --- a/api_v3/api_source_usages.go +++ b/api_v3/api_source_usages.go @@ -258,25 +258,25 @@ func (a *SourceUsagesAPIService) GetUsagesBySourceIdExecute(r ApiGetUsagesBySour localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_sources.go b/api_v3/api_sources.go index 640a4b6f4..9a4c21647 100644 --- a/api_v3/api_sources.go +++ b/api_v3/api_sources.go @@ -269,7 +269,7 @@ func (a *SourcesAPIService) CreateSourceExecute(r ApiCreateSourceRequest) (*Sour } if r.provisionAsCsv != nil { - parameterAddToQuery(localVarQueryParams, "provisionAsCsv", r.provisionAsCsv, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "provisionAsCsv", r.provisionAsCsv, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -1256,7 +1256,7 @@ func (a *SourcesAPIService) GetEntitlementsSchemaExecute(r ApiGetEntitlementsSch localVarFormParams := url.Values{} if r.schemaName != nil { - parameterAddToQuery(localVarQueryParams, "schemaName", r.schemaName, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "schemaName", r.schemaName, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2109,7 +2109,7 @@ func (a *SourcesAPIService) GetSourceSchemasExecute(r ApiGetSourceSchemasRequest localVarFormParams := url.Values{} if r.includeTypes != nil { - parameterAddToQuery(localVarQueryParams, "include-types", r.includeTypes, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include-types", r.includeTypes, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2662,7 +2662,7 @@ func (a *SourcesAPIService) ImportEntitlementsSchemaExecute(r ApiImportEntitleme localVarFormParams := url.Values{} if r.schemaName != nil { - parameterAddToQuery(localVarQueryParams, "schemaName", r.schemaName, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "schemaName", r.schemaName, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{"multipart/form-data"} @@ -3045,31 +3045,31 @@ func (a *SourcesAPIService) ListSourcesExecute(r ApiListSourcesRequest) ([]Sourc localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } if r.sorters != nil { - parameterAddToQuery(localVarQueryParams, "sorters", r.sorters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sorters", r.sorters, "", "") } if r.forSubadmin != nil { - parameterAddToQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "for-subadmin", r.forSubadmin, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_tagged_objects.go b/api_v3/api_tagged_objects.go index b3e40105c..24dcc29ef 100644 --- a/api_v3/api_tagged_objects.go +++ b/api_v3/api_tagged_objects.go @@ -566,25 +566,25 @@ func (a *TaggedObjectsAPIService) ListTaggedObjectsExecute(r ApiListTaggedObject localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -774,25 +774,25 @@ func (a *TaggedObjectsAPIService) ListTaggedObjectsByTypeExecute(r ApiListTagged localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_transforms.go b/api_v3/api_transforms.go index 34b0e8fad..fbe2ab83a 100644 --- a/api_v3/api_transforms.go +++ b/api_v3/api_transforms.go @@ -608,28 +608,28 @@ func (a *TransformsAPIService) ListTransformsExecute(r ApiListTransformsRequest) localVarFormParams := url.Values{} if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.name != nil { - parameterAddToQuery(localVarQueryParams, "name", r.name, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_work_items.go b/api_v3/api_work_items.go index 715f400ae..1727659af 100644 --- a/api_v3/api_work_items.go +++ b/api_v3/api_work_items.go @@ -605,22 +605,22 @@ func (a *WorkItemsAPIService) GetCompletedWorkItemsExecute(r ApiGetCompletedWork localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "ownerId", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ownerId", r.ownerId, "", "") } if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue @@ -786,7 +786,7 @@ func (a *WorkItemsAPIService) GetCountCompletedWorkItemsExecute(r ApiGetCountCom localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "ownerId", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ownerId", r.ownerId, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -949,7 +949,7 @@ func (a *WorkItemsAPIService) GetCountWorkItemsExecute(r ApiGetCountWorkItemsReq localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "ownerId", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ownerId", r.ownerId, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1269,7 +1269,7 @@ func (a *WorkItemsAPIService) GetWorkItemsSummaryExecute(r ApiGetWorkItemsSummar localVarFormParams := url.Values{} if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "ownerId", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ownerId", r.ownerId, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1453,25 +1453,25 @@ func (a *WorkItemsAPIService) ListWorkItemsExecute(r ApiListWorkItemsRequest) ([ localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.ownerId != nil { - parameterAddToQuery(localVarQueryParams, "ownerId", r.ownerId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ownerId", r.ownerId, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/api_workflows.go b/api_v3/api_workflows.go index c694e2974..2c6538b19 100644 --- a/api_v3/api_workflows.go +++ b/api_v3/api_workflows.go @@ -1393,25 +1393,25 @@ func (a *WorkflowsAPIService) GetWorkflowExecutionsExecute(r ApiGetWorkflowExecu localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.count != nil { - parameterAddToQuery(localVarQueryParams, "count", r.count, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "", "") } else { var defaultValue bool = false r.count = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1592,13 +1592,13 @@ func (a *WorkflowsAPIService) ListCompleteWorkflowLibraryExecute(r ApiListComple localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue @@ -1778,19 +1778,19 @@ func (a *WorkflowsAPIService) ListWorkflowLibraryActionsExecute(r ApiListWorkflo localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2120,19 +2120,19 @@ func (a *WorkflowsAPIService) ListWorkflowLibraryTriggersExecute(r ApiListWorkfl localVarFormParams := url.Values{} if r.limit != nil { - parameterAddToQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "", "") } else { var defaultValue int32 = 250 r.limit = &defaultValue } if r.offset != nil { - parameterAddToQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "", "") } else { var defaultValue int32 = 0 r.offset = &defaultValue } if r.filters != nil { - parameterAddToQuery(localVarQueryParams, "filters", r.filters, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_v3/client.go b/api_v3/client.go index 172b93f44..51df8f8ad 100644 --- a/api_v3/client.go +++ b/api_v3/client.go @@ -38,8 +38,8 @@ retryablehttp "github.com/hashicorp/go-retryablehttp" ) var ( - jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) - xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) ) @@ -290,8 +290,9 @@ func parameterValueToString( obj interface{}, key string ) string { return fmt.Sprintf("%v", dataMap[key]) } -// parameterAddToQuery adds the provided object to the url query supporting deep object syntax -func parameterAddToQuery(queryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { var v = reflect.ValueOf(obj) var value = "" if v == reflect.ValueOf(nil) { @@ -307,11 +308,11 @@ func parameterAddToQuery(queryParams interface{}, keyPrefix string, obj interfac if err != nil { return } - parameterAddToQuery(queryParams, keyPrefix, dataMap, collectionType) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) return } if t, ok := obj.(time.Time); ok { - parameterAddToQuery(queryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) return } value = v.Type().String() + " value" @@ -323,7 +324,11 @@ func parameterAddToQuery(queryParams interface{}, keyPrefix string, obj interfac var lenIndValue = indValue.Len() for i:=0;i= 1 && maximumAttempts <= 15 2. lockoutDuration >= 5 && lockoutDuration <= 60 3. lockoutWindow >= 5 && lockoutDuration <= 60 - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthOrgLockoutConfig`: LockoutConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig`: %v\n", resp) + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of auth org lockout configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Lockout Config conforms to certain logical guidelines, which are: 1. maximumAttempts >= 1 && maximumAttempts <= 15 2. lockoutDuration >= 5 && lockoutDuration <= 60 3. lockoutWindow >= 5 && lockoutDuration <= 60 + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthOrgLockoutConfig`: LockoutConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig`: %v\n", resp) } ``` @@ -406,24 +406,24 @@ Update security network configuration. package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of auth org network configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Network Config conforms to certain logical guidelines, which are: 1. Each string element in the range array must be a valid ip address or ip subnet mask. 2. Each string element in the geolocation array must be 2 characters, and they can only be uppercase letters. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthOrgNetworkConfig`: NetworkConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig`: %v\n", resp) + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of auth org network configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Network Config conforms to certain logical guidelines, which are: 1. Each string element in the range array must be a valid ip address or ip subnet mask. 2. Each string element in the geolocation array must be 2 characters, and they can only be uppercase letters. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthOrgNetworkConfig`: NetworkConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig`: %v\n", resp) } ``` @@ -472,24 +472,24 @@ Update Service Provider Configuration package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of auth org service provider configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Note: /federationProtocolDetails/0 is IdpDetails /federationProtocolDetails/1 is SpDetails Ensures that the patched ServiceProviderConfig conforms to certain logical guidelines, which are: 1. Do not add or remove any elements in the federation protocol details in the service provider configuration. 2. Do not modify, add, or delete the service provider details element in the federation protocol details. 3. If this is the first time the patched ServiceProviderConfig enables Remote IDP sign-in, it must also include IDPDetails. 4. If the patch enables Remote IDP sign in, the entityID in the IDPDetails cannot be null. IDPDetails must include an entityID. 5. Any JIT configuration update must be valid. Just in time configuration update must be valid when enabled. This includes: - A Source ID - Source attribute mappings - Source attribute maps have all the required key values (firstName, lastName, email) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthOrgServiceProviderConfig`: ServiceProviderConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig`: %v\n", resp) + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of auth org service provider configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Note: /federationProtocolDetails/0 is IdpDetails /federationProtocolDetails/1 is SpDetails Ensures that the patched ServiceProviderConfig conforms to certain logical guidelines, which are: 1. Do not add or remove any elements in the federation protocol details in the service provider configuration. 2. Do not modify, add, or delete the service provider details element in the federation protocol details. 3. If this is the first time the patched ServiceProviderConfig enables Remote IDP sign-in, it must also include IDPDetails. 4. If the patch enables Remote IDP sign in, the entityID in the IDPDetails cannot be null. IDPDetails must include an entityID. 5. Any JIT configuration update must be valid. Just in time configuration update must be valid when enabled. This includes: - A Source ID - Source attribute mappings - Source attribute maps have all the required key values (firstName, lastName, email) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthOrgServiceProviderConfig`: ServiceProviderConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig`: %v\n", resp) } ``` @@ -538,24 +538,24 @@ Update Auth Org Session Configuration package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of auth org session configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Session Config conforms to certain logical guidelines, which are: 1. maxSessionTime >= 1 && maxSessionTime <= 10080 (1 week) 2. maxIdleTime >= 1 && maxIdleTime <= 1440 (1 day) 3. maxSessionTime must have a greater duration than maxIdleTime. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthOrgSessionConfig`: SessionConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig`: %v\n", resp) + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of auth org session configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Session Config conforms to certain logical guidelines, which are: 1. maxSessionTime >= 1 && maxSessionTime <= 10080 (1 week) 2. maxIdleTime >= 1 && maxIdleTime <= 1440 (1 day) 3. maxSessionTime must have a greater duration than maxIdleTime. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthOrgSessionConfig`: SessionConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig`: %v\n", resp) } ``` diff --git a/api_v3/docs/IdentityProfilesAPI.md b/api_v3/docs/IdentityProfilesAPI.md index c06840474..5ff666310 100644 --- a/api_v3/docs/IdentityProfilesAPI.md +++ b/api_v3/docs/IdentityProfilesAPI.md @@ -32,24 +32,24 @@ Create an Identity Profile package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfile := *openapiclient.NewIdentityProfile("aName", *openapiclient.NewIdentityProfileAllOfAuthoritativeSource()) // IdentityProfile | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.CreateIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateIdentityProfile`: IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.CreateIdentityProfile`: %v\n", resp) + identityProfile := *openapiclient.NewIdentityProfile("aName", *openapiclient.NewIdentityProfileAllOfAuthoritativeSource()) // IdentityProfile | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.CreateIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateIdentityProfile`: IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.CreateIdentityProfile`: %v\n", resp) } ``` @@ -98,24 +98,24 @@ Delete an Identity Profile package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := "ef38f94347e94562b5bb8424a56397d8" // string | The Identity Profile ID. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteIdentityProfile`: TaskResultSimplified - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfile`: %v\n", resp) + identityProfileId := "ef38f94347e94562b5bb8424a56397d8" // string | The Identity Profile ID. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteIdentityProfile`: TaskResultSimplified + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfile`: %v\n", resp) } ``` @@ -168,24 +168,24 @@ Delete Identity Profiles package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestBody := []string{"Property_example"} // []string | Identity Profile bulk delete request body. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteIdentityProfiles`: TaskResultSimplified - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfiles`: %v\n", resp) + requestBody := []string{"Property_example"} // []string | Identity Profile bulk delete request body. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteIdentityProfiles`: TaskResultSimplified + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfiles`: %v\n", resp) } ``` @@ -234,28 +234,28 @@ Export Identity Profiles package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - filters := "id eq "ef38f94347e94562b5bb8424a56397d8"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne* **name**: *eq, ne* **priority**: *eq, ne* (optional) - sorters := "id,name" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority** (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ExportIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportIdentityProfiles`: []IdentityProfileExportedObject - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ExportIdentityProfiles`: %v\n", resp) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + filters := "id eq "ef38f94347e94562b5bb8424a56397d8"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne* **name**: *eq, ne* **priority**: *eq, ne* (optional) + sorters := "id,name" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority** (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ExportIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportIdentityProfiles`: []IdentityProfileExportedObject + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ExportIdentityProfiles`: %v\n", resp) } ``` @@ -308,24 +308,24 @@ Get default Identity Attribute Config package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := "2b838de9-db9b-abcf-e646-d4f274ad4238" // string | The Identity Profile ID. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDefaultIdentityAttributeConfig`: IdentityAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig`: %v\n", resp) + identityProfileId := "2b838de9-db9b-abcf-e646-d4f274ad4238" // string | The Identity Profile ID. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDefaultIdentityAttributeConfig`: IdentityAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig`: %v\n", resp) } ``` @@ -378,24 +378,24 @@ Get single Identity Profile package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := "2b838de9-db9b-abcf-e646-d4f274ad4238" // string | The Identity Profile ID. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityProfile`: IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetIdentityProfile`: %v\n", resp) + identityProfileId := "2b838de9-db9b-abcf-e646-d4f274ad4238" // string | The Identity Profile ID. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityProfile`: IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetIdentityProfile`: %v\n", resp) } ``` @@ -448,24 +448,24 @@ Import Identity Profiles package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileExportedObject := []openapiclient.IdentityProfileExportedObject{*openapiclient.NewIdentityProfileExportedObject()} // []IdentityProfileExportedObject | Previously exported Identity Profiles. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ImportIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportIdentityProfiles`: ObjectImportResult - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ImportIdentityProfiles`: %v\n", resp) + identityProfileExportedObject := []openapiclient.IdentityProfileExportedObject{*openapiclient.NewIdentityProfileExportedObject()} // []IdentityProfileExportedObject | Previously exported Identity Profiles. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ImportIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportIdentityProfiles`: ObjectImportResult + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ImportIdentityProfiles`: %v\n", resp) } ``` @@ -514,28 +514,28 @@ Identity Profiles List package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - filters := "id eq "ef38f94347e94562b5bb8424a56397d8"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne, ge, gt, in, le, lt, isnull, sw* **name**: *eq, ne, in, le, lt, isnull, sw* **priority**: *eq, ne* (optional) - sorters := "id,name" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority, created, modified, owner.id, owner.name** (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ListIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentityProfiles`: []IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ListIdentityProfiles`: %v\n", resp) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + filters := "id eq "ef38f94347e94562b5bb8424a56397d8"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne, ge, gt, in, le, lt, isnull, sw* **name**: *eq, ne, in, le, lt, isnull, sw* **priority**: *eq, ne* (optional) + sorters := "id,name" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority, created, modified, owner.id, owner.name** (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ListIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentityProfiles`: []IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ListIdentityProfiles`: %v\n", resp) } ``` @@ -588,24 +588,24 @@ Generate Identity Profile Preview package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityPreviewRequest := *openapiclient.NewIdentityPreviewRequest() // IdentityPreviewRequest | Identity Preview request body. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IdentityProfilesAPI.ShowIdentityPreview(context.Background()).IdentityPreviewRequest(identityPreviewRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ShowIdentityPreview``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ShowIdentityPreview`: IdentityPreviewResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ShowIdentityPreview`: %v\n", resp) + identityPreviewRequest := *openapiclient.NewIdentityPreviewRequest() // IdentityPreviewRequest | Identity Preview request body. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProfilesAPI.ShowIdentityPreview(context.Background()).IdentityPreviewRequest(identityPreviewRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ShowIdentityPreview``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ShowIdentityPreview`: IdentityPreviewResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ShowIdentityPreview`: %v\n", resp) } ``` @@ -654,24 +654,24 @@ Process identities under profile package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := "ef38f94347e94562b5bb8424a56397d8" // string | The Identity Profile ID to be processed - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.SyncIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SyncIdentityProfile`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.SyncIdentityProfile`: %v\n", resp) + identityProfileId := "ef38f94347e94562b5bb8424a56397d8" // string | The Identity Profile ID to be processed + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.SyncIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SyncIdentityProfile`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.SyncIdentityProfile`: %v\n", resp) } ``` @@ -724,25 +724,25 @@ Update the Identity Profile package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := "ef38f94347e94562b5bb8424a56397d8" // string | The Identity Profile ID - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of Identity Profile update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.UpdateIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateIdentityProfile`: IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.UpdateIdentityProfile`: %v\n", resp) + identityProfileId := "ef38f94347e94562b5bb8424a56397d8" // string | The Identity Profile ID + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of Identity Profile update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.UpdateIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateIdentityProfile`: IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.UpdateIdentityProfile`: %v\n", resp) } ``` diff --git a/api_v3/docs/LifecycleStatesAPI.md b/api_v3/docs/LifecycleStatesAPI.md index f0333feed..60e71df97 100644 --- a/api_v3/docs/LifecycleStatesAPI.md +++ b/api_v3/docs/LifecycleStatesAPI.md @@ -27,25 +27,25 @@ Create Lifecycle State package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := "2b838de9-db9b-abcf-e646-d4f274ad4238" // string | Identity profile ID. - lifecycleState := *openapiclient.NewLifecycleState("aName", "Technical Name") // LifecycleState | Lifecycle state to be created. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.CreateLifecycleState``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateLifecycleState`: LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.CreateLifecycleState`: %v\n", resp) + identityProfileId := "2b838de9-db9b-abcf-e646-d4f274ad4238" // string | Identity profile ID. + lifecycleState := *openapiclient.NewLifecycleState("aName", "Technical Name") // LifecycleState | Lifecycle state to be created. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.CreateLifecycleState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateLifecycleState`: LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.CreateLifecycleState`: %v\n", resp) } ``` @@ -99,25 +99,25 @@ Delete Lifecycle State package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := "2b838de9-db9b-abcf-e646-d4f274ad4238" // string | Identity profile ID. - lifecycleStateId := "ef38f94347e94562b5bb8424a56397d8" // string | Lifecycle state ID. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.DeleteLifecycleState``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteLifecycleState`: LifecyclestateDeleted - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.DeleteLifecycleState`: %v\n", resp) + identityProfileId := "2b838de9-db9b-abcf-e646-d4f274ad4238" // string | Identity profile ID. + lifecycleStateId := "ef38f94347e94562b5bb8424a56397d8" // string | Lifecycle state ID. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.DeleteLifecycleState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteLifecycleState`: LifecyclestateDeleted + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.DeleteLifecycleState`: %v\n", resp) } ``` @@ -172,25 +172,25 @@ Get Lifecycle State package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := "2b838de9-db9b-abcf-e646-d4f274ad4238" // string | Identity profile ID. - lifecycleStateId := "ef38f94347e94562b5bb8424a56397d8" // string | Lifecycle state ID. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleState``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetLifecycleState`: LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleState`: %v\n", resp) + identityProfileId := "2b838de9-db9b-abcf-e646-d4f274ad4238" // string | Identity profile ID. + lifecycleStateId := "ef38f94347e94562b5bb8424a56397d8" // string | Lifecycle state ID. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLifecycleState`: LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleState`: %v\n", resp) } ``` @@ -245,28 +245,28 @@ Lists LifecycleStates package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := "2b838de9-db9b-abcf-e646-d4f274ad4238" // string | Identity profile ID. - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - sorters := "created,modified" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleStates``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetLifecycleStates`: []LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleStates`: %v\n", resp) + identityProfileId := "2b838de9-db9b-abcf-e646-d4f274ad4238" // string | Identity profile ID. + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + sorters := "created,modified" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleStates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLifecycleStates`: []LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleStates`: %v\n", resp) } ``` @@ -323,25 +323,25 @@ Set Lifecycle State package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := "2c9180857893f1290178944561990364" // string | ID of the identity to update. - setLifecycleStateRequest := *openapiclient.NewSetLifecycleStateRequest() // SetLifecycleStateRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.SetLifecycleState``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetLifecycleState`: SetLifecycleState200Response - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.SetLifecycleState`: %v\n", resp) + identityId := "2c9180857893f1290178944561990364" // string | ID of the identity to update. + setLifecycleStateRequest := *openapiclient.NewSetLifecycleStateRequest() // SetLifecycleStateRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.SetLifecycleState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetLifecycleState`: SetLifecycleState200Response + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.SetLifecycleState`: %v\n", resp) } ``` @@ -395,26 +395,26 @@ Update Lifecycle State package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityProfileId := "2b838de9-db9b-abcf-e646-d4f274ad4238" // string | Identity profile ID. - lifecycleStateId := "ef38f94347e94562b5bb8424a56397d8" // string | Lifecycle state ID. - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of lifecycle state update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.UpdateLifecycleStates``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateLifecycleStates`: LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.UpdateLifecycleStates`: %v\n", resp) + identityProfileId := "2b838de9-db9b-abcf-e646-d4f274ad4238" // string | Identity profile ID. + lifecycleStateId := "ef38f94347e94562b5bb8424a56397d8" // string | Lifecycle state ID. + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of lifecycle state update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.UpdateLifecycleStates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateLifecycleStates`: LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.UpdateLifecycleStates`: %v\n", resp) } ``` diff --git a/api_v3/docs/MFAConfigurationAPI.md b/api_v3/docs/MFAConfigurationAPI.md index 4a693170e..307d594d8 100644 --- a/api_v3/docs/MFAConfigurationAPI.md +++ b/api_v3/docs/MFAConfigurationAPI.md @@ -29,24 +29,24 @@ Delete MFA method configuration package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - method := "okta-verify" // string | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.DeleteMFAConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteMFAConfig`: MfaOktaConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.DeleteMFAConfig`: %v\n", resp) + method := "okta-verify" // string | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.DeleteMFAConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteMFAConfig`: MfaOktaConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.DeleteMFAConfig`: %v\n", resp) } ``` @@ -99,23 +99,23 @@ Configuration of Duo MFA method package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFADuoConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMFADuoConfig`: MfaDuoConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFADuoConfig`: %v\n", resp) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFADuoConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMFADuoConfig`: MfaDuoConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFADuoConfig`: %v\n", resp) } ``` @@ -160,24 +160,24 @@ Configuration of KBA MFA method package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - allLanguages := false // bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAKbaConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMFAKbaConfig`: []KbaQuestion - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAKbaConfig`: %v\n", resp) + allLanguages := false // bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAKbaConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMFAKbaConfig`: []KbaQuestion + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAKbaConfig`: %v\n", resp) } ``` @@ -226,23 +226,23 @@ Configuration of Okta MFA method package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAOktaConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMFAOktaConfig`: MfaOktaConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAOktaConfig`: %v\n", resp) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAOktaConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMFAOktaConfig`: MfaOktaConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAOktaConfig`: %v\n", resp) } ``` @@ -287,24 +287,24 @@ Set Duo MFA configuration package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaDuoConfig := *openapiclient.NewMfaDuoConfig() // MfaDuoConfig | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFADuoConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetMFADuoConfig`: MfaDuoConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFADuoConfig`: %v\n", resp) + mfaDuoConfig := *openapiclient.NewMfaDuoConfig() // MfaDuoConfig | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFADuoConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetMFADuoConfig`: MfaDuoConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFADuoConfig`: %v\n", resp) } ``` @@ -353,24 +353,24 @@ Set MFA KBA configuration package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - kbaAnswerRequestItem := []openapiclient.KbaAnswerRequestItem{*openapiclient.NewKbaAnswerRequestItem("c54fee53-2d63-4fc5-9259-3e93b9994135", "Your answer")} // []KbaAnswerRequestItem | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAKBAConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetMFAKBAConfig`: []KbaAnswerResponseItem - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAKBAConfig`: %v\n", resp) + kbaAnswerRequestItem := []openapiclient.KbaAnswerRequestItem{*openapiclient.NewKbaAnswerRequestItem("c54fee53-2d63-4fc5-9259-3e93b9994135", "Your answer")} // []KbaAnswerRequestItem | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAKBAConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetMFAKBAConfig`: []KbaAnswerResponseItem + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAKBAConfig`: %v\n", resp) } ``` @@ -419,24 +419,24 @@ Set Okta MFA configuration package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - mfaOktaConfig := *openapiclient.NewMfaOktaConfig() // MfaOktaConfig | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAOktaConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetMFAOktaConfig`: MfaOktaConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAOktaConfig`: %v\n", resp) + mfaOktaConfig := *openapiclient.NewMfaOktaConfig() // MfaOktaConfig | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAOktaConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetMFAOktaConfig`: MfaOktaConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAOktaConfig`: %v\n", resp) } ``` @@ -485,24 +485,24 @@ MFA method's test configuration package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - method := "okta-verify" // string | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.TestMFAConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestMFAConfig`: MfaConfigTestResponse - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.TestMFAConfig`: %v\n", resp) + method := "okta-verify" // string | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.TestMFAConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestMFAConfig`: MfaConfigTestResponse + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.TestMFAConfig`: %v\n", resp) } ``` diff --git a/api_v3/docs/MFAControllerAPI.md b/api_v3/docs/MFAControllerAPI.md index 315bd4ea0..24085b874 100644 --- a/api_v3/docs/MFAControllerAPI.md +++ b/api_v3/docs/MFAControllerAPI.md @@ -27,24 +27,24 @@ Create and send user token package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sendTokenRequest := *openapiclient.NewSendTokenRequest("will.albin", "EMAIL_WORK") // SendTokenRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MFAControllerAPI.CreateSendToken(context.Background()).SendTokenRequest(sendTokenRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.CreateSendToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSendToken`: SendTokenResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.CreateSendToken`: %v\n", resp) + sendTokenRequest := *openapiclient.NewSendTokenRequest("will.albin", "EMAIL_WORK") // SendTokenRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MFAControllerAPI.CreateSendToken(context.Background()).SendTokenRequest(sendTokenRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.CreateSendToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSendToken`: SendTokenResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.CreateSendToken`: %v\n", resp) } ``` @@ -93,25 +93,25 @@ Polling MFA method by VerificationPollRequest package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - method := "okta-verify" // string | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' - verificationPollRequest := *openapiclient.NewVerificationPollRequest("089899f13a8f4da7824996191587bab9") // VerificationPollRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MFAControllerAPI.PingVerificationStatus(context.Background(), method).VerificationPollRequest(verificationPollRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.PingVerificationStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PingVerificationStatus`: VerificationResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.PingVerificationStatus`: %v\n", resp) + method := "okta-verify" // string | The name of the MFA method. The currently supported method names are 'okta-verify', 'duo-web', 'kba','token', 'rsa' + verificationPollRequest := *openapiclient.NewVerificationPollRequest("089899f13a8f4da7824996191587bab9") // VerificationPollRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MFAControllerAPI.PingVerificationStatus(context.Background(), method).VerificationPollRequest(verificationPollRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.PingVerificationStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PingVerificationStatus`: VerificationResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.PingVerificationStatus`: %v\n", resp) } ``` @@ -165,24 +165,24 @@ Verifying authentication via Duo method package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - duoVerificationRequest := *openapiclient.NewDuoVerificationRequest("2c9180947f0ef465017f215cbcfd004b", "AUTH|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjUzMDg5|f1f5f8ced5b340f3d303b05d0efa0e43b6a8f970:APP|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjU2NjE5|cb44cf44353f5127edcae31b1da0355f87357db2") // DuoVerificationRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).DuoVerificationRequest(duoVerificationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendDuoVerifyRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SendDuoVerifyRequest`: VerificationResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendDuoVerifyRequest`: %v\n", resp) + duoVerificationRequest := *openapiclient.NewDuoVerificationRequest("2c9180947f0ef465017f215cbcfd004b", "AUTH|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjUzMDg5|f1f5f8ced5b340f3d303b05d0efa0e43b6a8f970:APP|d2lsbC5hbGJpbnxESTZNMFpHSThKQVRWTVpZN0M5VXwxNzAxMjU2NjE5|cb44cf44353f5127edcae31b1da0355f87357db2") // DuoVerificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).DuoVerificationRequest(duoVerificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendDuoVerifyRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SendDuoVerifyRequest`: VerificationResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendDuoVerifyRequest`: %v\n", resp) } ``` @@ -231,24 +231,24 @@ Authenticate KBA provided MFA method package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - kbaAnswerRequestItem := []openapiclient.KbaAnswerRequestItem{*openapiclient.NewKbaAnswerRequestItem("c54fee53-2d63-4fc5-9259-3e93b9994135", "Your answer")} // []KbaAnswerRequestItem | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MFAControllerAPI.SendKbaAnswers(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendKbaAnswers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SendKbaAnswers`: KbaAuthResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendKbaAnswers`: %v\n", resp) + kbaAnswerRequestItem := []openapiclient.KbaAnswerRequestItem{*openapiclient.NewKbaAnswerRequestItem("c54fee53-2d63-4fc5-9259-3e93b9994135", "Your answer")} // []KbaAnswerRequestItem | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MFAControllerAPI.SendKbaAnswers(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendKbaAnswers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SendKbaAnswers`: KbaAuthResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendKbaAnswers`: %v\n", resp) } ``` @@ -297,24 +297,24 @@ Verifying authentication via Okta method package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - oktaVerificationRequest := *openapiclient.NewOktaVerificationRequest("example@mail.com") // OktaVerificationRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).OktaVerificationRequest(oktaVerificationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendOktaVerifyRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SendOktaVerifyRequest`: VerificationResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendOktaVerifyRequest`: %v\n", resp) + oktaVerificationRequest := *openapiclient.NewOktaVerificationRequest("example@mail.com") // OktaVerificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).OktaVerificationRequest(oktaVerificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendOktaVerifyRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SendOktaVerifyRequest`: VerificationResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendOktaVerifyRequest`: %v\n", resp) } ``` @@ -363,24 +363,24 @@ Authenticate Token provided MFA method package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - tokenAuthRequest := *openapiclient.NewTokenAuthRequest("12345", "will.albin", "EMAIL_WORK") // TokenAuthRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MFAControllerAPI.SendTokenAuthRequest(context.Background()).TokenAuthRequest(tokenAuthRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendTokenAuthRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SendTokenAuthRequest`: TokenAuthResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendTokenAuthRequest`: %v\n", resp) + tokenAuthRequest := *openapiclient.NewTokenAuthRequest("12345", "will.albin", "EMAIL_WORK") // TokenAuthRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MFAControllerAPI.SendTokenAuthRequest(context.Background()).TokenAuthRequest(tokenAuthRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendTokenAuthRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SendTokenAuthRequest`: TokenAuthResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendTokenAuthRequest`: %v\n", resp) } ``` diff --git a/api_v3/docs/ManagedClientsAPI.md b/api_v3/docs/ManagedClientsAPI.md index 532411be0..575ea76f0 100644 --- a/api_v3/docs/ManagedClientsAPI.md +++ b/api_v3/docs/ManagedClientsAPI.md @@ -27,24 +27,24 @@ Create a new Managed Client package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClientRequest := *openapiclient.NewManagedClientRequest("aClusterId") // ManagedClientRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.CreateManagedClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateManagedClient`: ManagedClient - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.CreateManagedClient`: %v\n", resp) + managedClientRequest := *openapiclient.NewManagedClientRequest("aClusterId") // ManagedClientRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.CreateManagedClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateManagedClient`: ManagedClient + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.CreateManagedClient`: %v\n", resp) } ``` @@ -93,22 +93,22 @@ Delete a Managed Client package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7" // string | Managed Client ID. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.DeleteManagedClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7" // string | Managed Client ID. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.DeleteManagedClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -161,24 +161,24 @@ Get a Managed Client package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7" // string | Managed Client ID. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClient`: ManagedClient - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClient`: %v\n", resp) + id := "4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7" // string | Managed Client ID. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClient`: ManagedClient + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClient`: %v\n", resp) } ``` @@ -231,25 +231,25 @@ Get Managed Client Status. package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "aClientId" // string | ID of the Managed Client to get Status of - type_ := openapiclient.ManagedClientType("CCG") // ManagedClientType | Type of the Managed Client to get Status of - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClientStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClientStatus`: ManagedClientStatus - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClientStatus`: %v\n", resp) + id := "aClientId" // string | ID of the Managed Client to get Status of + type_ := openapiclient.ManagedClientType("CCG") // ManagedClientType | Type of the Managed Client to get Status of + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClientStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClientStatus`: ManagedClientStatus + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClientStatus`: %v\n", resp) } ``` @@ -303,27 +303,27 @@ Get Managed Clients package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - filters := "name eq "client name"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **name**: *eq* **clientId**: *eq* **clusterId**: *eq* (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagedClientsAPI.GetManagedClients(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClients``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClients`: []ManagedClient - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClients`: %v\n", resp) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + filters := "name eq "client name"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **name**: *eq* **clientId**: *eq* **clusterId**: *eq* (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagedClientsAPI.GetManagedClients(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClients``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClients`: []ManagedClient + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClients`: %v\n", resp) } ``` @@ -375,25 +375,25 @@ Update a Managed Client package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7" // string | Managed Client ID. - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | The JSONPatch payload used to update the object. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.UpdateManagedClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateManagedClient`: ManagedClient - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.UpdateManagedClient`: %v\n", resp) + id := "4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7" // string | Managed Client ID. + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | The JSONPatch payload used to update the object. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.UpdateManagedClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateManagedClient`: ManagedClient + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.UpdateManagedClient`: %v\n", resp) } ``` diff --git a/api_v3/docs/ManagedClustersAPI.md b/api_v3/docs/ManagedClustersAPI.md index ddaab8332..135a48633 100644 --- a/api_v3/docs/ManagedClustersAPI.md +++ b/api_v3/docs/ManagedClustersAPI.md @@ -26,24 +26,24 @@ Create a new Managed Cluster package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - managedClusterRequest := *openapiclient.NewManagedClusterRequest("Managed Cluster Name") // ManagedClusterRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.CreateManagedCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateManagedCluster`: ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.CreateManagedCluster`: %v\n", resp) + managedClusterRequest := *openapiclient.NewManagedClusterRequest("Managed Cluster Name") // ManagedClusterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.CreateManagedCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateManagedCluster`: ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.CreateManagedCluster`: %v\n", resp) } ``` @@ -92,23 +92,23 @@ Delete a Managed Cluster package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c9180897de347a2017de8859e8c5039" // string | Managed Cluster ID. - removeClients := false // bool | Flag to determine the need to delete a cluster with clients (optional) (default to false) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).RemoveClients(removeClients).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.DeleteManagedCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "2c9180897de347a2017de8859e8c5039" // string | Managed Cluster ID. + removeClients := false // bool | Flag to determine the need to delete a cluster with clients (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).RemoveClients(removeClients).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.DeleteManagedCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -162,24 +162,24 @@ Get a specified Managed Cluster. package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c9180897de347a2017de8859e8c5039" // string | ManagedCluster ID. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedCluster`: ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedCluster`: %v\n", resp) + id := "2c9180897de347a2017de8859e8c5039" // string | ManagedCluster ID. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedCluster`: ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedCluster`: %v\n", resp) } ``` @@ -232,27 +232,27 @@ Retrieve all Managed Clusters. package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - filters := "operational eq "operation"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **operational**: *eq* (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedClusters``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClusters`: []ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedClusters`: %v\n", resp) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + filters := "operational eq "operation"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **operational**: *eq* (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedClusters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClusters`: []ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedClusters`: %v\n", resp) } ``` @@ -304,25 +304,25 @@ Update a Managed Cluster package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c9180897de347a2017de8859e8c5039" // string | Managed Cluster ID. - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | The JSONPatch payload used to update the object. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.UpdateManagedCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateManagedCluster`: ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.UpdateManagedCluster`: %v\n", resp) + id := "2c9180897de347a2017de8859e8c5039" // string | Managed Cluster ID. + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | The JSONPatch payload used to update the object. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.UpdateManagedCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateManagedCluster`: ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.UpdateManagedCluster`: %v\n", resp) } ``` diff --git a/api_v3/docs/NonEmployeeLifecycleManagementAPI.md b/api_v3/docs/NonEmployeeLifecycleManagementAPI.md index 3a25b2107..c4cfc399d 100644 --- a/api_v3/docs/NonEmployeeLifecycleManagementAPI.md +++ b/api_v3/docs/NonEmployeeLifecycleManagementAPI.md @@ -53,25 +53,25 @@ Approve a Non-Employee Request package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "e136567de87e4d029e60b3c3c55db56d" // string | Non-Employee approval item id (UUID) - nonEmployeeApprovalDecision := *openapiclient.NewNonEmployeeApprovalDecision() // NonEmployeeApprovalDecision | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveNonEmployeeRequest`: NonEmployeeApprovalItem - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest`: %v\n", resp) + id := "e136567de87e4d029e60b3c3c55db56d" // string | Non-Employee approval item id (UUID) + nonEmployeeApprovalDecision := *openapiclient.NewNonEmployeeApprovalDecision() // NonEmployeeApprovalDecision | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveNonEmployeeRequest`: NonEmployeeApprovalItem + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest`: %v\n", resp) } ``` @@ -125,25 +125,25 @@ Create Non-Employee Record package main import ( - "context" - "fmt" - "os" + "context" + "fmt" + "os" "time" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := *openapiclient.NewNonEmployeeRequestBody("william.smith", "William", "Smith", "william.smith@example.com", "5555555555", "jane.doe", "2c91808568c529c60168cca6f90c1313", time.Now(), time.Now()) // NonEmployeeRequestBody | Non-Employee record creation request body. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord`: %v\n", resp) + nonEmployeeRequestBody := *openapiclient.NewNonEmployeeRequestBody("william.smith", "William", "Smith", "william.smith@example.com", "5555555555", "jane.doe", "2c91808568c529c60168cca6f90c1313", time.Now(), time.Now()) // NonEmployeeRequestBody | Non-Employee record creation request body. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord`: %v\n", resp) } ``` @@ -192,25 +192,25 @@ Create Non-Employee Request package main import ( - "context" - "fmt" - "os" + "context" + "fmt" + "os" "time" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeRequestBody := *openapiclient.NewNonEmployeeRequestBody("william.smith", "William", "Smith", "william.smith@example.com", "5555555555", "jane.doe", "2c91808568c529c60168cca6f90c1313", time.Now(), time.Now()) // NonEmployeeRequestBody | Non-Employee creation request body - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeRequest`: NonEmployeeRequest - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest`: %v\n", resp) + nonEmployeeRequestBody := *openapiclient.NewNonEmployeeRequestBody("william.smith", "William", "Smith", "william.smith@example.com", "5555555555", "jane.doe", "2c91808568c529c60168cca6f90c1313", time.Now(), time.Now()) // NonEmployeeRequestBody | Non-Employee creation request body + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeRequest`: NonEmployeeRequest + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest`: %v\n", resp) } ``` @@ -259,24 +259,24 @@ Create Non-Employee Source package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - nonEmployeeSourceRequestBody := *openapiclient.NewNonEmployeeSourceRequestBody("Retail", "Source description", *openapiclient.NewNonEmployeeIdnUserRequest("2c91808570313110017040b06f344ec9")) // NonEmployeeSourceRequestBody | Non-Employee source creation request body. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeSource`: NonEmployeeSourceWithCloudExternalId - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource`: %v\n", resp) + nonEmployeeSourceRequestBody := *openapiclient.NewNonEmployeeSourceRequestBody("Retail", "Source description", *openapiclient.NewNonEmployeeIdnUserRequest("2c91808570313110017040b06f344ec9")) // NonEmployeeSourceRequestBody | Non-Employee source creation request body. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeSource`: NonEmployeeSourceWithCloudExternalId + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource`: %v\n", resp) } ``` @@ -325,25 +325,25 @@ Create a new Schema Attribute for Non-Employee Source package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "ef38f94347e94562b5bb8424a56397d8" // string | The Source id - nonEmployeeSchemaAttributeBody := *openapiclient.NewNonEmployeeSchemaAttributeBody("TEXT", "Account Name", "account.name") // NonEmployeeSchemaAttributeBody | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeSourceSchemaAttributes`: NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes`: %v\n", resp) + sourceId := "ef38f94347e94562b5bb8424a56397d8" // string | The Source id + nonEmployeeSchemaAttributeBody := *openapiclient.NewNonEmployeeSchemaAttributeBody("TEXT", "Account Name", "account.name") // NonEmployeeSchemaAttributeBody | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeSourceSchemaAttributes`: NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes`: %v\n", resp) } ``` @@ -397,22 +397,22 @@ Delete Non-Employee Record package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | Non-Employee record id (UUID) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "ef38f94347e94562b5bb8424a56397d8" // string | Non-Employee record id (UUID) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -465,22 +465,22 @@ Delete Multiple Non-Employee Records package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - deleteNonEmployeeRecordsInBulkRequest := *openapiclient.NewDeleteNonEmployeeRecordsInBulkRequest([]string{"Ids_example"}) // DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + deleteNonEmployeeRecordsInBulkRequest := *openapiclient.NewDeleteNonEmployeeRecordsInBulkRequest([]string{"Ids_example"}) // DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -529,22 +529,22 @@ Delete Non-Employee Request package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ac110005-7156-1150-8171-5b292e3e0084" // string | Non-Employee request id in the UUID format - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "ac110005-7156-1150-8171-5b292e3e0084" // string | Non-Employee request id in the UUID format + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -597,23 +597,23 @@ Delete a Schema Attribute for Non-Employee Source package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - attributeId := "ef38f94347e94562b5bb8424a56397d8" // string | The Schema Attribute Id (UUID) - sourceId := "ef38f94347e94562b5bb8424a56397d8" // string | The Source id - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + attributeId := "ef38f94347e94562b5bb8424a56397d8" // string | The Schema Attribute Id (UUID) + sourceId := "ef38f94347e94562b5bb8424a56397d8" // string | The Source id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -668,22 +668,22 @@ Delete Non-Employee Source package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "e136567de87e4d029e60b3c3c55db56d" // string | Source Id - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + sourceId := "e136567de87e4d029e60b3c3c55db56d" // string | Source Id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -736,22 +736,22 @@ Delete all custom schema attributes for Non-Employee Source package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "ef38f94347e94562b5bb8424a56397d8" // string | The Source id - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + sourceId := "ef38f94347e94562b5bb8424a56397d8" // string | The Source id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -804,22 +804,22 @@ Exports Non-Employee Records to CSV package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "e136567de87e4d029e60b3c3c55db56d" // string | Source Id (UUID) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "e136567de87e4d029e60b3c3c55db56d" // string | Source Id (UUID) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -872,22 +872,22 @@ Exports Source Schema Template package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | Source Id (UUID) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "ef38f94347e94562b5bb8424a56397d8" // string | Source Id (UUID) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -940,25 +940,25 @@ Get a non-employee approval item detail package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "e136567de87e4d029e60b3c3c55db56d" // string | Non-Employee approval item id (UUID) - includeDetail := true // bool | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeApproval`: NonEmployeeApprovalItemDetail - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval`: %v\n", resp) + id := "e136567de87e4d029e60b3c3c55db56d" // string | Non-Employee approval item id (UUID) + includeDetail := true // bool | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeApproval`: NonEmployeeApprovalItemDetail + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval`: %v\n", resp) } ``` @@ -1012,24 +1012,24 @@ Get Summary of Non-Employee Approval Requests package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := "2c91808280430dfb0180431a59440460" // string | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeApprovalSummary`: NonEmployeeApprovalSummary - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary`: %v\n", resp) + requestedFor := "2c91808280430dfb0180431a59440460" // string | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeApprovalSummary`: NonEmployeeApprovalSummary + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary`: %v\n", resp) } ``` @@ -1082,24 +1082,24 @@ Obtain the status of bulk upload on the source package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "e136567de87e4d029e60b3c3c55db56d" // string | Source ID (UUID) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeBulkUploadStatus`: NonEmployeeBulkUploadStatus - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus`: %v\n", resp) + id := "e136567de87e4d029e60b3c3c55db56d" // string | Source ID (UUID) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeBulkUploadStatus`: NonEmployeeBulkUploadStatus + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus`: %v\n", resp) } ``` @@ -1152,24 +1152,24 @@ Get a Non-Employee Record package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | Non-Employee record id (UUID) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord`: %v\n", resp) + id := "ef38f94347e94562b5bb8424a56397d8" // string | Non-Employee record id (UUID) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord`: %v\n", resp) } ``` @@ -1222,24 +1222,24 @@ Get a Non-Employee Request package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ac110005-7156-1150-8171-5b292e3e0084" // string | Non-Employee request id (UUID) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeRequest`: NonEmployeeRequest - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest`: %v\n", resp) + id := "ac110005-7156-1150-8171-5b292e3e0084" // string | Non-Employee request id (UUID) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeRequest`: NonEmployeeRequest + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest`: %v\n", resp) } ``` @@ -1292,24 +1292,24 @@ Get Summary of Non-Employee Requests package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := "2c91808280430dfb0180431a59440460" // string | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeRequestSummary`: NonEmployeeRequestSummary - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary`: %v\n", resp) + requestedFor := "2c91808280430dfb0180431a59440460" // string | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeRequestSummary`: NonEmployeeRequestSummary + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary`: %v\n", resp) } ``` @@ -1362,25 +1362,25 @@ Get Schema Attribute Non-Employee Source package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - attributeId := "ef38f94347e94562b5bb8424a56397d8" // string | The Schema Attribute Id (UUID) - sourceId := "ef38f94347e94562b5bb8424a56397d8" // string | The Source id - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute`: %v\n", resp) + attributeId := "ef38f94347e94562b5bb8424a56397d8" // string | The Schema Attribute Id (UUID) + sourceId := "ef38f94347e94562b5bb8424a56397d8" // string | The Source id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute`: %v\n", resp) } ``` @@ -1435,24 +1435,24 @@ Get a Non-Employee Source package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c91808b7c28b350017c2a2ec5790aa1" // string | Source Id - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeSource`: NonEmployeeSource - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource`: %v\n", resp) + sourceId := "2c91808b7c28b350017c2a2ec5790aa1" // string | Source Id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeSource`: NonEmployeeSource + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource`: %v\n", resp) } ``` @@ -1505,24 +1505,24 @@ List Schema Attributes Non-Employee Source package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "ef38f94347e94562b5bb8424a56397d8" // string | The Source id - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeSourceSchemaAttributes`: []NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes`: %v\n", resp) + sourceId := "ef38f94347e94562b5bb8424a56397d8" // string | The Source id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeSourceSchemaAttributes`: []NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes`: %v\n", resp) } ``` @@ -1575,25 +1575,25 @@ Imports, or Updates, Non-Employee Records package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "e136567de87e4d029e60b3c3c55db56d" // string | Source Id (UUID) - data := os.NewFile(1234, "some_file") // *os.File | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportNonEmployeeRecordsInBulk`: NonEmployeeBulkUploadJob - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk`: %v\n", resp) + id := "e136567de87e4d029e60b3c3c55db56d" // string | Source Id (UUID) + data := os.NewFile(1234, "some_file") // *os.File | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportNonEmployeeRecordsInBulk`: NonEmployeeBulkUploadJob + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk`: %v\n", resp) } ``` @@ -1647,29 +1647,29 @@ Get List of Non-Employee Approval Requests package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := "2c91808280430dfb0180431a59440460" // string | The identity for whom the request was made. *me* indicates the current user. (optional) - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - filters := "approvalStatus eq "Pending"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **approvalStatus**: *eq* (optional) - sorters := "created" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeApprovals`: []NonEmployeeApprovalItem - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals`: %v\n", resp) + requestedFor := "2c91808280430dfb0180431a59440460" // string | The identity for whom the request was made. *me* indicates the current user. (optional) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + filters := "approvalStatus eq "Pending"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **approvalStatus**: *eq* (optional) + sorters := "created" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeApprovals`: []NonEmployeeApprovalItem + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals`: %v\n", resp) } ``` @@ -1723,28 +1723,28 @@ List Non-Employee Records package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - sorters := "accountName,sourceId" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (optional) - filters := "sourceId eq "2c91808568c529c60168cca6f90c1313"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeRecords`: []NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords`: %v\n", resp) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + sorters := "accountName,sourceId" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (optional) + filters := "sourceId eq "2c91808568c529c60168cca6f90c1313"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeRecords`: []NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords`: %v\n", resp) } ``` @@ -1797,29 +1797,29 @@ List Non-Employee Requests package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := "e136567de87e4d029e60b3c3c55db56d" // string | The identity for whom the request was made. *me* indicates the current user. - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - sorters := "created,approvalStatus" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (optional) - filters := "sourceId eq "2c91808568c529c60168cca6f90c1313"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeRequests`: []NonEmployeeRequest - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests`: %v\n", resp) + requestedFor := "e136567de87e4d029e60b3c3c55db56d" // string | The identity for whom the request was made. *me* indicates the current user. + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + sorters := "created,approvalStatus" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (optional) + filters := "sourceId eq "2c91808568c529c60168cca6f90c1313"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeRequests`: []NonEmployeeRequest + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests`: %v\n", resp) } ``` @@ -1873,29 +1873,29 @@ List Non-Employee Sources package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - requestedFor := "me" // string | The identity for whom the request was made. *me* indicates the current user. - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - nonEmployeeCount := true // bool | The flag to determine whether return a non-employee count associate with source. (optional) - sorters := "name,created" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, sourceId** (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeSources`: []NonEmployeeSourceWithNECount - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources`: %v\n", resp) + requestedFor := "me" // string | The identity for whom the request was made. *me* indicates the current user. + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + nonEmployeeCount := true // bool | The flag to determine whether return a non-employee count associate with source. (optional) + sorters := "name,created" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, sourceId** (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeSources`: []NonEmployeeSourceWithNECount + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources`: %v\n", resp) } ``` @@ -1949,25 +1949,25 @@ Patch Non-Employee Record package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | Non-employee record id (UUID) - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of non-employee update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord`: %v\n", resp) + id := "ef38f94347e94562b5bb8424a56397d8" // string | Non-employee record id (UUID) + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of non-employee update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord`: %v\n", resp) } ``` @@ -2021,26 +2021,26 @@ Patch a Schema Attribute for Non-Employee Source package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - attributeId := "ef38f94347e94562b5bb8424a56397d8" // string | The Schema Attribute Id (UUID) - sourceId := "ef38f94347e94562b5bb8424a56397d8" // string | The Source id - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following properties are allowed for update ':' 'label', 'helpText', 'placeholder', 'required'. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute`: %v\n", resp) + attributeId := "ef38f94347e94562b5bb8424a56397d8" // string | The Schema Attribute Id (UUID) + sourceId := "ef38f94347e94562b5bb8424a56397d8" // string | The Source id + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following properties are allowed for update ':' 'label', 'helpText', 'placeholder', 'required'. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute`: %v\n", resp) } ``` @@ -2096,25 +2096,25 @@ Patch a Non-Employee Source package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "e136567de87e4d029e60b3c3c55db56d" // string | Source Id - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of non-employee source update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchNonEmployeeSource`: NonEmployeeSource - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource`: %v\n", resp) + sourceId := "e136567de87e4d029e60b3c3c55db56d" // string | Source Id + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of non-employee source update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNonEmployeeSource`: NonEmployeeSource + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource`: %v\n", resp) } ``` @@ -2168,25 +2168,25 @@ Reject a Non-Employee Request package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "e136567de87e4d029e60b3c3c55db56d" // string | Non-Employee approval item id (UUID) - nonEmployeeRejectApprovalDecision := *openapiclient.NewNonEmployeeRejectApprovalDecision("approved") // NonEmployeeRejectApprovalDecision | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectNonEmployeeRequest`: NonEmployeeApprovalItem - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest`: %v\n", resp) + id := "e136567de87e4d029e60b3c3c55db56d" // string | Non-Employee approval item id (UUID) + nonEmployeeRejectApprovalDecision := *openapiclient.NewNonEmployeeRejectApprovalDecision("approved") // NonEmployeeRejectApprovalDecision | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectNonEmployeeRequest`: NonEmployeeApprovalItem + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest`: %v\n", resp) } ``` @@ -2240,26 +2240,26 @@ Update Non-Employee Record package main import ( - "context" - "fmt" - "os" + "context" + "fmt" + "os" "time" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | Non-employee record id (UUID) - nonEmployeeRequestBody := *openapiclient.NewNonEmployeeRequestBody("william.smith", "William", "Smith", "william.smith@example.com", "5555555555", "jane.doe", "2c91808568c529c60168cca6f90c1313", time.Now(), time.Now()) // NonEmployeeRequestBody | Non-employee record creation request body. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord`: %v\n", resp) + id := "ef38f94347e94562b5bb8424a56397d8" // string | Non-employee record id (UUID) + nonEmployeeRequestBody := *openapiclient.NewNonEmployeeRequestBody("william.smith", "William", "Smith", "william.smith@example.com", "5555555555", "jane.doe", "2c91808568c529c60168cca6f90c1313", time.Now(), time.Now()) // NonEmployeeRequestBody | Non-employee record creation request body. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord`: %v\n", resp) } ``` diff --git a/api_v3/docs/OAuthClientsAPI.md b/api_v3/docs/OAuthClientsAPI.md index 2ec2c2999..73076d092 100644 --- a/api_v3/docs/OAuthClientsAPI.md +++ b/api_v3/docs/OAuthClientsAPI.md @@ -26,24 +26,24 @@ Create OAuth Client package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createOAuthClientRequest := *openapiclient.NewCreateOAuthClientRequest("Demo API Client", "An API client used for the authorization_code, refresh_token, and client_credentials flows", int32(750), []openapiclient.GrantType{openapiclient.GrantType("CLIENT_CREDENTIALS")}, openapiclient.AccessType("ONLINE"), true) // CreateOAuthClientRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.CreateOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateOauthClient`: CreateOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.CreateOauthClient`: %v\n", resp) + createOAuthClientRequest := *openapiclient.NewCreateOAuthClientRequest("Demo API Client", "An API client used for the authorization_code, refresh_token, and client_credentials flows", int32(750), []openapiclient.GrantType{openapiclient.GrantType("CLIENT_CREDENTIALS")}, openapiclient.AccessType("ONLINE"), true) // CreateOAuthClientRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.CreateOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateOauthClient`: CreateOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.CreateOauthClient`: %v\n", resp) } ``` @@ -92,22 +92,22 @@ Delete OAuth Client package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | The OAuth client id - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.DeleteOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "ef38f94347e94562b5bb8424a56397d8" // string | The OAuth client id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.DeleteOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -160,24 +160,24 @@ Get OAuth Client package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | The OAuth client id - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.GetOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetOauthClient`: GetOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.GetOauthClient`: %v\n", resp) + id := "ef38f94347e94562b5bb8424a56397d8" // string | The OAuth client id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.GetOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOauthClient`: GetOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.GetOauthClient`: %v\n", resp) } ``` @@ -230,24 +230,24 @@ List OAuth Clients package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - filters := "lastUsed le 2023-02-05T10:59:27.214Z" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.ListOauthClients``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListOauthClients`: []GetOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.ListOauthClients`: %v\n", resp) + filters := "lastUsed le 2023-02-05T10:59:27.214Z" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.ListOauthClients``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListOauthClients`: []GetOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.ListOauthClients`: %v\n", resp) } ``` @@ -296,25 +296,25 @@ Patch OAuth Client package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | The OAuth client id - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.PatchOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchOauthClient`: GetOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.PatchOauthClient`: %v\n", resp) + id := "ef38f94347e94562b5bb8424a56397d8" // string | The OAuth client id + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.PatchOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchOauthClient`: GetOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.PatchOauthClient`: %v\n", resp) } ``` diff --git a/api_v3/docs/PasswordConfigurationAPI.md b/api_v3/docs/PasswordConfigurationAPI.md index f393af4e5..34e105d65 100644 --- a/api_v3/docs/PasswordConfigurationAPI.md +++ b/api_v3/docs/PasswordConfigurationAPI.md @@ -24,24 +24,24 @@ Create Password Org Config package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := *openapiclient.NewPasswordOrgConfig() // PasswordOrgConfig | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.CreatePasswordOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePasswordOrgConfig`: PasswordOrgConfig - fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.CreatePasswordOrgConfig`: %v\n", resp) + passwordOrgConfig := *openapiclient.NewPasswordOrgConfig() // PasswordOrgConfig | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.CreatePasswordOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePasswordOrgConfig`: PasswordOrgConfig + fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.CreatePasswordOrgConfig`: %v\n", resp) } ``` @@ -90,23 +90,23 @@ Get Password Org Config package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.GetPasswordOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordOrgConfig`: PasswordOrgConfig - fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.GetPasswordOrgConfig`: %v\n", resp) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.GetPasswordOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordOrgConfig`: PasswordOrgConfig + fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.GetPasswordOrgConfig`: %v\n", resp) } ``` @@ -151,24 +151,24 @@ Update Password Org Config package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordOrgConfig := *openapiclient.NewPasswordOrgConfig() // PasswordOrgConfig | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.PutPasswordOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutPasswordOrgConfig`: PasswordOrgConfig - fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.PutPasswordOrgConfig`: %v\n", resp) + passwordOrgConfig := *openapiclient.NewPasswordOrgConfig() // PasswordOrgConfig | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.PutPasswordOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutPasswordOrgConfig`: PasswordOrgConfig + fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.PutPasswordOrgConfig`: %v\n", resp) } ``` diff --git a/api_v3/docs/PasswordDictionaryAPI.md b/api_v3/docs/PasswordDictionaryAPI.md index be777fc8a..ea1f6ed9a 100644 --- a/api_v3/docs/PasswordDictionaryAPI.md +++ b/api_v3/docs/PasswordDictionaryAPI.md @@ -23,23 +23,23 @@ Get Password Dictionary package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.GetPasswordDictionary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordDictionary`: string - fmt.Fprintf(os.Stdout, "Response from `PasswordDictionaryAPI.GetPasswordDictionary`: %v\n", resp) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.GetPasswordDictionary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordDictionary`: string + fmt.Fprintf(os.Stdout, "Response from `PasswordDictionaryAPI.GetPasswordDictionary`: %v\n", resp) } ``` @@ -84,22 +84,22 @@ Update Password Dictionary package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - file := os.NewFile(1234, "some_file") // *os.File | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.PutPasswordDictionary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + file := os.NewFile(1234, "some_file") // *os.File | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.PutPasswordDictionary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` diff --git a/api_v3/docs/PasswordManagementAPI.md b/api_v3/docs/PasswordManagementAPI.md index fb5646fde..88c454e76 100644 --- a/api_v3/docs/PasswordManagementAPI.md +++ b/api_v3/docs/PasswordManagementAPI.md @@ -24,24 +24,24 @@ Get Password Change Request Status package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "089899f13a8f4da7824996191587bab9" // string | Password change request ID - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.GetPasswordChangeStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordChangeStatus`: PasswordStatus - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.GetPasswordChangeStatus`: %v\n", resp) + id := "089899f13a8f4da7824996191587bab9" // string | Password change request ID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.GetPasswordChangeStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordChangeStatus`: PasswordStatus + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.GetPasswordChangeStatus`: %v\n", resp) } ``` @@ -94,24 +94,24 @@ Query Password Info package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordInfoQueryDTO := *openapiclient.NewPasswordInfoQueryDTO() // PasswordInfoQueryDTO | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.QueryPasswordInfo``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `QueryPasswordInfo`: PasswordInfo - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.QueryPasswordInfo`: %v\n", resp) + passwordInfoQueryDTO := *openapiclient.NewPasswordInfoQueryDTO() // PasswordInfoQueryDTO | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.QueryPasswordInfo``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `QueryPasswordInfo`: PasswordInfo + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.QueryPasswordInfo`: %v\n", resp) } ``` @@ -160,24 +160,24 @@ Set Identity's Password package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordChangeRequest := *openapiclient.NewPasswordChangeRequest() // PasswordChangeRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.SetPassword``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetPassword`: PasswordChangeResponse - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.SetPassword`: %v\n", resp) + passwordChangeRequest := *openapiclient.NewPasswordChangeRequest() // PasswordChangeRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.SetPassword``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetPassword`: PasswordChangeResponse + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.SetPassword`: %v\n", resp) } ``` diff --git a/api_v3/docs/PasswordPoliciesAPI.md b/api_v3/docs/PasswordPoliciesAPI.md index 807264ad6..159620fa5 100644 --- a/api_v3/docs/PasswordPoliciesAPI.md +++ b/api_v3/docs/PasswordPoliciesAPI.md @@ -26,24 +26,24 @@ Create Password Policy package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordPolicyV3Dto := *openapiclient.NewPasswordPolicyV3Dto() // PasswordPolicyV3Dto | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.CreatePasswordPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePasswordPolicy`: PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.CreatePasswordPolicy`: %v\n", resp) + passwordPolicyV3Dto := *openapiclient.NewPasswordPolicyV3Dto() // PasswordPolicyV3Dto | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.CreatePasswordPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePasswordPolicy`: PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.CreatePasswordPolicy`: %v\n", resp) } ``` @@ -92,22 +92,22 @@ Delete Password Policy by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ff808081838d9e9d01838da6a03e0002" // string | The ID of password policy to delete. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.DeletePasswordPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "ff808081838d9e9d01838da6a03e0002" // string | The ID of password policy to delete. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.DeletePasswordPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -160,24 +160,24 @@ Get Password Policy by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ff808081838d9e9d01838da6a03e0005" // string | The ID of password policy to retrieve. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.GetPasswordPolicyById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordPolicyById`: PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.GetPasswordPolicyById`: %v\n", resp) + id := "ff808081838d9e9d01838da6a03e0005" // string | The ID of password policy to retrieve. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.GetPasswordPolicyById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordPolicyById`: PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.GetPasswordPolicyById`: %v\n", resp) } ``` @@ -230,26 +230,26 @@ List Password Policies package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.ListPasswordPolicies``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPasswordPolicies`: []PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.ListPasswordPolicies`: %v\n", resp) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.ListPasswordPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListPasswordPolicies`: []PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.ListPasswordPolicies`: %v\n", resp) } ``` @@ -300,25 +300,25 @@ Update Password Policy by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ff808081838d9e9d01838da6a03e0007" // string | The ID of password policy to update. - passwordPolicyV3Dto := *openapiclient.NewPasswordPolicyV3Dto() // PasswordPolicyV3Dto | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.SetPasswordPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetPasswordPolicy`: PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.SetPasswordPolicy`: %v\n", resp) + id := "ff808081838d9e9d01838da6a03e0007" // string | The ID of password policy to update. + passwordPolicyV3Dto := *openapiclient.NewPasswordPolicyV3Dto() // PasswordPolicyV3Dto | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.SetPasswordPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetPasswordPolicy`: PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.SetPasswordPolicy`: %v\n", resp) } ``` diff --git a/api_v3/docs/PasswordSyncGroupsAPI.md b/api_v3/docs/PasswordSyncGroupsAPI.md index 37d3b50cc..7bd42de33 100644 --- a/api_v3/docs/PasswordSyncGroupsAPI.md +++ b/api_v3/docs/PasswordSyncGroupsAPI.md @@ -26,24 +26,24 @@ Create Password Sync Group package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - passwordSyncGroup := *openapiclient.NewPasswordSyncGroup() // PasswordSyncGroup | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.CreatePasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePasswordSyncGroup`: PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.CreatePasswordSyncGroup`: %v\n", resp) + passwordSyncGroup := *openapiclient.NewPasswordSyncGroup() // PasswordSyncGroup | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.CreatePasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePasswordSyncGroup`: PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.CreatePasswordSyncGroup`: %v\n", resp) } ``` @@ -92,22 +92,22 @@ Delete Password Sync Group by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "6881f631-3bd5-4213-9c75-8e05cc3e35dd" // string | The ID of password sync group to delete. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.DeletePasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "6881f631-3bd5-4213-9c75-8e05cc3e35dd" // string | The ID of password sync group to delete. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.DeletePasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -160,24 +160,24 @@ Get Password Sync Group by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "6881f631-3bd5-4213-9c75-8e05cc3e35dd" // string | The ID of password sync group to retrieve. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordSyncGroup`: PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroup`: %v\n", resp) + id := "6881f631-3bd5-4213-9c75-8e05cc3e35dd" // string | The ID of password sync group to retrieve. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordSyncGroup`: PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroup`: %v\n", resp) } ``` @@ -230,26 +230,26 @@ Get Password Sync Group List package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroups``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordSyncGroups`: []PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroups`: %v\n", resp) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordSyncGroups`: []PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroups`: %v\n", resp) } ``` @@ -300,25 +300,25 @@ Update Password Sync Group by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "6881f631-3bd5-4213-9c75-8e05cc3e35dd" // string | The ID of password sync group to update. - passwordSyncGroup := *openapiclient.NewPasswordSyncGroup() // PasswordSyncGroup | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdatePasswordSyncGroup`: PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup`: %v\n", resp) + id := "6881f631-3bd5-4213-9c75-8e05cc3e35dd" // string | The ID of password sync group to update. + passwordSyncGroup := *openapiclient.NewPasswordSyncGroup() // PasswordSyncGroup | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePasswordSyncGroup`: PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup`: %v\n", resp) } ``` diff --git a/api_v3/docs/PersonalAccessTokensAPI.md b/api_v3/docs/PersonalAccessTokensAPI.md index b0d61848b..3584adb94 100644 --- a/api_v3/docs/PersonalAccessTokensAPI.md +++ b/api_v3/docs/PersonalAccessTokensAPI.md @@ -25,24 +25,24 @@ Create Personal Access Token package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createPersonalAccessTokenRequest := *openapiclient.NewCreatePersonalAccessTokenRequest("NodeJS Integration") // CreatePersonalAccessTokenRequest | Name and scope of personal access token. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.CreatePersonalAccessToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePersonalAccessToken`: CreatePersonalAccessTokenResponse - fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.CreatePersonalAccessToken`: %v\n", resp) + createPersonalAccessTokenRequest := *openapiclient.NewCreatePersonalAccessTokenRequest("NodeJS Integration") // CreatePersonalAccessTokenRequest | Name and scope of personal access token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.CreatePersonalAccessToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePersonalAccessToken`: CreatePersonalAccessTokenResponse + fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.CreatePersonalAccessToken`: %v\n", resp) } ``` @@ -91,22 +91,22 @@ Delete Personal Access Token package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | The personal access token id - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.DeletePersonalAccessToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "ef38f94347e94562b5bb8424a56397d8" // string | The personal access token id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.DeletePersonalAccessToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -159,25 +159,25 @@ List Personal Access Tokens package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := "2c9180867b50d088017b554662fb281e" // string | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) - filters := "lastUsed le 2023-02-05T10:59:27.214Z" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.ListPersonalAccessTokens``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPersonalAccessTokens`: []GetPersonalAccessTokenResponse - fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.ListPersonalAccessTokens`: %v\n", resp) + ownerId := "2c9180867b50d088017b554662fb281e" // string | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) + filters := "lastUsed le 2023-02-05T10:59:27.214Z" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.ListPersonalAccessTokens``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListPersonalAccessTokens`: []GetPersonalAccessTokenResponse + fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.ListPersonalAccessTokens`: %v\n", resp) } ``` @@ -227,25 +227,25 @@ Patch Personal Access Token package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | The Personal Access Token id - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.PatchPersonalAccessToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchPersonalAccessToken`: GetPersonalAccessTokenResponse - fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.PatchPersonalAccessToken`: %v\n", resp) + id := "ef38f94347e94562b5bb8424a56397d8" // string | The Personal Access Token id + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.PatchPersonalAccessToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchPersonalAccessToken`: GetPersonalAccessTokenResponse + fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.PatchPersonalAccessToken`: %v\n", resp) } ``` diff --git a/api_v3/docs/PublicIdentitiesAPI.md b/api_v3/docs/PublicIdentitiesAPI.md index 51ca8247a..6abed2f1c 100644 --- a/api_v3/docs/PublicIdentitiesAPI.md +++ b/api_v3/docs/PublicIdentitiesAPI.md @@ -20,29 +20,29 @@ Get a list of public identities package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - filters := "firstname eq "John"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* (optional) - addCoreFilters := false // bool | If *true*, only get identities which satisfy ALL the following criteria in addition to any criteria specified by *filters*: - Should be either correlated or protected. - Should not be \"spadmin\" or \"cloudadmin\". - uid should not be null. - lastname should not be null. - email should not be null. (optional) (default to false) - sorters := "name" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).AddCoreFilters(addCoreFilters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesAPI.GetPublicIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPublicIdentities`: []PublicIdentity - fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesAPI.GetPublicIdentities`: %v\n", resp) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + filters := "firstname eq "John"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **alias**: *eq, sw* **email**: *eq, sw* **firstname**: *eq, sw* **lastname**: *eq, sw* (optional) + addCoreFilters := false // bool | If *true*, only get identities which satisfy ALL the following criteria in addition to any criteria specified by *filters*: - Should be either correlated or protected. - Should not be \"spadmin\" or \"cloudadmin\". - uid should not be null. - lastname should not be null. - email should not be null. (optional) (default to false) + sorters := "name" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).AddCoreFilters(addCoreFilters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesAPI.GetPublicIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPublicIdentities`: []PublicIdentity + fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesAPI.GetPublicIdentities`: %v\n", resp) } ``` diff --git a/api_v3/docs/PublicIdentitiesConfigAPI.md b/api_v3/docs/PublicIdentitiesConfigAPI.md index c5bdadff2..e316d6635 100644 --- a/api_v3/docs/PublicIdentitiesConfigAPI.md +++ b/api_v3/docs/PublicIdentitiesConfigAPI.md @@ -23,23 +23,23 @@ Get the Public Identities Configuration package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.GetPublicIdentityConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPublicIdentityConfig`: PublicIdentityConfig - fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.GetPublicIdentityConfig`: %v\n", resp) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.GetPublicIdentityConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPublicIdentityConfig`: PublicIdentityConfig + fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.GetPublicIdentityConfig`: %v\n", resp) } ``` @@ -84,24 +84,24 @@ Update the Public Identities Configuration package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - publicIdentityConfig := *openapiclient.NewPublicIdentityConfig() // PublicIdentityConfig | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdatePublicIdentityConfig`: PublicIdentityConfig - fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig`: %v\n", resp) + publicIdentityConfig := *openapiclient.NewPublicIdentityConfig() // PublicIdentityConfig | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePublicIdentityConfig`: PublicIdentityConfig + fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig`: %v\n", resp) } ``` diff --git a/api_v3/docs/ReportsDataExtractionAPI.md b/api_v3/docs/ReportsDataExtractionAPI.md index c859d05f4..c36317b0e 100644 --- a/api_v3/docs/ReportsDataExtractionAPI.md +++ b/api_v3/docs/ReportsDataExtractionAPI.md @@ -25,22 +25,22 @@ Cancel Report package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "a1ed223247144cc29d23c632624b4767" // string | ID of the running Report to cancel - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.CancelReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "a1ed223247144cc29d23c632624b4767" // string | ID of the running Report to cancel + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.CancelReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -93,27 +93,27 @@ Get Report File package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - taskResultId := "ef38f94347e94562b5bb8424a56397d8" // string | Unique identifier of the task result which handled report - fileFormat := "csv" // string | Output format of the requested report file - name := "Identities Details Report" // string | preferred Report file name, by default will be used report name from task result. (optional) - auditable := true // bool | Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId. (optional) (default to false) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Name(name).Auditable(auditable).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.GetReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetReport`: *os.File - fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.GetReport`: %v\n", resp) + taskResultId := "ef38f94347e94562b5bb8424a56397d8" // string | Unique identifier of the task result which handled report + fileFormat := "csv" // string | Output format of the requested report file + name := "Identities Details Report" // string | preferred Report file name, by default will be used report name from task result. (optional) + auditable := true // bool | Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId. (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Name(name).Auditable(auditable).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.GetReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReport`: *os.File + fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.GetReport`: %v\n", resp) } ``` @@ -169,25 +169,25 @@ Get Report Result package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - taskResultId := "ef38f94347e94562b5bb8424a56397d8" // string | Unique identifier of the task result which handled report - completed := true // bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to false) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Completed(completed).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.GetReportResult``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetReportResult`: ReportResults - fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.GetReportResult`: %v\n", resp) + taskResultId := "ef38f94347e94562b5bb8424a56397d8" // string | Unique identifier of the task result which handled report + completed := true // bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Completed(completed).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.GetReportResult``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReportResult`: ReportResults + fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.GetReportResult`: %v\n", resp) } ``` @@ -241,24 +241,24 @@ Run Report package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reportDetails := *openapiclient.NewReportDetails() // ReportDetails | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.StartReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartReport`: TaskResultDetails - fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.StartReport`: %v\n", resp) + reportDetails := *openapiclient.NewReportDetails() // ReportDetails | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.StartReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartReport`: TaskResultDetails + fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.StartReport`: %v\n", resp) } ``` diff --git a/api_v3/docs/RequestableObjectsAPI.md b/api_v3/docs/RequestableObjectsAPI.md index 3859e57a2..60e0d5e7a 100644 --- a/api_v3/docs/RequestableObjectsAPI.md +++ b/api_v3/docs/RequestableObjectsAPI.md @@ -22,32 +22,32 @@ Requestable Objects List package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityId := "e7eab60924f64aa284175b9fa3309599" // string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) - types := []openapiclient.RequestableObjectType{openapiclient.RequestableObjectType("ACCESS_PROFILE")} // []RequestableObjectType | Filters the results to the specified type/types, where each type is one of ROLE or ACCESS_PROFILE. If absent, all types are returned. Support for additional types may be added in the future without notice. (optional) - term := "Finance Role" // string | It allows searching requestable access items with a partial match on the name or description. If term is provided, then the *filter* query parameter will be ignored. (optional) - statuses := []openapiclient.RequestableObjectRequestStatus{openapiclient.RequestableObjectRequestStatus("AVAILABLE")} // []RequestableObjectRequestStatus | Filters the result to the specified status/statuses, where each status is one of AVAILABLE, ASSIGNED, or PENDING. It is an error to specify this parameter without also specifying an *identity-id* parameter. Additional statuses may be added in the future without notice. (optional) - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - filters := "name sw "bob"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* (optional) - sorters := "name" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RequestableObjectsAPI.ListRequestableObjects(context.Background()).IdentityId(identityId).Types(types).Term(term).Statuses(statuses).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RequestableObjectsAPI.ListRequestableObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListRequestableObjects`: []RequestableObject - fmt.Fprintf(os.Stdout, "Response from `RequestableObjectsAPI.ListRequestableObjects`: %v\n", resp) + identityId := "e7eab60924f64aa284175b9fa3309599" // string | If present, the value returns only requestable objects for the specified identity. * Admin users can call this with any identity ID value. * Non-admin users can only specify *me* or pass their own identity ID value. * If absent, returns a list of all requestable objects for the tenant. Only admin users can make such a call. In this case, the available, pending, assigned accesses will not be annotated in the result. (optional) + types := []openapiclient.RequestableObjectType{openapiclient.RequestableObjectType("ACCESS_PROFILE")} // []RequestableObjectType | Filters the results to the specified type/types, where each type is one of ROLE or ACCESS_PROFILE. If absent, all types are returned. Support for additional types may be added in the future without notice. (optional) + term := "Finance Role" // string | It allows searching requestable access items with a partial match on the name or description. If term is provided, then the *filter* query parameter will be ignored. (optional) + statuses := []openapiclient.RequestableObjectRequestStatus{openapiclient.RequestableObjectRequestStatus("AVAILABLE")} // []RequestableObjectRequestStatus | Filters the result to the specified status/statuses, where each status is one of AVAILABLE, ASSIGNED, or PENDING. It is an error to specify this parameter without also specifying an *identity-id* parameter. Additional statuses may be added in the future without notice. (optional) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + filters := "name sw "bob"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* (optional) + sorters := "name" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RequestableObjectsAPI.ListRequestableObjects(context.Background()).IdentityId(identityId).Types(types).Term(term).Statuses(statuses).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RequestableObjectsAPI.ListRequestableObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListRequestableObjects`: []RequestableObject + fmt.Fprintf(os.Stdout, "Response from `RequestableObjectsAPI.ListRequestableObjects`: %v\n", resp) } ``` diff --git a/api_v3/docs/RolesAPI.md b/api_v3/docs/RolesAPI.md index 4fc8f0bc2..e657ce307 100644 --- a/api_v3/docs/RolesAPI.md +++ b/api_v3/docs/RolesAPI.md @@ -28,24 +28,24 @@ Create a Role package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - role := *openapiclient.NewRole("Role 2567", *openapiclient.NewOwnerReference()) // Role | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RolesAPI.CreateRole(context.Background()).Role(role).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.CreateRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateRole`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.CreateRole`: %v\n", resp) + role := *openapiclient.NewRole("Role 2567", *openapiclient.NewOwnerReference()) // Role | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.CreateRole(context.Background()).Role(role).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.CreateRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateRole`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.CreateRole`: %v\n", resp) } ``` @@ -94,24 +94,24 @@ Delete Role(s) package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - roleBulkDeleteRequest := *openapiclient.NewRoleBulkDeleteRequest([]string{"RoleIds_example"}) // RoleBulkDeleteRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteBulkRoles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteBulkRoles`: TaskResultDto - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.DeleteBulkRoles`: %v\n", resp) + roleBulkDeleteRequest := *openapiclient.NewRoleBulkDeleteRequest([]string{"RoleIds_example"}) // RoleBulkDeleteRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteBulkRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBulkRoles`: TaskResultDto + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.DeleteBulkRoles`: %v\n", resp) } ``` @@ -160,22 +160,22 @@ Delete a Role package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c91808a7813090a017814121e121518" // string | ID of the Role - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.RolesAPI.DeleteRole(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "2c91808a7813090a017814121e121518" // string | ID of the Role + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RolesAPI.DeleteRole(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -228,24 +228,24 @@ Get a Role package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c91808a7813090a017814121e121518" // string | ID of the Role - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RolesAPI.GetRole(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRole`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRole`: %v\n", resp) + id := "2c91808a7813090a017814121e121518" // string | ID of the Role + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.GetRole(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRole`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRole`: %v\n", resp) } ``` @@ -296,29 +296,29 @@ List Identities assigned a Role package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c91808a7813090a017814121e121518" // string | ID of the Role for which the assigned Identities are to be listed - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - filters := "name sw Joe" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (optional) - sorters := "aliasName,name" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, aliasName, email** (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRoleAssignedIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleAssignedIdentities`: []RoleIdentity - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRoleAssignedIdentities`: %v\n", resp) + id := "2c91808a7813090a017814121e121518" // string | ID of the Role for which the assigned Identities are to be listed + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + filters := "name sw Joe" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (optional) + sorters := "aliasName,name" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, aliasName, email** (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRoleAssignedIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleAssignedIdentities`: []RoleIdentity + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRoleAssignedIdentities`: %v\n", resp) } ``` @@ -376,31 +376,31 @@ List Roles package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - forSubadmin := "5168015d32f890ca15812c9180835d2e" // string | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) - limit := int32(50) // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - filters := "requestable eq false" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* (optional) - sorters := "name,-modified" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) - forSegmentIds := "0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d" // string | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) - includeUnsegmented := false // bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to true) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RolesAPI.ListRoles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.ListRoles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListRoles`: []Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.ListRoles`: %v\n", resp) + forSubadmin := "5168015d32f890ca15812c9180835d2e" // string | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) + limit := int32(50) // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + filters := "requestable eq false" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* (optional) + sorters := "name,-modified" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) + forSegmentIds := "0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d" // string | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) + includeUnsegmented := false // bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to true) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.ListRoles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.ListRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListRoles`: []Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.ListRoles`: %v\n", resp) } ``` @@ -456,25 +456,25 @@ Patch a specified Role package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c91808a7813090a017814121e121518" // string | ID of the Role to patch - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.PatchRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchRole`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.PatchRole`: %v\n", resp) + id := "2c91808a7813090a017814121e121518" // string | ID of the Role to patch + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.PatchRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchRole`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.PatchRole`: %v\n", resp) } ``` diff --git a/api_v3/docs/SODPoliciesAPI.md b/api_v3/docs/SODPoliciesAPI.md index 1dede9203..636173a62 100644 --- a/api_v3/docs/SODPoliciesAPI.md +++ b/api_v3/docs/SODPoliciesAPI.md @@ -38,24 +38,24 @@ Create SOD policy package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sodPolicy := *openapiclient.NewSodPolicy() // SodPolicy | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.CreateSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.CreateSodPolicy`: %v\n", resp) + sodPolicy := *openapiclient.NewSodPolicy() // SodPolicy | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.CreateSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.CreateSodPolicy`: %v\n", resp) } ``` @@ -104,23 +104,23 @@ Delete SOD policy by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The ID of the SOD Policy to delete. - logical := true // bool | Indicates whether this is a soft delete (logical true) or a hard delete. Soft delete marks the policy as deleted and just save it with this status. It could be fully deleted or recovered further. Hard delete vise versa permanently delete SOD request during this call. (optional) (default to true) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The ID of the SOD Policy to delete. + logical := true // bool | Indicates whether this is a soft delete (logical true) or a hard delete. Soft delete marks the policy as deleted and just save it with this status. It could be fully deleted or recovered further. Hard delete vise versa permanently delete SOD request during this call. (optional) (default to true) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -174,22 +174,22 @@ Delete SOD policy schedule package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The ID of the SOD policy the schedule must be deleted for. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicySchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The ID of the SOD policy the schedule must be deleted for. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicySchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -242,25 +242,25 @@ Download custom violation report package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reportResultId := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the report reference to download. - fileName := "custom-name" // string | Custom Name for the file. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetCustomViolationReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCustomViolationReport`: *os.File - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetCustomViolationReport`: %v\n", resp) + reportResultId := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the report reference to download. + fileName := "custom-name" // string | Custom Name for the file. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetCustomViolationReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCustomViolationReport`: *os.File + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetCustomViolationReport`: %v\n", resp) } ``` @@ -315,24 +315,24 @@ Download violation report package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reportResultId := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the report reference to download. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetDefaultViolationReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDefaultViolationReport`: *os.File - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetDefaultViolationReport`: %v\n", resp) + reportResultId := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the report reference to download. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetDefaultViolationReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDefaultViolationReport`: *os.File + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetDefaultViolationReport`: %v\n", resp) } ``` @@ -385,23 +385,23 @@ Get multi-report run task status package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodAllReportRunStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodAllReportRunStatus`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodAllReportRunStatus`: %v\n", resp) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodAllReportRunStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodAllReportRunStatus`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodAllReportRunStatus`: %v\n", resp) } ``` @@ -446,24 +446,24 @@ Get SOD policy by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The ID of the SOD Policy to retrieve. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicy`: %v\n", resp) + id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The ID of the SOD Policy to retrieve. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicy`: %v\n", resp) } ``` @@ -516,24 +516,24 @@ Get SOD policy schedule package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The ID of the SOD policy schedule to retrieve. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicySchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodPolicySchedule`: SodPolicySchedule - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicySchedule`: %v\n", resp) + id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The ID of the SOD policy schedule to retrieve. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicySchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodPolicySchedule`: SodPolicySchedule + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicySchedule`: %v\n", resp) } ``` @@ -586,24 +586,24 @@ Get violation report run status package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - reportResultId := "2e8d8180-24bc-4d21-91c6-7affdb473b0d" // string | The ID of the report reference to retrieve. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportRunStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodViolationReportRunStatus`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportRunStatus`: %v\n", resp) + reportResultId := "2e8d8180-24bc-4d21-91c6-7affdb473b0d" // string | The ID of the report reference to retrieve. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportRunStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodViolationReportRunStatus`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportRunStatus`: %v\n", resp) } ``` @@ -656,24 +656,24 @@ Get SOD violation report status package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The ID of the violation report to retrieve status for. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodViolationReportStatus`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportStatus`: %v\n", resp) + id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The ID of the violation report to retrieve status for. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodViolationReportStatus`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportStatus`: %v\n", resp) } ``` @@ -726,28 +726,28 @@ List SOD policies package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - filters := "id eq "bc693f07e7b645539626c25954c58554"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in* **state**: *eq, in* (optional) - sorters := "id,name" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, description** (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.ListSodPolicies``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSodPolicies`: []SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.ListSodPolicies`: %v\n", resp) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + filters := "id eq "bc693f07e7b645539626c25954c58554"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in* **state**: *eq, in* (optional) + sorters := "id,name" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, description** (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.ListSodPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSodPolicies`: []SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.ListSodPolicies`: %v\n", resp) } ``` @@ -800,25 +800,25 @@ Patch SOD policy by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c918083-5d19-1a86-015d-28455b4a2329" // string | The ID of the SOD policy being modified. - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of SOD Policy update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PatchSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PatchSodPolicy`: %v\n", resp) + id := "2c918083-5d19-1a86-015d-28455b4a2329" // string | The ID of the SOD policy being modified. + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of SOD Policy update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PatchSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PatchSodPolicy`: %v\n", resp) } ``` @@ -872,25 +872,25 @@ Update SOD Policy schedule package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The ID of the SOD policy to update its schedule. - sodPolicySchedule := *openapiclient.NewSodPolicySchedule() // SodPolicySchedule | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutPolicySchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutPolicySchedule`: SodPolicySchedule - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutPolicySchedule`: %v\n", resp) + id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The ID of the SOD policy to update its schedule. + sodPolicySchedule := *openapiclient.NewSodPolicySchedule() // SodPolicySchedule | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutPolicySchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutPolicySchedule`: SodPolicySchedule + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutPolicySchedule`: %v\n", resp) } ``` @@ -944,25 +944,25 @@ Update SOD policy by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The ID of the SOD policy to update. - sodPolicy := *openapiclient.NewSodPolicy() // SodPolicy | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutSodPolicy`: %v\n", resp) + id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The ID of the SOD policy to update. + sodPolicy := *openapiclient.NewSodPolicy() // SodPolicy | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutSodPolicy`: %v\n", resp) } ``` @@ -1016,24 +1016,24 @@ Evaluate one policy by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The SOD policy ID to run. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartEvaluateSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartEvaluateSodPolicy`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartEvaluateSodPolicy`: %v\n", resp) + id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The SOD policy ID to run. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartEvaluateSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartEvaluateSodPolicy`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartEvaluateSodPolicy`: %v\n", resp) } ``` @@ -1086,24 +1086,24 @@ Runs all policies for org package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - multiPolicyRequest := *openapiclient.NewMultiPolicyRequest() // MultiPolicyRequest | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodAllPoliciesForOrg``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartSodAllPoliciesForOrg`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodAllPoliciesForOrg`: %v\n", resp) + multiPolicyRequest := *openapiclient.NewMultiPolicyRequest() // MultiPolicyRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodAllPoliciesForOrg``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartSodAllPoliciesForOrg`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodAllPoliciesForOrg`: %v\n", resp) } ``` @@ -1152,24 +1152,24 @@ Runs SOD policy violation report package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The SOD policy ID to run. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartSodPolicy`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodPolicy`: %v\n", resp) + id := "ef38f943-47e9-4562-b5bb-8424a56397d8" // string | The SOD policy ID to run. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartSodPolicy`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodPolicy`: %v\n", resp) } ``` diff --git a/api_v3/docs/SODViolationsAPI.md b/api_v3/docs/SODViolationsAPI.md index dd62895f0..e0423114c 100644 --- a/api_v3/docs/SODViolationsAPI.md +++ b/api_v3/docs/SODViolationsAPI.md @@ -23,24 +23,24 @@ Predict SOD violations for identity. package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityWithNewAccess := *openapiclient.NewIdentityWithNewAccess("2c91808568c529c60168cca6f90c1313", []openapiclient.IdentityWithNewAccessAccessRefsInner{*openapiclient.NewIdentityWithNewAccessAccessRefsInner()}) // IdentityWithNewAccess | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartPredictSodViolations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartPredictSodViolations`: ViolationPrediction - fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartPredictSodViolations`: %v\n", resp) + identityWithNewAccess := *openapiclient.NewIdentityWithNewAccess("2c91808568c529c60168cca6f90c1313", []openapiclient.IdentityWithNewAccessAccessRefsInner{*openapiclient.NewIdentityWithNewAccessAccessRefsInner()}) // IdentityWithNewAccess | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartPredictSodViolations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartPredictSodViolations`: ViolationPrediction + fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartPredictSodViolations`: %v\n", resp) } ``` @@ -89,24 +89,24 @@ Check SOD violations package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - identityWithNewAccess1 := *openapiclient.NewIdentityWithNewAccess1("2c91809050db617d0150e0bf3215385e", []openapiclient.EntitlementRef1{*openapiclient.NewEntitlementRef1()}) // IdentityWithNewAccess1 | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartViolationCheck``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartViolationCheck`: SodViolationCheck - fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartViolationCheck`: %v\n", resp) + identityWithNewAccess1 := *openapiclient.NewIdentityWithNewAccess1("2c91809050db617d0150e0bf3215385e", []openapiclient.EntitlementRef1{*openapiclient.NewEntitlementRef1()}) // IdentityWithNewAccess1 | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartViolationCheck``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartViolationCheck`: SodViolationCheck + fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartViolationCheck`: %v\n", resp) } ``` diff --git a/api_v3/docs/SavedSearchAPI.md b/api_v3/docs/SavedSearchAPI.md index 92dcd63f8..b55d6ec59 100644 --- a/api_v3/docs/SavedSearchAPI.md +++ b/api_v3/docs/SavedSearchAPI.md @@ -27,24 +27,24 @@ Create a saved search package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createSavedSearchRequest := *openapiclient.NewCreateSavedSearchRequest([]openapiclient.Index{openapiclient.Index("accessprofiles")}, "@accounts(disabled:true)") // CreateSavedSearchRequest | The saved search to persist. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.CreateSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSavedSearch`: SavedSearch - fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.CreateSavedSearch`: %v\n", resp) + createSavedSearchRequest := *openapiclient.NewCreateSavedSearchRequest([]openapiclient.Index{openapiclient.Index("accessprofiles")}, "@accounts(disabled:true)") // CreateSavedSearchRequest | The saved search to persist. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.CreateSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSavedSearch`: SavedSearch + fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.CreateSavedSearch`: %v\n", resp) } ``` @@ -93,22 +93,22 @@ Delete document by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.DeleteSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.DeleteSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -161,23 +161,23 @@ Execute a saved search by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. - searchArguments := *openapiclient.NewSearchArguments() // SearchArguments | When saved search execution is triggered by a scheduled search, *scheduleId* will specify the ID of the triggering scheduled search. If *scheduleId* is not specified (when execution is triggered by a UI test), the *owner* and *recipients* arguments must be provided. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.ExecuteSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. + searchArguments := *openapiclient.NewSearchArguments() // SearchArguments | When saved search execution is triggered by a scheduled search, *scheduleId* will specify the ID of the triggering scheduled search. If *scheduleId* is not specified (when execution is triggered by a UI test), the *owner* and *recipients* arguments must be provided. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.ExecuteSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -231,24 +231,24 @@ Return saved search by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.GetSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSavedSearch`: SavedSearch - fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.GetSavedSearch`: %v\n", resp) + id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.GetSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSavedSearch`: SavedSearch + fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.GetSavedSearch`: %v\n", resp) } ``` @@ -301,27 +301,27 @@ A list of Saved Searches package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - filters := "owner.id eq "7a724640-0c17-4ce9-a8c3-4a89738459c8"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **owner.id**: *eq* (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SavedSearchAPI.ListSavedSearches(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.ListSavedSearches``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSavedSearches`: []SavedSearch - fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.ListSavedSearches`: %v\n", resp) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + filters := "owner.id eq "7a724640-0c17-4ce9-a8c3-4a89738459c8"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **owner.id**: *eq* (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SavedSearchAPI.ListSavedSearches(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.ListSavedSearches``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSavedSearches`: []SavedSearch + fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.ListSavedSearches`: %v\n", resp) } ``` @@ -373,25 +373,25 @@ Updates an existing saved search package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. - savedSearch := *openapiclient.NewSavedSearch([]openapiclient.Index{openapiclient.Index("accessprofiles")}, "@accounts(disabled:true)") // SavedSearch | The saved search to persist. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.PutSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSavedSearch`: SavedSearch - fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.PutSavedSearch`: %v\n", resp) + id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. + savedSearch := *openapiclient.NewSavedSearch([]openapiclient.Index{openapiclient.Index("accessprofiles")}, "@accounts(disabled:true)") // SavedSearch | The saved search to persist. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.PutSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSavedSearch`: SavedSearch + fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.PutSavedSearch`: %v\n", resp) } ``` diff --git a/api_v3/docs/ScheduledSearch.md b/api_v3/docs/ScheduledSearch.md index 7356d22ea..dc2b80148 100644 --- a/api_v3/docs/ScheduledSearch.md +++ b/api_v3/docs/ScheduledSearch.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Name** | Pointer to **NullableString** | The name of the scheduled search. | [optional] **Description** | Pointer to **NullableString** | The description of the scheduled search. | [optional] **SavedSearchId** | **string** | The ID of the saved search that will be executed. | -**Created** | Pointer to **NullableTime** | A date-time in ISO-8601 format | [optional] [readonly] -**Modified** | Pointer to **NullableTime** | A date-time in ISO-8601 format | [optional] [readonly] +**Created** | Pointer to **NullableTime** | The date the scheduled search was initially created. | [optional] [readonly] +**Modified** | Pointer to **NullableTime** | The last date the scheduled search was modified. | [optional] [readonly] **Schedule** | [**Schedule1**](Schedule1.md) | | **Recipients** | [**[]SearchScheduleRecipientsInner**](SearchScheduleRecipientsInner.md) | A list of identities that should receive the scheduled search report via email. | **Enabled** | Pointer to **bool** | Indicates if the scheduled search is enabled. | [optional] [default to false] diff --git a/api_v3/docs/ScheduledSearchAPI.md b/api_v3/docs/ScheduledSearchAPI.md index b7ff05449..141c11aa9 100644 --- a/api_v3/docs/ScheduledSearchAPI.md +++ b/api_v3/docs/ScheduledSearchAPI.md @@ -27,24 +27,24 @@ Create a new scheduled search package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createScheduledSearchRequest := *openapiclient.NewCreateScheduledSearchRequest("554f1511-f0a1-4744-ab14-599514d3e57c", *openapiclient.NewSchedule1(openapiclient.ScheduleType("DAILY"), *openapiclient.NewSchedule1Hours(openapiclient.SelectorType("LIST"), []string{"Values_example"})), []openapiclient.SearchScheduleRecipientsInner{*openapiclient.NewSearchScheduleRecipientsInner("IDENTITY", "2c9180867624cbd7017642d8c8c81f67")}) // CreateScheduledSearchRequest | The scheduled search to persist. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.CreateScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateScheduledSearch`: ScheduledSearch - fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.CreateScheduledSearch`: %v\n", resp) + createScheduledSearchRequest := *openapiclient.NewCreateScheduledSearchRequest("554f1511-f0a1-4744-ab14-599514d3e57c", *openapiclient.NewSchedule1(openapiclient.ScheduleType("DAILY"), *openapiclient.NewSchedule1Hours(openapiclient.SelectorType("LIST"), []string{"Values_example"})), []openapiclient.SearchScheduleRecipientsInner{*openapiclient.NewSearchScheduleRecipientsInner("IDENTITY", "2c9180867624cbd7017642d8c8c81f67")}) // CreateScheduledSearchRequest | The scheduled search to persist. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.CreateScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateScheduledSearch`: ScheduledSearch + fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.CreateScheduledSearch`: %v\n", resp) } ``` @@ -93,22 +93,22 @@ Delete a Scheduled Search package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.DeleteScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.DeleteScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -161,24 +161,24 @@ Get a Scheduled Search package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.GetScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetScheduledSearch`: ScheduledSearch - fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.GetScheduledSearch`: %v\n", resp) + id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.GetScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetScheduledSearch`: ScheduledSearch + fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.GetScheduledSearch`: %v\n", resp) } ``` @@ -231,27 +231,27 @@ List scheduled searches package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - filters := "savedSearchId eq "6cc0945d-9eeb-4948-9033-72d066e1153e"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **owner.id**: *eq* **savedSearchId**: *eq* (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.ListScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListScheduledSearch`: []ScheduledSearch - fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.ListScheduledSearch`: %v\n", resp) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + filters := "savedSearchId eq "6cc0945d-9eeb-4948-9033-72d066e1153e"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **owner.id**: *eq* **savedSearchId**: *eq* (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.ListScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListScheduledSearch`: []ScheduledSearch + fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.ListScheduledSearch`: %v\n", resp) } ``` @@ -303,23 +303,23 @@ Unsubscribe a recipient from Scheduled Search package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. - typedReference := *openapiclient.NewTypedReference(openapiclient.DtoType("ACCOUNT_CORRELATION_CONFIG"), "2c91808568c529c60168cca6f90c1313") // TypedReference | The recipient to be removed from the scheduled search. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.UnsubscribeScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. + typedReference := *openapiclient.NewTypedReference(openapiclient.DtoType("ACCOUNT_CORRELATION_CONFIG"), "2c91808568c529c60168cca6f90c1313") // TypedReference | The recipient to be removed from the scheduled search. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.UnsubscribeScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -373,25 +373,25 @@ Update an existing Scheduled Search package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. - scheduledSearch := *openapiclient.NewScheduledSearch("554f1511-f0a1-4744-ab14-599514d3e57c", *openapiclient.NewSchedule1(openapiclient.ScheduleType("DAILY"), *openapiclient.NewSchedule1Hours(openapiclient.SelectorType("LIST"), []string{"Values_example"})), []openapiclient.SearchScheduleRecipientsInner{*openapiclient.NewSearchScheduleRecipientsInner("IDENTITY", "2c9180867624cbd7017642d8c8c81f67")}, "0de46054-fe90-434a-b84e-c6b3359d0c64", *openapiclient.NewScheduledSearchAllOfOwner("IDENTITY", "2c9180867624cbd7017642d8c8c81f67"), "2c9180867624cbd7017642d8c8c81f67") // ScheduledSearch | The scheduled search to persist. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.UpdateScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateScheduledSearch`: ScheduledSearch - fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.UpdateScheduledSearch`: %v\n", resp) + id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. + scheduledSearch := *openapiclient.NewScheduledSearch("554f1511-f0a1-4744-ab14-599514d3e57c", *openapiclient.NewSchedule1(openapiclient.ScheduleType("DAILY"), *openapiclient.NewSchedule1Hours(openapiclient.SelectorType("LIST"), []string{"Values_example"})), []openapiclient.SearchScheduleRecipientsInner{*openapiclient.NewSearchScheduleRecipientsInner("IDENTITY", "2c9180867624cbd7017642d8c8c81f67")}, "0de46054-fe90-434a-b84e-c6b3359d0c64", *openapiclient.NewScheduledSearchAllOfOwner("IDENTITY", "2c9180867624cbd7017642d8c8c81f67"), "2c9180867624cbd7017642d8c8c81f67") // ScheduledSearch | The scheduled search to persist. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.UpdateScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateScheduledSearch`: ScheduledSearch + fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.UpdateScheduledSearch`: %v\n", resp) } ``` diff --git a/api_v3/docs/SearchAPI.md b/api_v3/docs/SearchAPI.md index 4e1891898..bd4f353ee 100644 --- a/api_v3/docs/SearchAPI.md +++ b/api_v3/docs/SearchAPI.md @@ -25,27 +25,27 @@ Perform a Search Query Aggregation package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := *openapiclient.NewSearch() // Search | - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SearchAPI.SearchAggregate(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchAggregate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchAggregate`: AggregationResult - fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchAggregate`: %v\n", resp) + search := *openapiclient.NewSearch() // Search | + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SearchAPI.SearchAggregate(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchAggregate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchAggregate`: AggregationResult + fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchAggregate`: %v\n", resp) } ``` @@ -97,22 +97,22 @@ Count Documents Satisfying a Query package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := *openapiclient.NewSearch() // Search | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.SearchAPI.SearchCount(context.Background()).Search(search).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchCount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + search := *openapiclient.NewSearch() // Search | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SearchAPI.SearchCount(context.Background()).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchCount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -161,25 +161,25 @@ Get a Document by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - index := "accounts" // string | The index from which to fetch the specified document. The currently supported index names are: *accessprofiles*, *accountactivities*, *entitlements*, *events*, *identities*, and *roles*. - id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SearchAPI.SearchGet(context.Background(), index, id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchGet`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchGet`: %v\n", resp) + index := "accounts" // string | The index from which to fetch the specified document. The currently supported index names are: *accessprofiles*, *accountactivities*, *entitlements*, *events*, *identities*, and *roles*. + id := "2c91808568c529c60168cca6f90c1313" // string | ID of the requested document. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SearchAPI.SearchGet(context.Background(), index, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchGet`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchGet`: %v\n", resp) } ``` @@ -234,27 +234,27 @@ Perform Search package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - search := *openapiclient.NewSearch() // Search | - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - limit := int32(10000) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 10000) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SearchAPI.SearchPost(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchPost`: []map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchPost`: %v\n", resp) + search := *openapiclient.NewSearch() // Search | + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + limit := int32(10000) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 10000) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SearchAPI.SearchPost(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchPost`: []map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchPost`: %v\n", resp) } ``` diff --git a/api_v3/docs/SearchArguments.md b/api_v3/docs/SearchArguments.md index c36987045..46985becf 100644 --- a/api_v3/docs/SearchArguments.md +++ b/api_v3/docs/SearchArguments.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ScheduleId** | Pointer to **string** | The ID of the scheduled search that triggered the saved search execution. | [optional] -**Owner** | Pointer to [**TypedReference**](TypedReference.md) | | [optional] +**Owner** | Pointer to [**TypedReference**](TypedReference.md) | The owner of the scheduled search being tested. | [optional] **Recipients** | Pointer to [**[]TypedReference**](TypedReference.md) | The email recipients of the scheduled search being tested. | [optional] ## Methods diff --git a/api_v3/docs/SearchAttributeConfigurationAPI.md b/api_v3/docs/SearchAttributeConfigurationAPI.md index 9455cd63d..2a2aa199b 100644 --- a/api_v3/docs/SearchAttributeConfigurationAPI.md +++ b/api_v3/docs/SearchAttributeConfigurationAPI.md @@ -26,24 +26,24 @@ Configure/create search attributes in IdentityNow. package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - searchAttributeConfig := *openapiclient.NewSearchAttributeConfig() // SearchAttributeConfig | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).SearchAttributeConfig(searchAttributeConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSearchAttributeConfig`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig`: %v\n", resp) + searchAttributeConfig := *openapiclient.NewSearchAttributeConfig() // SearchAttributeConfig | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).SearchAttributeConfig(searchAttributeConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSearchAttributeConfig`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig`: %v\n", resp) } ``` @@ -92,22 +92,22 @@ Delete search attribute in IdentityNow. package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := "newMailAttribute" // string | Name of the extended search attribute configuration to delete. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + name := "newMailAttribute" // string | Name of the extended search attribute configuration to delete. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -160,23 +160,23 @@ Retrieve attribute list in IdentityNow. package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSearchAttributeConfig`: []SearchAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSearchAttributeConfig`: %v\n", resp) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSearchAttributeConfig`: []SearchAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSearchAttributeConfig`: %v\n", resp) } ``` @@ -221,24 +221,24 @@ Get specific attribute in IdentityNow. package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := "newMailAttribute" // string | Name of the extended search attribute configuration to retrieve. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSingleSearchAttributeConfig`: []SearchAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig`: %v\n", resp) + name := "newMailAttribute" // string | Name of the extended search attribute configuration to retrieve. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSingleSearchAttributeConfig`: []SearchAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig`: %v\n", resp) } ``` @@ -291,25 +291,25 @@ Update search attribute in IdentityNow. package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - name := "promotedMailAttribute" // string | Name of the Search Attribute Configuration to patch. - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSearchAttributeConfig`: SearchAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig`: %v\n", resp) + name := "promotedMailAttribute" // string | Name of the Search Attribute Configuration to patch. + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSearchAttributeConfig`: SearchAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig`: %v\n", resp) } ``` diff --git a/api_v3/docs/SearchSchedule.md b/api_v3/docs/SearchSchedule.md index 1dbe112ee..032190b81 100644 --- a/api_v3/docs/SearchSchedule.md +++ b/api_v3/docs/SearchSchedule.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SavedSearchId** | **string** | The ID of the saved search that will be executed. | -**Created** | Pointer to **NullableTime** | A date-time in ISO-8601 format | [optional] [readonly] -**Modified** | Pointer to **NullableTime** | A date-time in ISO-8601 format | [optional] [readonly] +**Created** | Pointer to **NullableTime** | The date the scheduled search was initially created. | [optional] [readonly] +**Modified** | Pointer to **NullableTime** | The last date the scheduled search was modified. | [optional] [readonly] **Schedule** | [**Schedule1**](Schedule1.md) | | **Recipients** | [**[]SearchScheduleRecipientsInner**](SearchScheduleRecipientsInner.md) | A list of identities that should receive the scheduled search report via email. | **Enabled** | Pointer to **bool** | Indicates if the scheduled search is enabled. | [optional] [default to false] diff --git a/api_v3/docs/SegmentsAPI.md b/api_v3/docs/SegmentsAPI.md index 3e1531056..f211300e4 100644 --- a/api_v3/docs/SegmentsAPI.md +++ b/api_v3/docs/SegmentsAPI.md @@ -26,24 +26,24 @@ Create Segment package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - segment := *openapiclient.NewSegment() // Segment | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.CreateSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSegment`: Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.CreateSegment`: %v\n", resp) + segment := *openapiclient.NewSegment() // Segment | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.CreateSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSegment`: Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.CreateSegment`: %v\n", resp) } ``` @@ -92,22 +92,22 @@ Delete Segment by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | The segment ID to delete. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.DeleteSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "ef38f94347e94562b5bb8424a56397d8" // string | The segment ID to delete. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.DeleteSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -160,24 +160,24 @@ Get Segment by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | The segment ID to retrieve. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SegmentsAPI.GetSegment(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.GetSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSegment`: Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.GetSegment`: %v\n", resp) + id := "ef38f94347e94562b5bb8424a56397d8" // string | The segment ID to retrieve. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SegmentsAPI.GetSegment(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.GetSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSegment`: Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.GetSegment`: %v\n", resp) } ``` @@ -230,26 +230,26 @@ List Segments package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.ListSegments``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSegments`: []Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.ListSegments`: %v\n", resp) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.ListSegments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSegments`: []Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.ListSegments`: %v\n", resp) } ``` @@ -300,25 +300,25 @@ Update Segment package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | The segment ID to modify. - requestBody := []map[string]interface{}{map[string]interface{}(123)} // []map[string]interface{} | A list of segment update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * owner * visibilityCriteria * active - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.PatchSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSegment`: Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.PatchSegment`: %v\n", resp) + id := "ef38f94347e94562b5bb8424a56397d8" // string | The segment ID to modify. + requestBody := []map[string]interface{}{map[string]interface{}(123)} // []map[string]interface{} | A list of segment update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * owner * visibilityCriteria * active + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.PatchSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSegment`: Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.PatchSegment`: %v\n", resp) } ``` diff --git a/api_v3/docs/ServiceDeskIntegrationAPI.md b/api_v3/docs/ServiceDeskIntegrationAPI.md index ec95ccb1e..81e3c49bb 100644 --- a/api_v3/docs/ServiceDeskIntegrationAPI.md +++ b/api_v3/docs/ServiceDeskIntegrationAPI.md @@ -31,24 +31,24 @@ Create new Service Desk integration package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - serviceDeskIntegrationDto := *openapiclient.NewServiceDeskIntegrationDto("Service Desk Integration Name", "A very nice Service Desk integration", "ServiceNowSDIM", map[string]interface{}{"key": interface{}(123)}) // ServiceDeskIntegrationDto | The specifics of a new integration to create - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration`: %v\n", resp) + serviceDeskIntegrationDto := *openapiclient.NewServiceDeskIntegrationDto("Service Desk Integration Name", "A very nice Service Desk integration", "ServiceNowSDIM", map[string]interface{}{"key": interface{}(123)}) // ServiceDeskIntegrationDto | The specifics of a new integration to create + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration`: %v\n", resp) } ``` @@ -97,22 +97,22 @@ Delete a Service Desk integration package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "anId" // string | ID of Service Desk integration to delete - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "anId" // string | ID of Service Desk integration to delete + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -165,24 +165,24 @@ Get a Service Desk integration package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "anId" // string | ID of the Service Desk integration to get - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegration`: %v\n", resp) + id := "anId" // string | ID of the Service Desk integration to get + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegration`: %v\n", resp) } ``` @@ -235,24 +235,24 @@ Service Desk integration template by scriptName. package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - scriptName := "aScriptName" // string | The scriptName value of the Service Desk integration template to get - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegrationTemplate`: ServiceDeskIntegrationTemplateDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate`: %v\n", resp) + scriptName := "aScriptName" // string | The scriptName value of the Service Desk integration template to get + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegrationTemplate`: ServiceDeskIntegrationTemplateDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate`: %v\n", resp) } ``` @@ -305,23 +305,23 @@ Service Desk Integration Types List. package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegrationTypes`: []ServiceDeskIntegrationTemplateType - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes`: %v\n", resp) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegrationTypes`: []ServiceDeskIntegrationTemplateType + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes`: %v\n", resp) } ``` @@ -366,28 +366,28 @@ List existing Service Desk Integrations package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - sorters := "name" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) - filters := "name eq "John Doe"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq* **type**: *eq, in* **cluster**: *eq, in* (optional) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegrations`: []ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrations`: %v\n", resp) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + sorters := "name" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) + filters := "name eq "John Doe"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq* **type**: *eq, in* **cluster**: *eq, in* (optional) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegrations`: []ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrations`: %v\n", resp) } ``` @@ -440,23 +440,23 @@ Get the time check configuration package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetStatusCheckDetails``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetStatusCheckDetails`: QueuedCheckConfigDetails - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetStatusCheckDetails`: %v\n", resp) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetStatusCheckDetails``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStatusCheckDetails`: QueuedCheckConfigDetails + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetStatusCheckDetails`: %v\n", resp) } ``` @@ -501,25 +501,25 @@ Service Desk Integration Update PATCH package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "anId" // string | ID of the Service Desk integration to update - patchServiceDeskIntegrationRequest := *openapiclient.NewPatchServiceDeskIntegrationRequest() // PatchServiceDeskIntegrationRequest | A list of SDIM update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Only `replace` operations are accepted by this endpoint. A 403 Forbidden Error indicates that you attempted to PATCH a operation that is not allowed. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).PatchServiceDeskIntegrationRequest(patchServiceDeskIntegrationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration`: %v\n", resp) + id := "anId" // string | ID of the Service Desk integration to update + patchServiceDeskIntegrationRequest := *openapiclient.NewPatchServiceDeskIntegrationRequest() // PatchServiceDeskIntegrationRequest | A list of SDIM update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Only `replace` operations are accepted by this endpoint. A 403 Forbidden Error indicates that you attempted to PATCH a operation that is not allowed. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).PatchServiceDeskIntegrationRequest(patchServiceDeskIntegrationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration`: %v\n", resp) } ``` @@ -573,25 +573,25 @@ Update a Service Desk integration package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "anId" // string | ID of the Service Desk integration to update - serviceDeskIntegrationDto := *openapiclient.NewServiceDeskIntegrationDto("Service Desk Integration Name", "A very nice Service Desk integration", "ServiceNowSDIM", map[string]interface{}{"key": interface{}(123)}) // ServiceDeskIntegrationDto | The specifics of the integration to update - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PutServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PutServiceDeskIntegration`: %v\n", resp) + id := "anId" // string | ID of the Service Desk integration to update + serviceDeskIntegrationDto := *openapiclient.NewServiceDeskIntegrationDto("Service Desk Integration Name", "A very nice Service Desk integration", "ServiceNowSDIM", map[string]interface{}{"key": interface{}(123)}) // ServiceDeskIntegrationDto | The specifics of the integration to update + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PutServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PutServiceDeskIntegration`: %v\n", resp) } ``` @@ -645,24 +645,24 @@ Update the time check configuration package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - queuedCheckConfigDetails := *openapiclient.NewQueuedCheckConfigDetails("30", "2") // QueuedCheckConfigDetails | the modified time check configuration - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateStatusCheckDetails`: QueuedCheckConfigDetails - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails`: %v\n", resp) + queuedCheckConfigDetails := *openapiclient.NewQueuedCheckConfigDetails("30", "2") // QueuedCheckConfigDetails | the modified time check configuration + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateStatusCheckDetails`: QueuedCheckConfigDetails + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails`: %v\n", resp) } ``` diff --git a/api_v3/docs/SourceUsagesAPI.md b/api_v3/docs/SourceUsagesAPI.md index 826e681a1..e8a6ee96f 100644 --- a/api_v3/docs/SourceUsagesAPI.md +++ b/api_v3/docs/SourceUsagesAPI.md @@ -23,24 +23,24 @@ Finds status of source usage package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c9180835d191a86015d28455b4a2329" // string | ID of IDN source - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetStatusBySourceId``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetStatusBySourceId`: SourceUsageStatus - fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetStatusBySourceId`: %v\n", resp) + sourceId := "2c9180835d191a86015d28455b4a2329" // string | ID of IDN source + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetStatusBySourceId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStatusBySourceId`: SourceUsageStatus + fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetStatusBySourceId`: %v\n", resp) } ``` @@ -93,28 +93,28 @@ Returns source usage insights package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c9180835d191a86015d28455b4a2329" // string | ID of IDN source - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - sorters := "-date" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetUsagesBySourceId``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetUsagesBySourceId`: []SourceUsage - fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetUsagesBySourceId`: %v\n", resp) + sourceId := "2c9180835d191a86015d28455b4a2329" // string | ID of IDN source + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + sorters := "-date" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetUsagesBySourceId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUsagesBySourceId`: []SourceUsage + fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetUsagesBySourceId`: %v\n", resp) } ``` diff --git a/api_v3/docs/SourcesAPI.md b/api_v3/docs/SourcesAPI.md index 1982cf1d5..961e4aa56 100644 --- a/api_v3/docs/SourcesAPI.md +++ b/api_v3/docs/SourcesAPI.md @@ -46,25 +46,25 @@ Create Provisioning Policy package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id - provisioningPolicyDto := *openapiclient.NewProvisioningPolicyDto("example provisioning policy for inactive identities") // ProvisioningPolicyDto | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateProvisioningPolicy`: %v\n", resp) + sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id + provisioningPolicyDto := *openapiclient.NewProvisioningPolicyDto("example provisioning policy for inactive identities") // ProvisioningPolicyDto | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateProvisioningPolicy`: %v\n", resp) } ``` @@ -118,25 +118,25 @@ Creates a source in IdentityNow. package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - source := *openapiclient.NewSource("My Source", *openapiclient.NewSourceOwner(), "active-directory") // Source | - provisionAsCsv := false // bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSource`: %v\n", resp) + source := *openapiclient.NewSource("My Source", *openapiclient.NewSourceOwner(), "active-directory") // Source | + provisionAsCsv := false // bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSource`: %v\n", resp) } ``` @@ -186,25 +186,25 @@ Create Schema on Source package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c9180835d191a86015d28455b4a2329" // string | Source ID. - schema := *openapiclient.NewSchema() // Schema | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSourceSchema`: %v\n", resp) + sourceId := "2c9180835d191a86015d28455b4a2329" // string | Source ID. + schema := *openapiclient.NewSchema() // Schema | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSourceSchema`: %v\n", resp) } ``` @@ -258,23 +258,23 @@ Delete Provisioning Policy by UsageType package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source ID. - usageType := openapiclient.UsageType("CREATE") // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source ID. + usageType := openapiclient.UsageType("CREATE") // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -329,24 +329,24 @@ Delete Source by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c9180835d191a86015d28455b4a2329" // string | Source ID. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.DeleteSource(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteSource`: DeleteSource202Response - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.DeleteSource`: %v\n", resp) + id := "2c9180835d191a86015d28455b4a2329" // string | Source ID. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.DeleteSource(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteSource`: DeleteSource202Response + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.DeleteSource`: %v\n", resp) } ``` @@ -397,23 +397,23 @@ Delete Source Schema by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id. - schemaId := "2c9180835d191a86015d28455b4a2329" // string | The Schema id. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id. + schemaId := "2c9180835d191a86015d28455b4a2329" // string | The Schema id. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -468,22 +468,22 @@ Downloads source accounts schema template package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "8c190e6787aa4ed9a90bd9d5344523fb" // string | The Source id - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetAccountsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "8c190e6787aa4ed9a90bd9d5344523fb" // string | The Source id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetAccountsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -536,23 +536,23 @@ Downloads source entitlements schema template package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "8c190e6787aa4ed9a90bd9d5344523fb" // string | The Source id - schemaName := "?schemaName=group" // string | Name of entitlement schema (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.SourcesAPI.GetEntitlementsSchema(context.Background(), id).SchemaName(schemaName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetEntitlementsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "8c190e6787aa4ed9a90bd9d5344523fb" // string | The Source id + schemaName := "?schemaName=group" // string | Name of entitlement schema (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SourcesAPI.GetEntitlementsSchema(context.Background(), id).SchemaName(schemaName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetEntitlementsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -606,25 +606,25 @@ Get Provisioning Policy by UsageType package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source ID. - usageType := openapiclient.UsageType("CREATE") // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetProvisioningPolicy`: %v\n", resp) + sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source ID. + usageType := openapiclient.UsageType("CREATE") // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetProvisioningPolicy`: %v\n", resp) } ``` @@ -679,24 +679,24 @@ Get Source by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c9180835d191a86015d28455b4a2329" // string | Source ID. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.GetSource(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSource`: %v\n", resp) + id := "2c9180835d191a86015d28455b4a2329" // string | Source ID. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.GetSource(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSource`: %v\n", resp) } ``` @@ -749,24 +749,24 @@ Fetches source health by id package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceHealth``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceHealth`: SourceHealthDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceHealth`: %v\n", resp) + sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceHealth``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceHealth`: SourceHealthDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceHealth`: %v\n", resp) } ``` @@ -819,25 +819,25 @@ Get Source Schema by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id. - schemaId := "2c9180835d191a86015d28455b4a2329" // string | The Schema id. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchema`: %v\n", resp) + sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id. + schemaId := "2c9180835d191a86015d28455b4a2329" // string | The Schema id. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchema`: %v\n", resp) } ``` @@ -892,25 +892,25 @@ List Schemas on Source package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c9180835d191a86015d28455b4a2329" // string | Source ID. - includeTypes := "group" // string | If this is set to `group`, the API filters the account schema and only returns only group schemas. If this is set to `user`, the API returns the account schema for the source. (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchemas``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceSchemas`: []Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchemas`: %v\n", resp) + sourceId := "2c9180835d191a86015d28455b4a2329" // string | Source ID. + includeTypes := "group" // string | If this is set to `group`, the API filters the account schema and only returns only group schemas. If this is set to `user`, the API returns the account schema for the source. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchemas``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceSchemas`: []Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchemas`: %v\n", resp) } ``` @@ -964,25 +964,25 @@ Uploads source accounts schema template package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "8c190e6787aa4ed9a90bd9d5344523fb" // string | The Source id - file := os.NewFile(1234, "some_file") // *os.File | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.ImportAccountsSchema(context.Background(), id).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportAccountsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportAccountsSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportAccountsSchema`: %v\n", resp) + id := "8c190e6787aa4ed9a90bd9d5344523fb" // string | The Source id + file := os.NewFile(1234, "some_file") // *os.File | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.ImportAccountsSchema(context.Background(), id).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportAccountsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportAccountsSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportAccountsSchema`: %v\n", resp) } ``` @@ -1036,25 +1036,25 @@ Upload connector file to source package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id. - file := os.NewFile(1234, "some_file") // *os.File | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportConnectorFile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportConnectorFile`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportConnectorFile`: %v\n", resp) + sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id. + file := os.NewFile(1234, "some_file") // *os.File | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportConnectorFile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportConnectorFile`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportConnectorFile`: %v\n", resp) } ``` @@ -1108,26 +1108,26 @@ Uploads source entitlements schema template package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "8c190e6787aa4ed9a90bd9d5344523fb" // string | The Source id - schemaName := "?schemaName=group" // string | Name of entitlement schema (optional) - file := os.NewFile(1234, "some_file") // *os.File | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).SchemaName(schemaName).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportEntitlementsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportEntitlementsSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportEntitlementsSchema`: %v\n", resp) + id := "8c190e6787aa4ed9a90bd9d5344523fb" // string | The Source id + schemaName := "?schemaName=group" // string | Name of entitlement schema (optional) + file := os.NewFile(1234, "some_file") // *os.File | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).SchemaName(schemaName).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportEntitlementsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportEntitlementsSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportEntitlementsSchema`: %v\n", resp) } ``` @@ -1182,24 +1182,24 @@ Lists ProvisioningPolicies package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListProvisioningPolicies``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListProvisioningPolicies`: []ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListProvisioningPolicies`: %v\n", resp) + sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListProvisioningPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListProvisioningPolicies`: []ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListProvisioningPolicies`: %v\n", resp) } ``` @@ -1252,29 +1252,29 @@ Lists all sources in IdentityNow. package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - filters := "name eq "Employees"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, sw* (optional) - sorters := "name" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (optional) - forSubadmin := "name" // string | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListSources``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSources`: []Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListSources`: %v\n", resp) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + filters := "name eq "Employees"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **name**: *co, eq, in, sw, ge, gt, ne, isnull* **type**: *eq, in, ge, gt, ne, isnull, sw* **owner.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **features**: *ca, co* **created**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **modified**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **managementWorkgroup.id**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **description**: *eq, sw* **authoritative**: *eq, ne, isnull* **healthy**: *isnull* **status**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **connectionType**: *eq, ge, gt, in, le, lt, ne, isnull, sw* **connectorName**: *eq, ge, gt, in, ne, isnull, sw* **category**: *co, eq, ge, gt, in, le, lt, ne, sw* (optional) + sorters := "name" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **type, created, modified, name, owner.name, healthy, status, id, description, owner.id, accountCorrelationConfig.id, accountCorrelationConfig.name, managerCorrelationRule.type, managerCorrelationRule.id, managerCorrelationRule.name, authoritative, managementWorkgroup.id, connectorName, connectionType** (optional) + forSubadmin := "name" // string | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSources`: []Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListSources`: %v\n", resp) } ``` @@ -1328,26 +1328,26 @@ Update Provisioning Policy by UsageType package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source ID. - usageType := openapiclient.UsageType("CREATE") // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - provisioningPolicyDto := *openapiclient.NewProvisioningPolicyDto("example provisioning policy for inactive identities") // ProvisioningPolicyDto | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutProvisioningPolicy`: %v\n", resp) + sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source ID. + usageType := openapiclient.UsageType("CREATE") // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. + provisioningPolicyDto := *openapiclient.NewProvisioningPolicyDto("example provisioning policy for inactive identities") // ProvisioningPolicyDto | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutProvisioningPolicy`: %v\n", resp) } ``` @@ -1403,25 +1403,25 @@ Update Source (Full) package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c9180835d191a86015d28455b4a2329" // string | Source ID. - source := *openapiclient.NewSource("My Source", *openapiclient.NewSourceOwner(), "active-directory") // Source | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSource`: %v\n", resp) + id := "2c9180835d191a86015d28455b4a2329" // string | Source ID. + source := *openapiclient.NewSource("My Source", *openapiclient.NewSourceOwner(), "active-directory") // Source | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSource`: %v\n", resp) } ``` @@ -1475,26 +1475,26 @@ Update Source Schema (Full) package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id. - schemaId := "2c9180835d191a86015d28455b4a2329" // string | The Schema id. - schema := *openapiclient.NewSchema() // Schema | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSourceSchema`: %v\n", resp) + sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id. + schemaId := "2c9180835d191a86015d28455b4a2329" // string | The Schema id. + schema := *openapiclient.NewSchema() // Schema | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSourceSchema`: %v\n", resp) } ``` @@ -1550,25 +1550,25 @@ Bulk Update Provisioning Policies package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id. - provisioningPolicyDto := []openapiclient.ProvisioningPolicyDto{*openapiclient.NewProvisioningPolicyDto("example provisioning policy for inactive identities")} // []ProvisioningPolicyDto | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPoliciesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateProvisioningPoliciesInBulk`: []ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPoliciesInBulk`: %v\n", resp) + sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id. + provisioningPolicyDto := []openapiclient.ProvisioningPolicyDto{*openapiclient.NewProvisioningPolicyDto("example provisioning policy for inactive identities")} // []ProvisioningPolicyDto | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPoliciesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateProvisioningPoliciesInBulk`: []ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPoliciesInBulk`: %v\n", resp) } ``` @@ -1622,26 +1622,26 @@ Partial update of Provisioning Policy package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id. - usageType := openapiclient.UsageType("CREATE") // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | The JSONPatch payload used to update the schema. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPolicy`: %v\n", resp) + sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id. + usageType := openapiclient.UsageType("CREATE") // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | The JSONPatch payload used to update the schema. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPolicy`: %v\n", resp) } ``` @@ -1697,25 +1697,25 @@ Update Source (Partial) package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c9180835d191a86015d28455b4a2329" // string | Source ID. - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC). - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSource`: %v\n", resp) + id := "2c9180835d191a86015d28455b4a2329" // string | Source ID. + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC). + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSource`: %v\n", resp) } ``` @@ -1769,26 +1769,26 @@ Update Source Schema (Partial) package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id. - schemaId := "2c9180835d191a86015d28455b4a2329" // string | The Schema id. - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | The JSONPatch payload used to update the schema. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceSchema`: %v\n", resp) + sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id. + schemaId := "2c9180835d191a86015d28455b4a2329" // string | The Schema id. + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | The JSONPatch payload used to update the schema. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceSchema`: %v\n", resp) } ``` diff --git a/api_v3/docs/TaggedObjectsAPI.md b/api_v3/docs/TaggedObjectsAPI.md index 97b7e4785..8b652c897 100644 --- a/api_v3/docs/TaggedObjectsAPI.md +++ b/api_v3/docs/TaggedObjectsAPI.md @@ -29,23 +29,23 @@ Delete Tagged Object package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - type_ := "ROLE" // string | The type of tagged object to delete. - id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the object reference to delete. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTaggedObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + type_ := "ROLE" // string | The type of tagged object to delete. + id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the object reference to delete. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTaggedObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -100,22 +100,22 @@ Remove Tags from Multiple Objects package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkRemoveTaggedObject := *openapiclient.NewBulkRemoveTaggedObject() // BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTagsToManyObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + bulkRemoveTaggedObject := *openapiclient.NewBulkRemoveTaggedObject() // BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTagsToManyObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -164,25 +164,25 @@ Get Tagged Object package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - type_ := "ROLE" // string | The type of tagged object to retrieve. - id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the object reference to retrieve. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.GetTaggedObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTaggedObject`: TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.GetTaggedObject`: %v\n", resp) + type_ := "ROLE" // string | The type of tagged object to retrieve. + id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the object reference to retrieve. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.GetTaggedObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTaggedObject`: TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.GetTaggedObject`: %v\n", resp) } ``` @@ -237,27 +237,27 @@ List Tagged Objects package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - filters := "tagName eq "BU_FINANCE"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTaggedObjects`: []TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjects`: %v\n", resp) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + filters := "tagName eq "BU_FINANCE"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTaggedObjects`: []TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjects`: %v\n", resp) } ``` @@ -309,28 +309,28 @@ List Tagged Objects by Type package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - type_ := "ROLE" // string | The type of tagged object to retrieve. - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - filters := "objectRef.id eq "2c91808568c529c60168cca6f90c1313"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq* **objectRef.type**: *eq* (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjectsByType``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTaggedObjectsByType`: []TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjectsByType`: %v\n", resp) + type_ := "ROLE" // string | The type of tagged object to retrieve. + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + filters := "objectRef.id eq "2c91808568c529c60168cca6f90c1313"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq* **objectRef.type**: *eq* (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjectsByType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTaggedObjectsByType`: []TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjectsByType`: %v\n", resp) } ``` @@ -387,26 +387,26 @@ Update Tagged Object package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - type_ := "ROLE" // string | The type of tagged object to update. - id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the object reference to update. - taggedObject := *openapiclient.NewTaggedObject() // TaggedObject | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.PutTaggedObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutTaggedObject`: TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.PutTaggedObject`: %v\n", resp) + type_ := "ROLE" // string | The type of tagged object to update. + id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the object reference to update. + taggedObject := *openapiclient.NewTaggedObject() // TaggedObject | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.PutTaggedObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutTaggedObject`: TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.PutTaggedObject`: %v\n", resp) } ``` @@ -462,22 +462,22 @@ Add Tag to Object package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - taggedObject := *openapiclient.NewTaggedObject() // TaggedObject | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagToObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + taggedObject := *openapiclient.NewTaggedObject() // TaggedObject | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagToObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -526,24 +526,24 @@ Tag Multiple Objects package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - bulkAddTaggedObject := *openapiclient.NewBulkAddTaggedObject() // BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagsToManyObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetTagsToManyObjects`: []BulkTaggedObjectResponse - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.SetTagsToManyObjects`: %v\n", resp) + bulkAddTaggedObject := *openapiclient.NewBulkAddTaggedObject() // BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagsToManyObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetTagsToManyObjects`: []BulkTaggedObjectResponse + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.SetTagsToManyObjects`: %v\n", resp) } ``` diff --git a/api_v3/docs/TransformsAPI.md b/api_v3/docs/TransformsAPI.md index ffa3cca9e..cba77383e 100644 --- a/api_v3/docs/TransformsAPI.md +++ b/api_v3/docs/TransformsAPI.md @@ -26,24 +26,24 @@ Create transform package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - transform := *openapiclient.NewTransform("Timestamp To Date", "dateFormat", map[string]interface{}(123)) // Transform | The transform to be created. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.CreateTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateTransform`: TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.CreateTransform`: %v\n", resp) + transform := *openapiclient.NewTransform("Timestamp To Date", "dateFormat", map[string]interface{}(123)) // Transform | The transform to be created. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.CreateTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateTransform`: TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.CreateTransform`: %v\n", resp) } ``` @@ -92,22 +92,22 @@ Delete a transform package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2cd78adghjkja34jh2b1hkjhasuecd" // string | ID of the transform to delete - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TransformsAPI.DeleteTransform(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.DeleteTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "2cd78adghjkja34jh2b1hkjhasuecd" // string | ID of the transform to delete + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TransformsAPI.DeleteTransform(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.DeleteTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -160,24 +160,24 @@ Transform by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2cd78adghjkja34jh2b1hkjhasuecd" // string | ID of the transform to retrieve - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TransformsAPI.GetTransform(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.GetTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTransform`: TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.GetTransform`: %v\n", resp) + id := "2cd78adghjkja34jh2b1hkjhasuecd" // string | ID of the transform to retrieve + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TransformsAPI.GetTransform(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.GetTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTransform`: TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.GetTransform`: %v\n", resp) } ``` @@ -230,28 +230,28 @@ List transforms package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - name := "ExampleTransformName123" // string | Name of the transform to retrieve from the list. (optional) - filters := "name eq "Uppercase"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **internal**: *eq* **name**: *eq, sw* (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.ListTransforms``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTransforms`: []TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.ListTransforms`: %v\n", resp) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + name := "ExampleTransformName123" // string | Name of the transform to retrieve from the list. (optional) + filters := "name eq "Uppercase"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **internal**: *eq* **name**: *eq, sw* (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.ListTransforms``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTransforms`: []TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.ListTransforms`: %v\n", resp) } ``` @@ -304,25 +304,25 @@ Update a transform package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2cd78adghjkja34jh2b1hkjhasuecd" // string | ID of the transform to update - transform := *openapiclient.NewTransform("Timestamp To Date", "dateFormat", map[string]interface{}(123)) // Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.UpdateTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateTransform`: TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.UpdateTransform`: %v\n", resp) + id := "2cd78adghjkja34jh2b1hkjhasuecd" // string | ID of the transform to update + transform := *openapiclient.NewTransform("Timestamp To Date", "dateFormat", map[string]interface{}(123)) // Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.UpdateTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateTransform`: TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.UpdateTransform`: %v\n", resp) } ``` diff --git a/api_v3/docs/VendorConnectorMappingsAPI.md b/api_v3/docs/VendorConnectorMappingsAPI.md index 639dcbd28..42e2d7aac 100644 --- a/api_v3/docs/VendorConnectorMappingsAPI.md +++ b/api_v3/docs/VendorConnectorMappingsAPI.md @@ -23,24 +23,24 @@ Create a vendor connector mapping package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := *openapiclient.NewVendorConnectorMapping() // VendorConnectorMapping | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.CreateVendorConnectorMapping``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateVendorConnectorMapping`: VendorConnectorMapping - fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.CreateVendorConnectorMapping`: %v\n", resp) + vendorConnectorMapping := *openapiclient.NewVendorConnectorMapping() // VendorConnectorMapping | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.CreateVendorConnectorMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateVendorConnectorMapping`: VendorConnectorMapping + fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.CreateVendorConnectorMapping`: %v\n", resp) } ``` @@ -89,24 +89,24 @@ Delete a vendor connector mapping package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - vendorConnectorMapping := *openapiclient.NewVendorConnectorMapping() // VendorConnectorMapping | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteVendorConnectorMapping`: DeleteVendorConnectorMapping200Response - fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping`: %v\n", resp) + vendorConnectorMapping := *openapiclient.NewVendorConnectorMapping() // VendorConnectorMapping | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteVendorConnectorMapping`: DeleteVendorConnectorMapping200Response + fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping`: %v\n", resp) } ``` diff --git a/api_v3/docs/WorkItemsAPI.md b/api_v3/docs/WorkItemsAPI.md index 19be7f8ce..e2dd5e16c 100644 --- a/api_v3/docs/WorkItemsAPI.md +++ b/api_v3/docs/WorkItemsAPI.md @@ -34,25 +34,25 @@ Approve an Approval Item package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the work item - approvalItemId := "1211bcaa32112bcef6122adb21cef1ac" // string | The ID of the approval item. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveApprovalItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItem`: %v\n", resp) + id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the work item + approvalItemId := "1211bcaa32112bcef6122adb21cef1ac" // string | The ID of the approval item. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveApprovalItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItem`: %v\n", resp) } ``` @@ -107,24 +107,24 @@ Bulk approve Approval Items package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the work item - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItemsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveApprovalItemsInBulk`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItemsInBulk`: %v\n", resp) + id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the work item + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItemsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveApprovalItemsInBulk`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItemsInBulk`: %v\n", resp) } ``` @@ -177,24 +177,24 @@ Complete a Work Item package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the work item - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.CompleteWorkItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CompleteWorkItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.CompleteWorkItem`: %v\n", resp) + id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the work item + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.CompleteWorkItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CompleteWorkItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.CompleteWorkItem`: %v\n", resp) } ``` @@ -247,27 +247,27 @@ Completed Work Items package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := "1211bcaa32112bcef6122adb21cef1ac" // string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCompletedWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCompletedWorkItems`: []WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCompletedWorkItems`: %v\n", resp) + ownerId := "1211bcaa32112bcef6122adb21cef1ac" // string | The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCompletedWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCompletedWorkItems`: []WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCompletedWorkItems`: %v\n", resp) } ``` @@ -319,24 +319,24 @@ Count Completed Work Items package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := "1211bcaa32112bcef6122adb21cef1ac" // string | ID of the work item owner. (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountCompletedWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCountCompletedWorkItems`: WorkItemsCount - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountCompletedWorkItems`: %v\n", resp) + ownerId := "1211bcaa32112bcef6122adb21cef1ac" // string | ID of the work item owner. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountCompletedWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCountCompletedWorkItems`: WorkItemsCount + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountCompletedWorkItems`: %v\n", resp) } ``` @@ -385,24 +385,24 @@ Count Work Items package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := "ef38f94347e94562b5bb8424a56397d8" // string | ID of the work item owner. (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCountWorkItems`: WorkItemsCount - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountWorkItems`: %v\n", resp) + ownerId := "ef38f94347e94562b5bb8424a56397d8" // string | ID of the work item owner. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCountWorkItems`: WorkItemsCount + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountWorkItems`: %v\n", resp) } ``` @@ -451,24 +451,24 @@ Get a Work Item package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "2c9180835d191a86015d28455b4a2329" // string | ID of the work item. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItem`: %v\n", resp) + id := "2c9180835d191a86015d28455b4a2329" // string | ID of the work item. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItem`: %v\n", resp) } ``` @@ -521,24 +521,24 @@ Work Items Summary package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - ownerId := "1211bcaa32112bcef6122adb21cef1ac" // string | ID of the work item owner. (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItemsSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkItemsSummary`: WorkItemsSummary - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItemsSummary`: %v\n", resp) + ownerId := "1211bcaa32112bcef6122adb21cef1ac" // string | ID of the work item owner. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItemsSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkItemsSummary`: WorkItemsSummary + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItemsSummary`: %v\n", resp) } ``` @@ -587,27 +587,27 @@ List Work Items package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - ownerId := "1211bcaa32112bcef6122adb21cef1ac" // string | ID of the work item owner. (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ListWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkItems`: []WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ListWorkItems`: %v\n", resp) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + ownerId := "1211bcaa32112bcef6122adb21cef1ac" // string | ID of the work item owner. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ListWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkItems`: []WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ListWorkItems`: %v\n", resp) } ``` @@ -659,25 +659,25 @@ Reject an Approval Item package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the work item - approvalItemId := "1211bcaa32112bcef6122adb21cef1ac" // string | The ID of the approval item. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectApprovalItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItem`: %v\n", resp) + id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the work item + approvalItemId := "1211bcaa32112bcef6122adb21cef1ac" // string | The ID of the approval item. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectApprovalItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItem`: %v\n", resp) } ``` @@ -732,24 +732,24 @@ Bulk reject Approval Items package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the work item - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItemsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectApprovalItemsInBulk`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItemsInBulk`: %v\n", resp) + id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the work item + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItemsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectApprovalItemsInBulk`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItemsInBulk`: %v\n", resp) } ``` @@ -802,23 +802,23 @@ Forward a Work Item package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the work item - workItemForward := *openapiclient.NewWorkItemForward("2c9180835d2e5168015d32f890ca1581", "I'm going on vacation.") // WorkItemForward | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.WorkItemsAPI.SendWorkItemForward(context.Background(), id).WorkItemForward(workItemForward).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.SendWorkItemForward``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the work item + workItemForward := *openapiclient.NewWorkItemForward("2c9180835d2e5168015d32f890ca1581", "I'm going on vacation.") // WorkItemForward | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.WorkItemsAPI.SendWorkItemForward(context.Background(), id).WorkItemForward(workItemForward).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.SendWorkItemForward``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -872,25 +872,25 @@ Submit Account Selections package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the work item - requestBody := map[string]interface{}{"key": interface{}(123)} // map[string]interface{} | Account Selection Data map, keyed on fieldName - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.SubmitAccountSelection``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitAccountSelection`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.SubmitAccountSelection`: %v\n", resp) + id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the work item + requestBody := map[string]interface{}{"key": interface{}(123)} // map[string]interface{} | Account Selection Data map, keyed on fieldName + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.SubmitAccountSelection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitAccountSelection`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.SubmitAccountSelection`: %v\n", resp) } ``` diff --git a/api_v3/docs/WorkflowsAPI.md b/api_v3/docs/WorkflowsAPI.md index 86f4aad94..7b52035f9 100644 --- a/api_v3/docs/WorkflowsAPI.md +++ b/api_v3/docs/WorkflowsAPI.md @@ -39,22 +39,22 @@ Cancel Workflow Execution by ID package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | The workflow execution ID - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CancelWorkflowExecution``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | The workflow execution ID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CancelWorkflowExecution``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -107,25 +107,25 @@ Execute Workflow via External Trigger package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the workflow - createExternalExecuteWorkflowRequest := *openapiclient.NewCreateExternalExecuteWorkflowRequest() // CreateExternalExecuteWorkflowRequest | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).CreateExternalExecuteWorkflowRequest(createExternalExecuteWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateExternalExecuteWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateExternalExecuteWorkflow`: CreateExternalExecuteWorkflow200Response - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateExternalExecuteWorkflow`: %v\n", resp) + id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the workflow + createExternalExecuteWorkflowRequest := *openapiclient.NewCreateExternalExecuteWorkflowRequest() // CreateExternalExecuteWorkflowRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).CreateExternalExecuteWorkflowRequest(createExternalExecuteWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateExternalExecuteWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateExternalExecuteWorkflow`: CreateExternalExecuteWorkflow200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateExternalExecuteWorkflow`: %v\n", resp) } ``` @@ -179,24 +179,24 @@ Create Workflow package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - createWorkflowRequest := *openapiclient.NewCreateWorkflowRequest("Send Email", *openapiclient.NewWorkflowBodyOwner()) // CreateWorkflowRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflow`: %v\n", resp) + createWorkflowRequest := *openapiclient.NewCreateWorkflowRequest("Send Email", *openapiclient.NewWorkflowBodyOwner()) // CreateWorkflowRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflow`: %v\n", resp) } ``` @@ -245,24 +245,24 @@ Generate External Trigger OAuth Client package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the workflow - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflowExternalTrigger``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateWorkflowExternalTrigger`: WorkflowOAuthClient - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflowExternalTrigger`: %v\n", resp) + id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the workflow + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflowExternalTrigger``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateWorkflowExternalTrigger`: WorkflowOAuthClient + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflowExternalTrigger`: %v\n", resp) } ``` @@ -315,22 +315,22 @@ Delete Workflow By Id package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the Workflow - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.DeleteWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the Workflow + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.DeleteWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } } ``` @@ -383,24 +383,24 @@ Get Workflow By Id package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the workflow - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflow`: %v\n", resp) + id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the workflow + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflow`: %v\n", resp) } ``` @@ -453,24 +453,24 @@ Get Workflow Execution package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Workflow execution ID. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecution``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflowExecution`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecution`: %v\n", resp) + id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Workflow execution ID. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecution``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowExecution`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecution`: %v\n", resp) } ``` @@ -523,24 +523,24 @@ Get Workflow Execution History package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the workflow execution - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutionHistory``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflowExecutionHistory`: []WorkflowExecutionEvent - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutionHistory`: %v\n", resp) + id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the workflow execution + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutionHistory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowExecutionHistory`: []WorkflowExecutionEvent + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutionHistory`: %v\n", resp) } ``` @@ -593,28 +593,28 @@ List Workflow Executions package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Workflow ID. - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - filters := "status eq "Failed"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **startTime**: *eq, lt, le, gt, ge* **status**: *eq* (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflowExecutions`: []WorkflowExecution - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutions`: %v\n", resp) + id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Workflow ID. + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) + filters := "status eq "Failed"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **startTime**: *eq, lt, le, gt, ge* **status**: *eq* (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowExecutions`: []WorkflowExecution + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutions`: %v\n", resp) } ``` @@ -671,25 +671,25 @@ List Complete Workflow Library package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListCompleteWorkflowLibrary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListCompleteWorkflowLibrary`: []ListCompleteWorkflowLibrary200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListCompleteWorkflowLibrary`: %v\n", resp) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListCompleteWorkflowLibrary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCompleteWorkflowLibrary`: []ListCompleteWorkflowLibrary200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListCompleteWorkflowLibrary`: %v\n", resp) } ``` @@ -739,26 +739,26 @@ List Workflow Library Actions package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - filters := "id eq "sp:create-campaign"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryActions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflowLibraryActions`: []WorkflowLibraryAction - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryActions`: %v\n", resp) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + filters := "id eq "sp:create-campaign"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryActions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflowLibraryActions`: []WorkflowLibraryAction + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryActions`: %v\n", resp) } ``` @@ -809,23 +809,23 @@ List Workflow Library Operators package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryOperators``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflowLibraryOperators`: []WorkflowLibraryOperator - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryOperators`: %v\n", resp) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryOperators``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflowLibraryOperators`: []WorkflowLibraryOperator + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryOperators`: %v\n", resp) } ``` @@ -870,26 +870,26 @@ List Workflow Library Triggers package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - filters := "id eq "idn:identity-attributes-changed"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryTriggers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflowLibraryTriggers`: []WorkflowLibraryTrigger - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryTriggers`: %v\n", resp) + limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) + offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) + filters := "id eq "idn:identity-attributes-changed"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryTriggers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflowLibraryTriggers`: []WorkflowLibraryTrigger + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryTriggers`: %v\n", resp) } ``` @@ -940,23 +940,23 @@ List Workflows package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkflowsAPI.ListWorkflows(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflows``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflows`: []Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflows`: %v\n", resp) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.ListWorkflows(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflows``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflows`: []Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflows`: %v\n", resp) } ``` @@ -1001,25 +1001,25 @@ Patch Workflow package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the Workflow - jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PatchWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PatchWorkflow`: %v\n", resp) + id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the Workflow + jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PatchWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PatchWorkflow`: %v\n", resp) } ``` @@ -1073,25 +1073,25 @@ Update Workflow package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the Workflow - workflowBody := *openapiclient.NewWorkflowBody() // WorkflowBody | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PutWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PutWorkflow`: %v\n", resp) + id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the Workflow + workflowBody := *openapiclient.NewWorkflowBody() // WorkflowBody | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PutWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PutWorkflow`: %v\n", resp) } ``` @@ -1145,25 +1145,25 @@ Test Workflow via External Trigger package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the workflow - testExternalExecuteWorkflowRequest := *openapiclient.NewTestExternalExecuteWorkflowRequest() // TestExternalExecuteWorkflowRequest | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestExternalExecuteWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestExternalExecuteWorkflow`: TestExternalExecuteWorkflow200Response - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestExternalExecuteWorkflow`: %v\n", resp) + id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the workflow + testExternalExecuteWorkflowRequest := *openapiclient.NewTestExternalExecuteWorkflowRequest() // TestExternalExecuteWorkflowRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestExternalExecuteWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestExternalExecuteWorkflow`: TestExternalExecuteWorkflow200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestExternalExecuteWorkflow`: %v\n", resp) } ``` @@ -1217,25 +1217,25 @@ Test Workflow By Id package main import ( - "context" - "fmt" - "os" - openapiclient "github.com/sailpoint-oss/golang-sdk/v2" + "context" + "fmt" + "os" + openapiclient "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the workflow - testWorkflowRequest := *openapiclient.NewTestWorkflowRequest(map[string]interface{}(123)) // TestWorkflowRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestWorkflow`: TestWorkflow200Response - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestWorkflow`: %v\n", resp) + id := "c17bea3a-574d-453c-9e04-4365fbf5af0b" // string | Id of the workflow + testWorkflowRequest := *openapiclient.NewTestWorkflowRequest(map[string]interface{}(123)) // TestWorkflowRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestWorkflow`: TestWorkflow200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestWorkflow`: %v\n", resp) } ``` diff --git a/api_v3/model_access.go b/api_v3/model_access.go index 29e4f6e31..842a3b069 100644 --- a/api_v3/model_access.go +++ b/api_v3/model_access.go @@ -50,7 +50,7 @@ func NewAccessWithDefaults() *Access { // GetId returns the Id field value if set, zero value otherwise. func (o *Access) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -60,7 +60,7 @@ func (o *Access) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Access) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -68,7 +68,7 @@ func (o *Access) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Access) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -82,7 +82,7 @@ func (o *Access) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *Access) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -92,7 +92,7 @@ func (o *Access) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Access) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -100,7 +100,7 @@ func (o *Access) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *Access) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -114,7 +114,7 @@ func (o *Access) SetName(v string) { // GetDisplayName returns the DisplayName field value if set, zero value otherwise. func (o *Access) GetDisplayName() string { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { var ret string return ret } @@ -124,7 +124,7 @@ func (o *Access) GetDisplayName() string { // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Access) GetDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { return nil, false } return o.DisplayName, true @@ -132,7 +132,7 @@ func (o *Access) GetDisplayNameOk() (*string, bool) { // HasDisplayName returns a boolean if a field has been set. func (o *Access) HasDisplayName() bool { - if o != nil && !isNil(o.DisplayName) { + if o != nil && !IsNil(o.DisplayName) { return true } @@ -146,7 +146,7 @@ func (o *Access) SetDisplayName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *Access) GetType() DtoType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret DtoType return ret } @@ -156,7 +156,7 @@ func (o *Access) GetType() DtoType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Access) GetTypeOk() (*DtoType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -164,7 +164,7 @@ func (o *Access) GetTypeOk() (*DtoType, bool) { // HasType returns a boolean if a field has been set. func (o *Access) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -178,7 +178,7 @@ func (o *Access) SetType(v DtoType) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Access) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -228,16 +228,16 @@ func (o Access) MarshalJSON() ([]byte, error) { func (o Access) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.DisplayName) { + if !IsNil(o.DisplayName) { toSerialize["displayName"] = o.DisplayName } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } if o.Description.IsSet() { @@ -251,16 +251,20 @@ func (o Access) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Access) UnmarshalJSON(bytes []byte) (err error) { +func (o *Access) UnmarshalJSON(data []byte) (err error) { varAccess := _Access{} - if err = json.Unmarshal(bytes, &varAccess); err == nil { + err = json.Unmarshal(data, &varAccess) + + if err != nil { + return err + } + *o = Access(varAccess) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "displayName") diff --git a/api_v3/model_access_constraint.go b/api_v3/model_access_constraint.go index 494e6f8c6..16cd2dffd 100644 --- a/api_v3/model_access_constraint.go +++ b/api_v3/model_access_constraint.go @@ -76,7 +76,7 @@ func (o *AccessConstraint) SetType(v string) { // GetIds returns the Ids field value if set, zero value otherwise. func (o *AccessConstraint) GetIds() []string { - if o == nil || isNil(o.Ids) { + if o == nil || IsNil(o.Ids) { var ret []string return ret } @@ -86,7 +86,7 @@ func (o *AccessConstraint) GetIds() []string { // GetIdsOk returns a tuple with the Ids field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessConstraint) GetIdsOk() ([]string, bool) { - if o == nil || isNil(o.Ids) { + if o == nil || IsNil(o.Ids) { return nil, false } return o.Ids, true @@ -94,7 +94,7 @@ func (o *AccessConstraint) GetIdsOk() ([]string, bool) { // HasIds returns a boolean if a field has been set. func (o *AccessConstraint) HasIds() bool { - if o != nil && !isNil(o.Ids) { + if o != nil && !IsNil(o.Ids) { return true } @@ -141,7 +141,7 @@ func (o AccessConstraint) MarshalJSON() ([]byte, error) { func (o AccessConstraint) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type - if !isNil(o.Ids) { + if !IsNil(o.Ids) { toSerialize["ids"] = o.Ids } toSerialize["operator"] = o.Operator @@ -153,8 +153,8 @@ func (o AccessConstraint) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessConstraint) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *AccessConstraint) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -164,7 +164,7 @@ func (o *AccessConstraint) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -178,13 +178,17 @@ func (o *AccessConstraint) UnmarshalJSON(bytes []byte) (err error) { varAccessConstraint := _AccessConstraint{} - if err = json.Unmarshal(bytes, &varAccessConstraint); err == nil { + err = json.Unmarshal(data, &varAccessConstraint) + + if err != nil { + return err + } + *o = AccessConstraint(varAccessConstraint) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "ids") delete(additionalProperties, "operator") diff --git a/api_v3/model_access_criteria.go b/api_v3/model_access_criteria.go index 66ede9aa1..3d0f5158f 100644 --- a/api_v3/model_access_criteria.go +++ b/api_v3/model_access_criteria.go @@ -47,7 +47,7 @@ func NewAccessCriteriaWithDefaults() *AccessCriteria { // GetName returns the Name field value if set, zero value otherwise. func (o *AccessCriteria) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *AccessCriteria) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessCriteria) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -65,7 +65,7 @@ func (o *AccessCriteria) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccessCriteria) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -79,7 +79,7 @@ func (o *AccessCriteria) SetName(v string) { // GetCriteriaList returns the CriteriaList field value if set, zero value otherwise. func (o *AccessCriteria) GetCriteriaList() []AccessCriteriaCriteriaListInner { - if o == nil || isNil(o.CriteriaList) { + if o == nil || IsNil(o.CriteriaList) { var ret []AccessCriteriaCriteriaListInner return ret } @@ -89,7 +89,7 @@ func (o *AccessCriteria) GetCriteriaList() []AccessCriteriaCriteriaListInner { // GetCriteriaListOk returns a tuple with the CriteriaList field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessCriteria) GetCriteriaListOk() ([]AccessCriteriaCriteriaListInner, bool) { - if o == nil || isNil(o.CriteriaList) { + if o == nil || IsNil(o.CriteriaList) { return nil, false } return o.CriteriaList, true @@ -97,7 +97,7 @@ func (o *AccessCriteria) GetCriteriaListOk() ([]AccessCriteriaCriteriaListInner, // HasCriteriaList returns a boolean if a field has been set. func (o *AccessCriteria) HasCriteriaList() bool { - if o != nil && !isNil(o.CriteriaList) { + if o != nil && !IsNil(o.CriteriaList) { return true } @@ -119,10 +119,10 @@ func (o AccessCriteria) MarshalJSON() ([]byte, error) { func (o AccessCriteria) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.CriteriaList) { + if !IsNil(o.CriteriaList) { toSerialize["criteriaList"] = o.CriteriaList } @@ -133,16 +133,20 @@ func (o AccessCriteria) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessCriteria) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessCriteria) UnmarshalJSON(data []byte) (err error) { varAccessCriteria := _AccessCriteria{} - if err = json.Unmarshal(bytes, &varAccessCriteria); err == nil { + err = json.Unmarshal(data, &varAccessCriteria) + + if err != nil { + return err + } + *o = AccessCriteria(varAccessCriteria) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "criteriaList") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_access_criteria_criteria_list_inner.go b/api_v3/model_access_criteria_criteria_list_inner.go index 811a2040d..a521b5254 100644 --- a/api_v3/model_access_criteria_criteria_list_inner.go +++ b/api_v3/model_access_criteria_criteria_list_inner.go @@ -49,7 +49,7 @@ func NewAccessCriteriaCriteriaListInnerWithDefaults() *AccessCriteriaCriteriaLis // GetType returns the Type field value if set, zero value otherwise. func (o *AccessCriteriaCriteriaListInner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *AccessCriteriaCriteriaListInner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessCriteriaCriteriaListInner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *AccessCriteriaCriteriaListInner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *AccessCriteriaCriteriaListInner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *AccessCriteriaCriteriaListInner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *AccessCriteriaCriteriaListInner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *AccessCriteriaCriteriaListInner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessCriteriaCriteriaListInner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *AccessCriteriaCriteriaListInner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccessCriteriaCriteriaListInner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *AccessCriteriaCriteriaListInner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccessCriteriaCriteriaListInner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *AccessCriteriaCriteriaListInner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessCriteriaCriteriaListInner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *AccessCriteriaCriteriaListInner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccessCriteriaCriteriaListInner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o AccessCriteriaCriteriaListInner) MarshalJSON() ([]byte, error) { func (o AccessCriteriaCriteriaListInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o AccessCriteriaCriteriaListInner) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *AccessCriteriaCriteriaListInner) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessCriteriaCriteriaListInner) UnmarshalJSON(data []byte) (err error) { varAccessCriteriaCriteriaListInner := _AccessCriteriaCriteriaListInner{} - if err = json.Unmarshal(bytes, &varAccessCriteriaCriteriaListInner); err == nil { + err = json.Unmarshal(data, &varAccessCriteriaCriteriaListInner) + + if err != nil { + return err + } + *o = AccessCriteriaCriteriaListInner(varAccessCriteriaCriteriaListInner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_access_item_requested_for.go b/api_v3/model_access_item_requested_for.go index e3c0cd0ce..52f0885ec 100644 --- a/api_v3/model_access_item_requested_for.go +++ b/api_v3/model_access_item_requested_for.go @@ -49,7 +49,7 @@ func NewAccessItemRequestedForWithDefaults() *AccessItemRequestedFor { // GetType returns the Type field value if set, zero value otherwise. func (o *AccessItemRequestedFor) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *AccessItemRequestedFor) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessItemRequestedFor) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *AccessItemRequestedFor) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *AccessItemRequestedFor) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *AccessItemRequestedFor) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *AccessItemRequestedFor) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *AccessItemRequestedFor) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessItemRequestedFor) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *AccessItemRequestedFor) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccessItemRequestedFor) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *AccessItemRequestedFor) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccessItemRequestedFor) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *AccessItemRequestedFor) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessItemRequestedFor) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *AccessItemRequestedFor) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccessItemRequestedFor) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o AccessItemRequestedFor) MarshalJSON() ([]byte, error) { func (o AccessItemRequestedFor) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o AccessItemRequestedFor) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessItemRequestedFor) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessItemRequestedFor) UnmarshalJSON(data []byte) (err error) { varAccessItemRequestedFor := _AccessItemRequestedFor{} - if err = json.Unmarshal(bytes, &varAccessItemRequestedFor); err == nil { + err = json.Unmarshal(data, &varAccessItemRequestedFor) + + if err != nil { + return err + } + *o = AccessItemRequestedFor(varAccessItemRequestedFor) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_access_item_requester.go b/api_v3/model_access_item_requester.go index 08dbd1aad..9d88890af 100644 --- a/api_v3/model_access_item_requester.go +++ b/api_v3/model_access_item_requester.go @@ -49,7 +49,7 @@ func NewAccessItemRequesterWithDefaults() *AccessItemRequester { // GetType returns the Type field value if set, zero value otherwise. func (o *AccessItemRequester) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *AccessItemRequester) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessItemRequester) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *AccessItemRequester) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *AccessItemRequester) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *AccessItemRequester) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *AccessItemRequester) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *AccessItemRequester) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessItemRequester) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *AccessItemRequester) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccessItemRequester) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *AccessItemRequester) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccessItemRequester) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *AccessItemRequester) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessItemRequester) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *AccessItemRequester) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccessItemRequester) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o AccessItemRequester) MarshalJSON() ([]byte, error) { func (o AccessItemRequester) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o AccessItemRequester) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessItemRequester) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessItemRequester) UnmarshalJSON(data []byte) (err error) { varAccessItemRequester := _AccessItemRequester{} - if err = json.Unmarshal(bytes, &varAccessItemRequester); err == nil { + err = json.Unmarshal(data, &varAccessItemRequester) + + if err != nil { + return err + } + *o = AccessItemRequester(varAccessItemRequester) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_access_item_reviewed_by.go b/api_v3/model_access_item_reviewed_by.go index d3a5742a5..66fa355f4 100644 --- a/api_v3/model_access_item_reviewed_by.go +++ b/api_v3/model_access_item_reviewed_by.go @@ -49,7 +49,7 @@ func NewAccessItemReviewedByWithDefaults() *AccessItemReviewedBy { // GetType returns the Type field value if set, zero value otherwise. func (o *AccessItemReviewedBy) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *AccessItemReviewedBy) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessItemReviewedBy) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *AccessItemReviewedBy) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *AccessItemReviewedBy) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *AccessItemReviewedBy) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *AccessItemReviewedBy) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *AccessItemReviewedBy) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessItemReviewedBy) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *AccessItemReviewedBy) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccessItemReviewedBy) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *AccessItemReviewedBy) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccessItemReviewedBy) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *AccessItemReviewedBy) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessItemReviewedBy) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *AccessItemReviewedBy) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccessItemReviewedBy) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o AccessItemReviewedBy) MarshalJSON() ([]byte, error) { func (o AccessItemReviewedBy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o AccessItemReviewedBy) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessItemReviewedBy) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessItemReviewedBy) UnmarshalJSON(data []byte) (err error) { varAccessItemReviewedBy := _AccessItemReviewedBy{} - if err = json.Unmarshal(bytes, &varAccessItemReviewedBy); err == nil { + err = json.Unmarshal(data, &varAccessItemReviewedBy) + + if err != nil { + return err + } + *o = AccessItemReviewedBy(varAccessItemReviewedBy) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_access_profile.go b/api_v3/model_access_profile.go index c0ad06748..a182e4c51 100644 --- a/api_v3/model_access_profile.go +++ b/api_v3/model_access_profile.go @@ -79,7 +79,7 @@ func NewAccessProfileWithDefaults() *AccessProfile { // GetId returns the Id field value if set, zero value otherwise. func (o *AccessProfile) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *AccessProfile) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfile) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -97,7 +97,7 @@ func (o *AccessProfile) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccessProfile) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -135,7 +135,7 @@ func (o *AccessProfile) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessProfile) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -177,7 +177,7 @@ func (o *AccessProfile) UnsetDescription() { // GetCreated returns the Created field value if set, zero value otherwise. func (o *AccessProfile) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -187,7 +187,7 @@ func (o *AccessProfile) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfile) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -195,7 +195,7 @@ func (o *AccessProfile) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *AccessProfile) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -209,7 +209,7 @@ func (o *AccessProfile) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *AccessProfile) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -219,7 +219,7 @@ func (o *AccessProfile) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfile) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -227,7 +227,7 @@ func (o *AccessProfile) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *AccessProfile) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -241,7 +241,7 @@ func (o *AccessProfile) SetModified(v time.Time) { // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *AccessProfile) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -251,7 +251,7 @@ func (o *AccessProfile) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfile) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -259,7 +259,7 @@ func (o *AccessProfile) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *AccessProfile) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -332,7 +332,7 @@ func (o *AccessProfile) GetEntitlements() []EntitlementRef { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *AccessProfile) GetEntitlementsOk() ([]EntitlementRef, bool) { - if o == nil || isNil(o.Entitlements) { + if o == nil || IsNil(o.Entitlements) { return nil, false } return o.Entitlements, true @@ -340,7 +340,7 @@ func (o *AccessProfile) GetEntitlementsOk() ([]EntitlementRef, bool) { // HasEntitlements returns a boolean if a field has been set. func (o *AccessProfile) HasEntitlements() bool { - if o != nil && isNil(o.Entitlements) { + if o != nil && !IsNil(o.Entitlements) { return true } @@ -354,7 +354,7 @@ func (o *AccessProfile) SetEntitlements(v []EntitlementRef) { // GetRequestable returns the Requestable field value if set, zero value otherwise. func (o *AccessProfile) GetRequestable() bool { - if o == nil || isNil(o.Requestable) { + if o == nil || IsNil(o.Requestable) { var ret bool return ret } @@ -364,7 +364,7 @@ func (o *AccessProfile) GetRequestable() bool { // GetRequestableOk returns a tuple with the Requestable field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfile) GetRequestableOk() (*bool, bool) { - if o == nil || isNil(o.Requestable) { + if o == nil || IsNil(o.Requestable) { return nil, false } return o.Requestable, true @@ -372,7 +372,7 @@ func (o *AccessProfile) GetRequestableOk() (*bool, bool) { // HasRequestable returns a boolean if a field has been set. func (o *AccessProfile) HasRequestable() bool { - if o != nil && !isNil(o.Requestable) { + if o != nil && !IsNil(o.Requestable) { return true } @@ -386,7 +386,7 @@ func (o *AccessProfile) SetRequestable(v bool) { // GetAccessRequestConfig returns the AccessRequestConfig field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessProfile) GetAccessRequestConfig() Requestability { - if o == nil || isNil(o.AccessRequestConfig.Get()) { + if o == nil || IsNil(o.AccessRequestConfig.Get()) { var ret Requestability return ret } @@ -428,7 +428,7 @@ func (o *AccessProfile) UnsetAccessRequestConfig() { // GetRevocationRequestConfig returns the RevocationRequestConfig field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessProfile) GetRevocationRequestConfig() Revocability { - if o == nil || isNil(o.RevocationRequestConfig.Get()) { + if o == nil || IsNil(o.RevocationRequestConfig.Get()) { var ret Revocability return ret } @@ -481,7 +481,7 @@ func (o *AccessProfile) GetSegments() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *AccessProfile) GetSegmentsOk() ([]string, bool) { - if o == nil || isNil(o.Segments) { + if o == nil || IsNil(o.Segments) { return nil, false } return o.Segments, true @@ -489,7 +489,7 @@ func (o *AccessProfile) GetSegmentsOk() ([]string, bool) { // HasSegments returns a boolean if a field has been set. func (o *AccessProfile) HasSegments() bool { - if o != nil && isNil(o.Segments) { + if o != nil && !IsNil(o.Segments) { return true } @@ -503,7 +503,7 @@ func (o *AccessProfile) SetSegments(v []string) { // GetProvisioningCriteria returns the ProvisioningCriteria field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessProfile) GetProvisioningCriteria() ProvisioningCriteriaLevel1 { - if o == nil || isNil(o.ProvisioningCriteria.Get()) { + if o == nil || IsNil(o.ProvisioningCriteria.Get()) { var ret ProvisioningCriteriaLevel1 return ret } @@ -553,14 +553,20 @@ func (o AccessProfile) MarshalJSON() ([]byte, error) { func (o AccessProfile) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } toSerialize["name"] = o.Name if o.Description.IsSet() { toSerialize["description"] = o.Description.Get() } - // skip: created is readOnly - // skip: modified is readOnly - if !isNil(o.Enabled) { + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } + if !IsNil(o.Modified) { + toSerialize["modified"] = o.Modified + } + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } toSerialize["owner"] = o.Owner @@ -568,7 +574,7 @@ func (o AccessProfile) ToMap() (map[string]interface{}, error) { if o.Entitlements != nil { toSerialize["entitlements"] = o.Entitlements } - if !isNil(o.Requestable) { + if !IsNil(o.Requestable) { toSerialize["requestable"] = o.Requestable } if o.AccessRequestConfig.IsSet() { @@ -591,8 +597,8 @@ func (o AccessProfile) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessProfile) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *AccessProfile) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -603,7 +609,7 @@ func (o *AccessProfile) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -617,13 +623,17 @@ func (o *AccessProfile) UnmarshalJSON(bytes []byte) (err error) { varAccessProfile := _AccessProfile{} - if err = json.Unmarshal(bytes, &varAccessProfile); err == nil { + err = json.Unmarshal(data, &varAccessProfile) + + if err != nil { + return err + } + *o = AccessProfile(varAccessProfile) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/api_v3/model_access_profile_approval_scheme.go b/api_v3/model_access_profile_approval_scheme.go index 9be074a5e..559d37e71 100644 --- a/api_v3/model_access_profile_approval_scheme.go +++ b/api_v3/model_access_profile_approval_scheme.go @@ -47,7 +47,7 @@ func NewAccessProfileApprovalSchemeWithDefaults() *AccessProfileApprovalScheme { // GetApproverType returns the ApproverType field value if set, zero value otherwise. func (o *AccessProfileApprovalScheme) GetApproverType() string { - if o == nil || isNil(o.ApproverType) { + if o == nil || IsNil(o.ApproverType) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *AccessProfileApprovalScheme) GetApproverType() string { // GetApproverTypeOk returns a tuple with the ApproverType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileApprovalScheme) GetApproverTypeOk() (*string, bool) { - if o == nil || isNil(o.ApproverType) { + if o == nil || IsNil(o.ApproverType) { return nil, false } return o.ApproverType, true @@ -65,7 +65,7 @@ func (o *AccessProfileApprovalScheme) GetApproverTypeOk() (*string, bool) { // HasApproverType returns a boolean if a field has been set. func (o *AccessProfileApprovalScheme) HasApproverType() bool { - if o != nil && !isNil(o.ApproverType) { + if o != nil && !IsNil(o.ApproverType) { return true } @@ -79,7 +79,7 @@ func (o *AccessProfileApprovalScheme) SetApproverType(v string) { // GetApproverId returns the ApproverId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessProfileApprovalScheme) GetApproverId() string { - if o == nil || isNil(o.ApproverId.Get()) { + if o == nil || IsNil(o.ApproverId.Get()) { var ret string return ret } @@ -129,7 +129,7 @@ func (o AccessProfileApprovalScheme) MarshalJSON() ([]byte, error) { func (o AccessProfileApprovalScheme) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.ApproverType) { + if !IsNil(o.ApproverType) { toSerialize["approverType"] = o.ApproverType } if o.ApproverId.IsSet() { @@ -143,16 +143,20 @@ func (o AccessProfileApprovalScheme) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessProfileApprovalScheme) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessProfileApprovalScheme) UnmarshalJSON(data []byte) (err error) { varAccessProfileApprovalScheme := _AccessProfileApprovalScheme{} - if err = json.Unmarshal(bytes, &varAccessProfileApprovalScheme); err == nil { + err = json.Unmarshal(data, &varAccessProfileApprovalScheme) + + if err != nil { + return err + } + *o = AccessProfileApprovalScheme(varAccessProfileApprovalScheme) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "approverType") delete(additionalProperties, "approverId") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_access_profile_bulk_delete_request.go b/api_v3/model_access_profile_bulk_delete_request.go index 5ccadff37..cc135c8e5 100644 --- a/api_v3/model_access_profile_bulk_delete_request.go +++ b/api_v3/model_access_profile_bulk_delete_request.go @@ -47,7 +47,7 @@ func NewAccessProfileBulkDeleteRequestWithDefaults() *AccessProfileBulkDeleteReq // GetAccessProfileIds returns the AccessProfileIds field value if set, zero value otherwise. func (o *AccessProfileBulkDeleteRequest) GetAccessProfileIds() []string { - if o == nil || isNil(o.AccessProfileIds) { + if o == nil || IsNil(o.AccessProfileIds) { var ret []string return ret } @@ -57,7 +57,7 @@ func (o *AccessProfileBulkDeleteRequest) GetAccessProfileIds() []string { // GetAccessProfileIdsOk returns a tuple with the AccessProfileIds field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileBulkDeleteRequest) GetAccessProfileIdsOk() ([]string, bool) { - if o == nil || isNil(o.AccessProfileIds) { + if o == nil || IsNil(o.AccessProfileIds) { return nil, false } return o.AccessProfileIds, true @@ -65,7 +65,7 @@ func (o *AccessProfileBulkDeleteRequest) GetAccessProfileIdsOk() ([]string, bool // HasAccessProfileIds returns a boolean if a field has been set. func (o *AccessProfileBulkDeleteRequest) HasAccessProfileIds() bool { - if o != nil && !isNil(o.AccessProfileIds) { + if o != nil && !IsNil(o.AccessProfileIds) { return true } @@ -79,7 +79,7 @@ func (o *AccessProfileBulkDeleteRequest) SetAccessProfileIds(v []string) { // GetBestEffortOnly returns the BestEffortOnly field value if set, zero value otherwise. func (o *AccessProfileBulkDeleteRequest) GetBestEffortOnly() bool { - if o == nil || isNil(o.BestEffortOnly) { + if o == nil || IsNil(o.BestEffortOnly) { var ret bool return ret } @@ -89,7 +89,7 @@ func (o *AccessProfileBulkDeleteRequest) GetBestEffortOnly() bool { // GetBestEffortOnlyOk returns a tuple with the BestEffortOnly field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileBulkDeleteRequest) GetBestEffortOnlyOk() (*bool, bool) { - if o == nil || isNil(o.BestEffortOnly) { + if o == nil || IsNil(o.BestEffortOnly) { return nil, false } return o.BestEffortOnly, true @@ -97,7 +97,7 @@ func (o *AccessProfileBulkDeleteRequest) GetBestEffortOnlyOk() (*bool, bool) { // HasBestEffortOnly returns a boolean if a field has been set. func (o *AccessProfileBulkDeleteRequest) HasBestEffortOnly() bool { - if o != nil && !isNil(o.BestEffortOnly) { + if o != nil && !IsNil(o.BestEffortOnly) { return true } @@ -119,10 +119,10 @@ func (o AccessProfileBulkDeleteRequest) MarshalJSON() ([]byte, error) { func (o AccessProfileBulkDeleteRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.AccessProfileIds) { + if !IsNil(o.AccessProfileIds) { toSerialize["accessProfileIds"] = o.AccessProfileIds } - if !isNil(o.BestEffortOnly) { + if !IsNil(o.BestEffortOnly) { toSerialize["bestEffortOnly"] = o.BestEffortOnly } @@ -133,16 +133,20 @@ func (o AccessProfileBulkDeleteRequest) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *AccessProfileBulkDeleteRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessProfileBulkDeleteRequest) UnmarshalJSON(data []byte) (err error) { varAccessProfileBulkDeleteRequest := _AccessProfileBulkDeleteRequest{} - if err = json.Unmarshal(bytes, &varAccessProfileBulkDeleteRequest); err == nil { + err = json.Unmarshal(data, &varAccessProfileBulkDeleteRequest) + + if err != nil { + return err + } + *o = AccessProfileBulkDeleteRequest(varAccessProfileBulkDeleteRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "accessProfileIds") delete(additionalProperties, "bestEffortOnly") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_access_profile_bulk_delete_response.go b/api_v3/model_access_profile_bulk_delete_response.go index 06bd91f78..c283929cf 100644 --- a/api_v3/model_access_profile_bulk_delete_response.go +++ b/api_v3/model_access_profile_bulk_delete_response.go @@ -49,7 +49,7 @@ func NewAccessProfileBulkDeleteResponseWithDefaults() *AccessProfileBulkDeleteRe // GetTaskId returns the TaskId field value if set, zero value otherwise. func (o *AccessProfileBulkDeleteResponse) GetTaskId() string { - if o == nil || isNil(o.TaskId) { + if o == nil || IsNil(o.TaskId) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *AccessProfileBulkDeleteResponse) GetTaskId() string { // GetTaskIdOk returns a tuple with the TaskId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileBulkDeleteResponse) GetTaskIdOk() (*string, bool) { - if o == nil || isNil(o.TaskId) { + if o == nil || IsNil(o.TaskId) { return nil, false } return o.TaskId, true @@ -67,7 +67,7 @@ func (o *AccessProfileBulkDeleteResponse) GetTaskIdOk() (*string, bool) { // HasTaskId returns a boolean if a field has been set. func (o *AccessProfileBulkDeleteResponse) HasTaskId() bool { - if o != nil && !isNil(o.TaskId) { + if o != nil && !IsNil(o.TaskId) { return true } @@ -81,7 +81,7 @@ func (o *AccessProfileBulkDeleteResponse) SetTaskId(v string) { // GetPending returns the Pending field value if set, zero value otherwise. func (o *AccessProfileBulkDeleteResponse) GetPending() []string { - if o == nil || isNil(o.Pending) { + if o == nil || IsNil(o.Pending) { var ret []string return ret } @@ -91,7 +91,7 @@ func (o *AccessProfileBulkDeleteResponse) GetPending() []string { // GetPendingOk returns a tuple with the Pending field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileBulkDeleteResponse) GetPendingOk() ([]string, bool) { - if o == nil || isNil(o.Pending) { + if o == nil || IsNil(o.Pending) { return nil, false } return o.Pending, true @@ -99,7 +99,7 @@ func (o *AccessProfileBulkDeleteResponse) GetPendingOk() ([]string, bool) { // HasPending returns a boolean if a field has been set. func (o *AccessProfileBulkDeleteResponse) HasPending() bool { - if o != nil && !isNil(o.Pending) { + if o != nil && !IsNil(o.Pending) { return true } @@ -113,7 +113,7 @@ func (o *AccessProfileBulkDeleteResponse) SetPending(v []string) { // GetInUse returns the InUse field value if set, zero value otherwise. func (o *AccessProfileBulkDeleteResponse) GetInUse() []AccessProfileUsage { - if o == nil || isNil(o.InUse) { + if o == nil || IsNil(o.InUse) { var ret []AccessProfileUsage return ret } @@ -123,7 +123,7 @@ func (o *AccessProfileBulkDeleteResponse) GetInUse() []AccessProfileUsage { // GetInUseOk returns a tuple with the InUse field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileBulkDeleteResponse) GetInUseOk() ([]AccessProfileUsage, bool) { - if o == nil || isNil(o.InUse) { + if o == nil || IsNil(o.InUse) { return nil, false } return o.InUse, true @@ -131,7 +131,7 @@ func (o *AccessProfileBulkDeleteResponse) GetInUseOk() ([]AccessProfileUsage, bo // HasInUse returns a boolean if a field has been set. func (o *AccessProfileBulkDeleteResponse) HasInUse() bool { - if o != nil && !isNil(o.InUse) { + if o != nil && !IsNil(o.InUse) { return true } @@ -153,13 +153,13 @@ func (o AccessProfileBulkDeleteResponse) MarshalJSON() ([]byte, error) { func (o AccessProfileBulkDeleteResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.TaskId) { + if !IsNil(o.TaskId) { toSerialize["taskId"] = o.TaskId } - if !isNil(o.Pending) { + if !IsNil(o.Pending) { toSerialize["pending"] = o.Pending } - if !isNil(o.InUse) { + if !IsNil(o.InUse) { toSerialize["inUse"] = o.InUse } @@ -170,16 +170,20 @@ func (o AccessProfileBulkDeleteResponse) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *AccessProfileBulkDeleteResponse) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessProfileBulkDeleteResponse) UnmarshalJSON(data []byte) (err error) { varAccessProfileBulkDeleteResponse := _AccessProfileBulkDeleteResponse{} - if err = json.Unmarshal(bytes, &varAccessProfileBulkDeleteResponse); err == nil { + err = json.Unmarshal(data, &varAccessProfileBulkDeleteResponse) + + if err != nil { + return err + } + *o = AccessProfileBulkDeleteResponse(varAccessProfileBulkDeleteResponse) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "taskId") delete(additionalProperties, "pending") delete(additionalProperties, "inUse") diff --git a/api_v3/model_access_profile_document.go b/api_v3/model_access_profile_document.go index 716411780..8a96a3abf 100644 --- a/api_v3/model_access_profile_document.go +++ b/api_v3/model_access_profile_document.go @@ -136,7 +136,7 @@ func (o *AccessProfileDocument) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *AccessProfileDocument) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -146,7 +146,7 @@ func (o *AccessProfileDocument) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileDocument) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -154,7 +154,7 @@ func (o *AccessProfileDocument) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *AccessProfileDocument) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -168,7 +168,7 @@ func (o *AccessProfileDocument) SetDescription(v string) { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessProfileDocument) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -210,7 +210,7 @@ func (o *AccessProfileDocument) UnsetCreated() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessProfileDocument) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -252,7 +252,7 @@ func (o *AccessProfileDocument) UnsetModified() { // GetSynced returns the Synced field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessProfileDocument) GetSynced() time.Time { - if o == nil || isNil(o.Synced.Get()) { + if o == nil || IsNil(o.Synced.Get()) { var ret time.Time return ret } @@ -294,7 +294,7 @@ func (o *AccessProfileDocument) UnsetSynced() { // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *AccessProfileDocument) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -304,7 +304,7 @@ func (o *AccessProfileDocument) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileDocument) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -312,7 +312,7 @@ func (o *AccessProfileDocument) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *AccessProfileDocument) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -326,7 +326,7 @@ func (o *AccessProfileDocument) SetEnabled(v bool) { // GetRequestable returns the Requestable field value if set, zero value otherwise. func (o *AccessProfileDocument) GetRequestable() bool { - if o == nil || isNil(o.Requestable) { + if o == nil || IsNil(o.Requestable) { var ret bool return ret } @@ -336,7 +336,7 @@ func (o *AccessProfileDocument) GetRequestable() bool { // GetRequestableOk returns a tuple with the Requestable field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileDocument) GetRequestableOk() (*bool, bool) { - if o == nil || isNil(o.Requestable) { + if o == nil || IsNil(o.Requestable) { return nil, false } return o.Requestable, true @@ -344,7 +344,7 @@ func (o *AccessProfileDocument) GetRequestableOk() (*bool, bool) { // HasRequestable returns a boolean if a field has been set. func (o *AccessProfileDocument) HasRequestable() bool { - if o != nil && !isNil(o.Requestable) { + if o != nil && !IsNil(o.Requestable) { return true } @@ -358,7 +358,7 @@ func (o *AccessProfileDocument) SetRequestable(v bool) { // GetRequestCommentsRequired returns the RequestCommentsRequired field value if set, zero value otherwise. func (o *AccessProfileDocument) GetRequestCommentsRequired() bool { - if o == nil || isNil(o.RequestCommentsRequired) { + if o == nil || IsNil(o.RequestCommentsRequired) { var ret bool return ret } @@ -368,7 +368,7 @@ func (o *AccessProfileDocument) GetRequestCommentsRequired() bool { // GetRequestCommentsRequiredOk returns a tuple with the RequestCommentsRequired field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileDocument) GetRequestCommentsRequiredOk() (*bool, bool) { - if o == nil || isNil(o.RequestCommentsRequired) { + if o == nil || IsNil(o.RequestCommentsRequired) { return nil, false } return o.RequestCommentsRequired, true @@ -376,7 +376,7 @@ func (o *AccessProfileDocument) GetRequestCommentsRequiredOk() (*bool, bool) { // HasRequestCommentsRequired returns a boolean if a field has been set. func (o *AccessProfileDocument) HasRequestCommentsRequired() bool { - if o != nil && !isNil(o.RequestCommentsRequired) { + if o != nil && !IsNil(o.RequestCommentsRequired) { return true } @@ -390,7 +390,7 @@ func (o *AccessProfileDocument) SetRequestCommentsRequired(v bool) { // GetOwner returns the Owner field value if set, zero value otherwise. func (o *AccessProfileDocument) GetOwner() BaseAccessAllOfOwner { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { var ret BaseAccessAllOfOwner return ret } @@ -400,7 +400,7 @@ func (o *AccessProfileDocument) GetOwner() BaseAccessAllOfOwner { // GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileDocument) GetOwnerOk() (*BaseAccessAllOfOwner, bool) { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { return nil, false } return o.Owner, true @@ -408,7 +408,7 @@ func (o *AccessProfileDocument) GetOwnerOk() (*BaseAccessAllOfOwner, bool) { // HasOwner returns a boolean if a field has been set. func (o *AccessProfileDocument) HasOwner() bool { - if o != nil && !isNil(o.Owner) { + if o != nil && !IsNil(o.Owner) { return true } @@ -446,7 +446,7 @@ func (o *AccessProfileDocument) SetType(v string) { // GetSource returns the Source field value if set, zero value otherwise. func (o *AccessProfileDocument) GetSource() AccessProfileDocumentAllOfSource { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { var ret AccessProfileDocumentAllOfSource return ret } @@ -456,7 +456,7 @@ func (o *AccessProfileDocument) GetSource() AccessProfileDocumentAllOfSource { // GetSourceOk returns a tuple with the Source field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileDocument) GetSourceOk() (*AccessProfileDocumentAllOfSource, bool) { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { return nil, false } return o.Source, true @@ -464,7 +464,7 @@ func (o *AccessProfileDocument) GetSourceOk() (*AccessProfileDocumentAllOfSource // HasSource returns a boolean if a field has been set. func (o *AccessProfileDocument) HasSource() bool { - if o != nil && !isNil(o.Source) { + if o != nil && !IsNil(o.Source) { return true } @@ -478,7 +478,7 @@ func (o *AccessProfileDocument) SetSource(v AccessProfileDocumentAllOfSource) { // GetEntitlements returns the Entitlements field value if set, zero value otherwise. func (o *AccessProfileDocument) GetEntitlements() []BaseEntitlement { - if o == nil || isNil(o.Entitlements) { + if o == nil || IsNil(o.Entitlements) { var ret []BaseEntitlement return ret } @@ -488,7 +488,7 @@ func (o *AccessProfileDocument) GetEntitlements() []BaseEntitlement { // GetEntitlementsOk returns a tuple with the Entitlements field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileDocument) GetEntitlementsOk() ([]BaseEntitlement, bool) { - if o == nil || isNil(o.Entitlements) { + if o == nil || IsNil(o.Entitlements) { return nil, false } return o.Entitlements, true @@ -496,7 +496,7 @@ func (o *AccessProfileDocument) GetEntitlementsOk() ([]BaseEntitlement, bool) { // HasEntitlements returns a boolean if a field has been set. func (o *AccessProfileDocument) HasEntitlements() bool { - if o != nil && !isNil(o.Entitlements) { + if o != nil && !IsNil(o.Entitlements) { return true } @@ -510,7 +510,7 @@ func (o *AccessProfileDocument) SetEntitlements(v []BaseEntitlement) { // GetEntitlementCount returns the EntitlementCount field value if set, zero value otherwise. func (o *AccessProfileDocument) GetEntitlementCount() int32 { - if o == nil || isNil(o.EntitlementCount) { + if o == nil || IsNil(o.EntitlementCount) { var ret int32 return ret } @@ -520,7 +520,7 @@ func (o *AccessProfileDocument) GetEntitlementCount() int32 { // GetEntitlementCountOk returns a tuple with the EntitlementCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileDocument) GetEntitlementCountOk() (*int32, bool) { - if o == nil || isNil(o.EntitlementCount) { + if o == nil || IsNil(o.EntitlementCount) { return nil, false } return o.EntitlementCount, true @@ -528,7 +528,7 @@ func (o *AccessProfileDocument) GetEntitlementCountOk() (*int32, bool) { // HasEntitlementCount returns a boolean if a field has been set. func (o *AccessProfileDocument) HasEntitlementCount() bool { - if o != nil && !isNil(o.EntitlementCount) { + if o != nil && !IsNil(o.EntitlementCount) { return true } @@ -542,7 +542,7 @@ func (o *AccessProfileDocument) SetEntitlementCount(v int32) { // GetTags returns the Tags field value if set, zero value otherwise. func (o *AccessProfileDocument) GetTags() []string { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { var ret []string return ret } @@ -552,7 +552,7 @@ func (o *AccessProfileDocument) GetTags() []string { // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileDocument) GetTagsOk() ([]string, bool) { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { return nil, false } return o.Tags, true @@ -560,7 +560,7 @@ func (o *AccessProfileDocument) GetTagsOk() ([]string, bool) { // HasTags returns a boolean if a field has been set. func (o *AccessProfileDocument) HasTags() bool { - if o != nil && !isNil(o.Tags) { + if o != nil && !IsNil(o.Tags) { return true } @@ -584,7 +584,7 @@ func (o AccessProfileDocument) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["name"] = o.Name - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } if o.Created.IsSet() { @@ -596,29 +596,29 @@ func (o AccessProfileDocument) ToMap() (map[string]interface{}, error) { if o.Synced.IsSet() { toSerialize["synced"] = o.Synced.Get() } - if !isNil(o.Enabled) { + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - if !isNil(o.Requestable) { + if !IsNil(o.Requestable) { toSerialize["requestable"] = o.Requestable } - if !isNil(o.RequestCommentsRequired) { + if !IsNil(o.RequestCommentsRequired) { toSerialize["requestCommentsRequired"] = o.RequestCommentsRequired } - if !isNil(o.Owner) { + if !IsNil(o.Owner) { toSerialize["owner"] = o.Owner } toSerialize["_type"] = o.Type - if !isNil(o.Source) { + if !IsNil(o.Source) { toSerialize["source"] = o.Source } - if !isNil(o.Entitlements) { + if !IsNil(o.Entitlements) { toSerialize["entitlements"] = o.Entitlements } - if !isNil(o.EntitlementCount) { + if !IsNil(o.EntitlementCount) { toSerialize["entitlementCount"] = o.EntitlementCount } - if !isNil(o.Tags) { + if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -629,8 +629,8 @@ func (o AccessProfileDocument) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessProfileDocument) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *AccessProfileDocument) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -641,7 +641,7 @@ func (o *AccessProfileDocument) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -655,13 +655,17 @@ func (o *AccessProfileDocument) UnmarshalJSON(bytes []byte) (err error) { varAccessProfileDocument := _AccessProfileDocument{} - if err = json.Unmarshal(bytes, &varAccessProfileDocument); err == nil { + err = json.Unmarshal(data, &varAccessProfileDocument) + + if err != nil { + return err + } + *o = AccessProfileDocument(varAccessProfileDocument) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/api_v3/model_access_profile_document_all_of_source.go b/api_v3/model_access_profile_document_all_of_source.go index 6f1ace6a6..1858865fd 100644 --- a/api_v3/model_access_profile_document_all_of_source.go +++ b/api_v3/model_access_profile_document_all_of_source.go @@ -47,7 +47,7 @@ func NewAccessProfileDocumentAllOfSourceWithDefaults() *AccessProfileDocumentAll // GetId returns the Id field value if set, zero value otherwise. func (o *AccessProfileDocumentAllOfSource) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *AccessProfileDocumentAllOfSource) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileDocumentAllOfSource) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -65,7 +65,7 @@ func (o *AccessProfileDocumentAllOfSource) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccessProfileDocumentAllOfSource) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -79,7 +79,7 @@ func (o *AccessProfileDocumentAllOfSource) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccessProfileDocumentAllOfSource) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *AccessProfileDocumentAllOfSource) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileDocumentAllOfSource) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -97,7 +97,7 @@ func (o *AccessProfileDocumentAllOfSource) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccessProfileDocumentAllOfSource) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -119,10 +119,10 @@ func (o AccessProfileDocumentAllOfSource) MarshalJSON() ([]byte, error) { func (o AccessProfileDocumentAllOfSource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -133,16 +133,20 @@ func (o AccessProfileDocumentAllOfSource) ToMap() (map[string]interface{}, error return toSerialize, nil } -func (o *AccessProfileDocumentAllOfSource) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessProfileDocumentAllOfSource) UnmarshalJSON(data []byte) (err error) { varAccessProfileDocumentAllOfSource := _AccessProfileDocumentAllOfSource{} - if err = json.Unmarshal(bytes, &varAccessProfileDocumentAllOfSource); err == nil { + err = json.Unmarshal(data, &varAccessProfileDocumentAllOfSource) + + if err != nil { + return err + } + *o = AccessProfileDocumentAllOfSource(varAccessProfileDocumentAllOfSource) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_access_profile_entitlement.go b/api_v3/model_access_profile_entitlement.go index 516b84ac1..637083fc9 100644 --- a/api_v3/model_access_profile_entitlement.go +++ b/api_v3/model_access_profile_entitlement.go @@ -55,7 +55,7 @@ func NewAccessProfileEntitlementWithDefaults() *AccessProfileEntitlement { // GetId returns the Id field value if set, zero value otherwise. func (o *AccessProfileEntitlement) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -65,7 +65,7 @@ func (o *AccessProfileEntitlement) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileEntitlement) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -73,7 +73,7 @@ func (o *AccessProfileEntitlement) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccessProfileEntitlement) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -87,7 +87,7 @@ func (o *AccessProfileEntitlement) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccessProfileEntitlement) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -97,7 +97,7 @@ func (o *AccessProfileEntitlement) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileEntitlement) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -105,7 +105,7 @@ func (o *AccessProfileEntitlement) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccessProfileEntitlement) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -119,7 +119,7 @@ func (o *AccessProfileEntitlement) SetName(v string) { // GetDisplayName returns the DisplayName field value if set, zero value otherwise. func (o *AccessProfileEntitlement) GetDisplayName() string { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { var ret string return ret } @@ -129,7 +129,7 @@ func (o *AccessProfileEntitlement) GetDisplayName() string { // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileEntitlement) GetDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { return nil, false } return o.DisplayName, true @@ -137,7 +137,7 @@ func (o *AccessProfileEntitlement) GetDisplayNameOk() (*string, bool) { // HasDisplayName returns a boolean if a field has been set. func (o *AccessProfileEntitlement) HasDisplayName() bool { - if o != nil && !isNil(o.DisplayName) { + if o != nil && !IsNil(o.DisplayName) { return true } @@ -151,7 +151,7 @@ func (o *AccessProfileEntitlement) SetDisplayName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *AccessProfileEntitlement) GetType() DtoType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret DtoType return ret } @@ -161,7 +161,7 @@ func (o *AccessProfileEntitlement) GetType() DtoType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileEntitlement) GetTypeOk() (*DtoType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -169,7 +169,7 @@ func (o *AccessProfileEntitlement) GetTypeOk() (*DtoType, bool) { // HasType returns a boolean if a field has been set. func (o *AccessProfileEntitlement) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -183,7 +183,7 @@ func (o *AccessProfileEntitlement) SetType(v DtoType) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessProfileEntitlement) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -225,7 +225,7 @@ func (o *AccessProfileEntitlement) UnsetDescription() { // GetSource returns the Source field value if set, zero value otherwise. func (o *AccessProfileEntitlement) GetSource() Reference { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { var ret Reference return ret } @@ -235,7 +235,7 @@ func (o *AccessProfileEntitlement) GetSource() Reference { // GetSourceOk returns a tuple with the Source field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileEntitlement) GetSourceOk() (*Reference, bool) { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { return nil, false } return o.Source, true @@ -243,7 +243,7 @@ func (o *AccessProfileEntitlement) GetSourceOk() (*Reference, bool) { // HasSource returns a boolean if a field has been set. func (o *AccessProfileEntitlement) HasSource() bool { - if o != nil && !isNil(o.Source) { + if o != nil && !IsNil(o.Source) { return true } @@ -257,7 +257,7 @@ func (o *AccessProfileEntitlement) SetSource(v Reference) { // GetPrivileged returns the Privileged field value if set, zero value otherwise. func (o *AccessProfileEntitlement) GetPrivileged() bool { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { var ret bool return ret } @@ -267,7 +267,7 @@ func (o *AccessProfileEntitlement) GetPrivileged() bool { // GetPrivilegedOk returns a tuple with the Privileged field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileEntitlement) GetPrivilegedOk() (*bool, bool) { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { return nil, false } return o.Privileged, true @@ -275,7 +275,7 @@ func (o *AccessProfileEntitlement) GetPrivilegedOk() (*bool, bool) { // HasPrivileged returns a boolean if a field has been set. func (o *AccessProfileEntitlement) HasPrivileged() bool { - if o != nil && !isNil(o.Privileged) { + if o != nil && !IsNil(o.Privileged) { return true } @@ -289,7 +289,7 @@ func (o *AccessProfileEntitlement) SetPrivileged(v bool) { // GetAttribute returns the Attribute field value if set, zero value otherwise. func (o *AccessProfileEntitlement) GetAttribute() string { - if o == nil || isNil(o.Attribute) { + if o == nil || IsNil(o.Attribute) { var ret string return ret } @@ -299,7 +299,7 @@ func (o *AccessProfileEntitlement) GetAttribute() string { // GetAttributeOk returns a tuple with the Attribute field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileEntitlement) GetAttributeOk() (*string, bool) { - if o == nil || isNil(o.Attribute) { + if o == nil || IsNil(o.Attribute) { return nil, false } return o.Attribute, true @@ -307,7 +307,7 @@ func (o *AccessProfileEntitlement) GetAttributeOk() (*string, bool) { // HasAttribute returns a boolean if a field has been set. func (o *AccessProfileEntitlement) HasAttribute() bool { - if o != nil && !isNil(o.Attribute) { + if o != nil && !IsNil(o.Attribute) { return true } @@ -321,7 +321,7 @@ func (o *AccessProfileEntitlement) SetAttribute(v string) { // GetValue returns the Value field value if set, zero value otherwise. func (o *AccessProfileEntitlement) GetValue() string { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { var ret string return ret } @@ -331,7 +331,7 @@ func (o *AccessProfileEntitlement) GetValue() string { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileEntitlement) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { return nil, false } return o.Value, true @@ -339,7 +339,7 @@ func (o *AccessProfileEntitlement) GetValueOk() (*string, bool) { // HasValue returns a boolean if a field has been set. func (o *AccessProfileEntitlement) HasValue() bool { - if o != nil && !isNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -353,7 +353,7 @@ func (o *AccessProfileEntitlement) SetValue(v string) { // GetStandalone returns the Standalone field value if set, zero value otherwise. func (o *AccessProfileEntitlement) GetStandalone() bool { - if o == nil || isNil(o.Standalone) { + if o == nil || IsNil(o.Standalone) { var ret bool return ret } @@ -363,7 +363,7 @@ func (o *AccessProfileEntitlement) GetStandalone() bool { // GetStandaloneOk returns a tuple with the Standalone field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileEntitlement) GetStandaloneOk() (*bool, bool) { - if o == nil || isNil(o.Standalone) { + if o == nil || IsNil(o.Standalone) { return nil, false } return o.Standalone, true @@ -371,7 +371,7 @@ func (o *AccessProfileEntitlement) GetStandaloneOk() (*bool, bool) { // HasStandalone returns a boolean if a field has been set. func (o *AccessProfileEntitlement) HasStandalone() bool { - if o != nil && !isNil(o.Standalone) { + if o != nil && !IsNil(o.Standalone) { return true } @@ -393,34 +393,34 @@ func (o AccessProfileEntitlement) MarshalJSON() ([]byte, error) { func (o AccessProfileEntitlement) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.DisplayName) { + if !IsNil(o.DisplayName) { toSerialize["displayName"] = o.DisplayName } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } if o.Description.IsSet() { toSerialize["description"] = o.Description.Get() } - if !isNil(o.Source) { + if !IsNil(o.Source) { toSerialize["source"] = o.Source } - if !isNil(o.Privileged) { + if !IsNil(o.Privileged) { toSerialize["privileged"] = o.Privileged } - if !isNil(o.Attribute) { + if !IsNil(o.Attribute) { toSerialize["attribute"] = o.Attribute } - if !isNil(o.Value) { + if !IsNil(o.Value) { toSerialize["value"] = o.Value } - if !isNil(o.Standalone) { + if !IsNil(o.Standalone) { toSerialize["standalone"] = o.Standalone } @@ -431,16 +431,20 @@ func (o AccessProfileEntitlement) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessProfileEntitlement) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessProfileEntitlement) UnmarshalJSON(data []byte) (err error) { varAccessProfileEntitlement := _AccessProfileEntitlement{} - if err = json.Unmarshal(bytes, &varAccessProfileEntitlement); err == nil { + err = json.Unmarshal(data, &varAccessProfileEntitlement) + + if err != nil { + return err + } + *o = AccessProfileEntitlement(varAccessProfileEntitlement) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "displayName") diff --git a/api_v3/model_access_profile_ref.go b/api_v3/model_access_profile_ref.go index 041196b84..e72cd9a16 100644 --- a/api_v3/model_access_profile_ref.go +++ b/api_v3/model_access_profile_ref.go @@ -49,7 +49,7 @@ func NewAccessProfileRefWithDefaults() *AccessProfileRef { // GetId returns the Id field value if set, zero value otherwise. func (o *AccessProfileRef) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *AccessProfileRef) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileRef) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -67,7 +67,7 @@ func (o *AccessProfileRef) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccessProfileRef) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -81,7 +81,7 @@ func (o *AccessProfileRef) SetId(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *AccessProfileRef) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *AccessProfileRef) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileRef) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -99,7 +99,7 @@ func (o *AccessProfileRef) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *AccessProfileRef) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -113,7 +113,7 @@ func (o *AccessProfileRef) SetType(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccessProfileRef) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *AccessProfileRef) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileRef) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *AccessProfileRef) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccessProfileRef) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o AccessProfileRef) MarshalJSON() ([]byte, error) { func (o AccessProfileRef) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o AccessProfileRef) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessProfileRef) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessProfileRef) UnmarshalJSON(data []byte) (err error) { varAccessProfileRef := _AccessProfileRef{} - if err = json.Unmarshal(bytes, &varAccessProfileRef); err == nil { + err = json.Unmarshal(data, &varAccessProfileRef) + + if err != nil { + return err + } + *o = AccessProfileRef(varAccessProfileRef) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "type") delete(additionalProperties, "name") diff --git a/api_v3/model_access_profile_role.go b/api_v3/model_access_profile_role.go index 76637ba57..4014075f0 100644 --- a/api_v3/model_access_profile_role.go +++ b/api_v3/model_access_profile_role.go @@ -53,7 +53,7 @@ func NewAccessProfileRoleWithDefaults() *AccessProfileRole { // GetId returns the Id field value if set, zero value otherwise. func (o *AccessProfileRole) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -63,7 +63,7 @@ func (o *AccessProfileRole) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileRole) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -71,7 +71,7 @@ func (o *AccessProfileRole) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccessProfileRole) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -85,7 +85,7 @@ func (o *AccessProfileRole) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccessProfileRole) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -95,7 +95,7 @@ func (o *AccessProfileRole) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileRole) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -103,7 +103,7 @@ func (o *AccessProfileRole) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccessProfileRole) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -117,7 +117,7 @@ func (o *AccessProfileRole) SetName(v string) { // GetDisplayName returns the DisplayName field value if set, zero value otherwise. func (o *AccessProfileRole) GetDisplayName() string { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { var ret string return ret } @@ -127,7 +127,7 @@ func (o *AccessProfileRole) GetDisplayName() string { // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileRole) GetDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { return nil, false } return o.DisplayName, true @@ -135,7 +135,7 @@ func (o *AccessProfileRole) GetDisplayNameOk() (*string, bool) { // HasDisplayName returns a boolean if a field has been set. func (o *AccessProfileRole) HasDisplayName() bool { - if o != nil && !isNil(o.DisplayName) { + if o != nil && !IsNil(o.DisplayName) { return true } @@ -149,7 +149,7 @@ func (o *AccessProfileRole) SetDisplayName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *AccessProfileRole) GetType() DtoType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret DtoType return ret } @@ -159,7 +159,7 @@ func (o *AccessProfileRole) GetType() DtoType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileRole) GetTypeOk() (*DtoType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -167,7 +167,7 @@ func (o *AccessProfileRole) GetTypeOk() (*DtoType, bool) { // HasType returns a boolean if a field has been set. func (o *AccessProfileRole) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -181,7 +181,7 @@ func (o *AccessProfileRole) SetType(v DtoType) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessProfileRole) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -223,7 +223,7 @@ func (o *AccessProfileRole) UnsetDescription() { // GetOwner returns the Owner field value if set, zero value otherwise. func (o *AccessProfileRole) GetOwner() DisplayReference { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { var ret DisplayReference return ret } @@ -233,7 +233,7 @@ func (o *AccessProfileRole) GetOwner() DisplayReference { // GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileRole) GetOwnerOk() (*DisplayReference, bool) { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { return nil, false } return o.Owner, true @@ -241,7 +241,7 @@ func (o *AccessProfileRole) GetOwnerOk() (*DisplayReference, bool) { // HasOwner returns a boolean if a field has been set. func (o *AccessProfileRole) HasOwner() bool { - if o != nil && !isNil(o.Owner) { + if o != nil && !IsNil(o.Owner) { return true } @@ -255,7 +255,7 @@ func (o *AccessProfileRole) SetOwner(v DisplayReference) { // GetDisabled returns the Disabled field value if set, zero value otherwise. func (o *AccessProfileRole) GetDisabled() bool { - if o == nil || isNil(o.Disabled) { + if o == nil || IsNil(o.Disabled) { var ret bool return ret } @@ -265,7 +265,7 @@ func (o *AccessProfileRole) GetDisabled() bool { // GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileRole) GetDisabledOk() (*bool, bool) { - if o == nil || isNil(o.Disabled) { + if o == nil || IsNil(o.Disabled) { return nil, false } return o.Disabled, true @@ -273,7 +273,7 @@ func (o *AccessProfileRole) GetDisabledOk() (*bool, bool) { // HasDisabled returns a boolean if a field has been set. func (o *AccessProfileRole) HasDisabled() bool { - if o != nil && !isNil(o.Disabled) { + if o != nil && !IsNil(o.Disabled) { return true } @@ -287,7 +287,7 @@ func (o *AccessProfileRole) SetDisabled(v bool) { // GetRevocable returns the Revocable field value if set, zero value otherwise. func (o *AccessProfileRole) GetRevocable() bool { - if o == nil || isNil(o.Revocable) { + if o == nil || IsNil(o.Revocable) { var ret bool return ret } @@ -297,7 +297,7 @@ func (o *AccessProfileRole) GetRevocable() bool { // GetRevocableOk returns a tuple with the Revocable field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileRole) GetRevocableOk() (*bool, bool) { - if o == nil || isNil(o.Revocable) { + if o == nil || IsNil(o.Revocable) { return nil, false } return o.Revocable, true @@ -305,7 +305,7 @@ func (o *AccessProfileRole) GetRevocableOk() (*bool, bool) { // HasRevocable returns a boolean if a field has been set. func (o *AccessProfileRole) HasRevocable() bool { - if o != nil && !isNil(o.Revocable) { + if o != nil && !IsNil(o.Revocable) { return true } @@ -327,28 +327,28 @@ func (o AccessProfileRole) MarshalJSON() ([]byte, error) { func (o AccessProfileRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.DisplayName) { + if !IsNil(o.DisplayName) { toSerialize["displayName"] = o.DisplayName } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } if o.Description.IsSet() { toSerialize["description"] = o.Description.Get() } - if !isNil(o.Owner) { + if !IsNil(o.Owner) { toSerialize["owner"] = o.Owner } - if !isNil(o.Disabled) { + if !IsNil(o.Disabled) { toSerialize["disabled"] = o.Disabled } - if !isNil(o.Revocable) { + if !IsNil(o.Revocable) { toSerialize["revocable"] = o.Revocable } @@ -359,16 +359,20 @@ func (o AccessProfileRole) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessProfileRole) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessProfileRole) UnmarshalJSON(data []byte) (err error) { varAccessProfileRole := _AccessProfileRole{} - if err = json.Unmarshal(bytes, &varAccessProfileRole); err == nil { + err = json.Unmarshal(data, &varAccessProfileRole) + + if err != nil { + return err + } + *o = AccessProfileRole(varAccessProfileRole) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "displayName") diff --git a/api_v3/model_access_profile_source_ref.go b/api_v3/model_access_profile_source_ref.go index bebc4fd64..912bb12a8 100644 --- a/api_v3/model_access_profile_source_ref.go +++ b/api_v3/model_access_profile_source_ref.go @@ -49,7 +49,7 @@ func NewAccessProfileSourceRefWithDefaults() *AccessProfileSourceRef { // GetId returns the Id field value if set, zero value otherwise. func (o *AccessProfileSourceRef) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *AccessProfileSourceRef) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileSourceRef) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -67,7 +67,7 @@ func (o *AccessProfileSourceRef) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccessProfileSourceRef) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -81,7 +81,7 @@ func (o *AccessProfileSourceRef) SetId(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *AccessProfileSourceRef) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *AccessProfileSourceRef) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileSourceRef) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -99,7 +99,7 @@ func (o *AccessProfileSourceRef) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *AccessProfileSourceRef) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -113,7 +113,7 @@ func (o *AccessProfileSourceRef) SetType(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccessProfileSourceRef) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *AccessProfileSourceRef) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileSourceRef) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *AccessProfileSourceRef) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccessProfileSourceRef) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o AccessProfileSourceRef) MarshalJSON() ([]byte, error) { func (o AccessProfileSourceRef) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o AccessProfileSourceRef) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessProfileSourceRef) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessProfileSourceRef) UnmarshalJSON(data []byte) (err error) { varAccessProfileSourceRef := _AccessProfileSourceRef{} - if err = json.Unmarshal(bytes, &varAccessProfileSourceRef); err == nil { + err = json.Unmarshal(data, &varAccessProfileSourceRef) + + if err != nil { + return err + } + *o = AccessProfileSourceRef(varAccessProfileSourceRef) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "type") delete(additionalProperties, "name") diff --git a/api_v3/model_access_profile_summary.go b/api_v3/model_access_profile_summary.go index 6c6e328a3..d1c7b1316 100644 --- a/api_v3/model_access_profile_summary.go +++ b/api_v3/model_access_profile_summary.go @@ -53,7 +53,7 @@ func NewAccessProfileSummaryWithDefaults() *AccessProfileSummary { // GetId returns the Id field value if set, zero value otherwise. func (o *AccessProfileSummary) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -63,7 +63,7 @@ func (o *AccessProfileSummary) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileSummary) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -71,7 +71,7 @@ func (o *AccessProfileSummary) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccessProfileSummary) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -85,7 +85,7 @@ func (o *AccessProfileSummary) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccessProfileSummary) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -95,7 +95,7 @@ func (o *AccessProfileSummary) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileSummary) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -103,7 +103,7 @@ func (o *AccessProfileSummary) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccessProfileSummary) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -117,7 +117,7 @@ func (o *AccessProfileSummary) SetName(v string) { // GetDisplayName returns the DisplayName field value if set, zero value otherwise. func (o *AccessProfileSummary) GetDisplayName() string { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { var ret string return ret } @@ -127,7 +127,7 @@ func (o *AccessProfileSummary) GetDisplayName() string { // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileSummary) GetDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { return nil, false } return o.DisplayName, true @@ -135,7 +135,7 @@ func (o *AccessProfileSummary) GetDisplayNameOk() (*string, bool) { // HasDisplayName returns a boolean if a field has been set. func (o *AccessProfileSummary) HasDisplayName() bool { - if o != nil && !isNil(o.DisplayName) { + if o != nil && !IsNil(o.DisplayName) { return true } @@ -149,7 +149,7 @@ func (o *AccessProfileSummary) SetDisplayName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *AccessProfileSummary) GetType() DtoType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret DtoType return ret } @@ -159,7 +159,7 @@ func (o *AccessProfileSummary) GetType() DtoType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileSummary) GetTypeOk() (*DtoType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -167,7 +167,7 @@ func (o *AccessProfileSummary) GetTypeOk() (*DtoType, bool) { // HasType returns a boolean if a field has been set. func (o *AccessProfileSummary) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -181,7 +181,7 @@ func (o *AccessProfileSummary) SetType(v DtoType) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessProfileSummary) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -223,7 +223,7 @@ func (o *AccessProfileSummary) UnsetDescription() { // GetSource returns the Source field value if set, zero value otherwise. func (o *AccessProfileSummary) GetSource() Reference { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { var ret Reference return ret } @@ -233,7 +233,7 @@ func (o *AccessProfileSummary) GetSource() Reference { // GetSourceOk returns a tuple with the Source field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileSummary) GetSourceOk() (*Reference, bool) { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { return nil, false } return o.Source, true @@ -241,7 +241,7 @@ func (o *AccessProfileSummary) GetSourceOk() (*Reference, bool) { // HasSource returns a boolean if a field has been set. func (o *AccessProfileSummary) HasSource() bool { - if o != nil && !isNil(o.Source) { + if o != nil && !IsNil(o.Source) { return true } @@ -255,7 +255,7 @@ func (o *AccessProfileSummary) SetSource(v Reference) { // GetOwner returns the Owner field value if set, zero value otherwise. func (o *AccessProfileSummary) GetOwner() DisplayReference { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { var ret DisplayReference return ret } @@ -265,7 +265,7 @@ func (o *AccessProfileSummary) GetOwner() DisplayReference { // GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileSummary) GetOwnerOk() (*DisplayReference, bool) { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { return nil, false } return o.Owner, true @@ -273,7 +273,7 @@ func (o *AccessProfileSummary) GetOwnerOk() (*DisplayReference, bool) { // HasOwner returns a boolean if a field has been set. func (o *AccessProfileSummary) HasOwner() bool { - if o != nil && !isNil(o.Owner) { + if o != nil && !IsNil(o.Owner) { return true } @@ -287,7 +287,7 @@ func (o *AccessProfileSummary) SetOwner(v DisplayReference) { // GetRevocable returns the Revocable field value if set, zero value otherwise. func (o *AccessProfileSummary) GetRevocable() bool { - if o == nil || isNil(o.Revocable) { + if o == nil || IsNil(o.Revocable) { var ret bool return ret } @@ -297,7 +297,7 @@ func (o *AccessProfileSummary) GetRevocable() bool { // GetRevocableOk returns a tuple with the Revocable field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileSummary) GetRevocableOk() (*bool, bool) { - if o == nil || isNil(o.Revocable) { + if o == nil || IsNil(o.Revocable) { return nil, false } return o.Revocable, true @@ -305,7 +305,7 @@ func (o *AccessProfileSummary) GetRevocableOk() (*bool, bool) { // HasRevocable returns a boolean if a field has been set. func (o *AccessProfileSummary) HasRevocable() bool { - if o != nil && !isNil(o.Revocable) { + if o != nil && !IsNil(o.Revocable) { return true } @@ -327,28 +327,28 @@ func (o AccessProfileSummary) MarshalJSON() ([]byte, error) { func (o AccessProfileSummary) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.DisplayName) { + if !IsNil(o.DisplayName) { toSerialize["displayName"] = o.DisplayName } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } if o.Description.IsSet() { toSerialize["description"] = o.Description.Get() } - if !isNil(o.Source) { + if !IsNil(o.Source) { toSerialize["source"] = o.Source } - if !isNil(o.Owner) { + if !IsNil(o.Owner) { toSerialize["owner"] = o.Owner } - if !isNil(o.Revocable) { + if !IsNil(o.Revocable) { toSerialize["revocable"] = o.Revocable } @@ -359,16 +359,20 @@ func (o AccessProfileSummary) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessProfileSummary) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessProfileSummary) UnmarshalJSON(data []byte) (err error) { varAccessProfileSummary := _AccessProfileSummary{} - if err = json.Unmarshal(bytes, &varAccessProfileSummary); err == nil { + err = json.Unmarshal(data, &varAccessProfileSummary) + + if err != nil { + return err + } + *o = AccessProfileSummary(varAccessProfileSummary) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "displayName") diff --git a/api_v3/model_access_profile_usage.go b/api_v3/model_access_profile_usage.go index 3d9cdc975..2873008e8 100644 --- a/api_v3/model_access_profile_usage.go +++ b/api_v3/model_access_profile_usage.go @@ -47,7 +47,7 @@ func NewAccessProfileUsageWithDefaults() *AccessProfileUsage { // GetAccessProfileId returns the AccessProfileId field value if set, zero value otherwise. func (o *AccessProfileUsage) GetAccessProfileId() string { - if o == nil || isNil(o.AccessProfileId) { + if o == nil || IsNil(o.AccessProfileId) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *AccessProfileUsage) GetAccessProfileId() string { // GetAccessProfileIdOk returns a tuple with the AccessProfileId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileUsage) GetAccessProfileIdOk() (*string, bool) { - if o == nil || isNil(o.AccessProfileId) { + if o == nil || IsNil(o.AccessProfileId) { return nil, false } return o.AccessProfileId, true @@ -65,7 +65,7 @@ func (o *AccessProfileUsage) GetAccessProfileIdOk() (*string, bool) { // HasAccessProfileId returns a boolean if a field has been set. func (o *AccessProfileUsage) HasAccessProfileId() bool { - if o != nil && !isNil(o.AccessProfileId) { + if o != nil && !IsNil(o.AccessProfileId) { return true } @@ -79,7 +79,7 @@ func (o *AccessProfileUsage) SetAccessProfileId(v string) { // GetUsedBy returns the UsedBy field value if set, zero value otherwise. func (o *AccessProfileUsage) GetUsedBy() []AccessProfileUsageUsedByInner { - if o == nil || isNil(o.UsedBy) { + if o == nil || IsNil(o.UsedBy) { var ret []AccessProfileUsageUsedByInner return ret } @@ -89,7 +89,7 @@ func (o *AccessProfileUsage) GetUsedBy() []AccessProfileUsageUsedByInner { // GetUsedByOk returns a tuple with the UsedBy field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileUsage) GetUsedByOk() ([]AccessProfileUsageUsedByInner, bool) { - if o == nil || isNil(o.UsedBy) { + if o == nil || IsNil(o.UsedBy) { return nil, false } return o.UsedBy, true @@ -97,7 +97,7 @@ func (o *AccessProfileUsage) GetUsedByOk() ([]AccessProfileUsageUsedByInner, boo // HasUsedBy returns a boolean if a field has been set. func (o *AccessProfileUsage) HasUsedBy() bool { - if o != nil && !isNil(o.UsedBy) { + if o != nil && !IsNil(o.UsedBy) { return true } @@ -119,10 +119,10 @@ func (o AccessProfileUsage) MarshalJSON() ([]byte, error) { func (o AccessProfileUsage) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.AccessProfileId) { + if !IsNil(o.AccessProfileId) { toSerialize["accessProfileId"] = o.AccessProfileId } - if !isNil(o.UsedBy) { + if !IsNil(o.UsedBy) { toSerialize["usedBy"] = o.UsedBy } @@ -133,16 +133,20 @@ func (o AccessProfileUsage) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessProfileUsage) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessProfileUsage) UnmarshalJSON(data []byte) (err error) { varAccessProfileUsage := _AccessProfileUsage{} - if err = json.Unmarshal(bytes, &varAccessProfileUsage); err == nil { + err = json.Unmarshal(data, &varAccessProfileUsage) + + if err != nil { + return err + } + *o = AccessProfileUsage(varAccessProfileUsage) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "accessProfileId") delete(additionalProperties, "usedBy") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_access_profile_usage_used_by_inner.go b/api_v3/model_access_profile_usage_used_by_inner.go index b83140b98..cfcad9007 100644 --- a/api_v3/model_access_profile_usage_used_by_inner.go +++ b/api_v3/model_access_profile_usage_used_by_inner.go @@ -49,7 +49,7 @@ func NewAccessProfileUsageUsedByInnerWithDefaults() *AccessProfileUsageUsedByInn // GetType returns the Type field value if set, zero value otherwise. func (o *AccessProfileUsageUsedByInner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *AccessProfileUsageUsedByInner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileUsageUsedByInner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *AccessProfileUsageUsedByInner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *AccessProfileUsageUsedByInner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *AccessProfileUsageUsedByInner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *AccessProfileUsageUsedByInner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *AccessProfileUsageUsedByInner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileUsageUsedByInner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *AccessProfileUsageUsedByInner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccessProfileUsageUsedByInner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *AccessProfileUsageUsedByInner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccessProfileUsageUsedByInner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *AccessProfileUsageUsedByInner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessProfileUsageUsedByInner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *AccessProfileUsageUsedByInner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccessProfileUsageUsedByInner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o AccessProfileUsageUsedByInner) MarshalJSON() ([]byte, error) { func (o AccessProfileUsageUsedByInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o AccessProfileUsageUsedByInner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessProfileUsageUsedByInner) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessProfileUsageUsedByInner) UnmarshalJSON(data []byte) (err error) { varAccessProfileUsageUsedByInner := _AccessProfileUsageUsedByInner{} - if err = json.Unmarshal(bytes, &varAccessProfileUsageUsedByInner); err == nil { + err = json.Unmarshal(data, &varAccessProfileUsageUsedByInner) + + if err != nil { + return err + } + *o = AccessProfileUsageUsedByInner(varAccessProfileUsageUsedByInner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_access_request.go b/api_v3/model_access_request.go index 11d86c432..21fb442fe 100644 --- a/api_v3/model_access_request.go +++ b/api_v3/model_access_request.go @@ -76,7 +76,7 @@ func (o *AccessRequest) SetRequestedFor(v []string) { // GetRequestType returns the RequestType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessRequest) GetRequestType() AccessRequestType { - if o == nil || isNil(o.RequestType.Get()) { + if o == nil || IsNil(o.RequestType.Get()) { var ret AccessRequestType return ret } @@ -142,7 +142,7 @@ func (o *AccessRequest) SetRequestedItems(v []AccessRequestItem) { // GetClientMetadata returns the ClientMetadata field value if set, zero value otherwise. func (o *AccessRequest) GetClientMetadata() map[string]string { - if o == nil || isNil(o.ClientMetadata) { + if o == nil || IsNil(o.ClientMetadata) { var ret map[string]string return ret } @@ -152,7 +152,7 @@ func (o *AccessRequest) GetClientMetadata() map[string]string { // GetClientMetadataOk returns a tuple with the ClientMetadata field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessRequest) GetClientMetadataOk() (*map[string]string, bool) { - if o == nil || isNil(o.ClientMetadata) { + if o == nil || IsNil(o.ClientMetadata) { return nil, false } return o.ClientMetadata, true @@ -160,7 +160,7 @@ func (o *AccessRequest) GetClientMetadataOk() (*map[string]string, bool) { // HasClientMetadata returns a boolean if a field has been set. func (o *AccessRequest) HasClientMetadata() bool { - if o != nil && !isNil(o.ClientMetadata) { + if o != nil && !IsNil(o.ClientMetadata) { return true } @@ -187,7 +187,7 @@ func (o AccessRequest) ToMap() (map[string]interface{}, error) { toSerialize["requestType"] = o.RequestType.Get() } toSerialize["requestedItems"] = o.RequestedItems - if !isNil(o.ClientMetadata) { + if !IsNil(o.ClientMetadata) { toSerialize["clientMetadata"] = o.ClientMetadata } @@ -198,8 +198,8 @@ func (o AccessRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *AccessRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -209,7 +209,7 @@ func (o *AccessRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -223,13 +223,17 @@ func (o *AccessRequest) UnmarshalJSON(bytes []byte) (err error) { varAccessRequest := _AccessRequest{} - if err = json.Unmarshal(bytes, &varAccessRequest); err == nil { + err = json.Unmarshal(data, &varAccessRequest) + + if err != nil { + return err + } + *o = AccessRequest(varAccessRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "requestedFor") delete(additionalProperties, "requestType") delete(additionalProperties, "requestedItems") diff --git a/api_v3/model_access_request_config.go b/api_v3/model_access_request_config.go index ce87259ae..29b5f5c29 100644 --- a/api_v3/model_access_request_config.go +++ b/api_v3/model_access_request_config.go @@ -58,7 +58,7 @@ func NewAccessRequestConfigWithDefaults() *AccessRequestConfig { // GetApprovalsMustBeExternal returns the ApprovalsMustBeExternal field value if set, zero value otherwise. func (o *AccessRequestConfig) GetApprovalsMustBeExternal() bool { - if o == nil || isNil(o.ApprovalsMustBeExternal) { + if o == nil || IsNil(o.ApprovalsMustBeExternal) { var ret bool return ret } @@ -68,7 +68,7 @@ func (o *AccessRequestConfig) GetApprovalsMustBeExternal() bool { // GetApprovalsMustBeExternalOk returns a tuple with the ApprovalsMustBeExternal field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessRequestConfig) GetApprovalsMustBeExternalOk() (*bool, bool) { - if o == nil || isNil(o.ApprovalsMustBeExternal) { + if o == nil || IsNil(o.ApprovalsMustBeExternal) { return nil, false } return o.ApprovalsMustBeExternal, true @@ -76,7 +76,7 @@ func (o *AccessRequestConfig) GetApprovalsMustBeExternalOk() (*bool, bool) { // HasApprovalsMustBeExternal returns a boolean if a field has been set. func (o *AccessRequestConfig) HasApprovalsMustBeExternal() bool { - if o != nil && !isNil(o.ApprovalsMustBeExternal) { + if o != nil && !IsNil(o.ApprovalsMustBeExternal) { return true } @@ -90,7 +90,7 @@ func (o *AccessRequestConfig) SetApprovalsMustBeExternal(v bool) { // GetAutoApprovalEnabled returns the AutoApprovalEnabled field value if set, zero value otherwise. func (o *AccessRequestConfig) GetAutoApprovalEnabled() bool { - if o == nil || isNil(o.AutoApprovalEnabled) { + if o == nil || IsNil(o.AutoApprovalEnabled) { var ret bool return ret } @@ -100,7 +100,7 @@ func (o *AccessRequestConfig) GetAutoApprovalEnabled() bool { // GetAutoApprovalEnabledOk returns a tuple with the AutoApprovalEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessRequestConfig) GetAutoApprovalEnabledOk() (*bool, bool) { - if o == nil || isNil(o.AutoApprovalEnabled) { + if o == nil || IsNil(o.AutoApprovalEnabled) { return nil, false } return o.AutoApprovalEnabled, true @@ -108,7 +108,7 @@ func (o *AccessRequestConfig) GetAutoApprovalEnabledOk() (*bool, bool) { // HasAutoApprovalEnabled returns a boolean if a field has been set. func (o *AccessRequestConfig) HasAutoApprovalEnabled() bool { - if o != nil && !isNil(o.AutoApprovalEnabled) { + if o != nil && !IsNil(o.AutoApprovalEnabled) { return true } @@ -122,7 +122,7 @@ func (o *AccessRequestConfig) SetAutoApprovalEnabled(v bool) { // GetRequestOnBehalfOfConfig returns the RequestOnBehalfOfConfig field value if set, zero value otherwise. func (o *AccessRequestConfig) GetRequestOnBehalfOfConfig() RequestOnBehalfOfConfig { - if o == nil || isNil(o.RequestOnBehalfOfConfig) { + if o == nil || IsNil(o.RequestOnBehalfOfConfig) { var ret RequestOnBehalfOfConfig return ret } @@ -132,7 +132,7 @@ func (o *AccessRequestConfig) GetRequestOnBehalfOfConfig() RequestOnBehalfOfConf // GetRequestOnBehalfOfConfigOk returns a tuple with the RequestOnBehalfOfConfig field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessRequestConfig) GetRequestOnBehalfOfConfigOk() (*RequestOnBehalfOfConfig, bool) { - if o == nil || isNil(o.RequestOnBehalfOfConfig) { + if o == nil || IsNil(o.RequestOnBehalfOfConfig) { return nil, false } return o.RequestOnBehalfOfConfig, true @@ -140,7 +140,7 @@ func (o *AccessRequestConfig) GetRequestOnBehalfOfConfigOk() (*RequestOnBehalfOf // HasRequestOnBehalfOfConfig returns a boolean if a field has been set. func (o *AccessRequestConfig) HasRequestOnBehalfOfConfig() bool { - if o != nil && !isNil(o.RequestOnBehalfOfConfig) { + if o != nil && !IsNil(o.RequestOnBehalfOfConfig) { return true } @@ -154,7 +154,7 @@ func (o *AccessRequestConfig) SetRequestOnBehalfOfConfig(v RequestOnBehalfOfConf // GetApprovalReminderAndEscalationConfig returns the ApprovalReminderAndEscalationConfig field value if set, zero value otherwise. func (o *AccessRequestConfig) GetApprovalReminderAndEscalationConfig() ApprovalReminderAndEscalationConfig { - if o == nil || isNil(o.ApprovalReminderAndEscalationConfig) { + if o == nil || IsNil(o.ApprovalReminderAndEscalationConfig) { var ret ApprovalReminderAndEscalationConfig return ret } @@ -164,7 +164,7 @@ func (o *AccessRequestConfig) GetApprovalReminderAndEscalationConfig() ApprovalR // GetApprovalReminderAndEscalationConfigOk returns a tuple with the ApprovalReminderAndEscalationConfig field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessRequestConfig) GetApprovalReminderAndEscalationConfigOk() (*ApprovalReminderAndEscalationConfig, bool) { - if o == nil || isNil(o.ApprovalReminderAndEscalationConfig) { + if o == nil || IsNil(o.ApprovalReminderAndEscalationConfig) { return nil, false } return o.ApprovalReminderAndEscalationConfig, true @@ -172,7 +172,7 @@ func (o *AccessRequestConfig) GetApprovalReminderAndEscalationConfigOk() (*Appro // HasApprovalReminderAndEscalationConfig returns a boolean if a field has been set. func (o *AccessRequestConfig) HasApprovalReminderAndEscalationConfig() bool { - if o != nil && !isNil(o.ApprovalReminderAndEscalationConfig) { + if o != nil && !IsNil(o.ApprovalReminderAndEscalationConfig) { return true } @@ -186,7 +186,7 @@ func (o *AccessRequestConfig) SetApprovalReminderAndEscalationConfig(v ApprovalR // GetEntitlementRequestConfig returns the EntitlementRequestConfig field value if set, zero value otherwise. func (o *AccessRequestConfig) GetEntitlementRequestConfig() EntitlementRequestConfig { - if o == nil || isNil(o.EntitlementRequestConfig) { + if o == nil || IsNil(o.EntitlementRequestConfig) { var ret EntitlementRequestConfig return ret } @@ -196,7 +196,7 @@ func (o *AccessRequestConfig) GetEntitlementRequestConfig() EntitlementRequestCo // GetEntitlementRequestConfigOk returns a tuple with the EntitlementRequestConfig field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessRequestConfig) GetEntitlementRequestConfigOk() (*EntitlementRequestConfig, bool) { - if o == nil || isNil(o.EntitlementRequestConfig) { + if o == nil || IsNil(o.EntitlementRequestConfig) { return nil, false } return o.EntitlementRequestConfig, true @@ -204,7 +204,7 @@ func (o *AccessRequestConfig) GetEntitlementRequestConfigOk() (*EntitlementReque // HasEntitlementRequestConfig returns a boolean if a field has been set. func (o *AccessRequestConfig) HasEntitlementRequestConfig() bool { - if o != nil && !isNil(o.EntitlementRequestConfig) { + if o != nil && !IsNil(o.EntitlementRequestConfig) { return true } @@ -226,19 +226,19 @@ func (o AccessRequestConfig) MarshalJSON() ([]byte, error) { func (o AccessRequestConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.ApprovalsMustBeExternal) { + if !IsNil(o.ApprovalsMustBeExternal) { toSerialize["approvalsMustBeExternal"] = o.ApprovalsMustBeExternal } - if !isNil(o.AutoApprovalEnabled) { + if !IsNil(o.AutoApprovalEnabled) { toSerialize["autoApprovalEnabled"] = o.AutoApprovalEnabled } - if !isNil(o.RequestOnBehalfOfConfig) { + if !IsNil(o.RequestOnBehalfOfConfig) { toSerialize["requestOnBehalfOfConfig"] = o.RequestOnBehalfOfConfig } - if !isNil(o.ApprovalReminderAndEscalationConfig) { + if !IsNil(o.ApprovalReminderAndEscalationConfig) { toSerialize["approvalReminderAndEscalationConfig"] = o.ApprovalReminderAndEscalationConfig } - if !isNil(o.EntitlementRequestConfig) { + if !IsNil(o.EntitlementRequestConfig) { toSerialize["entitlementRequestConfig"] = o.EntitlementRequestConfig } @@ -249,16 +249,20 @@ func (o AccessRequestConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessRequestConfig) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessRequestConfig) UnmarshalJSON(data []byte) (err error) { varAccessRequestConfig := _AccessRequestConfig{} - if err = json.Unmarshal(bytes, &varAccessRequestConfig); err == nil { + err = json.Unmarshal(data, &varAccessRequestConfig) + + if err != nil { + return err + } + *o = AccessRequestConfig(varAccessRequestConfig) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "approvalsMustBeExternal") delete(additionalProperties, "autoApprovalEnabled") delete(additionalProperties, "requestOnBehalfOfConfig") diff --git a/api_v3/model_access_request_item.go b/api_v3/model_access_request_item.go index 81c99f628..9c282884b 100644 --- a/api_v3/model_access_request_item.go +++ b/api_v3/model_access_request_item.go @@ -105,7 +105,7 @@ func (o *AccessRequestItem) SetId(v string) { // GetComment returns the Comment field value if set, zero value otherwise. func (o *AccessRequestItem) GetComment() string { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { var ret string return ret } @@ -115,7 +115,7 @@ func (o *AccessRequestItem) GetComment() string { // GetCommentOk returns a tuple with the Comment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessRequestItem) GetCommentOk() (*string, bool) { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { return nil, false } return o.Comment, true @@ -123,7 +123,7 @@ func (o *AccessRequestItem) GetCommentOk() (*string, bool) { // HasComment returns a boolean if a field has been set. func (o *AccessRequestItem) HasComment() bool { - if o != nil && !isNil(o.Comment) { + if o != nil && !IsNil(o.Comment) { return true } @@ -137,7 +137,7 @@ func (o *AccessRequestItem) SetComment(v string) { // GetClientMetadata returns the ClientMetadata field value if set, zero value otherwise. func (o *AccessRequestItem) GetClientMetadata() map[string]string { - if o == nil || isNil(o.ClientMetadata) { + if o == nil || IsNil(o.ClientMetadata) { var ret map[string]string return ret } @@ -147,7 +147,7 @@ func (o *AccessRequestItem) GetClientMetadata() map[string]string { // GetClientMetadataOk returns a tuple with the ClientMetadata field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessRequestItem) GetClientMetadataOk() (*map[string]string, bool) { - if o == nil || isNil(o.ClientMetadata) { + if o == nil || IsNil(o.ClientMetadata) { return nil, false } return o.ClientMetadata, true @@ -155,7 +155,7 @@ func (o *AccessRequestItem) GetClientMetadataOk() (*map[string]string, bool) { // HasClientMetadata returns a boolean if a field has been set. func (o *AccessRequestItem) HasClientMetadata() bool { - if o != nil && !isNil(o.ClientMetadata) { + if o != nil && !IsNil(o.ClientMetadata) { return true } @@ -169,7 +169,7 @@ func (o *AccessRequestItem) SetClientMetadata(v map[string]string) { // GetRemoveDate returns the RemoveDate field value if set, zero value otherwise. func (o *AccessRequestItem) GetRemoveDate() time.Time { - if o == nil || isNil(o.RemoveDate) { + if o == nil || IsNil(o.RemoveDate) { var ret time.Time return ret } @@ -179,7 +179,7 @@ func (o *AccessRequestItem) GetRemoveDate() time.Time { // GetRemoveDateOk returns a tuple with the RemoveDate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessRequestItem) GetRemoveDateOk() (*time.Time, bool) { - if o == nil || isNil(o.RemoveDate) { + if o == nil || IsNil(o.RemoveDate) { return nil, false } return o.RemoveDate, true @@ -187,7 +187,7 @@ func (o *AccessRequestItem) GetRemoveDateOk() (*time.Time, bool) { // HasRemoveDate returns a boolean if a field has been set. func (o *AccessRequestItem) HasRemoveDate() bool { - if o != nil && !isNil(o.RemoveDate) { + if o != nil && !IsNil(o.RemoveDate) { return true } @@ -211,13 +211,13 @@ func (o AccessRequestItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type toSerialize["id"] = o.Id - if !isNil(o.Comment) { + if !IsNil(o.Comment) { toSerialize["comment"] = o.Comment } - if !isNil(o.ClientMetadata) { + if !IsNil(o.ClientMetadata) { toSerialize["clientMetadata"] = o.ClientMetadata } - if !isNil(o.RemoveDate) { + if !IsNil(o.RemoveDate) { toSerialize["removeDate"] = o.RemoveDate } @@ -228,8 +228,8 @@ func (o AccessRequestItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessRequestItem) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *AccessRequestItem) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -239,7 +239,7 @@ func (o *AccessRequestItem) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -253,13 +253,17 @@ func (o *AccessRequestItem) UnmarshalJSON(bytes []byte) (err error) { varAccessRequestItem := _AccessRequestItem{} - if err = json.Unmarshal(bytes, &varAccessRequestItem); err == nil { + err = json.Unmarshal(data, &varAccessRequestItem) + + if err != nil { + return err + } + *o = AccessRequestItem(varAccessRequestItem) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "comment") diff --git a/api_v3/model_access_request_phases.go b/api_v3/model_access_request_phases.go index 2f8e845f8..e6ac114b8 100644 --- a/api_v3/model_access_request_phases.go +++ b/api_v3/model_access_request_phases.go @@ -56,7 +56,7 @@ func NewAccessRequestPhasesWithDefaults() *AccessRequestPhases { // GetStarted returns the Started field value if set, zero value otherwise. func (o *AccessRequestPhases) GetStarted() time.Time { - if o == nil || isNil(o.Started) { + if o == nil || IsNil(o.Started) { var ret time.Time return ret } @@ -66,7 +66,7 @@ func (o *AccessRequestPhases) GetStarted() time.Time { // GetStartedOk returns a tuple with the Started field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessRequestPhases) GetStartedOk() (*time.Time, bool) { - if o == nil || isNil(o.Started) { + if o == nil || IsNil(o.Started) { return nil, false } return o.Started, true @@ -74,7 +74,7 @@ func (o *AccessRequestPhases) GetStartedOk() (*time.Time, bool) { // HasStarted returns a boolean if a field has been set. func (o *AccessRequestPhases) HasStarted() bool { - if o != nil && !isNil(o.Started) { + if o != nil && !IsNil(o.Started) { return true } @@ -88,7 +88,7 @@ func (o *AccessRequestPhases) SetStarted(v time.Time) { // GetFinished returns the Finished field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessRequestPhases) GetFinished() time.Time { - if o == nil || isNil(o.Finished.Get()) { + if o == nil || IsNil(o.Finished.Get()) { var ret time.Time return ret } @@ -130,7 +130,7 @@ func (o *AccessRequestPhases) UnsetFinished() { // GetName returns the Name field value if set, zero value otherwise. func (o *AccessRequestPhases) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -140,7 +140,7 @@ func (o *AccessRequestPhases) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessRequestPhases) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -148,7 +148,7 @@ func (o *AccessRequestPhases) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccessRequestPhases) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -162,7 +162,7 @@ func (o *AccessRequestPhases) SetName(v string) { // GetState returns the State field value if set, zero value otherwise. func (o *AccessRequestPhases) GetState() string { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { var ret string return ret } @@ -172,7 +172,7 @@ func (o *AccessRequestPhases) GetState() string { // GetStateOk returns a tuple with the State field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessRequestPhases) GetStateOk() (*string, bool) { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { return nil, false } return o.State, true @@ -180,7 +180,7 @@ func (o *AccessRequestPhases) GetStateOk() (*string, bool) { // HasState returns a boolean if a field has been set. func (o *AccessRequestPhases) HasState() bool { - if o != nil && !isNil(o.State) { + if o != nil && !IsNil(o.State) { return true } @@ -194,7 +194,7 @@ func (o *AccessRequestPhases) SetState(v string) { // GetResult returns the Result field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessRequestPhases) GetResult() string { - if o == nil || isNil(o.Result.Get()) { + if o == nil || IsNil(o.Result.Get()) { var ret string return ret } @@ -236,7 +236,7 @@ func (o *AccessRequestPhases) UnsetResult() { // GetPhaseReference returns the PhaseReference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessRequestPhases) GetPhaseReference() string { - if o == nil || isNil(o.PhaseReference.Get()) { + if o == nil || IsNil(o.PhaseReference.Get()) { var ret string return ret } @@ -286,16 +286,16 @@ func (o AccessRequestPhases) MarshalJSON() ([]byte, error) { func (o AccessRequestPhases) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Started) { + if !IsNil(o.Started) { toSerialize["started"] = o.Started } if o.Finished.IsSet() { toSerialize["finished"] = o.Finished.Get() } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.State) { + if !IsNil(o.State) { toSerialize["state"] = o.State } if o.Result.IsSet() { @@ -312,16 +312,20 @@ func (o AccessRequestPhases) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessRequestPhases) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessRequestPhases) UnmarshalJSON(data []byte) (err error) { varAccessRequestPhases := _AccessRequestPhases{} - if err = json.Unmarshal(bytes, &varAccessRequestPhases); err == nil { + err = json.Unmarshal(data, &varAccessRequestPhases) + + if err != nil { + return err + } + *o = AccessRequestPhases(varAccessRequestPhases) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "started") delete(additionalProperties, "finished") delete(additionalProperties, "name") diff --git a/api_v3/model_access_review_item.go b/api_v3/model_access_review_item.go index 87c9294b8..7112c465d 100644 --- a/api_v3/model_access_review_item.go +++ b/api_v3/model_access_review_item.go @@ -54,7 +54,7 @@ func NewAccessReviewItemWithDefaults() *AccessReviewItem { // GetAccessSummary returns the AccessSummary field value if set, zero value otherwise. func (o *AccessReviewItem) GetAccessSummary() AccessSummary { - if o == nil || isNil(o.AccessSummary) { + if o == nil || IsNil(o.AccessSummary) { var ret AccessSummary return ret } @@ -64,7 +64,7 @@ func (o *AccessReviewItem) GetAccessSummary() AccessSummary { // GetAccessSummaryOk returns a tuple with the AccessSummary field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessReviewItem) GetAccessSummaryOk() (*AccessSummary, bool) { - if o == nil || isNil(o.AccessSummary) { + if o == nil || IsNil(o.AccessSummary) { return nil, false } return o.AccessSummary, true @@ -72,7 +72,7 @@ func (o *AccessReviewItem) GetAccessSummaryOk() (*AccessSummary, bool) { // HasAccessSummary returns a boolean if a field has been set. func (o *AccessReviewItem) HasAccessSummary() bool { - if o != nil && !isNil(o.AccessSummary) { + if o != nil && !IsNil(o.AccessSummary) { return true } @@ -86,7 +86,7 @@ func (o *AccessReviewItem) SetAccessSummary(v AccessSummary) { // GetIdentitySummary returns the IdentitySummary field value if set, zero value otherwise. func (o *AccessReviewItem) GetIdentitySummary() CertificationIdentitySummary { - if o == nil || isNil(o.IdentitySummary) { + if o == nil || IsNil(o.IdentitySummary) { var ret CertificationIdentitySummary return ret } @@ -96,7 +96,7 @@ func (o *AccessReviewItem) GetIdentitySummary() CertificationIdentitySummary { // GetIdentitySummaryOk returns a tuple with the IdentitySummary field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessReviewItem) GetIdentitySummaryOk() (*CertificationIdentitySummary, bool) { - if o == nil || isNil(o.IdentitySummary) { + if o == nil || IsNil(o.IdentitySummary) { return nil, false } return o.IdentitySummary, true @@ -104,7 +104,7 @@ func (o *AccessReviewItem) GetIdentitySummaryOk() (*CertificationIdentitySummary // HasIdentitySummary returns a boolean if a field has been set. func (o *AccessReviewItem) HasIdentitySummary() bool { - if o != nil && !isNil(o.IdentitySummary) { + if o != nil && !IsNil(o.IdentitySummary) { return true } @@ -118,7 +118,7 @@ func (o *AccessReviewItem) SetIdentitySummary(v CertificationIdentitySummary) { // GetId returns the Id field value if set, zero value otherwise. func (o *AccessReviewItem) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -128,7 +128,7 @@ func (o *AccessReviewItem) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessReviewItem) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -136,7 +136,7 @@ func (o *AccessReviewItem) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccessReviewItem) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -150,7 +150,7 @@ func (o *AccessReviewItem) SetId(v string) { // GetCompleted returns the Completed field value if set, zero value otherwise. func (o *AccessReviewItem) GetCompleted() bool { - if o == nil || isNil(o.Completed) { + if o == nil || IsNil(o.Completed) { var ret bool return ret } @@ -160,7 +160,7 @@ func (o *AccessReviewItem) GetCompleted() bool { // GetCompletedOk returns a tuple with the Completed field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessReviewItem) GetCompletedOk() (*bool, bool) { - if o == nil || isNil(o.Completed) { + if o == nil || IsNil(o.Completed) { return nil, false } return o.Completed, true @@ -168,7 +168,7 @@ func (o *AccessReviewItem) GetCompletedOk() (*bool, bool) { // HasCompleted returns a boolean if a field has been set. func (o *AccessReviewItem) HasCompleted() bool { - if o != nil && !isNil(o.Completed) { + if o != nil && !IsNil(o.Completed) { return true } @@ -182,7 +182,7 @@ func (o *AccessReviewItem) SetCompleted(v bool) { // GetNewAccess returns the NewAccess field value if set, zero value otherwise. func (o *AccessReviewItem) GetNewAccess() bool { - if o == nil || isNil(o.NewAccess) { + if o == nil || IsNil(o.NewAccess) { var ret bool return ret } @@ -192,7 +192,7 @@ func (o *AccessReviewItem) GetNewAccess() bool { // GetNewAccessOk returns a tuple with the NewAccess field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessReviewItem) GetNewAccessOk() (*bool, bool) { - if o == nil || isNil(o.NewAccess) { + if o == nil || IsNil(o.NewAccess) { return nil, false } return o.NewAccess, true @@ -200,7 +200,7 @@ func (o *AccessReviewItem) GetNewAccessOk() (*bool, bool) { // HasNewAccess returns a boolean if a field has been set. func (o *AccessReviewItem) HasNewAccess() bool { - if o != nil && !isNil(o.NewAccess) { + if o != nil && !IsNil(o.NewAccess) { return true } @@ -214,7 +214,7 @@ func (o *AccessReviewItem) SetNewAccess(v bool) { // GetDecision returns the Decision field value if set, zero value otherwise. func (o *AccessReviewItem) GetDecision() CertificationDecision { - if o == nil || isNil(o.Decision) { + if o == nil || IsNil(o.Decision) { var ret CertificationDecision return ret } @@ -224,7 +224,7 @@ func (o *AccessReviewItem) GetDecision() CertificationDecision { // GetDecisionOk returns a tuple with the Decision field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessReviewItem) GetDecisionOk() (*CertificationDecision, bool) { - if o == nil || isNil(o.Decision) { + if o == nil || IsNil(o.Decision) { return nil, false } return o.Decision, true @@ -232,7 +232,7 @@ func (o *AccessReviewItem) GetDecisionOk() (*CertificationDecision, bool) { // HasDecision returns a boolean if a field has been set. func (o *AccessReviewItem) HasDecision() bool { - if o != nil && !isNil(o.Decision) { + if o != nil && !IsNil(o.Decision) { return true } @@ -246,7 +246,7 @@ func (o *AccessReviewItem) SetDecision(v CertificationDecision) { // GetComments returns the Comments field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessReviewItem) GetComments() string { - if o == nil || isNil(o.Comments.Get()) { + if o == nil || IsNil(o.Comments.Get()) { var ret string return ret } @@ -296,22 +296,22 @@ func (o AccessReviewItem) MarshalJSON() ([]byte, error) { func (o AccessReviewItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.AccessSummary) { + if !IsNil(o.AccessSummary) { toSerialize["accessSummary"] = o.AccessSummary } - if !isNil(o.IdentitySummary) { + if !IsNil(o.IdentitySummary) { toSerialize["identitySummary"] = o.IdentitySummary } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Completed) { + if !IsNil(o.Completed) { toSerialize["completed"] = o.Completed } - if !isNil(o.NewAccess) { + if !IsNil(o.NewAccess) { toSerialize["newAccess"] = o.NewAccess } - if !isNil(o.Decision) { + if !IsNil(o.Decision) { toSerialize["decision"] = o.Decision } if o.Comments.IsSet() { @@ -325,16 +325,20 @@ func (o AccessReviewItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessReviewItem) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessReviewItem) UnmarshalJSON(data []byte) (err error) { varAccessReviewItem := _AccessReviewItem{} - if err = json.Unmarshal(bytes, &varAccessReviewItem); err == nil { + err = json.Unmarshal(data, &varAccessReviewItem) + + if err != nil { + return err + } + *o = AccessReviewItem(varAccessReviewItem) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "accessSummary") delete(additionalProperties, "identitySummary") delete(additionalProperties, "id") diff --git a/api_v3/model_access_review_reassignment.go b/api_v3/model_access_review_reassignment.go index 73fdaed57..f74407197 100644 --- a/api_v3/model_access_review_reassignment.go +++ b/api_v3/model_access_review_reassignment.go @@ -143,8 +143,8 @@ func (o AccessReviewReassignment) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessReviewReassignment) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *AccessReviewReassignment) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -155,7 +155,7 @@ func (o *AccessReviewReassignment) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -169,13 +169,17 @@ func (o *AccessReviewReassignment) UnmarshalJSON(bytes []byte) (err error) { varAccessReviewReassignment := _AccessReviewReassignment{} - if err = json.Unmarshal(bytes, &varAccessReviewReassignment); err == nil { + err = json.Unmarshal(data, &varAccessReviewReassignment) + + if err != nil { + return err + } + *o = AccessReviewReassignment(varAccessReviewReassignment) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "reassign") delete(additionalProperties, "reassignTo") delete(additionalProperties, "reason") diff --git a/api_v3/model_access_summary.go b/api_v3/model_access_summary.go index cfc653894..af066534d 100644 --- a/api_v3/model_access_summary.go +++ b/api_v3/model_access_summary.go @@ -47,7 +47,7 @@ func NewAccessSummaryWithDefaults() *AccessSummary { // GetAccess returns the Access field value if set, zero value otherwise. func (o *AccessSummary) GetAccess() AccessSummaryAccess { - if o == nil || isNil(o.Access) { + if o == nil || IsNil(o.Access) { var ret AccessSummaryAccess return ret } @@ -57,7 +57,7 @@ func (o *AccessSummary) GetAccess() AccessSummaryAccess { // GetAccessOk returns a tuple with the Access field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessSummary) GetAccessOk() (*AccessSummaryAccess, bool) { - if o == nil || isNil(o.Access) { + if o == nil || IsNil(o.Access) { return nil, false } return o.Access, true @@ -65,7 +65,7 @@ func (o *AccessSummary) GetAccessOk() (*AccessSummaryAccess, bool) { // HasAccess returns a boolean if a field has been set. func (o *AccessSummary) HasAccess() bool { - if o != nil && !isNil(o.Access) { + if o != nil && !IsNil(o.Access) { return true } @@ -79,7 +79,7 @@ func (o *AccessSummary) SetAccess(v AccessSummaryAccess) { // GetEntitlement returns the Entitlement field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessSummary) GetEntitlement() ReviewableEntitlement { - if o == nil || isNil(o.Entitlement.Get()) { + if o == nil || IsNil(o.Entitlement.Get()) { var ret ReviewableEntitlement return ret } @@ -121,7 +121,7 @@ func (o *AccessSummary) UnsetEntitlement() { // GetAccessProfile returns the AccessProfile field value if set, zero value otherwise. func (o *AccessSummary) GetAccessProfile() ReviewableAccessProfile { - if o == nil || isNil(o.AccessProfile) { + if o == nil || IsNil(o.AccessProfile) { var ret ReviewableAccessProfile return ret } @@ -131,7 +131,7 @@ func (o *AccessSummary) GetAccessProfile() ReviewableAccessProfile { // GetAccessProfileOk returns a tuple with the AccessProfile field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessSummary) GetAccessProfileOk() (*ReviewableAccessProfile, bool) { - if o == nil || isNil(o.AccessProfile) { + if o == nil || IsNil(o.AccessProfile) { return nil, false } return o.AccessProfile, true @@ -139,7 +139,7 @@ func (o *AccessSummary) GetAccessProfileOk() (*ReviewableAccessProfile, bool) { // HasAccessProfile returns a boolean if a field has been set. func (o *AccessSummary) HasAccessProfile() bool { - if o != nil && !isNil(o.AccessProfile) { + if o != nil && !IsNil(o.AccessProfile) { return true } @@ -153,7 +153,7 @@ func (o *AccessSummary) SetAccessProfile(v ReviewableAccessProfile) { // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccessSummary) GetRole() ReviewableRole { - if o == nil || isNil(o.Role.Get()) { + if o == nil || IsNil(o.Role.Get()) { var ret ReviewableRole return ret } @@ -203,13 +203,13 @@ func (o AccessSummary) MarshalJSON() ([]byte, error) { func (o AccessSummary) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Access) { + if !IsNil(o.Access) { toSerialize["access"] = o.Access } if o.Entitlement.IsSet() { toSerialize["entitlement"] = o.Entitlement.Get() } - if !isNil(o.AccessProfile) { + if !IsNil(o.AccessProfile) { toSerialize["accessProfile"] = o.AccessProfile } if o.Role.IsSet() { @@ -223,16 +223,20 @@ func (o AccessSummary) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessSummary) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessSummary) UnmarshalJSON(data []byte) (err error) { varAccessSummary := _AccessSummary{} - if err = json.Unmarshal(bytes, &varAccessSummary); err == nil { + err = json.Unmarshal(data, &varAccessSummary) + + if err != nil { + return err + } + *o = AccessSummary(varAccessSummary) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "access") delete(additionalProperties, "entitlement") delete(additionalProperties, "accessProfile") diff --git a/api_v3/model_access_summary_access.go b/api_v3/model_access_summary_access.go index c0ef4ef88..385040f70 100644 --- a/api_v3/model_access_summary_access.go +++ b/api_v3/model_access_summary_access.go @@ -48,7 +48,7 @@ func NewAccessSummaryAccessWithDefaults() *AccessSummaryAccess { // GetType returns the Type field value if set, zero value otherwise. func (o *AccessSummaryAccess) GetType() DtoType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret DtoType return ret } @@ -58,7 +58,7 @@ func (o *AccessSummaryAccess) GetType() DtoType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessSummaryAccess) GetTypeOk() (*DtoType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -66,7 +66,7 @@ func (o *AccessSummaryAccess) GetTypeOk() (*DtoType, bool) { // HasType returns a boolean if a field has been set. func (o *AccessSummaryAccess) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -80,7 +80,7 @@ func (o *AccessSummaryAccess) SetType(v DtoType) { // GetId returns the Id field value if set, zero value otherwise. func (o *AccessSummaryAccess) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -90,7 +90,7 @@ func (o *AccessSummaryAccess) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessSummaryAccess) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -98,7 +98,7 @@ func (o *AccessSummaryAccess) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccessSummaryAccess) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -112,7 +112,7 @@ func (o *AccessSummaryAccess) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccessSummaryAccess) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -122,7 +122,7 @@ func (o *AccessSummaryAccess) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccessSummaryAccess) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -130,7 +130,7 @@ func (o *AccessSummaryAccess) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccessSummaryAccess) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -152,13 +152,13 @@ func (o AccessSummaryAccess) MarshalJSON() ([]byte, error) { func (o AccessSummaryAccess) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -169,16 +169,20 @@ func (o AccessSummaryAccess) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccessSummaryAccess) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccessSummaryAccess) UnmarshalJSON(data []byte) (err error) { varAccessSummaryAccess := _AccessSummaryAccess{} - if err = json.Unmarshal(bytes, &varAccessSummaryAccess); err == nil { + err = json.Unmarshal(data, &varAccessSummaryAccess) + + if err != nil { + return err + } + *o = AccessSummaryAccess(varAccessSummaryAccess) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_account.go b/api_v3/model_account.go index 028fa1e1b..88614d599 100644 --- a/api_v3/model_account.go +++ b/api_v3/model_account.go @@ -109,7 +109,7 @@ func NewAccountWithDefaults() *Account { // GetId returns the Id field value if set, zero value otherwise. func (o *Account) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -119,7 +119,7 @@ func (o *Account) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Account) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -127,7 +127,7 @@ func (o *Account) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Account) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -165,7 +165,7 @@ func (o *Account) SetName(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *Account) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -175,7 +175,7 @@ func (o *Account) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Account) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -183,7 +183,7 @@ func (o *Account) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *Account) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -197,7 +197,7 @@ func (o *Account) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *Account) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -207,7 +207,7 @@ func (o *Account) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Account) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -215,7 +215,7 @@ func (o *Account) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *Account) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -277,7 +277,7 @@ func (o *Account) SetSourceName(v string) { // GetIdentityId returns the IdentityId field value if set, zero value otherwise. func (o *Account) GetIdentityId() string { - if o == nil || isNil(o.IdentityId) { + if o == nil || IsNil(o.IdentityId) { var ret string return ret } @@ -287,7 +287,7 @@ func (o *Account) GetIdentityId() string { // GetIdentityIdOk returns a tuple with the IdentityId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Account) GetIdentityIdOk() (*string, bool) { - if o == nil || isNil(o.IdentityId) { + if o == nil || IsNil(o.IdentityId) { return nil, false } return o.IdentityId, true @@ -295,7 +295,7 @@ func (o *Account) GetIdentityIdOk() (*string, bool) { // HasIdentityId returns a boolean if a field has been set. func (o *Account) HasIdentityId() bool { - if o != nil && !isNil(o.IdentityId) { + if o != nil && !IsNil(o.IdentityId) { return true } @@ -309,7 +309,7 @@ func (o *Account) SetIdentityId(v string) { // GetCloudLifecycleState returns the CloudLifecycleState field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Account) GetCloudLifecycleState() string { - if o == nil || isNil(o.CloudLifecycleState.Get()) { + if o == nil || IsNil(o.CloudLifecycleState.Get()) { var ret string return ret } @@ -351,7 +351,7 @@ func (o *Account) UnsetCloudLifecycleState() { // GetIdentityState returns the IdentityState field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Account) GetIdentityState() string { - if o == nil || isNil(o.IdentityState.Get()) { + if o == nil || IsNil(o.IdentityState.Get()) { var ret string return ret } @@ -393,7 +393,7 @@ func (o *Account) UnsetIdentityState() { // GetConnectionType returns the ConnectionType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Account) GetConnectionType() string { - if o == nil || isNil(o.ConnectionType.Get()) { + if o == nil || IsNil(o.ConnectionType.Get()) { var ret string return ret } @@ -435,7 +435,7 @@ func (o *Account) UnsetConnectionType() { // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Account) GetType() string { - if o == nil || isNil(o.Type.Get()) { + if o == nil || IsNil(o.Type.Get()) { var ret string return ret } @@ -490,7 +490,7 @@ func (o *Account) GetAttributes() map[string]interface{} { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Account) GetAttributesOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { return map[string]interface{}{}, false } return o.Attributes, true @@ -527,7 +527,7 @@ func (o *Account) SetAuthoritative(v bool) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Account) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -689,7 +689,7 @@ func (o *Account) SetUncorrelated(v bool) { // GetUuid returns the Uuid field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Account) GetUuid() string { - if o == nil || isNil(o.Uuid.Get()) { + if o == nil || IsNil(o.Uuid.Get()) { var ret string return ret } @@ -779,7 +779,7 @@ func (o *Account) SetHasEntitlements(v bool) { // GetIdentity returns the Identity field value if set, zero value otherwise. func (o *Account) GetIdentity() BaseReferenceDto { - if o == nil || isNil(o.Identity) { + if o == nil || IsNil(o.Identity) { var ret BaseReferenceDto return ret } @@ -789,7 +789,7 @@ func (o *Account) GetIdentity() BaseReferenceDto { // GetIdentityOk returns a tuple with the Identity field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Account) GetIdentityOk() (*BaseReferenceDto, bool) { - if o == nil || isNil(o.Identity) { + if o == nil || IsNil(o.Identity) { return nil, false } return o.Identity, true @@ -797,7 +797,7 @@ func (o *Account) GetIdentityOk() (*BaseReferenceDto, bool) { // HasIdentity returns a boolean if a field has been set. func (o *Account) HasIdentity() bool { - if o != nil && !isNil(o.Identity) { + if o != nil && !IsNil(o.Identity) { return true } @@ -811,7 +811,7 @@ func (o *Account) SetIdentity(v BaseReferenceDto) { // GetSourceOwner returns the SourceOwner field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Account) GetSourceOwner() AccountAllOfSourceOwner { - if o == nil || isNil(o.SourceOwner.Get()) { + if o == nil || IsNil(o.SourceOwner.Get()) { var ret AccountAllOfSourceOwner return ret } @@ -853,7 +853,7 @@ func (o *Account) UnsetSourceOwner() { // GetFeatures returns the Features field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Account) GetFeatures() string { - if o == nil || isNil(o.Features.Get()) { + if o == nil || IsNil(o.Features.Get()) { var ret string return ret } @@ -895,7 +895,7 @@ func (o *Account) UnsetFeatures() { // GetOrigin returns the Origin field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Account) GetOrigin() string { - if o == nil || isNil(o.Origin.Get()) { + if o == nil || IsNil(o.Origin.Get()) { var ret string return ret } @@ -937,7 +937,7 @@ func (o *Account) UnsetOrigin() { // GetOwnerIdentity returns the OwnerIdentity field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Account) GetOwnerIdentity() AccountAllOfOwnerIdentity { - if o == nil || isNil(o.OwnerIdentity.Get()) { + if o == nil || IsNil(o.OwnerIdentity.Get()) { var ret AccountAllOfOwnerIdentity return ret } @@ -979,7 +979,7 @@ func (o *Account) UnsetOwnerIdentity() { // GetOwnerGroup returns the OwnerGroup field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Account) GetOwnerGroup() AccountAllOfOwnerGroup { - if o == nil || isNil(o.OwnerGroup.Get()) { + if o == nil || IsNil(o.OwnerGroup.Get()) { var ret AccountAllOfOwnerGroup return ret } @@ -1029,13 +1029,19 @@ func (o Account) MarshalJSON() ([]byte, error) { func (o Account) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } toSerialize["name"] = o.Name - // skip: created is readOnly - // skip: modified is readOnly + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } + if !IsNil(o.Modified) { + toSerialize["modified"] = o.Modified + } toSerialize["sourceId"] = o.SourceId toSerialize["sourceName"] = o.SourceName - if !isNil(o.IdentityId) { + if !IsNil(o.IdentityId) { toSerialize["identityId"] = o.IdentityId } if o.CloudLifecycleState.IsSet() { @@ -1067,7 +1073,7 @@ func (o Account) ToMap() (map[string]interface{}, error) { } toSerialize["manuallyCorrelated"] = o.ManuallyCorrelated toSerialize["hasEntitlements"] = o.HasEntitlements - if !isNil(o.Identity) { + if !IsNil(o.Identity) { toSerialize["identity"] = o.Identity } if o.SourceOwner.IsSet() { @@ -1093,8 +1099,8 @@ func (o Account) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Account) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *Account) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -1114,7 +1120,7 @@ func (o *Account) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -1128,13 +1134,17 @@ func (o *Account) UnmarshalJSON(bytes []byte) (err error) { varAccount := _Account{} - if err = json.Unmarshal(bytes, &varAccount); err == nil { + err = json.Unmarshal(data, &varAccount) + + if err != nil { + return err + } + *o = Account(varAccount) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "created") diff --git a/api_v3/model_account_action.go b/api_v3/model_account_action.go index 02dfb64fb..c94209ab4 100644 --- a/api_v3/model_account_action.go +++ b/api_v3/model_account_action.go @@ -47,7 +47,7 @@ func NewAccountActionWithDefaults() *AccountAction { // GetAction returns the Action field value if set, zero value otherwise. func (o *AccountAction) GetAction() string { - if o == nil || isNil(o.Action) { + if o == nil || IsNil(o.Action) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *AccountAction) GetAction() string { // GetActionOk returns a tuple with the Action field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountAction) GetActionOk() (*string, bool) { - if o == nil || isNil(o.Action) { + if o == nil || IsNil(o.Action) { return nil, false } return o.Action, true @@ -65,7 +65,7 @@ func (o *AccountAction) GetActionOk() (*string, bool) { // HasAction returns a boolean if a field has been set. func (o *AccountAction) HasAction() bool { - if o != nil && !isNil(o.Action) { + if o != nil && !IsNil(o.Action) { return true } @@ -79,7 +79,7 @@ func (o *AccountAction) SetAction(v string) { // GetSourceIds returns the SourceIds field value if set, zero value otherwise. func (o *AccountAction) GetSourceIds() []string { - if o == nil || isNil(o.SourceIds) { + if o == nil || IsNil(o.SourceIds) { var ret []string return ret } @@ -89,7 +89,7 @@ func (o *AccountAction) GetSourceIds() []string { // GetSourceIdsOk returns a tuple with the SourceIds field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountAction) GetSourceIdsOk() ([]string, bool) { - if o == nil || isNil(o.SourceIds) { + if o == nil || IsNil(o.SourceIds) { return nil, false } return o.SourceIds, true @@ -97,7 +97,7 @@ func (o *AccountAction) GetSourceIdsOk() ([]string, bool) { // HasSourceIds returns a boolean if a field has been set. func (o *AccountAction) HasSourceIds() bool { - if o != nil && !isNil(o.SourceIds) { + if o != nil && !IsNil(o.SourceIds) { return true } @@ -119,10 +119,10 @@ func (o AccountAction) MarshalJSON() ([]byte, error) { func (o AccountAction) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Action) { + if !IsNil(o.Action) { toSerialize["action"] = o.Action } - if !isNil(o.SourceIds) { + if !IsNil(o.SourceIds) { toSerialize["sourceIds"] = o.SourceIds } @@ -133,16 +133,20 @@ func (o AccountAction) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountAction) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccountAction) UnmarshalJSON(data []byte) (err error) { varAccountAction := _AccountAction{} - if err = json.Unmarshal(bytes, &varAccountAction); err == nil { + err = json.Unmarshal(data, &varAccountAction) + + if err != nil { + return err + } + *o = AccountAction(varAccountAction) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "action") delete(additionalProperties, "sourceIds") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_account_activity.go b/api_v3/model_account_activity.go index ab3d3cda9..49e6d26f9 100644 --- a/api_v3/model_account_activity.go +++ b/api_v3/model_account_activity.go @@ -68,7 +68,7 @@ func NewAccountActivityWithDefaults() *AccountActivity { // GetId returns the Id field value if set, zero value otherwise. func (o *AccountActivity) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -78,7 +78,7 @@ func (o *AccountActivity) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivity) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -86,7 +86,7 @@ func (o *AccountActivity) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccountActivity) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -100,7 +100,7 @@ func (o *AccountActivity) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccountActivity) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -110,7 +110,7 @@ func (o *AccountActivity) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivity) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -118,7 +118,7 @@ func (o *AccountActivity) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccountActivity) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -132,7 +132,7 @@ func (o *AccountActivity) SetName(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *AccountActivity) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -142,7 +142,7 @@ func (o *AccountActivity) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivity) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -150,7 +150,7 @@ func (o *AccountActivity) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *AccountActivity) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -164,7 +164,7 @@ func (o *AccountActivity) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivity) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -206,7 +206,7 @@ func (o *AccountActivity) UnsetModified() { // GetCompleted returns the Completed field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivity) GetCompleted() time.Time { - if o == nil || isNil(o.Completed.Get()) { + if o == nil || IsNil(o.Completed.Get()) { var ret time.Time return ret } @@ -248,7 +248,7 @@ func (o *AccountActivity) UnsetCompleted() { // GetCompletionStatus returns the CompletionStatus field value if set, zero value otherwise. func (o *AccountActivity) GetCompletionStatus() CompletionStatus { - if o == nil || isNil(o.CompletionStatus) { + if o == nil || IsNil(o.CompletionStatus) { var ret CompletionStatus return ret } @@ -258,7 +258,7 @@ func (o *AccountActivity) GetCompletionStatus() CompletionStatus { // GetCompletionStatusOk returns a tuple with the CompletionStatus field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivity) GetCompletionStatusOk() (*CompletionStatus, bool) { - if o == nil || isNil(o.CompletionStatus) { + if o == nil || IsNil(o.CompletionStatus) { return nil, false } return o.CompletionStatus, true @@ -266,7 +266,7 @@ func (o *AccountActivity) GetCompletionStatusOk() (*CompletionStatus, bool) { // HasCompletionStatus returns a boolean if a field has been set. func (o *AccountActivity) HasCompletionStatus() bool { - if o != nil && !isNil(o.CompletionStatus) { + if o != nil && !IsNil(o.CompletionStatus) { return true } @@ -280,7 +280,7 @@ func (o *AccountActivity) SetCompletionStatus(v CompletionStatus) { // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivity) GetType() string { - if o == nil || isNil(o.Type.Get()) { + if o == nil || IsNil(o.Type.Get()) { var ret string return ret } @@ -322,7 +322,7 @@ func (o *AccountActivity) UnsetType() { // GetRequesterIdentitySummary returns the RequesterIdentitySummary field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivity) GetRequesterIdentitySummary() IdentitySummary { - if o == nil || isNil(o.RequesterIdentitySummary.Get()) { + if o == nil || IsNil(o.RequesterIdentitySummary.Get()) { var ret IdentitySummary return ret } @@ -364,7 +364,7 @@ func (o *AccountActivity) UnsetRequesterIdentitySummary() { // GetTargetIdentitySummary returns the TargetIdentitySummary field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivity) GetTargetIdentitySummary() IdentitySummary { - if o == nil || isNil(o.TargetIdentitySummary.Get()) { + if o == nil || IsNil(o.TargetIdentitySummary.Get()) { var ret IdentitySummary return ret } @@ -417,7 +417,7 @@ func (o *AccountActivity) GetErrors() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *AccountActivity) GetErrorsOk() ([]string, bool) { - if o == nil || isNil(o.Errors) { + if o == nil || IsNil(o.Errors) { return nil, false } return o.Errors, true @@ -425,7 +425,7 @@ func (o *AccountActivity) GetErrorsOk() ([]string, bool) { // HasErrors returns a boolean if a field has been set. func (o *AccountActivity) HasErrors() bool { - if o != nil && isNil(o.Errors) { + if o != nil && !IsNil(o.Errors) { return true } @@ -450,7 +450,7 @@ func (o *AccountActivity) GetWarnings() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *AccountActivity) GetWarningsOk() ([]string, bool) { - if o == nil || isNil(o.Warnings) { + if o == nil || IsNil(o.Warnings) { return nil, false } return o.Warnings, true @@ -458,7 +458,7 @@ func (o *AccountActivity) GetWarningsOk() ([]string, bool) { // HasWarnings returns a boolean if a field has been set. func (o *AccountActivity) HasWarnings() bool { - if o != nil && isNil(o.Warnings) { + if o != nil && !IsNil(o.Warnings) { return true } @@ -483,7 +483,7 @@ func (o *AccountActivity) GetItems() []AccountActivityItem { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *AccountActivity) GetItemsOk() ([]AccountActivityItem, bool) { - if o == nil || isNil(o.Items) { + if o == nil || IsNil(o.Items) { return nil, false } return o.Items, true @@ -491,7 +491,7 @@ func (o *AccountActivity) GetItemsOk() ([]AccountActivityItem, bool) { // HasItems returns a boolean if a field has been set. func (o *AccountActivity) HasItems() bool { - if o != nil && isNil(o.Items) { + if o != nil && !IsNil(o.Items) { return true } @@ -505,7 +505,7 @@ func (o *AccountActivity) SetItems(v []AccountActivityItem) { // GetExecutionStatus returns the ExecutionStatus field value if set, zero value otherwise. func (o *AccountActivity) GetExecutionStatus() ExecutionStatus { - if o == nil || isNil(o.ExecutionStatus) { + if o == nil || IsNil(o.ExecutionStatus) { var ret ExecutionStatus return ret } @@ -515,7 +515,7 @@ func (o *AccountActivity) GetExecutionStatus() ExecutionStatus { // GetExecutionStatusOk returns a tuple with the ExecutionStatus field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivity) GetExecutionStatusOk() (*ExecutionStatus, bool) { - if o == nil || isNil(o.ExecutionStatus) { + if o == nil || IsNil(o.ExecutionStatus) { return nil, false } return o.ExecutionStatus, true @@ -523,7 +523,7 @@ func (o *AccountActivity) GetExecutionStatusOk() (*ExecutionStatus, bool) { // HasExecutionStatus returns a boolean if a field has been set. func (o *AccountActivity) HasExecutionStatus() bool { - if o != nil && !isNil(o.ExecutionStatus) { + if o != nil && !IsNil(o.ExecutionStatus) { return true } @@ -548,7 +548,7 @@ func (o *AccountActivity) GetClientMetadata() map[string]string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *AccountActivity) GetClientMetadataOk() (*map[string]string, bool) { - if o == nil || isNil(o.ClientMetadata) { + if o == nil || IsNil(o.ClientMetadata) { return nil, false } return &o.ClientMetadata, true @@ -556,7 +556,7 @@ func (o *AccountActivity) GetClientMetadataOk() (*map[string]string, bool) { // HasClientMetadata returns a boolean if a field has been set. func (o *AccountActivity) HasClientMetadata() bool { - if o != nil && isNil(o.ClientMetadata) { + if o != nil && !IsNil(o.ClientMetadata) { return true } @@ -578,13 +578,13 @@ func (o AccountActivity) MarshalJSON() ([]byte, error) { func (o AccountActivity) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } if o.Modified.IsSet() { @@ -593,7 +593,7 @@ func (o AccountActivity) ToMap() (map[string]interface{}, error) { if o.Completed.IsSet() { toSerialize["completed"] = o.Completed.Get() } - if !isNil(o.CompletionStatus) { + if !IsNil(o.CompletionStatus) { toSerialize["completionStatus"] = o.CompletionStatus } if o.Type.IsSet() { @@ -614,7 +614,7 @@ func (o AccountActivity) ToMap() (map[string]interface{}, error) { if o.Items != nil { toSerialize["items"] = o.Items } - if !isNil(o.ExecutionStatus) { + if !IsNil(o.ExecutionStatus) { toSerialize["executionStatus"] = o.ExecutionStatus } if o.ClientMetadata != nil { @@ -628,16 +628,20 @@ func (o AccountActivity) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountActivity) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccountActivity) UnmarshalJSON(data []byte) (err error) { varAccountActivity := _AccountActivity{} - if err = json.Unmarshal(bytes, &varAccountActivity); err == nil { + err = json.Unmarshal(data, &varAccountActivity) + + if err != nil { + return err + } + *o = AccountActivity(varAccountActivity) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "created") diff --git a/api_v3/model_account_activity_document.go b/api_v3/model_account_activity_document.go index 28978d647..2f0d985c2 100644 --- a/api_v3/model_account_activity_document.go +++ b/api_v3/model_account_activity_document.go @@ -153,7 +153,7 @@ func (o *AccountActivityDocument) SetType(v DocumentType) { // GetAction returns the Action field value if set, zero value otherwise. func (o *AccountActivityDocument) GetAction() string { - if o == nil || isNil(o.Action) { + if o == nil || IsNil(o.Action) { var ret string return ret } @@ -163,7 +163,7 @@ func (o *AccountActivityDocument) GetAction() string { // GetActionOk returns a tuple with the Action field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityDocument) GetActionOk() (*string, bool) { - if o == nil || isNil(o.Action) { + if o == nil || IsNil(o.Action) { return nil, false } return o.Action, true @@ -171,7 +171,7 @@ func (o *AccountActivityDocument) GetActionOk() (*string, bool) { // HasAction returns a boolean if a field has been set. func (o *AccountActivityDocument) HasAction() bool { - if o != nil && !isNil(o.Action) { + if o != nil && !IsNil(o.Action) { return true } @@ -185,7 +185,7 @@ func (o *AccountActivityDocument) SetAction(v string) { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivityDocument) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -227,7 +227,7 @@ func (o *AccountActivityDocument) UnsetCreated() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivityDocument) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -269,7 +269,7 @@ func (o *AccountActivityDocument) UnsetModified() { // GetStage returns the Stage field value if set, zero value otherwise. func (o *AccountActivityDocument) GetStage() string { - if o == nil || isNil(o.Stage) { + if o == nil || IsNil(o.Stage) { var ret string return ret } @@ -279,7 +279,7 @@ func (o *AccountActivityDocument) GetStage() string { // GetStageOk returns a tuple with the Stage field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityDocument) GetStageOk() (*string, bool) { - if o == nil || isNil(o.Stage) { + if o == nil || IsNil(o.Stage) { return nil, false } return o.Stage, true @@ -287,7 +287,7 @@ func (o *AccountActivityDocument) GetStageOk() (*string, bool) { // HasStage returns a boolean if a field has been set. func (o *AccountActivityDocument) HasStage() bool { - if o != nil && !isNil(o.Stage) { + if o != nil && !IsNil(o.Stage) { return true } @@ -301,7 +301,7 @@ func (o *AccountActivityDocument) SetStage(v string) { // GetOrigin returns the Origin field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivityDocument) GetOrigin() string { - if o == nil || isNil(o.Origin.Get()) { + if o == nil || IsNil(o.Origin.Get()) { var ret string return ret } @@ -343,7 +343,7 @@ func (o *AccountActivityDocument) UnsetOrigin() { // GetStatus returns the Status field value if set, zero value otherwise. func (o *AccountActivityDocument) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -353,7 +353,7 @@ func (o *AccountActivityDocument) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityDocument) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -361,7 +361,7 @@ func (o *AccountActivityDocument) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *AccountActivityDocument) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -375,7 +375,7 @@ func (o *AccountActivityDocument) SetStatus(v string) { // GetRequester returns the Requester field value if set, zero value otherwise. func (o *AccountActivityDocument) GetRequester() AccountSource { - if o == nil || isNil(o.Requester) { + if o == nil || IsNil(o.Requester) { var ret AccountSource return ret } @@ -385,7 +385,7 @@ func (o *AccountActivityDocument) GetRequester() AccountSource { // GetRequesterOk returns a tuple with the Requester field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityDocument) GetRequesterOk() (*AccountSource, bool) { - if o == nil || isNil(o.Requester) { + if o == nil || IsNil(o.Requester) { return nil, false } return o.Requester, true @@ -393,7 +393,7 @@ func (o *AccountActivityDocument) GetRequesterOk() (*AccountSource, bool) { // HasRequester returns a boolean if a field has been set. func (o *AccountActivityDocument) HasRequester() bool { - if o != nil && !isNil(o.Requester) { + if o != nil && !IsNil(o.Requester) { return true } @@ -407,7 +407,7 @@ func (o *AccountActivityDocument) SetRequester(v AccountSource) { // GetRecipient returns the Recipient field value if set, zero value otherwise. func (o *AccountActivityDocument) GetRecipient() AccountSource { - if o == nil || isNil(o.Recipient) { + if o == nil || IsNil(o.Recipient) { var ret AccountSource return ret } @@ -417,7 +417,7 @@ func (o *AccountActivityDocument) GetRecipient() AccountSource { // GetRecipientOk returns a tuple with the Recipient field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityDocument) GetRecipientOk() (*AccountSource, bool) { - if o == nil || isNil(o.Recipient) { + if o == nil || IsNil(o.Recipient) { return nil, false } return o.Recipient, true @@ -425,7 +425,7 @@ func (o *AccountActivityDocument) GetRecipientOk() (*AccountSource, bool) { // HasRecipient returns a boolean if a field has been set. func (o *AccountActivityDocument) HasRecipient() bool { - if o != nil && !isNil(o.Recipient) { + if o != nil && !IsNil(o.Recipient) { return true } @@ -439,7 +439,7 @@ func (o *AccountActivityDocument) SetRecipient(v AccountSource) { // GetTrackingNumber returns the TrackingNumber field value if set, zero value otherwise. func (o *AccountActivityDocument) GetTrackingNumber() string { - if o == nil || isNil(o.TrackingNumber) { + if o == nil || IsNil(o.TrackingNumber) { var ret string return ret } @@ -449,7 +449,7 @@ func (o *AccountActivityDocument) GetTrackingNumber() string { // GetTrackingNumberOk returns a tuple with the TrackingNumber field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityDocument) GetTrackingNumberOk() (*string, bool) { - if o == nil || isNil(o.TrackingNumber) { + if o == nil || IsNil(o.TrackingNumber) { return nil, false } return o.TrackingNumber, true @@ -457,7 +457,7 @@ func (o *AccountActivityDocument) GetTrackingNumberOk() (*string, bool) { // HasTrackingNumber returns a boolean if a field has been set. func (o *AccountActivityDocument) HasTrackingNumber() bool { - if o != nil && !isNil(o.TrackingNumber) { + if o != nil && !IsNil(o.TrackingNumber) { return true } @@ -482,7 +482,7 @@ func (o *AccountActivityDocument) GetErrors() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *AccountActivityDocument) GetErrorsOk() ([]string, bool) { - if o == nil || isNil(o.Errors) { + if o == nil || IsNil(o.Errors) { return nil, false } return o.Errors, true @@ -490,7 +490,7 @@ func (o *AccountActivityDocument) GetErrorsOk() ([]string, bool) { // HasErrors returns a boolean if a field has been set. func (o *AccountActivityDocument) HasErrors() bool { - if o != nil && isNil(o.Errors) { + if o != nil && !IsNil(o.Errors) { return true } @@ -515,7 +515,7 @@ func (o *AccountActivityDocument) GetWarnings() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *AccountActivityDocument) GetWarningsOk() ([]string, bool) { - if o == nil || isNil(o.Warnings) { + if o == nil || IsNil(o.Warnings) { return nil, false } return o.Warnings, true @@ -523,7 +523,7 @@ func (o *AccountActivityDocument) GetWarningsOk() ([]string, bool) { // HasWarnings returns a boolean if a field has been set. func (o *AccountActivityDocument) HasWarnings() bool { - if o != nil && isNil(o.Warnings) { + if o != nil && !IsNil(o.Warnings) { return true } @@ -537,7 +537,7 @@ func (o *AccountActivityDocument) SetWarnings(v []string) { // GetApprovals returns the Approvals field value if set, zero value otherwise. func (o *AccountActivityDocument) GetApprovals() []Approval { - if o == nil || isNil(o.Approvals) { + if o == nil || IsNil(o.Approvals) { var ret []Approval return ret } @@ -547,7 +547,7 @@ func (o *AccountActivityDocument) GetApprovals() []Approval { // GetApprovalsOk returns a tuple with the Approvals field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityDocument) GetApprovalsOk() ([]Approval, bool) { - if o == nil || isNil(o.Approvals) { + if o == nil || IsNil(o.Approvals) { return nil, false } return o.Approvals, true @@ -555,7 +555,7 @@ func (o *AccountActivityDocument) GetApprovalsOk() ([]Approval, bool) { // HasApprovals returns a boolean if a field has been set. func (o *AccountActivityDocument) HasApprovals() bool { - if o != nil && !isNil(o.Approvals) { + if o != nil && !IsNil(o.Approvals) { return true } @@ -569,7 +569,7 @@ func (o *AccountActivityDocument) SetApprovals(v []Approval) { // GetOriginalRequests returns the OriginalRequests field value if set, zero value otherwise. func (o *AccountActivityDocument) GetOriginalRequests() []OriginalRequest { - if o == nil || isNil(o.OriginalRequests) { + if o == nil || IsNil(o.OriginalRequests) { var ret []OriginalRequest return ret } @@ -579,7 +579,7 @@ func (o *AccountActivityDocument) GetOriginalRequests() []OriginalRequest { // GetOriginalRequestsOk returns a tuple with the OriginalRequests field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityDocument) GetOriginalRequestsOk() ([]OriginalRequest, bool) { - if o == nil || isNil(o.OriginalRequests) { + if o == nil || IsNil(o.OriginalRequests) { return nil, false } return o.OriginalRequests, true @@ -587,7 +587,7 @@ func (o *AccountActivityDocument) GetOriginalRequestsOk() ([]OriginalRequest, bo // HasOriginalRequests returns a boolean if a field has been set. func (o *AccountActivityDocument) HasOriginalRequests() bool { - if o != nil && !isNil(o.OriginalRequests) { + if o != nil && !IsNil(o.OriginalRequests) { return true } @@ -601,7 +601,7 @@ func (o *AccountActivityDocument) SetOriginalRequests(v []OriginalRequest) { // GetExpansionItems returns the ExpansionItems field value if set, zero value otherwise. func (o *AccountActivityDocument) GetExpansionItems() []ExpansionItem { - if o == nil || isNil(o.ExpansionItems) { + if o == nil || IsNil(o.ExpansionItems) { var ret []ExpansionItem return ret } @@ -611,7 +611,7 @@ func (o *AccountActivityDocument) GetExpansionItems() []ExpansionItem { // GetExpansionItemsOk returns a tuple with the ExpansionItems field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityDocument) GetExpansionItemsOk() ([]ExpansionItem, bool) { - if o == nil || isNil(o.ExpansionItems) { + if o == nil || IsNil(o.ExpansionItems) { return nil, false } return o.ExpansionItems, true @@ -619,7 +619,7 @@ func (o *AccountActivityDocument) GetExpansionItemsOk() ([]ExpansionItem, bool) // HasExpansionItems returns a boolean if a field has been set. func (o *AccountActivityDocument) HasExpansionItems() bool { - if o != nil && !isNil(o.ExpansionItems) { + if o != nil && !IsNil(o.ExpansionItems) { return true } @@ -633,7 +633,7 @@ func (o *AccountActivityDocument) SetExpansionItems(v []ExpansionItem) { // GetAccountRequests returns the AccountRequests field value if set, zero value otherwise. func (o *AccountActivityDocument) GetAccountRequests() []AccountRequest { - if o == nil || isNil(o.AccountRequests) { + if o == nil || IsNil(o.AccountRequests) { var ret []AccountRequest return ret } @@ -643,7 +643,7 @@ func (o *AccountActivityDocument) GetAccountRequests() []AccountRequest { // GetAccountRequestsOk returns a tuple with the AccountRequests field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityDocument) GetAccountRequestsOk() ([]AccountRequest, bool) { - if o == nil || isNil(o.AccountRequests) { + if o == nil || IsNil(o.AccountRequests) { return nil, false } return o.AccountRequests, true @@ -651,7 +651,7 @@ func (o *AccountActivityDocument) GetAccountRequestsOk() ([]AccountRequest, bool // HasAccountRequests returns a boolean if a field has been set. func (o *AccountActivityDocument) HasAccountRequests() bool { - if o != nil && !isNil(o.AccountRequests) { + if o != nil && !IsNil(o.AccountRequests) { return true } @@ -665,7 +665,7 @@ func (o *AccountActivityDocument) SetAccountRequests(v []AccountRequest) { // GetSources returns the Sources field value if set, zero value otherwise. func (o *AccountActivityDocument) GetSources() string { - if o == nil || isNil(o.Sources) { + if o == nil || IsNil(o.Sources) { var ret string return ret } @@ -675,7 +675,7 @@ func (o *AccountActivityDocument) GetSources() string { // GetSourcesOk returns a tuple with the Sources field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityDocument) GetSourcesOk() (*string, bool) { - if o == nil || isNil(o.Sources) { + if o == nil || IsNil(o.Sources) { return nil, false } return o.Sources, true @@ -683,7 +683,7 @@ func (o *AccountActivityDocument) GetSourcesOk() (*string, bool) { // HasSources returns a boolean if a field has been set. func (o *AccountActivityDocument) HasSources() bool { - if o != nil && !isNil(o.Sources) { + if o != nil && !IsNil(o.Sources) { return true } @@ -708,7 +708,7 @@ func (o AccountActivityDocument) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["name"] = o.Name toSerialize["_type"] = o.Type - if !isNil(o.Action) { + if !IsNil(o.Action) { toSerialize["action"] = o.Action } if o.Created.IsSet() { @@ -717,22 +717,22 @@ func (o AccountActivityDocument) ToMap() (map[string]interface{}, error) { if o.Modified.IsSet() { toSerialize["modified"] = o.Modified.Get() } - if !isNil(o.Stage) { + if !IsNil(o.Stage) { toSerialize["stage"] = o.Stage } if o.Origin.IsSet() { toSerialize["origin"] = o.Origin.Get() } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } - if !isNil(o.Requester) { + if !IsNil(o.Requester) { toSerialize["requester"] = o.Requester } - if !isNil(o.Recipient) { + if !IsNil(o.Recipient) { toSerialize["recipient"] = o.Recipient } - if !isNil(o.TrackingNumber) { + if !IsNil(o.TrackingNumber) { toSerialize["trackingNumber"] = o.TrackingNumber } if o.Errors != nil { @@ -741,19 +741,19 @@ func (o AccountActivityDocument) ToMap() (map[string]interface{}, error) { if o.Warnings != nil { toSerialize["warnings"] = o.Warnings } - if !isNil(o.Approvals) { + if !IsNil(o.Approvals) { toSerialize["approvals"] = o.Approvals } - if !isNil(o.OriginalRequests) { + if !IsNil(o.OriginalRequests) { toSerialize["originalRequests"] = o.OriginalRequests } - if !isNil(o.ExpansionItems) { + if !IsNil(o.ExpansionItems) { toSerialize["expansionItems"] = o.ExpansionItems } - if !isNil(o.AccountRequests) { + if !IsNil(o.AccountRequests) { toSerialize["accountRequests"] = o.AccountRequests } - if !isNil(o.Sources) { + if !IsNil(o.Sources) { toSerialize["sources"] = o.Sources } @@ -764,8 +764,8 @@ func (o AccountActivityDocument) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountActivityDocument) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *AccountActivityDocument) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -776,7 +776,7 @@ func (o *AccountActivityDocument) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -790,13 +790,17 @@ func (o *AccountActivityDocument) UnmarshalJSON(bytes []byte) (err error) { varAccountActivityDocument := _AccountActivityDocument{} - if err = json.Unmarshal(bytes, &varAccountActivityDocument); err == nil { + err = json.Unmarshal(data, &varAccountActivityDocument) + + if err != nil { + return err + } + *o = AccountActivityDocument(varAccountActivityDocument) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "_type") diff --git a/api_v3/model_account_activity_item.go b/api_v3/model_account_activity_item.go index 82395fec7..49884767b 100644 --- a/api_v3/model_account_activity_item.go +++ b/api_v3/model_account_activity_item.go @@ -69,7 +69,7 @@ func NewAccountActivityItemWithDefaults() *AccountActivityItem { // GetId returns the Id field value if set, zero value otherwise. func (o *AccountActivityItem) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -79,7 +79,7 @@ func (o *AccountActivityItem) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityItem) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -87,7 +87,7 @@ func (o *AccountActivityItem) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccountActivityItem) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -101,7 +101,7 @@ func (o *AccountActivityItem) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccountActivityItem) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -111,7 +111,7 @@ func (o *AccountActivityItem) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityItem) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -119,7 +119,7 @@ func (o *AccountActivityItem) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccountActivityItem) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -133,7 +133,7 @@ func (o *AccountActivityItem) SetName(v string) { // GetRequested returns the Requested field value if set, zero value otherwise. func (o *AccountActivityItem) GetRequested() time.Time { - if o == nil || isNil(o.Requested) { + if o == nil || IsNil(o.Requested) { var ret time.Time return ret } @@ -143,7 +143,7 @@ func (o *AccountActivityItem) GetRequested() time.Time { // GetRequestedOk returns a tuple with the Requested field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityItem) GetRequestedOk() (*time.Time, bool) { - if o == nil || isNil(o.Requested) { + if o == nil || IsNil(o.Requested) { return nil, false } return o.Requested, true @@ -151,7 +151,7 @@ func (o *AccountActivityItem) GetRequestedOk() (*time.Time, bool) { // HasRequested returns a boolean if a field has been set. func (o *AccountActivityItem) HasRequested() bool { - if o != nil && !isNil(o.Requested) { + if o != nil && !IsNil(o.Requested) { return true } @@ -165,7 +165,7 @@ func (o *AccountActivityItem) SetRequested(v time.Time) { // GetApprovalStatus returns the ApprovalStatus field value if set, zero value otherwise. func (o *AccountActivityItem) GetApprovalStatus() AccountActivityApprovalStatus { - if o == nil || isNil(o.ApprovalStatus) { + if o == nil || IsNil(o.ApprovalStatus) { var ret AccountActivityApprovalStatus return ret } @@ -175,7 +175,7 @@ func (o *AccountActivityItem) GetApprovalStatus() AccountActivityApprovalStatus // GetApprovalStatusOk returns a tuple with the ApprovalStatus field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityItem) GetApprovalStatusOk() (*AccountActivityApprovalStatus, bool) { - if o == nil || isNil(o.ApprovalStatus) { + if o == nil || IsNil(o.ApprovalStatus) { return nil, false } return o.ApprovalStatus, true @@ -183,7 +183,7 @@ func (o *AccountActivityItem) GetApprovalStatusOk() (*AccountActivityApprovalSta // HasApprovalStatus returns a boolean if a field has been set. func (o *AccountActivityItem) HasApprovalStatus() bool { - if o != nil && !isNil(o.ApprovalStatus) { + if o != nil && !IsNil(o.ApprovalStatus) { return true } @@ -197,7 +197,7 @@ func (o *AccountActivityItem) SetApprovalStatus(v AccountActivityApprovalStatus) // GetProvisioningStatus returns the ProvisioningStatus field value if set, zero value otherwise. func (o *AccountActivityItem) GetProvisioningStatus() ProvisioningState { - if o == nil || isNil(o.ProvisioningStatus) { + if o == nil || IsNil(o.ProvisioningStatus) { var ret ProvisioningState return ret } @@ -207,7 +207,7 @@ func (o *AccountActivityItem) GetProvisioningStatus() ProvisioningState { // GetProvisioningStatusOk returns a tuple with the ProvisioningStatus field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityItem) GetProvisioningStatusOk() (*ProvisioningState, bool) { - if o == nil || isNil(o.ProvisioningStatus) { + if o == nil || IsNil(o.ProvisioningStatus) { return nil, false } return o.ProvisioningStatus, true @@ -215,7 +215,7 @@ func (o *AccountActivityItem) GetProvisioningStatusOk() (*ProvisioningState, boo // HasProvisioningStatus returns a boolean if a field has been set. func (o *AccountActivityItem) HasProvisioningStatus() bool { - if o != nil && !isNil(o.ProvisioningStatus) { + if o != nil && !IsNil(o.ProvisioningStatus) { return true } @@ -229,7 +229,7 @@ func (o *AccountActivityItem) SetProvisioningStatus(v ProvisioningState) { // GetRequesterComment returns the RequesterComment field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivityItem) GetRequesterComment() Comment { - if o == nil || isNil(o.RequesterComment.Get()) { + if o == nil || IsNil(o.RequesterComment.Get()) { var ret Comment return ret } @@ -271,7 +271,7 @@ func (o *AccountActivityItem) UnsetRequesterComment() { // GetReviewerIdentitySummary returns the ReviewerIdentitySummary field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivityItem) GetReviewerIdentitySummary() IdentitySummary { - if o == nil || isNil(o.ReviewerIdentitySummary.Get()) { + if o == nil || IsNil(o.ReviewerIdentitySummary.Get()) { var ret IdentitySummary return ret } @@ -313,7 +313,7 @@ func (o *AccountActivityItem) UnsetReviewerIdentitySummary() { // GetReviewerComment returns the ReviewerComment field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivityItem) GetReviewerComment() Comment { - if o == nil || isNil(o.ReviewerComment.Get()) { + if o == nil || IsNil(o.ReviewerComment.Get()) { var ret Comment return ret } @@ -355,7 +355,7 @@ func (o *AccountActivityItem) UnsetReviewerComment() { // GetOperation returns the Operation field value if set, zero value otherwise. func (o *AccountActivityItem) GetOperation() AccountActivityItemOperation { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { var ret AccountActivityItemOperation return ret } @@ -365,7 +365,7 @@ func (o *AccountActivityItem) GetOperation() AccountActivityItemOperation { // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityItem) GetOperationOk() (*AccountActivityItemOperation, bool) { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { return nil, false } return o.Operation, true @@ -373,7 +373,7 @@ func (o *AccountActivityItem) GetOperationOk() (*AccountActivityItemOperation, b // HasOperation returns a boolean if a field has been set. func (o *AccountActivityItem) HasOperation() bool { - if o != nil && !isNil(o.Operation) { + if o != nil && !IsNil(o.Operation) { return true } @@ -387,7 +387,7 @@ func (o *AccountActivityItem) SetOperation(v AccountActivityItemOperation) { // GetAttribute returns the Attribute field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivityItem) GetAttribute() string { - if o == nil || isNil(o.Attribute.Get()) { + if o == nil || IsNil(o.Attribute.Get()) { var ret string return ret } @@ -429,7 +429,7 @@ func (o *AccountActivityItem) UnsetAttribute() { // GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivityItem) GetValue() string { - if o == nil || isNil(o.Value.Get()) { + if o == nil || IsNil(o.Value.Get()) { var ret string return ret } @@ -471,7 +471,7 @@ func (o *AccountActivityItem) UnsetValue() { // GetNativeIdentity returns the NativeIdentity field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivityItem) GetNativeIdentity() string { - if o == nil || isNil(o.NativeIdentity.Get()) { + if o == nil || IsNil(o.NativeIdentity.Get()) { var ret string return ret } @@ -513,7 +513,7 @@ func (o *AccountActivityItem) UnsetNativeIdentity() { // GetSourceId returns the SourceId field value if set, zero value otherwise. func (o *AccountActivityItem) GetSourceId() string { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { var ret string return ret } @@ -523,7 +523,7 @@ func (o *AccountActivityItem) GetSourceId() string { // GetSourceIdOk returns a tuple with the SourceId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivityItem) GetSourceIdOk() (*string, bool) { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { return nil, false } return o.SourceId, true @@ -531,7 +531,7 @@ func (o *AccountActivityItem) GetSourceIdOk() (*string, bool) { // HasSourceId returns a boolean if a field has been set. func (o *AccountActivityItem) HasSourceId() bool { - if o != nil && !isNil(o.SourceId) { + if o != nil && !IsNil(o.SourceId) { return true } @@ -545,7 +545,7 @@ func (o *AccountActivityItem) SetSourceId(v string) { // GetAccountRequestInfo returns the AccountRequestInfo field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivityItem) GetAccountRequestInfo() AccountRequestInfo { - if o == nil || isNil(o.AccountRequestInfo.Get()) { + if o == nil || IsNil(o.AccountRequestInfo.Get()) { var ret AccountRequestInfo return ret } @@ -598,7 +598,7 @@ func (o *AccountActivityItem) GetClientMetadata() map[string]string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *AccountActivityItem) GetClientMetadataOk() (*map[string]string, bool) { - if o == nil || isNil(o.ClientMetadata) { + if o == nil || IsNil(o.ClientMetadata) { return nil, false } return &o.ClientMetadata, true @@ -606,7 +606,7 @@ func (o *AccountActivityItem) GetClientMetadataOk() (*map[string]string, bool) { // HasClientMetadata returns a boolean if a field has been set. func (o *AccountActivityItem) HasClientMetadata() bool { - if o != nil && isNil(o.ClientMetadata) { + if o != nil && !IsNil(o.ClientMetadata) { return true } @@ -620,7 +620,7 @@ func (o *AccountActivityItem) SetClientMetadata(v map[string]string) { // GetRemoveDate returns the RemoveDate field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivityItem) GetRemoveDate() time.Time { - if o == nil || isNil(o.RemoveDate.Get()) { + if o == nil || IsNil(o.RemoveDate.Get()) { var ret time.Time return ret } @@ -670,19 +670,19 @@ func (o AccountActivityItem) MarshalJSON() ([]byte, error) { func (o AccountActivityItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Requested) { + if !IsNil(o.Requested) { toSerialize["requested"] = o.Requested } - if !isNil(o.ApprovalStatus) { + if !IsNil(o.ApprovalStatus) { toSerialize["approvalStatus"] = o.ApprovalStatus } - if !isNil(o.ProvisioningStatus) { + if !IsNil(o.ProvisioningStatus) { toSerialize["provisioningStatus"] = o.ProvisioningStatus } if o.RequesterComment.IsSet() { @@ -694,7 +694,7 @@ func (o AccountActivityItem) ToMap() (map[string]interface{}, error) { if o.ReviewerComment.IsSet() { toSerialize["reviewerComment"] = o.ReviewerComment.Get() } - if !isNil(o.Operation) { + if !IsNil(o.Operation) { toSerialize["operation"] = o.Operation } if o.Attribute.IsSet() { @@ -706,7 +706,7 @@ func (o AccountActivityItem) ToMap() (map[string]interface{}, error) { if o.NativeIdentity.IsSet() { toSerialize["nativeIdentity"] = o.NativeIdentity.Get() } - if !isNil(o.SourceId) { + if !IsNil(o.SourceId) { toSerialize["sourceId"] = o.SourceId } if o.AccountRequestInfo.IsSet() { @@ -726,16 +726,20 @@ func (o AccountActivityItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountActivityItem) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccountActivityItem) UnmarshalJSON(data []byte) (err error) { varAccountActivityItem := _AccountActivityItem{} - if err = json.Unmarshal(bytes, &varAccountActivityItem); err == nil { + err = json.Unmarshal(data, &varAccountActivityItem) + + if err != nil { + return err + } + *o = AccountActivityItem(varAccountActivityItem) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "requested") diff --git a/api_v3/model_account_activity_searched_item.go b/api_v3/model_account_activity_searched_item.go index 9b41e2131..1c3e93a43 100644 --- a/api_v3/model_account_activity_searched_item.go +++ b/api_v3/model_account_activity_searched_item.go @@ -153,7 +153,7 @@ func (o *AccountActivitySearchedItem) SetType(v DocumentType) { // GetAction returns the Action field value if set, zero value otherwise. func (o *AccountActivitySearchedItem) GetAction() string { - if o == nil || isNil(o.Action) { + if o == nil || IsNil(o.Action) { var ret string return ret } @@ -163,7 +163,7 @@ func (o *AccountActivitySearchedItem) GetAction() string { // GetActionOk returns a tuple with the Action field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivitySearchedItem) GetActionOk() (*string, bool) { - if o == nil || isNil(o.Action) { + if o == nil || IsNil(o.Action) { return nil, false } return o.Action, true @@ -171,7 +171,7 @@ func (o *AccountActivitySearchedItem) GetActionOk() (*string, bool) { // HasAction returns a boolean if a field has been set. func (o *AccountActivitySearchedItem) HasAction() bool { - if o != nil && !isNil(o.Action) { + if o != nil && !IsNil(o.Action) { return true } @@ -185,7 +185,7 @@ func (o *AccountActivitySearchedItem) SetAction(v string) { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivitySearchedItem) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -227,7 +227,7 @@ func (o *AccountActivitySearchedItem) UnsetCreated() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivitySearchedItem) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -269,7 +269,7 @@ func (o *AccountActivitySearchedItem) UnsetModified() { // GetStage returns the Stage field value if set, zero value otherwise. func (o *AccountActivitySearchedItem) GetStage() string { - if o == nil || isNil(o.Stage) { + if o == nil || IsNil(o.Stage) { var ret string return ret } @@ -279,7 +279,7 @@ func (o *AccountActivitySearchedItem) GetStage() string { // GetStageOk returns a tuple with the Stage field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivitySearchedItem) GetStageOk() (*string, bool) { - if o == nil || isNil(o.Stage) { + if o == nil || IsNil(o.Stage) { return nil, false } return o.Stage, true @@ -287,7 +287,7 @@ func (o *AccountActivitySearchedItem) GetStageOk() (*string, bool) { // HasStage returns a boolean if a field has been set. func (o *AccountActivitySearchedItem) HasStage() bool { - if o != nil && !isNil(o.Stage) { + if o != nil && !IsNil(o.Stage) { return true } @@ -301,7 +301,7 @@ func (o *AccountActivitySearchedItem) SetStage(v string) { // GetOrigin returns the Origin field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountActivitySearchedItem) GetOrigin() string { - if o == nil || isNil(o.Origin.Get()) { + if o == nil || IsNil(o.Origin.Get()) { var ret string return ret } @@ -343,7 +343,7 @@ func (o *AccountActivitySearchedItem) UnsetOrigin() { // GetStatus returns the Status field value if set, zero value otherwise. func (o *AccountActivitySearchedItem) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -353,7 +353,7 @@ func (o *AccountActivitySearchedItem) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivitySearchedItem) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -361,7 +361,7 @@ func (o *AccountActivitySearchedItem) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *AccountActivitySearchedItem) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -375,7 +375,7 @@ func (o *AccountActivitySearchedItem) SetStatus(v string) { // GetRequester returns the Requester field value if set, zero value otherwise. func (o *AccountActivitySearchedItem) GetRequester() AccountSource { - if o == nil || isNil(o.Requester) { + if o == nil || IsNil(o.Requester) { var ret AccountSource return ret } @@ -385,7 +385,7 @@ func (o *AccountActivitySearchedItem) GetRequester() AccountSource { // GetRequesterOk returns a tuple with the Requester field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivitySearchedItem) GetRequesterOk() (*AccountSource, bool) { - if o == nil || isNil(o.Requester) { + if o == nil || IsNil(o.Requester) { return nil, false } return o.Requester, true @@ -393,7 +393,7 @@ func (o *AccountActivitySearchedItem) GetRequesterOk() (*AccountSource, bool) { // HasRequester returns a boolean if a field has been set. func (o *AccountActivitySearchedItem) HasRequester() bool { - if o != nil && !isNil(o.Requester) { + if o != nil && !IsNil(o.Requester) { return true } @@ -407,7 +407,7 @@ func (o *AccountActivitySearchedItem) SetRequester(v AccountSource) { // GetRecipient returns the Recipient field value if set, zero value otherwise. func (o *AccountActivitySearchedItem) GetRecipient() AccountSource { - if o == nil || isNil(o.Recipient) { + if o == nil || IsNil(o.Recipient) { var ret AccountSource return ret } @@ -417,7 +417,7 @@ func (o *AccountActivitySearchedItem) GetRecipient() AccountSource { // GetRecipientOk returns a tuple with the Recipient field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivitySearchedItem) GetRecipientOk() (*AccountSource, bool) { - if o == nil || isNil(o.Recipient) { + if o == nil || IsNil(o.Recipient) { return nil, false } return o.Recipient, true @@ -425,7 +425,7 @@ func (o *AccountActivitySearchedItem) GetRecipientOk() (*AccountSource, bool) { // HasRecipient returns a boolean if a field has been set. func (o *AccountActivitySearchedItem) HasRecipient() bool { - if o != nil && !isNil(o.Recipient) { + if o != nil && !IsNil(o.Recipient) { return true } @@ -439,7 +439,7 @@ func (o *AccountActivitySearchedItem) SetRecipient(v AccountSource) { // GetTrackingNumber returns the TrackingNumber field value if set, zero value otherwise. func (o *AccountActivitySearchedItem) GetTrackingNumber() string { - if o == nil || isNil(o.TrackingNumber) { + if o == nil || IsNil(o.TrackingNumber) { var ret string return ret } @@ -449,7 +449,7 @@ func (o *AccountActivitySearchedItem) GetTrackingNumber() string { // GetTrackingNumberOk returns a tuple with the TrackingNumber field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivitySearchedItem) GetTrackingNumberOk() (*string, bool) { - if o == nil || isNil(o.TrackingNumber) { + if o == nil || IsNil(o.TrackingNumber) { return nil, false } return o.TrackingNumber, true @@ -457,7 +457,7 @@ func (o *AccountActivitySearchedItem) GetTrackingNumberOk() (*string, bool) { // HasTrackingNumber returns a boolean if a field has been set. func (o *AccountActivitySearchedItem) HasTrackingNumber() bool { - if o != nil && !isNil(o.TrackingNumber) { + if o != nil && !IsNil(o.TrackingNumber) { return true } @@ -482,7 +482,7 @@ func (o *AccountActivitySearchedItem) GetErrors() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *AccountActivitySearchedItem) GetErrorsOk() ([]string, bool) { - if o == nil || isNil(o.Errors) { + if o == nil || IsNil(o.Errors) { return nil, false } return o.Errors, true @@ -490,7 +490,7 @@ func (o *AccountActivitySearchedItem) GetErrorsOk() ([]string, bool) { // HasErrors returns a boolean if a field has been set. func (o *AccountActivitySearchedItem) HasErrors() bool { - if o != nil && isNil(o.Errors) { + if o != nil && !IsNil(o.Errors) { return true } @@ -515,7 +515,7 @@ func (o *AccountActivitySearchedItem) GetWarnings() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *AccountActivitySearchedItem) GetWarningsOk() ([]string, bool) { - if o == nil || isNil(o.Warnings) { + if o == nil || IsNil(o.Warnings) { return nil, false } return o.Warnings, true @@ -523,7 +523,7 @@ func (o *AccountActivitySearchedItem) GetWarningsOk() ([]string, bool) { // HasWarnings returns a boolean if a field has been set. func (o *AccountActivitySearchedItem) HasWarnings() bool { - if o != nil && isNil(o.Warnings) { + if o != nil && !IsNil(o.Warnings) { return true } @@ -537,7 +537,7 @@ func (o *AccountActivitySearchedItem) SetWarnings(v []string) { // GetApprovals returns the Approvals field value if set, zero value otherwise. func (o *AccountActivitySearchedItem) GetApprovals() []Approval { - if o == nil || isNil(o.Approvals) { + if o == nil || IsNil(o.Approvals) { var ret []Approval return ret } @@ -547,7 +547,7 @@ func (o *AccountActivitySearchedItem) GetApprovals() []Approval { // GetApprovalsOk returns a tuple with the Approvals field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivitySearchedItem) GetApprovalsOk() ([]Approval, bool) { - if o == nil || isNil(o.Approvals) { + if o == nil || IsNil(o.Approvals) { return nil, false } return o.Approvals, true @@ -555,7 +555,7 @@ func (o *AccountActivitySearchedItem) GetApprovalsOk() ([]Approval, bool) { // HasApprovals returns a boolean if a field has been set. func (o *AccountActivitySearchedItem) HasApprovals() bool { - if o != nil && !isNil(o.Approvals) { + if o != nil && !IsNil(o.Approvals) { return true } @@ -569,7 +569,7 @@ func (o *AccountActivitySearchedItem) SetApprovals(v []Approval) { // GetOriginalRequests returns the OriginalRequests field value if set, zero value otherwise. func (o *AccountActivitySearchedItem) GetOriginalRequests() []OriginalRequest { - if o == nil || isNil(o.OriginalRequests) { + if o == nil || IsNil(o.OriginalRequests) { var ret []OriginalRequest return ret } @@ -579,7 +579,7 @@ func (o *AccountActivitySearchedItem) GetOriginalRequests() []OriginalRequest { // GetOriginalRequestsOk returns a tuple with the OriginalRequests field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivitySearchedItem) GetOriginalRequestsOk() ([]OriginalRequest, bool) { - if o == nil || isNil(o.OriginalRequests) { + if o == nil || IsNil(o.OriginalRequests) { return nil, false } return o.OriginalRequests, true @@ -587,7 +587,7 @@ func (o *AccountActivitySearchedItem) GetOriginalRequestsOk() ([]OriginalRequest // HasOriginalRequests returns a boolean if a field has been set. func (o *AccountActivitySearchedItem) HasOriginalRequests() bool { - if o != nil && !isNil(o.OriginalRequests) { + if o != nil && !IsNil(o.OriginalRequests) { return true } @@ -601,7 +601,7 @@ func (o *AccountActivitySearchedItem) SetOriginalRequests(v []OriginalRequest) { // GetExpansionItems returns the ExpansionItems field value if set, zero value otherwise. func (o *AccountActivitySearchedItem) GetExpansionItems() []ExpansionItem { - if o == nil || isNil(o.ExpansionItems) { + if o == nil || IsNil(o.ExpansionItems) { var ret []ExpansionItem return ret } @@ -611,7 +611,7 @@ func (o *AccountActivitySearchedItem) GetExpansionItems() []ExpansionItem { // GetExpansionItemsOk returns a tuple with the ExpansionItems field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivitySearchedItem) GetExpansionItemsOk() ([]ExpansionItem, bool) { - if o == nil || isNil(o.ExpansionItems) { + if o == nil || IsNil(o.ExpansionItems) { return nil, false } return o.ExpansionItems, true @@ -619,7 +619,7 @@ func (o *AccountActivitySearchedItem) GetExpansionItemsOk() ([]ExpansionItem, bo // HasExpansionItems returns a boolean if a field has been set. func (o *AccountActivitySearchedItem) HasExpansionItems() bool { - if o != nil && !isNil(o.ExpansionItems) { + if o != nil && !IsNil(o.ExpansionItems) { return true } @@ -633,7 +633,7 @@ func (o *AccountActivitySearchedItem) SetExpansionItems(v []ExpansionItem) { // GetAccountRequests returns the AccountRequests field value if set, zero value otherwise. func (o *AccountActivitySearchedItem) GetAccountRequests() []AccountRequest { - if o == nil || isNil(o.AccountRequests) { + if o == nil || IsNil(o.AccountRequests) { var ret []AccountRequest return ret } @@ -643,7 +643,7 @@ func (o *AccountActivitySearchedItem) GetAccountRequests() []AccountRequest { // GetAccountRequestsOk returns a tuple with the AccountRequests field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivitySearchedItem) GetAccountRequestsOk() ([]AccountRequest, bool) { - if o == nil || isNil(o.AccountRequests) { + if o == nil || IsNil(o.AccountRequests) { return nil, false } return o.AccountRequests, true @@ -651,7 +651,7 @@ func (o *AccountActivitySearchedItem) GetAccountRequestsOk() ([]AccountRequest, // HasAccountRequests returns a boolean if a field has been set. func (o *AccountActivitySearchedItem) HasAccountRequests() bool { - if o != nil && !isNil(o.AccountRequests) { + if o != nil && !IsNil(o.AccountRequests) { return true } @@ -665,7 +665,7 @@ func (o *AccountActivitySearchedItem) SetAccountRequests(v []AccountRequest) { // GetSources returns the Sources field value if set, zero value otherwise. func (o *AccountActivitySearchedItem) GetSources() string { - if o == nil || isNil(o.Sources) { + if o == nil || IsNil(o.Sources) { var ret string return ret } @@ -675,7 +675,7 @@ func (o *AccountActivitySearchedItem) GetSources() string { // GetSourcesOk returns a tuple with the Sources field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountActivitySearchedItem) GetSourcesOk() (*string, bool) { - if o == nil || isNil(o.Sources) { + if o == nil || IsNil(o.Sources) { return nil, false } return o.Sources, true @@ -683,7 +683,7 @@ func (o *AccountActivitySearchedItem) GetSourcesOk() (*string, bool) { // HasSources returns a boolean if a field has been set. func (o *AccountActivitySearchedItem) HasSources() bool { - if o != nil && !isNil(o.Sources) { + if o != nil && !IsNil(o.Sources) { return true } @@ -708,7 +708,7 @@ func (o AccountActivitySearchedItem) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["name"] = o.Name toSerialize["_type"] = o.Type - if !isNil(o.Action) { + if !IsNil(o.Action) { toSerialize["action"] = o.Action } if o.Created.IsSet() { @@ -717,22 +717,22 @@ func (o AccountActivitySearchedItem) ToMap() (map[string]interface{}, error) { if o.Modified.IsSet() { toSerialize["modified"] = o.Modified.Get() } - if !isNil(o.Stage) { + if !IsNil(o.Stage) { toSerialize["stage"] = o.Stage } if o.Origin.IsSet() { toSerialize["origin"] = o.Origin.Get() } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } - if !isNil(o.Requester) { + if !IsNil(o.Requester) { toSerialize["requester"] = o.Requester } - if !isNil(o.Recipient) { + if !IsNil(o.Recipient) { toSerialize["recipient"] = o.Recipient } - if !isNil(o.TrackingNumber) { + if !IsNil(o.TrackingNumber) { toSerialize["trackingNumber"] = o.TrackingNumber } if o.Errors != nil { @@ -741,19 +741,19 @@ func (o AccountActivitySearchedItem) ToMap() (map[string]interface{}, error) { if o.Warnings != nil { toSerialize["warnings"] = o.Warnings } - if !isNil(o.Approvals) { + if !IsNil(o.Approvals) { toSerialize["approvals"] = o.Approvals } - if !isNil(o.OriginalRequests) { + if !IsNil(o.OriginalRequests) { toSerialize["originalRequests"] = o.OriginalRequests } - if !isNil(o.ExpansionItems) { + if !IsNil(o.ExpansionItems) { toSerialize["expansionItems"] = o.ExpansionItems } - if !isNil(o.AccountRequests) { + if !IsNil(o.AccountRequests) { toSerialize["accountRequests"] = o.AccountRequests } - if !isNil(o.Sources) { + if !IsNil(o.Sources) { toSerialize["sources"] = o.Sources } @@ -764,8 +764,8 @@ func (o AccountActivitySearchedItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountActivitySearchedItem) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *AccountActivitySearchedItem) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -776,7 +776,7 @@ func (o *AccountActivitySearchedItem) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -790,13 +790,17 @@ func (o *AccountActivitySearchedItem) UnmarshalJSON(bytes []byte) (err error) { varAccountActivitySearchedItem := _AccountActivitySearchedItem{} - if err = json.Unmarshal(bytes, &varAccountActivitySearchedItem); err == nil { + err = json.Unmarshal(data, &varAccountActivitySearchedItem) + + if err != nil { + return err + } + *o = AccountActivitySearchedItem(varAccountActivitySearchedItem) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "_type") diff --git a/api_v3/model_account_all_of_owner_group.go b/api_v3/model_account_all_of_owner_group.go index 6b994c180..95de1df1e 100644 --- a/api_v3/model_account_all_of_owner_group.go +++ b/api_v3/model_account_all_of_owner_group.go @@ -49,7 +49,7 @@ func NewAccountAllOfOwnerGroupWithDefaults() *AccountAllOfOwnerGroup { // GetType returns the Type field value if set, zero value otherwise. func (o *AccountAllOfOwnerGroup) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *AccountAllOfOwnerGroup) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountAllOfOwnerGroup) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *AccountAllOfOwnerGroup) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *AccountAllOfOwnerGroup) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *AccountAllOfOwnerGroup) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *AccountAllOfOwnerGroup) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *AccountAllOfOwnerGroup) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountAllOfOwnerGroup) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *AccountAllOfOwnerGroup) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccountAllOfOwnerGroup) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *AccountAllOfOwnerGroup) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccountAllOfOwnerGroup) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *AccountAllOfOwnerGroup) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountAllOfOwnerGroup) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *AccountAllOfOwnerGroup) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccountAllOfOwnerGroup) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o AccountAllOfOwnerGroup) MarshalJSON() ([]byte, error) { func (o AccountAllOfOwnerGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o AccountAllOfOwnerGroup) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountAllOfOwnerGroup) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccountAllOfOwnerGroup) UnmarshalJSON(data []byte) (err error) { varAccountAllOfOwnerGroup := _AccountAllOfOwnerGroup{} - if err = json.Unmarshal(bytes, &varAccountAllOfOwnerGroup); err == nil { + err = json.Unmarshal(data, &varAccountAllOfOwnerGroup) + + if err != nil { + return err + } + *o = AccountAllOfOwnerGroup(varAccountAllOfOwnerGroup) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_account_all_of_owner_identity.go b/api_v3/model_account_all_of_owner_identity.go index 1cfd42b77..e270c78a3 100644 --- a/api_v3/model_account_all_of_owner_identity.go +++ b/api_v3/model_account_all_of_owner_identity.go @@ -49,7 +49,7 @@ func NewAccountAllOfOwnerIdentityWithDefaults() *AccountAllOfOwnerIdentity { // GetType returns the Type field value if set, zero value otherwise. func (o *AccountAllOfOwnerIdentity) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *AccountAllOfOwnerIdentity) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountAllOfOwnerIdentity) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *AccountAllOfOwnerIdentity) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *AccountAllOfOwnerIdentity) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *AccountAllOfOwnerIdentity) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *AccountAllOfOwnerIdentity) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *AccountAllOfOwnerIdentity) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountAllOfOwnerIdentity) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *AccountAllOfOwnerIdentity) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccountAllOfOwnerIdentity) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *AccountAllOfOwnerIdentity) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccountAllOfOwnerIdentity) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *AccountAllOfOwnerIdentity) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountAllOfOwnerIdentity) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *AccountAllOfOwnerIdentity) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccountAllOfOwnerIdentity) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o AccountAllOfOwnerIdentity) MarshalJSON() ([]byte, error) { func (o AccountAllOfOwnerIdentity) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o AccountAllOfOwnerIdentity) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountAllOfOwnerIdentity) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccountAllOfOwnerIdentity) UnmarshalJSON(data []byte) (err error) { varAccountAllOfOwnerIdentity := _AccountAllOfOwnerIdentity{} - if err = json.Unmarshal(bytes, &varAccountAllOfOwnerIdentity); err == nil { + err = json.Unmarshal(data, &varAccountAllOfOwnerIdentity) + + if err != nil { + return err + } + *o = AccountAllOfOwnerIdentity(varAccountAllOfOwnerIdentity) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_account_all_of_source_owner.go b/api_v3/model_account_all_of_source_owner.go index e0c381bc1..2fd4a019d 100644 --- a/api_v3/model_account_all_of_source_owner.go +++ b/api_v3/model_account_all_of_source_owner.go @@ -49,7 +49,7 @@ func NewAccountAllOfSourceOwnerWithDefaults() *AccountAllOfSourceOwner { // GetType returns the Type field value if set, zero value otherwise. func (o *AccountAllOfSourceOwner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *AccountAllOfSourceOwner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountAllOfSourceOwner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *AccountAllOfSourceOwner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *AccountAllOfSourceOwner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *AccountAllOfSourceOwner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *AccountAllOfSourceOwner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *AccountAllOfSourceOwner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountAllOfSourceOwner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *AccountAllOfSourceOwner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccountAllOfSourceOwner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *AccountAllOfSourceOwner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccountAllOfSourceOwner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *AccountAllOfSourceOwner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountAllOfSourceOwner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *AccountAllOfSourceOwner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccountAllOfSourceOwner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o AccountAllOfSourceOwner) MarshalJSON() ([]byte, error) { func (o AccountAllOfSourceOwner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o AccountAllOfSourceOwner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountAllOfSourceOwner) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccountAllOfSourceOwner) UnmarshalJSON(data []byte) (err error) { varAccountAllOfSourceOwner := _AccountAllOfSourceOwner{} - if err = json.Unmarshal(bytes, &varAccountAllOfSourceOwner); err == nil { + err = json.Unmarshal(data, &varAccountAllOfSourceOwner) + + if err != nil { + return err + } + *o = AccountAllOfSourceOwner(varAccountAllOfSourceOwner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_account_attributes.go b/api_v3/model_account_attributes.go index 73e4a9064..edbf30331 100644 --- a/api_v3/model_account_attributes.go +++ b/api_v3/model_account_attributes.go @@ -88,8 +88,8 @@ func (o AccountAttributes) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountAttributes) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *AccountAttributes) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -98,7 +98,7 @@ func (o *AccountAttributes) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -112,13 +112,17 @@ func (o *AccountAttributes) UnmarshalJSON(bytes []byte) (err error) { varAccountAttributes := _AccountAttributes{} - if err = json.Unmarshal(bytes, &varAccountAttributes); err == nil { + err = json.Unmarshal(data, &varAccountAttributes) + + if err != nil { + return err + } + *o = AccountAttributes(varAccountAttributes) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "attributes") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_account_attributes_create.go b/api_v3/model_account_attributes_create.go index 7b9454358..a05583ecb 100644 --- a/api_v3/model_account_attributes_create.go +++ b/api_v3/model_account_attributes_create.go @@ -87,8 +87,8 @@ func (o AccountAttributesCreate) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountAttributesCreate) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *AccountAttributesCreate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -97,7 +97,7 @@ func (o *AccountAttributesCreate) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -111,13 +111,17 @@ func (o *AccountAttributesCreate) UnmarshalJSON(bytes []byte) (err error) { varAccountAttributesCreate := _AccountAttributesCreate{} - if err = json.Unmarshal(bytes, &varAccountAttributesCreate); err == nil { + err = json.Unmarshal(data, &varAccountAttributesCreate) + + if err != nil { + return err + } + *o = AccountAttributesCreate(varAccountAttributesCreate) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "attributes") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_account_attributes_create_attributes.go b/api_v3/model_account_attributes_create_attributes.go index bbdaf91ec..99f1d5d27 100644 --- a/api_v3/model_account_attributes_create_attributes.go +++ b/api_v3/model_account_attributes_create_attributes.go @@ -88,8 +88,8 @@ func (o AccountAttributesCreateAttributes) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *AccountAttributesCreateAttributes) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *AccountAttributesCreateAttributes) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -98,7 +98,7 @@ func (o *AccountAttributesCreateAttributes) UnmarshalJSON(bytes []byte) (err err allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -112,13 +112,17 @@ func (o *AccountAttributesCreateAttributes) UnmarshalJSON(bytes []byte) (err err varAccountAttributesCreateAttributes := _AccountAttributesCreateAttributes{} - if err = json.Unmarshal(bytes, &varAccountAttributesCreateAttributes); err == nil { + err = json.Unmarshal(data, &varAccountAttributesCreateAttributes) + + if err != nil { + return err + } + *o = AccountAttributesCreateAttributes(varAccountAttributesCreateAttributes) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "sourceId") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_account_request.go b/api_v3/model_account_request.go index ad297f115..1ce13a07b 100644 --- a/api_v3/model_account_request.go +++ b/api_v3/model_account_request.go @@ -51,7 +51,7 @@ func NewAccountRequestWithDefaults() *AccountRequest { // GetAccountId returns the AccountId field value if set, zero value otherwise. func (o *AccountRequest) GetAccountId() string { - if o == nil || isNil(o.AccountId) { + if o == nil || IsNil(o.AccountId) { var ret string return ret } @@ -61,7 +61,7 @@ func (o *AccountRequest) GetAccountId() string { // GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountRequest) GetAccountIdOk() (*string, bool) { - if o == nil || isNil(o.AccountId) { + if o == nil || IsNil(o.AccountId) { return nil, false } return o.AccountId, true @@ -69,7 +69,7 @@ func (o *AccountRequest) GetAccountIdOk() (*string, bool) { // HasAccountId returns a boolean if a field has been set. func (o *AccountRequest) HasAccountId() bool { - if o != nil && !isNil(o.AccountId) { + if o != nil && !IsNil(o.AccountId) { return true } @@ -83,7 +83,7 @@ func (o *AccountRequest) SetAccountId(v string) { // GetAttributeRequests returns the AttributeRequests field value if set, zero value otherwise. func (o *AccountRequest) GetAttributeRequests() []AttributeRequest { - if o == nil || isNil(o.AttributeRequests) { + if o == nil || IsNil(o.AttributeRequests) { var ret []AttributeRequest return ret } @@ -93,7 +93,7 @@ func (o *AccountRequest) GetAttributeRequests() []AttributeRequest { // GetAttributeRequestsOk returns a tuple with the AttributeRequests field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountRequest) GetAttributeRequestsOk() ([]AttributeRequest, bool) { - if o == nil || isNil(o.AttributeRequests) { + if o == nil || IsNil(o.AttributeRequests) { return nil, false } return o.AttributeRequests, true @@ -101,7 +101,7 @@ func (o *AccountRequest) GetAttributeRequestsOk() ([]AttributeRequest, bool) { // HasAttributeRequests returns a boolean if a field has been set. func (o *AccountRequest) HasAttributeRequests() bool { - if o != nil && !isNil(o.AttributeRequests) { + if o != nil && !IsNil(o.AttributeRequests) { return true } @@ -115,7 +115,7 @@ func (o *AccountRequest) SetAttributeRequests(v []AttributeRequest) { // GetOp returns the Op field value if set, zero value otherwise. func (o *AccountRequest) GetOp() string { - if o == nil || isNil(o.Op) { + if o == nil || IsNil(o.Op) { var ret string return ret } @@ -125,7 +125,7 @@ func (o *AccountRequest) GetOp() string { // GetOpOk returns a tuple with the Op field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountRequest) GetOpOk() (*string, bool) { - if o == nil || isNil(o.Op) { + if o == nil || IsNil(o.Op) { return nil, false } return o.Op, true @@ -133,7 +133,7 @@ func (o *AccountRequest) GetOpOk() (*string, bool) { // HasOp returns a boolean if a field has been set. func (o *AccountRequest) HasOp() bool { - if o != nil && !isNil(o.Op) { + if o != nil && !IsNil(o.Op) { return true } @@ -147,7 +147,7 @@ func (o *AccountRequest) SetOp(v string) { // GetProvisioningTarget returns the ProvisioningTarget field value if set, zero value otherwise. func (o *AccountRequest) GetProvisioningTarget() AccountSource { - if o == nil || isNil(o.ProvisioningTarget) { + if o == nil || IsNil(o.ProvisioningTarget) { var ret AccountSource return ret } @@ -157,7 +157,7 @@ func (o *AccountRequest) GetProvisioningTarget() AccountSource { // GetProvisioningTargetOk returns a tuple with the ProvisioningTarget field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountRequest) GetProvisioningTargetOk() (*AccountSource, bool) { - if o == nil || isNil(o.ProvisioningTarget) { + if o == nil || IsNil(o.ProvisioningTarget) { return nil, false } return o.ProvisioningTarget, true @@ -165,7 +165,7 @@ func (o *AccountRequest) GetProvisioningTargetOk() (*AccountSource, bool) { // HasProvisioningTarget returns a boolean if a field has been set. func (o *AccountRequest) HasProvisioningTarget() bool { - if o != nil && !isNil(o.ProvisioningTarget) { + if o != nil && !IsNil(o.ProvisioningTarget) { return true } @@ -179,7 +179,7 @@ func (o *AccountRequest) SetProvisioningTarget(v AccountSource) { // GetResult returns the Result field value if set, zero value otherwise. func (o *AccountRequest) GetResult() AccountRequestResult { - if o == nil || isNil(o.Result) { + if o == nil || IsNil(o.Result) { var ret AccountRequestResult return ret } @@ -189,7 +189,7 @@ func (o *AccountRequest) GetResult() AccountRequestResult { // GetResultOk returns a tuple with the Result field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountRequest) GetResultOk() (*AccountRequestResult, bool) { - if o == nil || isNil(o.Result) { + if o == nil || IsNil(o.Result) { return nil, false } return o.Result, true @@ -197,7 +197,7 @@ func (o *AccountRequest) GetResultOk() (*AccountRequestResult, bool) { // HasResult returns a boolean if a field has been set. func (o *AccountRequest) HasResult() bool { - if o != nil && !isNil(o.Result) { + if o != nil && !IsNil(o.Result) { return true } @@ -211,7 +211,7 @@ func (o *AccountRequest) SetResult(v AccountRequestResult) { // GetSource returns the Source field value if set, zero value otherwise. func (o *AccountRequest) GetSource() AccountSource { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { var ret AccountSource return ret } @@ -221,7 +221,7 @@ func (o *AccountRequest) GetSource() AccountSource { // GetSourceOk returns a tuple with the Source field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountRequest) GetSourceOk() (*AccountSource, bool) { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { return nil, false } return o.Source, true @@ -229,7 +229,7 @@ func (o *AccountRequest) GetSourceOk() (*AccountSource, bool) { // HasSource returns a boolean if a field has been set. func (o *AccountRequest) HasSource() bool { - if o != nil && !isNil(o.Source) { + if o != nil && !IsNil(o.Source) { return true } @@ -251,22 +251,22 @@ func (o AccountRequest) MarshalJSON() ([]byte, error) { func (o AccountRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.AccountId) { + if !IsNil(o.AccountId) { toSerialize["accountId"] = o.AccountId } - if !isNil(o.AttributeRequests) { + if !IsNil(o.AttributeRequests) { toSerialize["attributeRequests"] = o.AttributeRequests } - if !isNil(o.Op) { + if !IsNil(o.Op) { toSerialize["op"] = o.Op } - if !isNil(o.ProvisioningTarget) { + if !IsNil(o.ProvisioningTarget) { toSerialize["provisioningTarget"] = o.ProvisioningTarget } - if !isNil(o.Result) { + if !IsNil(o.Result) { toSerialize["result"] = o.Result } - if !isNil(o.Source) { + if !IsNil(o.Source) { toSerialize["source"] = o.Source } @@ -277,16 +277,20 @@ func (o AccountRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccountRequest) UnmarshalJSON(data []byte) (err error) { varAccountRequest := _AccountRequest{} - if err = json.Unmarshal(bytes, &varAccountRequest); err == nil { + err = json.Unmarshal(data, &varAccountRequest) + + if err != nil { + return err + } + *o = AccountRequest(varAccountRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "accountId") delete(additionalProperties, "attributeRequests") delete(additionalProperties, "op") diff --git a/api_v3/model_account_request_info.go b/api_v3/model_account_request_info.go index 8968b9c48..0330b4299 100644 --- a/api_v3/model_account_request_info.go +++ b/api_v3/model_account_request_info.go @@ -48,7 +48,7 @@ func NewAccountRequestInfoWithDefaults() *AccountRequestInfo { // GetRequestedObjectId returns the RequestedObjectId field value if set, zero value otherwise. func (o *AccountRequestInfo) GetRequestedObjectId() string { - if o == nil || isNil(o.RequestedObjectId) { + if o == nil || IsNil(o.RequestedObjectId) { var ret string return ret } @@ -58,7 +58,7 @@ func (o *AccountRequestInfo) GetRequestedObjectId() string { // GetRequestedObjectIdOk returns a tuple with the RequestedObjectId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountRequestInfo) GetRequestedObjectIdOk() (*string, bool) { - if o == nil || isNil(o.RequestedObjectId) { + if o == nil || IsNil(o.RequestedObjectId) { return nil, false } return o.RequestedObjectId, true @@ -66,7 +66,7 @@ func (o *AccountRequestInfo) GetRequestedObjectIdOk() (*string, bool) { // HasRequestedObjectId returns a boolean if a field has been set. func (o *AccountRequestInfo) HasRequestedObjectId() bool { - if o != nil && !isNil(o.RequestedObjectId) { + if o != nil && !IsNil(o.RequestedObjectId) { return true } @@ -80,7 +80,7 @@ func (o *AccountRequestInfo) SetRequestedObjectId(v string) { // GetRequestedObjectName returns the RequestedObjectName field value if set, zero value otherwise. func (o *AccountRequestInfo) GetRequestedObjectName() string { - if o == nil || isNil(o.RequestedObjectName) { + if o == nil || IsNil(o.RequestedObjectName) { var ret string return ret } @@ -90,7 +90,7 @@ func (o *AccountRequestInfo) GetRequestedObjectName() string { // GetRequestedObjectNameOk returns a tuple with the RequestedObjectName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountRequestInfo) GetRequestedObjectNameOk() (*string, bool) { - if o == nil || isNil(o.RequestedObjectName) { + if o == nil || IsNil(o.RequestedObjectName) { return nil, false } return o.RequestedObjectName, true @@ -98,7 +98,7 @@ func (o *AccountRequestInfo) GetRequestedObjectNameOk() (*string, bool) { // HasRequestedObjectName returns a boolean if a field has been set. func (o *AccountRequestInfo) HasRequestedObjectName() bool { - if o != nil && !isNil(o.RequestedObjectName) { + if o != nil && !IsNil(o.RequestedObjectName) { return true } @@ -112,7 +112,7 @@ func (o *AccountRequestInfo) SetRequestedObjectName(v string) { // GetRequestedObjectType returns the RequestedObjectType field value if set, zero value otherwise. func (o *AccountRequestInfo) GetRequestedObjectType() RequestableObjectType { - if o == nil || isNil(o.RequestedObjectType) { + if o == nil || IsNil(o.RequestedObjectType) { var ret RequestableObjectType return ret } @@ -122,7 +122,7 @@ func (o *AccountRequestInfo) GetRequestedObjectType() RequestableObjectType { // GetRequestedObjectTypeOk returns a tuple with the RequestedObjectType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountRequestInfo) GetRequestedObjectTypeOk() (*RequestableObjectType, bool) { - if o == nil || isNil(o.RequestedObjectType) { + if o == nil || IsNil(o.RequestedObjectType) { return nil, false } return o.RequestedObjectType, true @@ -130,7 +130,7 @@ func (o *AccountRequestInfo) GetRequestedObjectTypeOk() (*RequestableObjectType, // HasRequestedObjectType returns a boolean if a field has been set. func (o *AccountRequestInfo) HasRequestedObjectType() bool { - if o != nil && !isNil(o.RequestedObjectType) { + if o != nil && !IsNil(o.RequestedObjectType) { return true } @@ -152,13 +152,13 @@ func (o AccountRequestInfo) MarshalJSON() ([]byte, error) { func (o AccountRequestInfo) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.RequestedObjectId) { + if !IsNil(o.RequestedObjectId) { toSerialize["requestedObjectId"] = o.RequestedObjectId } - if !isNil(o.RequestedObjectName) { + if !IsNil(o.RequestedObjectName) { toSerialize["requestedObjectName"] = o.RequestedObjectName } - if !isNil(o.RequestedObjectType) { + if !IsNil(o.RequestedObjectType) { toSerialize["requestedObjectType"] = o.RequestedObjectType } @@ -169,16 +169,20 @@ func (o AccountRequestInfo) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountRequestInfo) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccountRequestInfo) UnmarshalJSON(data []byte) (err error) { varAccountRequestInfo := _AccountRequestInfo{} - if err = json.Unmarshal(bytes, &varAccountRequestInfo); err == nil { + err = json.Unmarshal(data, &varAccountRequestInfo) + + if err != nil { + return err + } + *o = AccountRequestInfo(varAccountRequestInfo) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "requestedObjectId") delete(additionalProperties, "requestedObjectName") delete(additionalProperties, "requestedObjectType") diff --git a/api_v3/model_account_request_result.go b/api_v3/model_account_request_result.go index 2e8179539..22332b95f 100644 --- a/api_v3/model_account_request_result.go +++ b/api_v3/model_account_request_result.go @@ -47,7 +47,7 @@ func NewAccountRequestResultWithDefaults() *AccountRequestResult { // GetErrors returns the Errors field value if set, zero value otherwise. func (o *AccountRequestResult) GetErrors() []string { - if o == nil || isNil(o.Errors) { + if o == nil || IsNil(o.Errors) { var ret []string return ret } @@ -57,7 +57,7 @@ func (o *AccountRequestResult) GetErrors() []string { // GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountRequestResult) GetErrorsOk() ([]string, bool) { - if o == nil || isNil(o.Errors) { + if o == nil || IsNil(o.Errors) { return nil, false } return o.Errors, true @@ -65,7 +65,7 @@ func (o *AccountRequestResult) GetErrorsOk() ([]string, bool) { // HasErrors returns a boolean if a field has been set. func (o *AccountRequestResult) HasErrors() bool { - if o != nil && !isNil(o.Errors) { + if o != nil && !IsNil(o.Errors) { return true } @@ -79,7 +79,7 @@ func (o *AccountRequestResult) SetErrors(v []string) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *AccountRequestResult) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *AccountRequestResult) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountRequestResult) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -97,7 +97,7 @@ func (o *AccountRequestResult) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *AccountRequestResult) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -111,7 +111,7 @@ func (o *AccountRequestResult) SetStatus(v string) { // GetTicketId returns the TicketId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *AccountRequestResult) GetTicketId() string { - if o == nil || isNil(o.TicketId.Get()) { + if o == nil || IsNil(o.TicketId.Get()) { var ret string return ret } @@ -161,10 +161,10 @@ func (o AccountRequestResult) MarshalJSON() ([]byte, error) { func (o AccountRequestResult) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Errors) { + if !IsNil(o.Errors) { toSerialize["errors"] = o.Errors } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } if o.TicketId.IsSet() { @@ -178,16 +178,20 @@ func (o AccountRequestResult) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountRequestResult) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccountRequestResult) UnmarshalJSON(data []byte) (err error) { varAccountRequestResult := _AccountRequestResult{} - if err = json.Unmarshal(bytes, &varAccountRequestResult); err == nil { + err = json.Unmarshal(data, &varAccountRequestResult) + + if err != nil { + return err + } + *o = AccountRequestResult(varAccountRequestResult) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "errors") delete(additionalProperties, "status") delete(additionalProperties, "ticketId") diff --git a/api_v3/model_account_source.go b/api_v3/model_account_source.go index 4cc65ddac..8fd6e34b3 100644 --- a/api_v3/model_account_source.go +++ b/api_v3/model_account_source.go @@ -49,7 +49,7 @@ func NewAccountSourceWithDefaults() *AccountSource { // GetId returns the Id field value if set, zero value otherwise. func (o *AccountSource) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *AccountSource) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountSource) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -67,7 +67,7 @@ func (o *AccountSource) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AccountSource) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -81,7 +81,7 @@ func (o *AccountSource) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AccountSource) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *AccountSource) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountSource) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -99,7 +99,7 @@ func (o *AccountSource) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AccountSource) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -113,7 +113,7 @@ func (o *AccountSource) SetName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *AccountSource) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *AccountSource) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountSource) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -131,7 +131,7 @@ func (o *AccountSource) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *AccountSource) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -153,13 +153,13 @@ func (o AccountSource) MarshalJSON() ([]byte, error) { func (o AccountSource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } @@ -170,16 +170,20 @@ func (o AccountSource) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountSource) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccountSource) UnmarshalJSON(data []byte) (err error) { varAccountSource := _AccountSource{} - if err = json.Unmarshal(bytes, &varAccountSource); err == nil { + err = json.Unmarshal(data, &varAccountSource) + + if err != nil { + return err + } + *o = AccountSource(varAccountSource) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "type") diff --git a/api_v3/model_account_toggle_request.go b/api_v3/model_account_toggle_request.go index d008c80ff..855677d73 100644 --- a/api_v3/model_account_toggle_request.go +++ b/api_v3/model_account_toggle_request.go @@ -47,7 +47,7 @@ func NewAccountToggleRequestWithDefaults() *AccountToggleRequest { // GetExternalVerificationId returns the ExternalVerificationId field value if set, zero value otherwise. func (o *AccountToggleRequest) GetExternalVerificationId() string { - if o == nil || isNil(o.ExternalVerificationId) { + if o == nil || IsNil(o.ExternalVerificationId) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *AccountToggleRequest) GetExternalVerificationId() string { // GetExternalVerificationIdOk returns a tuple with the ExternalVerificationId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountToggleRequest) GetExternalVerificationIdOk() (*string, bool) { - if o == nil || isNil(o.ExternalVerificationId) { + if o == nil || IsNil(o.ExternalVerificationId) { return nil, false } return o.ExternalVerificationId, true @@ -65,7 +65,7 @@ func (o *AccountToggleRequest) GetExternalVerificationIdOk() (*string, bool) { // HasExternalVerificationId returns a boolean if a field has been set. func (o *AccountToggleRequest) HasExternalVerificationId() bool { - if o != nil && !isNil(o.ExternalVerificationId) { + if o != nil && !IsNil(o.ExternalVerificationId) { return true } @@ -79,7 +79,7 @@ func (o *AccountToggleRequest) SetExternalVerificationId(v string) { // GetForceProvisioning returns the ForceProvisioning field value if set, zero value otherwise. func (o *AccountToggleRequest) GetForceProvisioning() bool { - if o == nil || isNil(o.ForceProvisioning) { + if o == nil || IsNil(o.ForceProvisioning) { var ret bool return ret } @@ -89,7 +89,7 @@ func (o *AccountToggleRequest) GetForceProvisioning() bool { // GetForceProvisioningOk returns a tuple with the ForceProvisioning field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountToggleRequest) GetForceProvisioningOk() (*bool, bool) { - if o == nil || isNil(o.ForceProvisioning) { + if o == nil || IsNil(o.ForceProvisioning) { return nil, false } return o.ForceProvisioning, true @@ -97,7 +97,7 @@ func (o *AccountToggleRequest) GetForceProvisioningOk() (*bool, bool) { // HasForceProvisioning returns a boolean if a field has been set. func (o *AccountToggleRequest) HasForceProvisioning() bool { - if o != nil && !isNil(o.ForceProvisioning) { + if o != nil && !IsNil(o.ForceProvisioning) { return true } @@ -119,10 +119,10 @@ func (o AccountToggleRequest) MarshalJSON() ([]byte, error) { func (o AccountToggleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.ExternalVerificationId) { + if !IsNil(o.ExternalVerificationId) { toSerialize["externalVerificationId"] = o.ExternalVerificationId } - if !isNil(o.ForceProvisioning) { + if !IsNil(o.ForceProvisioning) { toSerialize["forceProvisioning"] = o.ForceProvisioning } @@ -133,16 +133,20 @@ func (o AccountToggleRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountToggleRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccountToggleRequest) UnmarshalJSON(data []byte) (err error) { varAccountToggleRequest := _AccountToggleRequest{} - if err = json.Unmarshal(bytes, &varAccountToggleRequest); err == nil { + err = json.Unmarshal(data, &varAccountToggleRequest) + + if err != nil { + return err + } + *o = AccountToggleRequest(varAccountToggleRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "externalVerificationId") delete(additionalProperties, "forceProvisioning") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_account_unlock_request.go b/api_v3/model_account_unlock_request.go index 32532bc9e..328e8030e 100644 --- a/api_v3/model_account_unlock_request.go +++ b/api_v3/model_account_unlock_request.go @@ -49,7 +49,7 @@ func NewAccountUnlockRequestWithDefaults() *AccountUnlockRequest { // GetExternalVerificationId returns the ExternalVerificationId field value if set, zero value otherwise. func (o *AccountUnlockRequest) GetExternalVerificationId() string { - if o == nil || isNil(o.ExternalVerificationId) { + if o == nil || IsNil(o.ExternalVerificationId) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *AccountUnlockRequest) GetExternalVerificationId() string { // GetExternalVerificationIdOk returns a tuple with the ExternalVerificationId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountUnlockRequest) GetExternalVerificationIdOk() (*string, bool) { - if o == nil || isNil(o.ExternalVerificationId) { + if o == nil || IsNil(o.ExternalVerificationId) { return nil, false } return o.ExternalVerificationId, true @@ -67,7 +67,7 @@ func (o *AccountUnlockRequest) GetExternalVerificationIdOk() (*string, bool) { // HasExternalVerificationId returns a boolean if a field has been set. func (o *AccountUnlockRequest) HasExternalVerificationId() bool { - if o != nil && !isNil(o.ExternalVerificationId) { + if o != nil && !IsNil(o.ExternalVerificationId) { return true } @@ -81,7 +81,7 @@ func (o *AccountUnlockRequest) SetExternalVerificationId(v string) { // GetUnlockIDNAccount returns the UnlockIDNAccount field value if set, zero value otherwise. func (o *AccountUnlockRequest) GetUnlockIDNAccount() bool { - if o == nil || isNil(o.UnlockIDNAccount) { + if o == nil || IsNil(o.UnlockIDNAccount) { var ret bool return ret } @@ -91,7 +91,7 @@ func (o *AccountUnlockRequest) GetUnlockIDNAccount() bool { // GetUnlockIDNAccountOk returns a tuple with the UnlockIDNAccount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountUnlockRequest) GetUnlockIDNAccountOk() (*bool, bool) { - if o == nil || isNil(o.UnlockIDNAccount) { + if o == nil || IsNil(o.UnlockIDNAccount) { return nil, false } return o.UnlockIDNAccount, true @@ -99,7 +99,7 @@ func (o *AccountUnlockRequest) GetUnlockIDNAccountOk() (*bool, bool) { // HasUnlockIDNAccount returns a boolean if a field has been set. func (o *AccountUnlockRequest) HasUnlockIDNAccount() bool { - if o != nil && !isNil(o.UnlockIDNAccount) { + if o != nil && !IsNil(o.UnlockIDNAccount) { return true } @@ -113,7 +113,7 @@ func (o *AccountUnlockRequest) SetUnlockIDNAccount(v bool) { // GetForceProvisioning returns the ForceProvisioning field value if set, zero value otherwise. func (o *AccountUnlockRequest) GetForceProvisioning() bool { - if o == nil || isNil(o.ForceProvisioning) { + if o == nil || IsNil(o.ForceProvisioning) { var ret bool return ret } @@ -123,7 +123,7 @@ func (o *AccountUnlockRequest) GetForceProvisioning() bool { // GetForceProvisioningOk returns a tuple with the ForceProvisioning field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountUnlockRequest) GetForceProvisioningOk() (*bool, bool) { - if o == nil || isNil(o.ForceProvisioning) { + if o == nil || IsNil(o.ForceProvisioning) { return nil, false } return o.ForceProvisioning, true @@ -131,7 +131,7 @@ func (o *AccountUnlockRequest) GetForceProvisioningOk() (*bool, bool) { // HasForceProvisioning returns a boolean if a field has been set. func (o *AccountUnlockRequest) HasForceProvisioning() bool { - if o != nil && !isNil(o.ForceProvisioning) { + if o != nil && !IsNil(o.ForceProvisioning) { return true } @@ -153,13 +153,13 @@ func (o AccountUnlockRequest) MarshalJSON() ([]byte, error) { func (o AccountUnlockRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.ExternalVerificationId) { + if !IsNil(o.ExternalVerificationId) { toSerialize["externalVerificationId"] = o.ExternalVerificationId } - if !isNil(o.UnlockIDNAccount) { + if !IsNil(o.UnlockIDNAccount) { toSerialize["unlockIDNAccount"] = o.UnlockIDNAccount } - if !isNil(o.ForceProvisioning) { + if !IsNil(o.ForceProvisioning) { toSerialize["forceProvisioning"] = o.ForceProvisioning } @@ -170,16 +170,20 @@ func (o AccountUnlockRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountUnlockRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccountUnlockRequest) UnmarshalJSON(data []byte) (err error) { varAccountUnlockRequest := _AccountUnlockRequest{} - if err = json.Unmarshal(bytes, &varAccountUnlockRequest); err == nil { + err = json.Unmarshal(data, &varAccountUnlockRequest) + + if err != nil { + return err + } + *o = AccountUnlockRequest(varAccountUnlockRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "externalVerificationId") delete(additionalProperties, "unlockIDNAccount") delete(additionalProperties, "forceProvisioning") diff --git a/api_v3/model_account_usage.go b/api_v3/model_account_usage.go index 6a161f16e..4d2bf25ae 100644 --- a/api_v3/model_account_usage.go +++ b/api_v3/model_account_usage.go @@ -47,7 +47,7 @@ func NewAccountUsageWithDefaults() *AccountUsage { // GetDate returns the Date field value if set, zero value otherwise. func (o *AccountUsage) GetDate() string { - if o == nil || isNil(o.Date) { + if o == nil || IsNil(o.Date) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *AccountUsage) GetDate() string { // GetDateOk returns a tuple with the Date field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountUsage) GetDateOk() (*string, bool) { - if o == nil || isNil(o.Date) { + if o == nil || IsNil(o.Date) { return nil, false } return o.Date, true @@ -65,7 +65,7 @@ func (o *AccountUsage) GetDateOk() (*string, bool) { // HasDate returns a boolean if a field has been set. func (o *AccountUsage) HasDate() bool { - if o != nil && !isNil(o.Date) { + if o != nil && !IsNil(o.Date) { return true } @@ -79,7 +79,7 @@ func (o *AccountUsage) SetDate(v string) { // GetCount returns the Count field value if set, zero value otherwise. func (o *AccountUsage) GetCount() int64 { - if o == nil || isNil(o.Count) { + if o == nil || IsNil(o.Count) { var ret int64 return ret } @@ -89,7 +89,7 @@ func (o *AccountUsage) GetCount() int64 { // GetCountOk returns a tuple with the Count field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AccountUsage) GetCountOk() (*int64, bool) { - if o == nil || isNil(o.Count) { + if o == nil || IsNil(o.Count) { return nil, false } return o.Count, true @@ -97,7 +97,7 @@ func (o *AccountUsage) GetCountOk() (*int64, bool) { // HasCount returns a boolean if a field has been set. func (o *AccountUsage) HasCount() bool { - if o != nil && !isNil(o.Count) { + if o != nil && !IsNil(o.Count) { return true } @@ -119,10 +119,10 @@ func (o AccountUsage) MarshalJSON() ([]byte, error) { func (o AccountUsage) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Date) { + if !IsNil(o.Date) { toSerialize["date"] = o.Date } - if !isNil(o.Count) { + if !IsNil(o.Count) { toSerialize["count"] = o.Count } @@ -133,16 +133,20 @@ func (o AccountUsage) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountUsage) UnmarshalJSON(bytes []byte) (err error) { +func (o *AccountUsage) UnmarshalJSON(data []byte) (err error) { varAccountUsage := _AccountUsage{} - if err = json.Unmarshal(bytes, &varAccountUsage); err == nil { + err = json.Unmarshal(data, &varAccountUsage) + + if err != nil { + return err + } + *o = AccountUsage(varAccountUsage) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "date") delete(additionalProperties, "count") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_accounts_async_result.go b/api_v3/model_accounts_async_result.go index c1beb3842..cd18075e2 100644 --- a/api_v3/model_accounts_async_result.go +++ b/api_v3/model_accounts_async_result.go @@ -88,8 +88,8 @@ func (o AccountsAsyncResult) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountsAsyncResult) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *AccountsAsyncResult) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -98,7 +98,7 @@ func (o *AccountsAsyncResult) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -112,13 +112,17 @@ func (o *AccountsAsyncResult) UnmarshalJSON(bytes []byte) (err error) { varAccountsAsyncResult := _AccountsAsyncResult{} - if err = json.Unmarshal(bytes, &varAccountsAsyncResult); err == nil { + err = json.Unmarshal(data, &varAccountsAsyncResult) + + if err != nil { + return err + } + *o = AccountsAsyncResult(varAccountsAsyncResult) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_accounts_export_report_arguments.go b/api_v3/model_accounts_export_report_arguments.go index ec1e7eca4..9e8e11b8a 100644 --- a/api_v3/model_accounts_export_report_arguments.go +++ b/api_v3/model_accounts_export_report_arguments.go @@ -116,8 +116,8 @@ func (o AccountsExportReportArguments) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AccountsExportReportArguments) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *AccountsExportReportArguments) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -127,7 +127,7 @@ func (o *AccountsExportReportArguments) UnmarshalJSON(bytes []byte) (err error) allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -141,13 +141,17 @@ func (o *AccountsExportReportArguments) UnmarshalJSON(bytes []byte) (err error) varAccountsExportReportArguments := _AccountsExportReportArguments{} - if err = json.Unmarshal(bytes, &varAccountsExportReportArguments); err == nil { + err = json.Unmarshal(data, &varAccountsExportReportArguments) + + if err != nil { + return err + } + *o = AccountsExportReportArguments(varAccountsExportReportArguments) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "application") delete(additionalProperties, "sourceName") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_activate_campaign_options.go b/api_v3/model_activate_campaign_options.go index 7a9e18606..da24708a2 100644 --- a/api_v3/model_activate_campaign_options.go +++ b/api_v3/model_activate_campaign_options.go @@ -49,7 +49,7 @@ func NewActivateCampaignOptionsWithDefaults() *ActivateCampaignOptions { // GetTimeZone returns the TimeZone field value if set, zero value otherwise. func (o *ActivateCampaignOptions) GetTimeZone() string { - if o == nil || isNil(o.TimeZone) { + if o == nil || IsNil(o.TimeZone) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *ActivateCampaignOptions) GetTimeZone() string { // GetTimeZoneOk returns a tuple with the TimeZone field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ActivateCampaignOptions) GetTimeZoneOk() (*string, bool) { - if o == nil || isNil(o.TimeZone) { + if o == nil || IsNil(o.TimeZone) { return nil, false } return o.TimeZone, true @@ -67,7 +67,7 @@ func (o *ActivateCampaignOptions) GetTimeZoneOk() (*string, bool) { // HasTimeZone returns a boolean if a field has been set. func (o *ActivateCampaignOptions) HasTimeZone() bool { - if o != nil && !isNil(o.TimeZone) { + if o != nil && !IsNil(o.TimeZone) { return true } @@ -89,7 +89,7 @@ func (o ActivateCampaignOptions) MarshalJSON() ([]byte, error) { func (o ActivateCampaignOptions) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.TimeZone) { + if !IsNil(o.TimeZone) { toSerialize["timeZone"] = o.TimeZone } @@ -100,16 +100,20 @@ func (o ActivateCampaignOptions) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ActivateCampaignOptions) UnmarshalJSON(bytes []byte) (err error) { +func (o *ActivateCampaignOptions) UnmarshalJSON(data []byte) (err error) { varActivateCampaignOptions := _ActivateCampaignOptions{} - if err = json.Unmarshal(bytes, &varActivateCampaignOptions); err == nil { + err = json.Unmarshal(data, &varActivateCampaignOptions) + + if err != nil { + return err + } + *o = ActivateCampaignOptions(varActivateCampaignOptions) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "timeZone") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_activity_insights.go b/api_v3/model_activity_insights.go index 7d34dbfc0..75314b7b4 100644 --- a/api_v3/model_activity_insights.go +++ b/api_v3/model_activity_insights.go @@ -49,7 +49,7 @@ func NewActivityInsightsWithDefaults() *ActivityInsights { // GetAccountID returns the AccountID field value if set, zero value otherwise. func (o *ActivityInsights) GetAccountID() string { - if o == nil || isNil(o.AccountID) { + if o == nil || IsNil(o.AccountID) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *ActivityInsights) GetAccountID() string { // GetAccountIDOk returns a tuple with the AccountID field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ActivityInsights) GetAccountIDOk() (*string, bool) { - if o == nil || isNil(o.AccountID) { + if o == nil || IsNil(o.AccountID) { return nil, false } return o.AccountID, true @@ -67,7 +67,7 @@ func (o *ActivityInsights) GetAccountIDOk() (*string, bool) { // HasAccountID returns a boolean if a field has been set. func (o *ActivityInsights) HasAccountID() bool { - if o != nil && !isNil(o.AccountID) { + if o != nil && !IsNil(o.AccountID) { return true } @@ -81,7 +81,7 @@ func (o *ActivityInsights) SetAccountID(v string) { // GetUsageDays returns the UsageDays field value if set, zero value otherwise. func (o *ActivityInsights) GetUsageDays() int32 { - if o == nil || isNil(o.UsageDays) { + if o == nil || IsNil(o.UsageDays) { var ret int32 return ret } @@ -91,7 +91,7 @@ func (o *ActivityInsights) GetUsageDays() int32 { // GetUsageDaysOk returns a tuple with the UsageDays field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ActivityInsights) GetUsageDaysOk() (*int32, bool) { - if o == nil || isNil(o.UsageDays) { + if o == nil || IsNil(o.UsageDays) { return nil, false } return o.UsageDays, true @@ -99,7 +99,7 @@ func (o *ActivityInsights) GetUsageDaysOk() (*int32, bool) { // HasUsageDays returns a boolean if a field has been set. func (o *ActivityInsights) HasUsageDays() bool { - if o != nil && !isNil(o.UsageDays) { + if o != nil && !IsNil(o.UsageDays) { return true } @@ -113,7 +113,7 @@ func (o *ActivityInsights) SetUsageDays(v int32) { // GetUsageDaysState returns the UsageDaysState field value if set, zero value otherwise. func (o *ActivityInsights) GetUsageDaysState() string { - if o == nil || isNil(o.UsageDaysState) { + if o == nil || IsNil(o.UsageDaysState) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *ActivityInsights) GetUsageDaysState() string { // GetUsageDaysStateOk returns a tuple with the UsageDaysState field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ActivityInsights) GetUsageDaysStateOk() (*string, bool) { - if o == nil || isNil(o.UsageDaysState) { + if o == nil || IsNil(o.UsageDaysState) { return nil, false } return o.UsageDaysState, true @@ -131,7 +131,7 @@ func (o *ActivityInsights) GetUsageDaysStateOk() (*string, bool) { // HasUsageDaysState returns a boolean if a field has been set. func (o *ActivityInsights) HasUsageDaysState() bool { - if o != nil && !isNil(o.UsageDaysState) { + if o != nil && !IsNil(o.UsageDaysState) { return true } @@ -153,13 +153,13 @@ func (o ActivityInsights) MarshalJSON() ([]byte, error) { func (o ActivityInsights) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.AccountID) { + if !IsNil(o.AccountID) { toSerialize["accountID"] = o.AccountID } - if !isNil(o.UsageDays) { + if !IsNil(o.UsageDays) { toSerialize["usageDays"] = o.UsageDays } - if !isNil(o.UsageDaysState) { + if !IsNil(o.UsageDaysState) { toSerialize["usageDaysState"] = o.UsageDaysState } @@ -170,16 +170,20 @@ func (o ActivityInsights) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ActivityInsights) UnmarshalJSON(bytes []byte) (err error) { +func (o *ActivityInsights) UnmarshalJSON(data []byte) (err error) { varActivityInsights := _ActivityInsights{} - if err = json.Unmarshal(bytes, &varActivityInsights); err == nil { + err = json.Unmarshal(data, &varActivityInsights) + + if err != nil { + return err + } + *o = ActivityInsights(varActivityInsights) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "accountID") delete(additionalProperties, "usageDays") delete(additionalProperties, "usageDaysState") diff --git a/api_v3/model_admin_review_reassign.go b/api_v3/model_admin_review_reassign.go index e9a70dc90..9e95d8577 100644 --- a/api_v3/model_admin_review_reassign.go +++ b/api_v3/model_admin_review_reassign.go @@ -48,7 +48,7 @@ func NewAdminReviewReassignWithDefaults() *AdminReviewReassign { // GetCertificationIds returns the CertificationIds field value if set, zero value otherwise. func (o *AdminReviewReassign) GetCertificationIds() []string { - if o == nil || isNil(o.CertificationIds) { + if o == nil || IsNil(o.CertificationIds) { var ret []string return ret } @@ -58,7 +58,7 @@ func (o *AdminReviewReassign) GetCertificationIds() []string { // GetCertificationIdsOk returns a tuple with the CertificationIds field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AdminReviewReassign) GetCertificationIdsOk() ([]string, bool) { - if o == nil || isNil(o.CertificationIds) { + if o == nil || IsNil(o.CertificationIds) { return nil, false } return o.CertificationIds, true @@ -66,7 +66,7 @@ func (o *AdminReviewReassign) GetCertificationIdsOk() ([]string, bool) { // HasCertificationIds returns a boolean if a field has been set. func (o *AdminReviewReassign) HasCertificationIds() bool { - if o != nil && !isNil(o.CertificationIds) { + if o != nil && !IsNil(o.CertificationIds) { return true } @@ -80,7 +80,7 @@ func (o *AdminReviewReassign) SetCertificationIds(v []string) { // GetReassignTo returns the ReassignTo field value if set, zero value otherwise. func (o *AdminReviewReassign) GetReassignTo() AdminReviewReassignReassignTo { - if o == nil || isNil(o.ReassignTo) { + if o == nil || IsNil(o.ReassignTo) { var ret AdminReviewReassignReassignTo return ret } @@ -90,7 +90,7 @@ func (o *AdminReviewReassign) GetReassignTo() AdminReviewReassignReassignTo { // GetReassignToOk returns a tuple with the ReassignTo field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AdminReviewReassign) GetReassignToOk() (*AdminReviewReassignReassignTo, bool) { - if o == nil || isNil(o.ReassignTo) { + if o == nil || IsNil(o.ReassignTo) { return nil, false } return o.ReassignTo, true @@ -98,7 +98,7 @@ func (o *AdminReviewReassign) GetReassignToOk() (*AdminReviewReassignReassignTo, // HasReassignTo returns a boolean if a field has been set. func (o *AdminReviewReassign) HasReassignTo() bool { - if o != nil && !isNil(o.ReassignTo) { + if o != nil && !IsNil(o.ReassignTo) { return true } @@ -112,7 +112,7 @@ func (o *AdminReviewReassign) SetReassignTo(v AdminReviewReassignReassignTo) { // GetReason returns the Reason field value if set, zero value otherwise. func (o *AdminReviewReassign) GetReason() string { - if o == nil || isNil(o.Reason) { + if o == nil || IsNil(o.Reason) { var ret string return ret } @@ -122,7 +122,7 @@ func (o *AdminReviewReassign) GetReason() string { // GetReasonOk returns a tuple with the Reason field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AdminReviewReassign) GetReasonOk() (*string, bool) { - if o == nil || isNil(o.Reason) { + if o == nil || IsNil(o.Reason) { return nil, false } return o.Reason, true @@ -130,7 +130,7 @@ func (o *AdminReviewReassign) GetReasonOk() (*string, bool) { // HasReason returns a boolean if a field has been set. func (o *AdminReviewReassign) HasReason() bool { - if o != nil && !isNil(o.Reason) { + if o != nil && !IsNil(o.Reason) { return true } @@ -152,13 +152,13 @@ func (o AdminReviewReassign) MarshalJSON() ([]byte, error) { func (o AdminReviewReassign) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.CertificationIds) { + if !IsNil(o.CertificationIds) { toSerialize["certificationIds"] = o.CertificationIds } - if !isNil(o.ReassignTo) { + if !IsNil(o.ReassignTo) { toSerialize["reassignTo"] = o.ReassignTo } - if !isNil(o.Reason) { + if !IsNil(o.Reason) { toSerialize["reason"] = o.Reason } @@ -169,16 +169,20 @@ func (o AdminReviewReassign) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AdminReviewReassign) UnmarshalJSON(bytes []byte) (err error) { +func (o *AdminReviewReassign) UnmarshalJSON(data []byte) (err error) { varAdminReviewReassign := _AdminReviewReassign{} - if err = json.Unmarshal(bytes, &varAdminReviewReassign); err == nil { + err = json.Unmarshal(data, &varAdminReviewReassign) + + if err != nil { + return err + } + *o = AdminReviewReassign(varAdminReviewReassign) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "certificationIds") delete(additionalProperties, "reassignTo") delete(additionalProperties, "reason") diff --git a/api_v3/model_admin_review_reassign_reassign_to.go b/api_v3/model_admin_review_reassign_reassign_to.go index 147fbbbae..4009f4e0a 100644 --- a/api_v3/model_admin_review_reassign_reassign_to.go +++ b/api_v3/model_admin_review_reassign_reassign_to.go @@ -47,7 +47,7 @@ func NewAdminReviewReassignReassignToWithDefaults() *AdminReviewReassignReassign // GetId returns the Id field value if set, zero value otherwise. func (o *AdminReviewReassignReassignTo) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *AdminReviewReassignReassignTo) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AdminReviewReassignReassignTo) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -65,7 +65,7 @@ func (o *AdminReviewReassignReassignTo) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AdminReviewReassignReassignTo) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -79,7 +79,7 @@ func (o *AdminReviewReassignReassignTo) SetId(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *AdminReviewReassignReassignTo) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *AdminReviewReassignReassignTo) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AdminReviewReassignReassignTo) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -97,7 +97,7 @@ func (o *AdminReviewReassignReassignTo) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *AdminReviewReassignReassignTo) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -119,10 +119,10 @@ func (o AdminReviewReassignReassignTo) MarshalJSON() ([]byte, error) { func (o AdminReviewReassignReassignTo) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } @@ -133,16 +133,20 @@ func (o AdminReviewReassignReassignTo) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AdminReviewReassignReassignTo) UnmarshalJSON(bytes []byte) (err error) { +func (o *AdminReviewReassignReassignTo) UnmarshalJSON(data []byte) (err error) { varAdminReviewReassignReassignTo := _AdminReviewReassignReassignTo{} - if err = json.Unmarshal(bytes, &varAdminReviewReassignReassignTo); err == nil { + err = json.Unmarshal(data, &varAdminReviewReassignReassignTo) + + if err != nil { + return err + } + *o = AdminReviewReassignReassignTo(varAdminReviewReassignReassignTo) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "type") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_aggregation_result.go b/api_v3/model_aggregation_result.go index c89db018e..3d54bbb6b 100644 --- a/api_v3/model_aggregation_result.go +++ b/api_v3/model_aggregation_result.go @@ -47,7 +47,7 @@ func NewAggregationResultWithDefaults() *AggregationResult { // GetAggregations returns the Aggregations field value if set, zero value otherwise. func (o *AggregationResult) GetAggregations() map[string]interface{} { - if o == nil || isNil(o.Aggregations) { + if o == nil || IsNil(o.Aggregations) { var ret map[string]interface{} return ret } @@ -57,7 +57,7 @@ func (o *AggregationResult) GetAggregations() map[string]interface{} { // GetAggregationsOk returns a tuple with the Aggregations field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AggregationResult) GetAggregationsOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Aggregations) { + if o == nil || IsNil(o.Aggregations) { return map[string]interface{}{}, false } return o.Aggregations, true @@ -65,7 +65,7 @@ func (o *AggregationResult) GetAggregationsOk() (map[string]interface{}, bool) { // HasAggregations returns a boolean if a field has been set. func (o *AggregationResult) HasAggregations() bool { - if o != nil && !isNil(o.Aggregations) { + if o != nil && !IsNil(o.Aggregations) { return true } @@ -79,7 +79,7 @@ func (o *AggregationResult) SetAggregations(v map[string]interface{}) { // GetHits returns the Hits field value if set, zero value otherwise. func (o *AggregationResult) GetHits() []map[string]interface{} { - if o == nil || isNil(o.Hits) { + if o == nil || IsNil(o.Hits) { var ret []map[string]interface{} return ret } @@ -89,7 +89,7 @@ func (o *AggregationResult) GetHits() []map[string]interface{} { // GetHitsOk returns a tuple with the Hits field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AggregationResult) GetHitsOk() ([]map[string]interface{}, bool) { - if o == nil || isNil(o.Hits) { + if o == nil || IsNil(o.Hits) { return nil, false } return o.Hits, true @@ -97,7 +97,7 @@ func (o *AggregationResult) GetHitsOk() ([]map[string]interface{}, bool) { // HasHits returns a boolean if a field has been set. func (o *AggregationResult) HasHits() bool { - if o != nil && !isNil(o.Hits) { + if o != nil && !IsNil(o.Hits) { return true } @@ -119,10 +119,10 @@ func (o AggregationResult) MarshalJSON() ([]byte, error) { func (o AggregationResult) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Aggregations) { + if !IsNil(o.Aggregations) { toSerialize["aggregations"] = o.Aggregations } - if !isNil(o.Hits) { + if !IsNil(o.Hits) { toSerialize["hits"] = o.Hits } @@ -133,16 +133,20 @@ func (o AggregationResult) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AggregationResult) UnmarshalJSON(bytes []byte) (err error) { +func (o *AggregationResult) UnmarshalJSON(data []byte) (err error) { varAggregationResult := _AggregationResult{} - if err = json.Unmarshal(bytes, &varAggregationResult); err == nil { + err = json.Unmarshal(data, &varAggregationResult) + + if err != nil { + return err + } + *o = AggregationResult(varAggregationResult) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "aggregations") delete(additionalProperties, "hits") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_aggregations.go b/api_v3/model_aggregations.go index 7941a45a3..e01aa4d0a 100644 --- a/api_v3/model_aggregations.go +++ b/api_v3/model_aggregations.go @@ -47,7 +47,7 @@ func NewAggregationsWithDefaults() *Aggregations { // GetNested returns the Nested field value if set, zero value otherwise. func (o *Aggregations) GetNested() NestedAggregation { - if o == nil || isNil(o.Nested) { + if o == nil || IsNil(o.Nested) { var ret NestedAggregation return ret } @@ -57,7 +57,7 @@ func (o *Aggregations) GetNested() NestedAggregation { // GetNestedOk returns a tuple with the Nested field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Aggregations) GetNestedOk() (*NestedAggregation, bool) { - if o == nil || isNil(o.Nested) { + if o == nil || IsNil(o.Nested) { return nil, false } return o.Nested, true @@ -65,7 +65,7 @@ func (o *Aggregations) GetNestedOk() (*NestedAggregation, bool) { // HasNested returns a boolean if a field has been set. func (o *Aggregations) HasNested() bool { - if o != nil && !isNil(o.Nested) { + if o != nil && !IsNil(o.Nested) { return true } @@ -79,7 +79,7 @@ func (o *Aggregations) SetNested(v NestedAggregation) { // GetMetric returns the Metric field value if set, zero value otherwise. func (o *Aggregations) GetMetric() MetricAggregation { - if o == nil || isNil(o.Metric) { + if o == nil || IsNil(o.Metric) { var ret MetricAggregation return ret } @@ -89,7 +89,7 @@ func (o *Aggregations) GetMetric() MetricAggregation { // GetMetricOk returns a tuple with the Metric field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Aggregations) GetMetricOk() (*MetricAggregation, bool) { - if o == nil || isNil(o.Metric) { + if o == nil || IsNil(o.Metric) { return nil, false } return o.Metric, true @@ -97,7 +97,7 @@ func (o *Aggregations) GetMetricOk() (*MetricAggregation, bool) { // HasMetric returns a boolean if a field has been set. func (o *Aggregations) HasMetric() bool { - if o != nil && !isNil(o.Metric) { + if o != nil && !IsNil(o.Metric) { return true } @@ -111,7 +111,7 @@ func (o *Aggregations) SetMetric(v MetricAggregation) { // GetFilter returns the Filter field value if set, zero value otherwise. func (o *Aggregations) GetFilter() FilterAggregation { - if o == nil || isNil(o.Filter) { + if o == nil || IsNil(o.Filter) { var ret FilterAggregation return ret } @@ -121,7 +121,7 @@ func (o *Aggregations) GetFilter() FilterAggregation { // GetFilterOk returns a tuple with the Filter field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Aggregations) GetFilterOk() (*FilterAggregation, bool) { - if o == nil || isNil(o.Filter) { + if o == nil || IsNil(o.Filter) { return nil, false } return o.Filter, true @@ -129,7 +129,7 @@ func (o *Aggregations) GetFilterOk() (*FilterAggregation, bool) { // HasFilter returns a boolean if a field has been set. func (o *Aggregations) HasFilter() bool { - if o != nil && !isNil(o.Filter) { + if o != nil && !IsNil(o.Filter) { return true } @@ -143,7 +143,7 @@ func (o *Aggregations) SetFilter(v FilterAggregation) { // GetBucket returns the Bucket field value if set, zero value otherwise. func (o *Aggregations) GetBucket() BucketAggregation { - if o == nil || isNil(o.Bucket) { + if o == nil || IsNil(o.Bucket) { var ret BucketAggregation return ret } @@ -153,7 +153,7 @@ func (o *Aggregations) GetBucket() BucketAggregation { // GetBucketOk returns a tuple with the Bucket field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Aggregations) GetBucketOk() (*BucketAggregation, bool) { - if o == nil || isNil(o.Bucket) { + if o == nil || IsNil(o.Bucket) { return nil, false } return o.Bucket, true @@ -161,7 +161,7 @@ func (o *Aggregations) GetBucketOk() (*BucketAggregation, bool) { // HasBucket returns a boolean if a field has been set. func (o *Aggregations) HasBucket() bool { - if o != nil && !isNil(o.Bucket) { + if o != nil && !IsNil(o.Bucket) { return true } @@ -183,16 +183,16 @@ func (o Aggregations) MarshalJSON() ([]byte, error) { func (o Aggregations) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Nested) { + if !IsNil(o.Nested) { toSerialize["nested"] = o.Nested } - if !isNil(o.Metric) { + if !IsNil(o.Metric) { toSerialize["metric"] = o.Metric } - if !isNil(o.Filter) { + if !IsNil(o.Filter) { toSerialize["filter"] = o.Filter } - if !isNil(o.Bucket) { + if !IsNil(o.Bucket) { toSerialize["bucket"] = o.Bucket } @@ -203,16 +203,20 @@ func (o Aggregations) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Aggregations) UnmarshalJSON(bytes []byte) (err error) { +func (o *Aggregations) UnmarshalJSON(data []byte) (err error) { varAggregations := _Aggregations{} - if err = json.Unmarshal(bytes, &varAggregations); err == nil { + err = json.Unmarshal(data, &varAggregations) + + if err != nil { + return err + } + *o = Aggregations(varAggregations) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "nested") delete(additionalProperties, "metric") delete(additionalProperties, "filter") diff --git a/api_v3/model_app.go b/api_v3/model_app.go index 102dec64a..b8a33a14b 100644 --- a/api_v3/model_app.go +++ b/api_v3/model_app.go @@ -49,7 +49,7 @@ func NewAppWithDefaults() *App { // GetId returns the Id field value if set, zero value otherwise. func (o *App) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *App) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *App) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -67,7 +67,7 @@ func (o *App) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *App) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -81,7 +81,7 @@ func (o *App) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *App) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *App) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *App) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -99,7 +99,7 @@ func (o *App) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *App) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -113,7 +113,7 @@ func (o *App) SetName(v string) { // GetSource returns the Source field value if set, zero value otherwise. func (o *App) GetSource() Reference { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { var ret Reference return ret } @@ -123,7 +123,7 @@ func (o *App) GetSource() Reference { // GetSourceOk returns a tuple with the Source field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *App) GetSourceOk() (*Reference, bool) { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { return nil, false } return o.Source, true @@ -131,7 +131,7 @@ func (o *App) GetSourceOk() (*Reference, bool) { // HasSource returns a boolean if a field has been set. func (o *App) HasSource() bool { - if o != nil && !isNil(o.Source) { + if o != nil && !IsNil(o.Source) { return true } @@ -145,7 +145,7 @@ func (o *App) SetSource(v Reference) { // GetAccount returns the Account field value if set, zero value otherwise. func (o *App) GetAccount() AppAllOfAccount { - if o == nil || isNil(o.Account) { + if o == nil || IsNil(o.Account) { var ret AppAllOfAccount return ret } @@ -155,7 +155,7 @@ func (o *App) GetAccount() AppAllOfAccount { // GetAccountOk returns a tuple with the Account field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *App) GetAccountOk() (*AppAllOfAccount, bool) { - if o == nil || isNil(o.Account) { + if o == nil || IsNil(o.Account) { return nil, false } return o.Account, true @@ -163,7 +163,7 @@ func (o *App) GetAccountOk() (*AppAllOfAccount, bool) { // HasAccount returns a boolean if a field has been set. func (o *App) HasAccount() bool { - if o != nil && !isNil(o.Account) { + if o != nil && !IsNil(o.Account) { return true } @@ -185,16 +185,16 @@ func (o App) MarshalJSON() ([]byte, error) { func (o App) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Source) { + if !IsNil(o.Source) { toSerialize["source"] = o.Source } - if !isNil(o.Account) { + if !IsNil(o.Account) { toSerialize["account"] = o.Account } @@ -205,16 +205,20 @@ func (o App) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *App) UnmarshalJSON(bytes []byte) (err error) { +func (o *App) UnmarshalJSON(data []byte) (err error) { varApp := _App{} - if err = json.Unmarshal(bytes, &varApp); err == nil { + err = json.Unmarshal(data, &varApp) + + if err != nil { + return err + } + *o = App(varApp) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "source") diff --git a/api_v3/model_app_all_of_account.go b/api_v3/model_app_all_of_account.go index ed6c48cb2..dc4ad75c0 100644 --- a/api_v3/model_app_all_of_account.go +++ b/api_v3/model_app_all_of_account.go @@ -47,7 +47,7 @@ func NewAppAllOfAccountWithDefaults() *AppAllOfAccount { // GetId returns the Id field value if set, zero value otherwise. func (o *AppAllOfAccount) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *AppAllOfAccount) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AppAllOfAccount) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -65,7 +65,7 @@ func (o *AppAllOfAccount) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AppAllOfAccount) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -79,7 +79,7 @@ func (o *AppAllOfAccount) SetId(v string) { // GetAccountId returns the AccountId field value if set, zero value otherwise. func (o *AppAllOfAccount) GetAccountId() string { - if o == nil || isNil(o.AccountId) { + if o == nil || IsNil(o.AccountId) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *AppAllOfAccount) GetAccountId() string { // GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AppAllOfAccount) GetAccountIdOk() (*string, bool) { - if o == nil || isNil(o.AccountId) { + if o == nil || IsNil(o.AccountId) { return nil, false } return o.AccountId, true @@ -97,7 +97,7 @@ func (o *AppAllOfAccount) GetAccountIdOk() (*string, bool) { // HasAccountId returns a boolean if a field has been set. func (o *AppAllOfAccount) HasAccountId() bool { - if o != nil && !isNil(o.AccountId) { + if o != nil && !IsNil(o.AccountId) { return true } @@ -119,10 +119,10 @@ func (o AppAllOfAccount) MarshalJSON() ([]byte, error) { func (o AppAllOfAccount) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.AccountId) { + if !IsNil(o.AccountId) { toSerialize["accountId"] = o.AccountId } @@ -133,16 +133,20 @@ func (o AppAllOfAccount) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AppAllOfAccount) UnmarshalJSON(bytes []byte) (err error) { +func (o *AppAllOfAccount) UnmarshalJSON(data []byte) (err error) { varAppAllOfAccount := _AppAllOfAccount{} - if err = json.Unmarshal(bytes, &varAppAllOfAccount); err == nil { + err = json.Unmarshal(data, &varAppAllOfAccount) + + if err != nil { + return err + } + *o = AppAllOfAccount(varAppAllOfAccount) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "accountId") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_approval.go b/api_v3/model_approval.go index 2cfa31a83..3ed3450c9 100644 --- a/api_v3/model_approval.go +++ b/api_v3/model_approval.go @@ -53,7 +53,7 @@ func NewApprovalWithDefaults() *Approval { // GetComments returns the Comments field value if set, zero value otherwise. func (o *Approval) GetComments() []ApprovalComment { - if o == nil || isNil(o.Comments) { + if o == nil || IsNil(o.Comments) { var ret []ApprovalComment return ret } @@ -63,7 +63,7 @@ func (o *Approval) GetComments() []ApprovalComment { // GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Approval) GetCommentsOk() ([]ApprovalComment, bool) { - if o == nil || isNil(o.Comments) { + if o == nil || IsNil(o.Comments) { return nil, false } return o.Comments, true @@ -71,7 +71,7 @@ func (o *Approval) GetCommentsOk() ([]ApprovalComment, bool) { // HasComments returns a boolean if a field has been set. func (o *Approval) HasComments() bool { - if o != nil && !isNil(o.Comments) { + if o != nil && !IsNil(o.Comments) { return true } @@ -85,7 +85,7 @@ func (o *Approval) SetComments(v []ApprovalComment) { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Approval) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -127,7 +127,7 @@ func (o *Approval) UnsetCreated() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Approval) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -169,7 +169,7 @@ func (o *Approval) UnsetModified() { // GetOwner returns the Owner field value if set, zero value otherwise. func (o *Approval) GetOwner() AccountSource { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { var ret AccountSource return ret } @@ -179,7 +179,7 @@ func (o *Approval) GetOwner() AccountSource { // GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Approval) GetOwnerOk() (*AccountSource, bool) { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { return nil, false } return o.Owner, true @@ -187,7 +187,7 @@ func (o *Approval) GetOwnerOk() (*AccountSource, bool) { // HasOwner returns a boolean if a field has been set. func (o *Approval) HasOwner() bool { - if o != nil && !isNil(o.Owner) { + if o != nil && !IsNil(o.Owner) { return true } @@ -201,7 +201,7 @@ func (o *Approval) SetOwner(v AccountSource) { // GetResult returns the Result field value if set, zero value otherwise. func (o *Approval) GetResult() string { - if o == nil || isNil(o.Result) { + if o == nil || IsNil(o.Result) { var ret string return ret } @@ -211,7 +211,7 @@ func (o *Approval) GetResult() string { // GetResultOk returns a tuple with the Result field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Approval) GetResultOk() (*string, bool) { - if o == nil || isNil(o.Result) { + if o == nil || IsNil(o.Result) { return nil, false } return o.Result, true @@ -219,7 +219,7 @@ func (o *Approval) GetResultOk() (*string, bool) { // HasResult returns a boolean if a field has been set. func (o *Approval) HasResult() bool { - if o != nil && !isNil(o.Result) { + if o != nil && !IsNil(o.Result) { return true } @@ -233,7 +233,7 @@ func (o *Approval) SetResult(v string) { // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Approval) GetType() string { - if o == nil || isNil(o.Type.Get()) { + if o == nil || IsNil(o.Type.Get()) { var ret string return ret } @@ -283,7 +283,7 @@ func (o Approval) MarshalJSON() ([]byte, error) { func (o Approval) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Comments) { + if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } if o.Created.IsSet() { @@ -292,10 +292,10 @@ func (o Approval) ToMap() (map[string]interface{}, error) { if o.Modified.IsSet() { toSerialize["modified"] = o.Modified.Get() } - if !isNil(o.Owner) { + if !IsNil(o.Owner) { toSerialize["owner"] = o.Owner } - if !isNil(o.Result) { + if !IsNil(o.Result) { toSerialize["result"] = o.Result } if o.Type.IsSet() { @@ -309,16 +309,20 @@ func (o Approval) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Approval) UnmarshalJSON(bytes []byte) (err error) { +func (o *Approval) UnmarshalJSON(data []byte) (err error) { varApproval := _Approval{} - if err = json.Unmarshal(bytes, &varApproval); err == nil { + err = json.Unmarshal(data, &varApproval) + + if err != nil { + return err + } + *o = Approval(varApproval) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "comments") delete(additionalProperties, "created") delete(additionalProperties, "modified") diff --git a/api_v3/model_approval_comment.go b/api_v3/model_approval_comment.go index 2b4fd1b09..58f7f548b 100644 --- a/api_v3/model_approval_comment.go +++ b/api_v3/model_approval_comment.go @@ -50,7 +50,7 @@ func NewApprovalCommentWithDefaults() *ApprovalComment { // GetComment returns the Comment field value if set, zero value otherwise. func (o *ApprovalComment) GetComment() string { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { var ret string return ret } @@ -60,7 +60,7 @@ func (o *ApprovalComment) GetComment() string { // GetCommentOk returns a tuple with the Comment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalComment) GetCommentOk() (*string, bool) { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { return nil, false } return o.Comment, true @@ -68,7 +68,7 @@ func (o *ApprovalComment) GetCommentOk() (*string, bool) { // HasComment returns a boolean if a field has been set. func (o *ApprovalComment) HasComment() bool { - if o != nil && !isNil(o.Comment) { + if o != nil && !IsNil(o.Comment) { return true } @@ -82,7 +82,7 @@ func (o *ApprovalComment) SetComment(v string) { // GetCommenter returns the Commenter field value if set, zero value otherwise. func (o *ApprovalComment) GetCommenter() string { - if o == nil || isNil(o.Commenter) { + if o == nil || IsNil(o.Commenter) { var ret string return ret } @@ -92,7 +92,7 @@ func (o *ApprovalComment) GetCommenter() string { // GetCommenterOk returns a tuple with the Commenter field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalComment) GetCommenterOk() (*string, bool) { - if o == nil || isNil(o.Commenter) { + if o == nil || IsNil(o.Commenter) { return nil, false } return o.Commenter, true @@ -100,7 +100,7 @@ func (o *ApprovalComment) GetCommenterOk() (*string, bool) { // HasCommenter returns a boolean if a field has been set. func (o *ApprovalComment) HasCommenter() bool { - if o != nil && !isNil(o.Commenter) { + if o != nil && !IsNil(o.Commenter) { return true } @@ -114,7 +114,7 @@ func (o *ApprovalComment) SetCommenter(v string) { // GetDate returns the Date field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApprovalComment) GetDate() time.Time { - if o == nil || isNil(o.Date.Get()) { + if o == nil || IsNil(o.Date.Get()) { var ret time.Time return ret } @@ -164,10 +164,10 @@ func (o ApprovalComment) MarshalJSON() ([]byte, error) { func (o ApprovalComment) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Comment) { + if !IsNil(o.Comment) { toSerialize["comment"] = o.Comment } - if !isNil(o.Commenter) { + if !IsNil(o.Commenter) { toSerialize["commenter"] = o.Commenter } if o.Date.IsSet() { @@ -181,16 +181,20 @@ func (o ApprovalComment) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApprovalComment) UnmarshalJSON(bytes []byte) (err error) { +func (o *ApprovalComment) UnmarshalJSON(data []byte) (err error) { varApprovalComment := _ApprovalComment{} - if err = json.Unmarshal(bytes, &varApprovalComment); err == nil { + err = json.Unmarshal(data, &varApprovalComment) + + if err != nil { + return err + } + *o = ApprovalComment(varApprovalComment) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "comment") delete(additionalProperties, "commenter") delete(additionalProperties, "date") diff --git a/api_v3/model_approval_forward_history.go b/api_v3/model_approval_forward_history.go index cd2315382..620ae86f7 100644 --- a/api_v3/model_approval_forward_history.go +++ b/api_v3/model_approval_forward_history.go @@ -55,7 +55,7 @@ func NewApprovalForwardHistoryWithDefaults() *ApprovalForwardHistory { // GetOldApproverName returns the OldApproverName field value if set, zero value otherwise. func (o *ApprovalForwardHistory) GetOldApproverName() string { - if o == nil || isNil(o.OldApproverName) { + if o == nil || IsNil(o.OldApproverName) { var ret string return ret } @@ -65,7 +65,7 @@ func (o *ApprovalForwardHistory) GetOldApproverName() string { // GetOldApproverNameOk returns a tuple with the OldApproverName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalForwardHistory) GetOldApproverNameOk() (*string, bool) { - if o == nil || isNil(o.OldApproverName) { + if o == nil || IsNil(o.OldApproverName) { return nil, false } return o.OldApproverName, true @@ -73,7 +73,7 @@ func (o *ApprovalForwardHistory) GetOldApproverNameOk() (*string, bool) { // HasOldApproverName returns a boolean if a field has been set. func (o *ApprovalForwardHistory) HasOldApproverName() bool { - if o != nil && !isNil(o.OldApproverName) { + if o != nil && !IsNil(o.OldApproverName) { return true } @@ -87,7 +87,7 @@ func (o *ApprovalForwardHistory) SetOldApproverName(v string) { // GetNewApproverName returns the NewApproverName field value if set, zero value otherwise. func (o *ApprovalForwardHistory) GetNewApproverName() string { - if o == nil || isNil(o.NewApproverName) { + if o == nil || IsNil(o.NewApproverName) { var ret string return ret } @@ -97,7 +97,7 @@ func (o *ApprovalForwardHistory) GetNewApproverName() string { // GetNewApproverNameOk returns a tuple with the NewApproverName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalForwardHistory) GetNewApproverNameOk() (*string, bool) { - if o == nil || isNil(o.NewApproverName) { + if o == nil || IsNil(o.NewApproverName) { return nil, false } return o.NewApproverName, true @@ -105,7 +105,7 @@ func (o *ApprovalForwardHistory) GetNewApproverNameOk() (*string, bool) { // HasNewApproverName returns a boolean if a field has been set. func (o *ApprovalForwardHistory) HasNewApproverName() bool { - if o != nil && !isNil(o.NewApproverName) { + if o != nil && !IsNil(o.NewApproverName) { return true } @@ -119,7 +119,7 @@ func (o *ApprovalForwardHistory) SetNewApproverName(v string) { // GetComment returns the Comment field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApprovalForwardHistory) GetComment() string { - if o == nil || isNil(o.Comment.Get()) { + if o == nil || IsNil(o.Comment.Get()) { var ret string return ret } @@ -161,7 +161,7 @@ func (o *ApprovalForwardHistory) UnsetComment() { // GetModified returns the Modified field value if set, zero value otherwise. func (o *ApprovalForwardHistory) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -171,7 +171,7 @@ func (o *ApprovalForwardHistory) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalForwardHistory) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -179,7 +179,7 @@ func (o *ApprovalForwardHistory) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *ApprovalForwardHistory) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -193,7 +193,7 @@ func (o *ApprovalForwardHistory) SetModified(v time.Time) { // GetForwarderName returns the ForwarderName field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApprovalForwardHistory) GetForwarderName() string { - if o == nil || isNil(o.ForwarderName.Get()) { + if o == nil || IsNil(o.ForwarderName.Get()) { var ret string return ret } @@ -235,7 +235,7 @@ func (o *ApprovalForwardHistory) UnsetForwarderName() { // GetReassignmentType returns the ReassignmentType field value if set, zero value otherwise. func (o *ApprovalForwardHistory) GetReassignmentType() ReassignmentType { - if o == nil || isNil(o.ReassignmentType) { + if o == nil || IsNil(o.ReassignmentType) { var ret ReassignmentType return ret } @@ -245,7 +245,7 @@ func (o *ApprovalForwardHistory) GetReassignmentType() ReassignmentType { // GetReassignmentTypeOk returns a tuple with the ReassignmentType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalForwardHistory) GetReassignmentTypeOk() (*ReassignmentType, bool) { - if o == nil || isNil(o.ReassignmentType) { + if o == nil || IsNil(o.ReassignmentType) { return nil, false } return o.ReassignmentType, true @@ -253,7 +253,7 @@ func (o *ApprovalForwardHistory) GetReassignmentTypeOk() (*ReassignmentType, boo // HasReassignmentType returns a boolean if a field has been set. func (o *ApprovalForwardHistory) HasReassignmentType() bool { - if o != nil && !isNil(o.ReassignmentType) { + if o != nil && !IsNil(o.ReassignmentType) { return true } @@ -275,22 +275,22 @@ func (o ApprovalForwardHistory) MarshalJSON() ([]byte, error) { func (o ApprovalForwardHistory) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.OldApproverName) { + if !IsNil(o.OldApproverName) { toSerialize["oldApproverName"] = o.OldApproverName } - if !isNil(o.NewApproverName) { + if !IsNil(o.NewApproverName) { toSerialize["newApproverName"] = o.NewApproverName } if o.Comment.IsSet() { toSerialize["comment"] = o.Comment.Get() } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } if o.ForwarderName.IsSet() { toSerialize["forwarderName"] = o.ForwarderName.Get() } - if !isNil(o.ReassignmentType) { + if !IsNil(o.ReassignmentType) { toSerialize["reassignmentType"] = o.ReassignmentType } @@ -301,16 +301,20 @@ func (o ApprovalForwardHistory) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApprovalForwardHistory) UnmarshalJSON(bytes []byte) (err error) { +func (o *ApprovalForwardHistory) UnmarshalJSON(data []byte) (err error) { varApprovalForwardHistory := _ApprovalForwardHistory{} - if err = json.Unmarshal(bytes, &varApprovalForwardHistory); err == nil { + err = json.Unmarshal(data, &varApprovalForwardHistory) + + if err != nil { + return err + } + *o = ApprovalForwardHistory(varApprovalForwardHistory) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "oldApproverName") delete(additionalProperties, "newApproverName") delete(additionalProperties, "comment") diff --git a/api_v3/model_approval_item_details.go b/api_v3/model_approval_item_details.go index 0aac0bb33..626420b79 100644 --- a/api_v3/model_approval_item_details.go +++ b/api_v3/model_approval_item_details.go @@ -56,7 +56,7 @@ func NewApprovalItemDetailsWithDefaults() *ApprovalItemDetails { // GetId returns the Id field value if set, zero value otherwise. func (o *ApprovalItemDetails) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -66,7 +66,7 @@ func (o *ApprovalItemDetails) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalItemDetails) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -74,7 +74,7 @@ func (o *ApprovalItemDetails) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ApprovalItemDetails) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -88,7 +88,7 @@ func (o *ApprovalItemDetails) SetId(v string) { // GetAccount returns the Account field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApprovalItemDetails) GetAccount() string { - if o == nil || isNil(o.Account.Get()) { + if o == nil || IsNil(o.Account.Get()) { var ret string return ret } @@ -130,7 +130,7 @@ func (o *ApprovalItemDetails) UnsetAccount() { // GetApplication returns the Application field value if set, zero value otherwise. func (o *ApprovalItemDetails) GetApplication() string { - if o == nil || isNil(o.Application) { + if o == nil || IsNil(o.Application) { var ret string return ret } @@ -140,7 +140,7 @@ func (o *ApprovalItemDetails) GetApplication() string { // GetApplicationOk returns a tuple with the Application field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalItemDetails) GetApplicationOk() (*string, bool) { - if o == nil || isNil(o.Application) { + if o == nil || IsNil(o.Application) { return nil, false } return o.Application, true @@ -148,7 +148,7 @@ func (o *ApprovalItemDetails) GetApplicationOk() (*string, bool) { // HasApplication returns a boolean if a field has been set. func (o *ApprovalItemDetails) HasApplication() bool { - if o != nil && !isNil(o.Application) { + if o != nil && !IsNil(o.Application) { return true } @@ -162,7 +162,7 @@ func (o *ApprovalItemDetails) SetApplication(v string) { // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApprovalItemDetails) GetName() string { - if o == nil || isNil(o.Name.Get()) { + if o == nil || IsNil(o.Name.Get()) { var ret string return ret } @@ -204,7 +204,7 @@ func (o *ApprovalItemDetails) UnsetName() { // GetOperation returns the Operation field value if set, zero value otherwise. func (o *ApprovalItemDetails) GetOperation() string { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { var ret string return ret } @@ -214,7 +214,7 @@ func (o *ApprovalItemDetails) GetOperation() string { // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalItemDetails) GetOperationOk() (*string, bool) { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { return nil, false } return o.Operation, true @@ -222,7 +222,7 @@ func (o *ApprovalItemDetails) GetOperationOk() (*string, bool) { // HasOperation returns a boolean if a field has been set. func (o *ApprovalItemDetails) HasOperation() bool { - if o != nil && !isNil(o.Operation) { + if o != nil && !IsNil(o.Operation) { return true } @@ -236,7 +236,7 @@ func (o *ApprovalItemDetails) SetOperation(v string) { // GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApprovalItemDetails) GetValue() string { - if o == nil || isNil(o.Value.Get()) { + if o == nil || IsNil(o.Value.Get()) { var ret string return ret } @@ -278,7 +278,7 @@ func (o *ApprovalItemDetails) UnsetValue() { // GetState returns the State field value if set, zero value otherwise. func (o *ApprovalItemDetails) GetState() WorkItemState { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { var ret WorkItemState return ret } @@ -288,7 +288,7 @@ func (o *ApprovalItemDetails) GetState() WorkItemState { // GetStateOk returns a tuple with the State field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalItemDetails) GetStateOk() (*WorkItemState, bool) { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { return nil, false } return o.State, true @@ -296,7 +296,7 @@ func (o *ApprovalItemDetails) GetStateOk() (*WorkItemState, bool) { // HasState returns a boolean if a field has been set. func (o *ApprovalItemDetails) HasState() bool { - if o != nil && !isNil(o.State) { + if o != nil && !IsNil(o.State) { return true } @@ -318,25 +318,25 @@ func (o ApprovalItemDetails) MarshalJSON() ([]byte, error) { func (o ApprovalItemDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } if o.Account.IsSet() { toSerialize["account"] = o.Account.Get() } - if !isNil(o.Application) { + if !IsNil(o.Application) { toSerialize["application"] = o.Application } if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() } - if !isNil(o.Operation) { + if !IsNil(o.Operation) { toSerialize["operation"] = o.Operation } if o.Value.IsSet() { toSerialize["value"] = o.Value.Get() } - if !isNil(o.State) { + if !IsNil(o.State) { toSerialize["state"] = o.State } @@ -347,16 +347,20 @@ func (o ApprovalItemDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApprovalItemDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *ApprovalItemDetails) UnmarshalJSON(data []byte) (err error) { varApprovalItemDetails := _ApprovalItemDetails{} - if err = json.Unmarshal(bytes, &varApprovalItemDetails); err == nil { + err = json.Unmarshal(data, &varApprovalItemDetails) + + if err != nil { + return err + } + *o = ApprovalItemDetails(varApprovalItemDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "account") delete(additionalProperties, "application") diff --git a/api_v3/model_approval_items.go b/api_v3/model_approval_items.go index c903a313b..e628c8752 100644 --- a/api_v3/model_approval_items.go +++ b/api_v3/model_approval_items.go @@ -56,7 +56,7 @@ func NewApprovalItemsWithDefaults() *ApprovalItems { // GetId returns the Id field value if set, zero value otherwise. func (o *ApprovalItems) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -66,7 +66,7 @@ func (o *ApprovalItems) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalItems) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -74,7 +74,7 @@ func (o *ApprovalItems) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ApprovalItems) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -88,7 +88,7 @@ func (o *ApprovalItems) SetId(v string) { // GetAccount returns the Account field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApprovalItems) GetAccount() string { - if o == nil || isNil(o.Account.Get()) { + if o == nil || IsNil(o.Account.Get()) { var ret string return ret } @@ -130,7 +130,7 @@ func (o *ApprovalItems) UnsetAccount() { // GetApplication returns the Application field value if set, zero value otherwise. func (o *ApprovalItems) GetApplication() string { - if o == nil || isNil(o.Application) { + if o == nil || IsNil(o.Application) { var ret string return ret } @@ -140,7 +140,7 @@ func (o *ApprovalItems) GetApplication() string { // GetApplicationOk returns a tuple with the Application field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalItems) GetApplicationOk() (*string, bool) { - if o == nil || isNil(o.Application) { + if o == nil || IsNil(o.Application) { return nil, false } return o.Application, true @@ -148,7 +148,7 @@ func (o *ApprovalItems) GetApplicationOk() (*string, bool) { // HasApplication returns a boolean if a field has been set. func (o *ApprovalItems) HasApplication() bool { - if o != nil && !isNil(o.Application) { + if o != nil && !IsNil(o.Application) { return true } @@ -162,7 +162,7 @@ func (o *ApprovalItems) SetApplication(v string) { // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApprovalItems) GetName() string { - if o == nil || isNil(o.Name.Get()) { + if o == nil || IsNil(o.Name.Get()) { var ret string return ret } @@ -204,7 +204,7 @@ func (o *ApprovalItems) UnsetName() { // GetOperation returns the Operation field value if set, zero value otherwise. func (o *ApprovalItems) GetOperation() string { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { var ret string return ret } @@ -214,7 +214,7 @@ func (o *ApprovalItems) GetOperation() string { // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalItems) GetOperationOk() (*string, bool) { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { return nil, false } return o.Operation, true @@ -222,7 +222,7 @@ func (o *ApprovalItems) GetOperationOk() (*string, bool) { // HasOperation returns a boolean if a field has been set. func (o *ApprovalItems) HasOperation() bool { - if o != nil && !isNil(o.Operation) { + if o != nil && !IsNil(o.Operation) { return true } @@ -236,7 +236,7 @@ func (o *ApprovalItems) SetOperation(v string) { // GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApprovalItems) GetValue() string { - if o == nil || isNil(o.Value.Get()) { + if o == nil || IsNil(o.Value.Get()) { var ret string return ret } @@ -278,7 +278,7 @@ func (o *ApprovalItems) UnsetValue() { // GetState returns the State field value if set, zero value otherwise. func (o *ApprovalItems) GetState() WorkItemState { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { var ret WorkItemState return ret } @@ -288,7 +288,7 @@ func (o *ApprovalItems) GetState() WorkItemState { // GetStateOk returns a tuple with the State field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalItems) GetStateOk() (*WorkItemState, bool) { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { return nil, false } return o.State, true @@ -296,7 +296,7 @@ func (o *ApprovalItems) GetStateOk() (*WorkItemState, bool) { // HasState returns a boolean if a field has been set. func (o *ApprovalItems) HasState() bool { - if o != nil && !isNil(o.State) { + if o != nil && !IsNil(o.State) { return true } @@ -318,25 +318,25 @@ func (o ApprovalItems) MarshalJSON() ([]byte, error) { func (o ApprovalItems) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } if o.Account.IsSet() { toSerialize["account"] = o.Account.Get() } - if !isNil(o.Application) { + if !IsNil(o.Application) { toSerialize["application"] = o.Application } if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() } - if !isNil(o.Operation) { + if !IsNil(o.Operation) { toSerialize["operation"] = o.Operation } if o.Value.IsSet() { toSerialize["value"] = o.Value.Get() } - if !isNil(o.State) { + if !IsNil(o.State) { toSerialize["state"] = o.State } @@ -347,16 +347,20 @@ func (o ApprovalItems) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApprovalItems) UnmarshalJSON(bytes []byte) (err error) { +func (o *ApprovalItems) UnmarshalJSON(data []byte) (err error) { varApprovalItems := _ApprovalItems{} - if err = json.Unmarshal(bytes, &varApprovalItems); err == nil { + err = json.Unmarshal(data, &varApprovalItems) + + if err != nil { + return err + } + *o = ApprovalItems(varApprovalItems) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "account") delete(additionalProperties, "application") diff --git a/api_v3/model_approval_reminder_and_escalation_config.go b/api_v3/model_approval_reminder_and_escalation_config.go index 8d771eaeb..62a0e0ae6 100644 --- a/api_v3/model_approval_reminder_and_escalation_config.go +++ b/api_v3/model_approval_reminder_and_escalation_config.go @@ -50,7 +50,7 @@ func NewApprovalReminderAndEscalationConfigWithDefaults() *ApprovalReminderAndEs // GetDaysUntilEscalation returns the DaysUntilEscalation field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApprovalReminderAndEscalationConfig) GetDaysUntilEscalation() int32 { - if o == nil || isNil(o.DaysUntilEscalation.Get()) { + if o == nil || IsNil(o.DaysUntilEscalation.Get()) { var ret int32 return ret } @@ -92,7 +92,7 @@ func (o *ApprovalReminderAndEscalationConfig) UnsetDaysUntilEscalation() { // GetDaysBetweenReminders returns the DaysBetweenReminders field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApprovalReminderAndEscalationConfig) GetDaysBetweenReminders() int32 { - if o == nil || isNil(o.DaysBetweenReminders.Get()) { + if o == nil || IsNil(o.DaysBetweenReminders.Get()) { var ret int32 return ret } @@ -134,7 +134,7 @@ func (o *ApprovalReminderAndEscalationConfig) UnsetDaysBetweenReminders() { // GetMaxReminders returns the MaxReminders field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApprovalReminderAndEscalationConfig) GetMaxReminders() int32 { - if o == nil || isNil(o.MaxReminders.Get()) { + if o == nil || IsNil(o.MaxReminders.Get()) { var ret int32 return ret } @@ -176,7 +176,7 @@ func (o *ApprovalReminderAndEscalationConfig) UnsetMaxReminders() { // GetFallbackApproverRef returns the FallbackApproverRef field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApprovalReminderAndEscalationConfig) GetFallbackApproverRef() IdentityReferenceWithNameAndEmail { - if o == nil || isNil(o.FallbackApproverRef.Get()) { + if o == nil || IsNil(o.FallbackApproverRef.Get()) { var ret IdentityReferenceWithNameAndEmail return ret } @@ -246,16 +246,20 @@ func (o ApprovalReminderAndEscalationConfig) ToMap() (map[string]interface{}, er return toSerialize, nil } -func (o *ApprovalReminderAndEscalationConfig) UnmarshalJSON(bytes []byte) (err error) { +func (o *ApprovalReminderAndEscalationConfig) UnmarshalJSON(data []byte) (err error) { varApprovalReminderAndEscalationConfig := _ApprovalReminderAndEscalationConfig{} - if err = json.Unmarshal(bytes, &varApprovalReminderAndEscalationConfig); err == nil { + err = json.Unmarshal(data, &varApprovalReminderAndEscalationConfig) + + if err != nil { + return err + } + *o = ApprovalReminderAndEscalationConfig(varApprovalReminderAndEscalationConfig) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "daysUntilEscalation") delete(additionalProperties, "daysBetweenReminders") delete(additionalProperties, "maxReminders") diff --git a/api_v3/model_approval_scheme_for_role.go b/api_v3/model_approval_scheme_for_role.go index 293307676..b1b088969 100644 --- a/api_v3/model_approval_scheme_for_role.go +++ b/api_v3/model_approval_scheme_for_role.go @@ -47,7 +47,7 @@ func NewApprovalSchemeForRoleWithDefaults() *ApprovalSchemeForRole { // GetApproverType returns the ApproverType field value if set, zero value otherwise. func (o *ApprovalSchemeForRole) GetApproverType() string { - if o == nil || isNil(o.ApproverType) { + if o == nil || IsNil(o.ApproverType) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *ApprovalSchemeForRole) GetApproverType() string { // GetApproverTypeOk returns a tuple with the ApproverType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalSchemeForRole) GetApproverTypeOk() (*string, bool) { - if o == nil || isNil(o.ApproverType) { + if o == nil || IsNil(o.ApproverType) { return nil, false } return o.ApproverType, true @@ -65,7 +65,7 @@ func (o *ApprovalSchemeForRole) GetApproverTypeOk() (*string, bool) { // HasApproverType returns a boolean if a field has been set. func (o *ApprovalSchemeForRole) HasApproverType() bool { - if o != nil && !isNil(o.ApproverType) { + if o != nil && !IsNil(o.ApproverType) { return true } @@ -79,7 +79,7 @@ func (o *ApprovalSchemeForRole) SetApproverType(v string) { // GetApproverId returns the ApproverId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApprovalSchemeForRole) GetApproverId() string { - if o == nil || isNil(o.ApproverId.Get()) { + if o == nil || IsNil(o.ApproverId.Get()) { var ret string return ret } @@ -129,7 +129,7 @@ func (o ApprovalSchemeForRole) MarshalJSON() ([]byte, error) { func (o ApprovalSchemeForRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.ApproverType) { + if !IsNil(o.ApproverType) { toSerialize["approverType"] = o.ApproverType } if o.ApproverId.IsSet() { @@ -143,16 +143,20 @@ func (o ApprovalSchemeForRole) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApprovalSchemeForRole) UnmarshalJSON(bytes []byte) (err error) { +func (o *ApprovalSchemeForRole) UnmarshalJSON(data []byte) (err error) { varApprovalSchemeForRole := _ApprovalSchemeForRole{} - if err = json.Unmarshal(bytes, &varApprovalSchemeForRole); err == nil { + err = json.Unmarshal(data, &varApprovalSchemeForRole) + + if err != nil { + return err + } + *o = ApprovalSchemeForRole(varApprovalSchemeForRole) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "approverType") delete(additionalProperties, "approverId") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_approval_status_dto.go b/api_v3/model_approval_status_dto.go index 307fb8eb0..44135aa24 100644 --- a/api_v3/model_approval_status_dto.go +++ b/api_v3/model_approval_status_dto.go @@ -62,7 +62,7 @@ func NewApprovalStatusDtoWithDefaults() *ApprovalStatusDto { // GetForwarded returns the Forwarded field value if set, zero value otherwise. func (o *ApprovalStatusDto) GetForwarded() bool { - if o == nil || isNil(o.Forwarded) { + if o == nil || IsNil(o.Forwarded) { var ret bool return ret } @@ -72,7 +72,7 @@ func (o *ApprovalStatusDto) GetForwarded() bool { // GetForwardedOk returns a tuple with the Forwarded field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalStatusDto) GetForwardedOk() (*bool, bool) { - if o == nil || isNil(o.Forwarded) { + if o == nil || IsNil(o.Forwarded) { return nil, false } return o.Forwarded, true @@ -80,7 +80,7 @@ func (o *ApprovalStatusDto) GetForwardedOk() (*bool, bool) { // HasForwarded returns a boolean if a field has been set. func (o *ApprovalStatusDto) HasForwarded() bool { - if o != nil && !isNil(o.Forwarded) { + if o != nil && !IsNil(o.Forwarded) { return true } @@ -94,7 +94,7 @@ func (o *ApprovalStatusDto) SetForwarded(v bool) { // GetOriginalOwner returns the OriginalOwner field value if set, zero value otherwise. func (o *ApprovalStatusDto) GetOriginalOwner() ApprovalStatusDtoOriginalOwner { - if o == nil || isNil(o.OriginalOwner) { + if o == nil || IsNil(o.OriginalOwner) { var ret ApprovalStatusDtoOriginalOwner return ret } @@ -104,7 +104,7 @@ func (o *ApprovalStatusDto) GetOriginalOwner() ApprovalStatusDtoOriginalOwner { // GetOriginalOwnerOk returns a tuple with the OriginalOwner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalStatusDto) GetOriginalOwnerOk() (*ApprovalStatusDtoOriginalOwner, bool) { - if o == nil || isNil(o.OriginalOwner) { + if o == nil || IsNil(o.OriginalOwner) { return nil, false } return o.OriginalOwner, true @@ -112,7 +112,7 @@ func (o *ApprovalStatusDto) GetOriginalOwnerOk() (*ApprovalStatusDtoOriginalOwne // HasOriginalOwner returns a boolean if a field has been set. func (o *ApprovalStatusDto) HasOriginalOwner() bool { - if o != nil && !isNil(o.OriginalOwner) { + if o != nil && !IsNil(o.OriginalOwner) { return true } @@ -126,7 +126,7 @@ func (o *ApprovalStatusDto) SetOriginalOwner(v ApprovalStatusDtoOriginalOwner) { // GetCurrentOwner returns the CurrentOwner field value if set, zero value otherwise. func (o *ApprovalStatusDto) GetCurrentOwner() ApprovalStatusDtoCurrentOwner { - if o == nil || isNil(o.CurrentOwner) { + if o == nil || IsNil(o.CurrentOwner) { var ret ApprovalStatusDtoCurrentOwner return ret } @@ -136,7 +136,7 @@ func (o *ApprovalStatusDto) GetCurrentOwner() ApprovalStatusDtoCurrentOwner { // GetCurrentOwnerOk returns a tuple with the CurrentOwner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalStatusDto) GetCurrentOwnerOk() (*ApprovalStatusDtoCurrentOwner, bool) { - if o == nil || isNil(o.CurrentOwner) { + if o == nil || IsNil(o.CurrentOwner) { return nil, false } return o.CurrentOwner, true @@ -144,7 +144,7 @@ func (o *ApprovalStatusDto) GetCurrentOwnerOk() (*ApprovalStatusDtoCurrentOwner, // HasCurrentOwner returns a boolean if a field has been set. func (o *ApprovalStatusDto) HasCurrentOwner() bool { - if o != nil && !isNil(o.CurrentOwner) { + if o != nil && !IsNil(o.CurrentOwner) { return true } @@ -158,7 +158,7 @@ func (o *ApprovalStatusDto) SetCurrentOwner(v ApprovalStatusDtoCurrentOwner) { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApprovalStatusDto) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -200,7 +200,7 @@ func (o *ApprovalStatusDto) UnsetModified() { // GetStatus returns the Status field value if set, zero value otherwise. func (o *ApprovalStatusDto) GetStatus() ManualWorkItemState { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret ManualWorkItemState return ret } @@ -210,7 +210,7 @@ func (o *ApprovalStatusDto) GetStatus() ManualWorkItemState { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalStatusDto) GetStatusOk() (*ManualWorkItemState, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -218,7 +218,7 @@ func (o *ApprovalStatusDto) GetStatusOk() (*ManualWorkItemState, bool) { // HasStatus returns a boolean if a field has been set. func (o *ApprovalStatusDto) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -232,7 +232,7 @@ func (o *ApprovalStatusDto) SetStatus(v ManualWorkItemState) { // GetScheme returns the Scheme field value if set, zero value otherwise. func (o *ApprovalStatusDto) GetScheme() ApprovalScheme { - if o == nil || isNil(o.Scheme) { + if o == nil || IsNil(o.Scheme) { var ret ApprovalScheme return ret } @@ -242,7 +242,7 @@ func (o *ApprovalStatusDto) GetScheme() ApprovalScheme { // GetSchemeOk returns a tuple with the Scheme field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalStatusDto) GetSchemeOk() (*ApprovalScheme, bool) { - if o == nil || isNil(o.Scheme) { + if o == nil || IsNil(o.Scheme) { return nil, false } return o.Scheme, true @@ -250,7 +250,7 @@ func (o *ApprovalStatusDto) GetSchemeOk() (*ApprovalScheme, bool) { // HasScheme returns a boolean if a field has been set. func (o *ApprovalStatusDto) HasScheme() bool { - if o != nil && !isNil(o.Scheme) { + if o != nil && !IsNil(o.Scheme) { return true } @@ -275,7 +275,7 @@ func (o *ApprovalStatusDto) GetErrorMessages() []ErrorMessageDto { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ApprovalStatusDto) GetErrorMessagesOk() ([]ErrorMessageDto, bool) { - if o == nil || isNil(o.ErrorMessages) { + if o == nil || IsNil(o.ErrorMessages) { return nil, false } return o.ErrorMessages, true @@ -283,7 +283,7 @@ func (o *ApprovalStatusDto) GetErrorMessagesOk() ([]ErrorMessageDto, bool) { // HasErrorMessages returns a boolean if a field has been set. func (o *ApprovalStatusDto) HasErrorMessages() bool { - if o != nil && isNil(o.ErrorMessages) { + if o != nil && !IsNil(o.ErrorMessages) { return true } @@ -297,7 +297,7 @@ func (o *ApprovalStatusDto) SetErrorMessages(v []ErrorMessageDto) { // GetComment returns the Comment field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApprovalStatusDto) GetComment() string { - if o == nil || isNil(o.Comment.Get()) { + if o == nil || IsNil(o.Comment.Get()) { var ret string return ret } @@ -339,7 +339,7 @@ func (o *ApprovalStatusDto) UnsetComment() { // GetRemoveDate returns the RemoveDate field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ApprovalStatusDto) GetRemoveDate() time.Time { - if o == nil || isNil(o.RemoveDate.Get()) { + if o == nil || IsNil(o.RemoveDate.Get()) { var ret time.Time return ret } @@ -389,22 +389,22 @@ func (o ApprovalStatusDto) MarshalJSON() ([]byte, error) { func (o ApprovalStatusDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Forwarded) { + if !IsNil(o.Forwarded) { toSerialize["forwarded"] = o.Forwarded } - if !isNil(o.OriginalOwner) { + if !IsNil(o.OriginalOwner) { toSerialize["originalOwner"] = o.OriginalOwner } - if !isNil(o.CurrentOwner) { + if !IsNil(o.CurrentOwner) { toSerialize["currentOwner"] = o.CurrentOwner } if o.Modified.IsSet() { toSerialize["modified"] = o.Modified.Get() } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } - if !isNil(o.Scheme) { + if !IsNil(o.Scheme) { toSerialize["scheme"] = o.Scheme } if o.ErrorMessages != nil { @@ -424,16 +424,20 @@ func (o ApprovalStatusDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApprovalStatusDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *ApprovalStatusDto) UnmarshalJSON(data []byte) (err error) { varApprovalStatusDto := _ApprovalStatusDto{} - if err = json.Unmarshal(bytes, &varApprovalStatusDto); err == nil { + err = json.Unmarshal(data, &varApprovalStatusDto) + + if err != nil { + return err + } + *o = ApprovalStatusDto(varApprovalStatusDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "forwarded") delete(additionalProperties, "originalOwner") delete(additionalProperties, "currentOwner") diff --git a/api_v3/model_approval_status_dto_current_owner.go b/api_v3/model_approval_status_dto_current_owner.go index a2df83354..458a6783b 100644 --- a/api_v3/model_approval_status_dto_current_owner.go +++ b/api_v3/model_approval_status_dto_current_owner.go @@ -49,7 +49,7 @@ func NewApprovalStatusDtoCurrentOwnerWithDefaults() *ApprovalStatusDtoCurrentOwn // GetType returns the Type field value if set, zero value otherwise. func (o *ApprovalStatusDtoCurrentOwner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *ApprovalStatusDtoCurrentOwner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalStatusDtoCurrentOwner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *ApprovalStatusDtoCurrentOwner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *ApprovalStatusDtoCurrentOwner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *ApprovalStatusDtoCurrentOwner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *ApprovalStatusDtoCurrentOwner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *ApprovalStatusDtoCurrentOwner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalStatusDtoCurrentOwner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *ApprovalStatusDtoCurrentOwner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ApprovalStatusDtoCurrentOwner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *ApprovalStatusDtoCurrentOwner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *ApprovalStatusDtoCurrentOwner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *ApprovalStatusDtoCurrentOwner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalStatusDtoCurrentOwner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *ApprovalStatusDtoCurrentOwner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ApprovalStatusDtoCurrentOwner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o ApprovalStatusDtoCurrentOwner) MarshalJSON() ([]byte, error) { func (o ApprovalStatusDtoCurrentOwner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o ApprovalStatusDtoCurrentOwner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApprovalStatusDtoCurrentOwner) UnmarshalJSON(bytes []byte) (err error) { +func (o *ApprovalStatusDtoCurrentOwner) UnmarshalJSON(data []byte) (err error) { varApprovalStatusDtoCurrentOwner := _ApprovalStatusDtoCurrentOwner{} - if err = json.Unmarshal(bytes, &varApprovalStatusDtoCurrentOwner); err == nil { + err = json.Unmarshal(data, &varApprovalStatusDtoCurrentOwner) + + if err != nil { + return err + } + *o = ApprovalStatusDtoCurrentOwner(varApprovalStatusDtoCurrentOwner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_approval_status_dto_original_owner.go b/api_v3/model_approval_status_dto_original_owner.go index 382f42f8b..3306d993b 100644 --- a/api_v3/model_approval_status_dto_original_owner.go +++ b/api_v3/model_approval_status_dto_original_owner.go @@ -49,7 +49,7 @@ func NewApprovalStatusDtoOriginalOwnerWithDefaults() *ApprovalStatusDtoOriginalO // GetType returns the Type field value if set, zero value otherwise. func (o *ApprovalStatusDtoOriginalOwner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *ApprovalStatusDtoOriginalOwner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalStatusDtoOriginalOwner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *ApprovalStatusDtoOriginalOwner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *ApprovalStatusDtoOriginalOwner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *ApprovalStatusDtoOriginalOwner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *ApprovalStatusDtoOriginalOwner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *ApprovalStatusDtoOriginalOwner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalStatusDtoOriginalOwner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *ApprovalStatusDtoOriginalOwner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ApprovalStatusDtoOriginalOwner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *ApprovalStatusDtoOriginalOwner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *ApprovalStatusDtoOriginalOwner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *ApprovalStatusDtoOriginalOwner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalStatusDtoOriginalOwner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *ApprovalStatusDtoOriginalOwner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ApprovalStatusDtoOriginalOwner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o ApprovalStatusDtoOriginalOwner) MarshalJSON() ([]byte, error) { func (o ApprovalStatusDtoOriginalOwner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o ApprovalStatusDtoOriginalOwner) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *ApprovalStatusDtoOriginalOwner) UnmarshalJSON(bytes []byte) (err error) { +func (o *ApprovalStatusDtoOriginalOwner) UnmarshalJSON(data []byte) (err error) { varApprovalStatusDtoOriginalOwner := _ApprovalStatusDtoOriginalOwner{} - if err = json.Unmarshal(bytes, &varApprovalStatusDtoOriginalOwner); err == nil { + err = json.Unmarshal(data, &varApprovalStatusDtoOriginalOwner) + + if err != nil { + return err + } + *o = ApprovalStatusDtoOriginalOwner(varApprovalStatusDtoOriginalOwner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_approval_summary.go b/api_v3/model_approval_summary.go index 45a473fd8..bf2c53573 100644 --- a/api_v3/model_approval_summary.go +++ b/api_v3/model_approval_summary.go @@ -49,7 +49,7 @@ func NewApprovalSummaryWithDefaults() *ApprovalSummary { // GetPending returns the Pending field value if set, zero value otherwise. func (o *ApprovalSummary) GetPending() int32 { - if o == nil || isNil(o.Pending) { + if o == nil || IsNil(o.Pending) { var ret int32 return ret } @@ -59,7 +59,7 @@ func (o *ApprovalSummary) GetPending() int32 { // GetPendingOk returns a tuple with the Pending field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalSummary) GetPendingOk() (*int32, bool) { - if o == nil || isNil(o.Pending) { + if o == nil || IsNil(o.Pending) { return nil, false } return o.Pending, true @@ -67,7 +67,7 @@ func (o *ApprovalSummary) GetPendingOk() (*int32, bool) { // HasPending returns a boolean if a field has been set. func (o *ApprovalSummary) HasPending() bool { - if o != nil && !isNil(o.Pending) { + if o != nil && !IsNil(o.Pending) { return true } @@ -81,7 +81,7 @@ func (o *ApprovalSummary) SetPending(v int32) { // GetApproved returns the Approved field value if set, zero value otherwise. func (o *ApprovalSummary) GetApproved() int32 { - if o == nil || isNil(o.Approved) { + if o == nil || IsNil(o.Approved) { var ret int32 return ret } @@ -91,7 +91,7 @@ func (o *ApprovalSummary) GetApproved() int32 { // GetApprovedOk returns a tuple with the Approved field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalSummary) GetApprovedOk() (*int32, bool) { - if o == nil || isNil(o.Approved) { + if o == nil || IsNil(o.Approved) { return nil, false } return o.Approved, true @@ -99,7 +99,7 @@ func (o *ApprovalSummary) GetApprovedOk() (*int32, bool) { // HasApproved returns a boolean if a field has been set. func (o *ApprovalSummary) HasApproved() bool { - if o != nil && !isNil(o.Approved) { + if o != nil && !IsNil(o.Approved) { return true } @@ -113,7 +113,7 @@ func (o *ApprovalSummary) SetApproved(v int32) { // GetRejected returns the Rejected field value if set, zero value otherwise. func (o *ApprovalSummary) GetRejected() int32 { - if o == nil || isNil(o.Rejected) { + if o == nil || IsNil(o.Rejected) { var ret int32 return ret } @@ -123,7 +123,7 @@ func (o *ApprovalSummary) GetRejected() int32 { // GetRejectedOk returns a tuple with the Rejected field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ApprovalSummary) GetRejectedOk() (*int32, bool) { - if o == nil || isNil(o.Rejected) { + if o == nil || IsNil(o.Rejected) { return nil, false } return o.Rejected, true @@ -131,7 +131,7 @@ func (o *ApprovalSummary) GetRejectedOk() (*int32, bool) { // HasRejected returns a boolean if a field has been set. func (o *ApprovalSummary) HasRejected() bool { - if o != nil && !isNil(o.Rejected) { + if o != nil && !IsNil(o.Rejected) { return true } @@ -153,13 +153,13 @@ func (o ApprovalSummary) MarshalJSON() ([]byte, error) { func (o ApprovalSummary) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Pending) { + if !IsNil(o.Pending) { toSerialize["pending"] = o.Pending } - if !isNil(o.Approved) { + if !IsNil(o.Approved) { toSerialize["approved"] = o.Approved } - if !isNil(o.Rejected) { + if !IsNil(o.Rejected) { toSerialize["rejected"] = o.Rejected } @@ -170,16 +170,20 @@ func (o ApprovalSummary) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ApprovalSummary) UnmarshalJSON(bytes []byte) (err error) { +func (o *ApprovalSummary) UnmarshalJSON(data []byte) (err error) { varApprovalSummary := _ApprovalSummary{} - if err = json.Unmarshal(bytes, &varApprovalSummary); err == nil { + err = json.Unmarshal(data, &varApprovalSummary) + + if err != nil { + return err + } + *o = ApprovalSummary(varApprovalSummary) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "pending") delete(additionalProperties, "approved") delete(additionalProperties, "rejected") diff --git a/api_v3/model_array_inner.go b/api_v3/model_array_inner.go index 11c023062..223093968 100644 --- a/api_v3/model_array_inner.go +++ b/api_v3/model_array_inner.go @@ -15,53 +15,54 @@ import ( "fmt" ) + // ArrayInner struct for ArrayInner type ArrayInner struct { - int32var *int32 - mapvar *map[string]interface{} - stringvar *string + Int32 *int32 + MapmapOfStringAny *map[string]interface{} + String *string } // Unmarshal JSON data into any of the pointers in the struct func (dst *ArrayInner) UnmarshalJSON(data []byte) error { var err error - // try to unmarshal JSON data into int32var - err = json.Unmarshal(data, &dst.int32var); + // try to unmarshal JSON data into Int32 + err = json.Unmarshal(data, &dst.Int32); if err == nil { - jsonint32var, _ := json.Marshal(dst.int32var) - if string(jsonint32var) == "{}" { // empty struct - dst.int32var = nil + jsonInt32, _ := json.Marshal(dst.Int32) + if string(jsonInt32) == "{}" { // empty struct + dst.Int32 = nil } else { - return nil // data stored in dst.int32var, return on the first match + return nil // data stored in dst.Int32, return on the first match } } else { - dst.int32var = nil + dst.Int32 = nil } - // try to unmarshal JSON data into mapvar - err = json.Unmarshal(data, &dst.mapvar); + // try to unmarshal JSON data into MapmapOfStringAny + err = json.Unmarshal(data, &dst.MapmapOfStringAny); if err == nil { - jsonmapvar, _ := json.Marshal(dst.mapvar) - if string(jsonmapvar) == "{}" { // empty struct - dst.mapvar = nil + jsonMapmapOfStringAny, _ := json.Marshal(dst.MapmapOfStringAny) + if string(jsonMapmapOfStringAny) == "{}" { // empty struct + dst.MapmapOfStringAny = nil } else { - return nil // data stored in dst.mapvar, return on the first match + return nil // data stored in dst.MapmapOfStringAny, return on the first match } } else { - dst.mapvar = nil + dst.MapmapOfStringAny = nil } - // try to unmarshal JSON data into stringvar - err = json.Unmarshal(data, &dst.stringvar); + // try to unmarshal JSON data into String + err = json.Unmarshal(data, &dst.String); if err == nil { - jsonstringvar, _ := json.Marshal(dst.stringvar) - if string(jsonstringvar) == "{}" { // empty struct - dst.stringvar = nil + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil } else { - return nil // data stored in dst.stringvar, return on the first match + return nil // data stored in dst.String, return on the first match } } else { - dst.stringvar = nil + dst.String = nil } return fmt.Errorf("data failed to match schemas in anyOf(ArrayInner)") @@ -69,21 +70,22 @@ func (dst *ArrayInner) UnmarshalJSON(data []byte) error { // Marshal data from the first non-nil pointers in the struct to JSON func (src *ArrayInner) MarshalJSON() ([]byte, error) { - if src.int32var != nil { - return json.Marshal(&src.int32var) + if src.Int32 != nil { + return json.Marshal(&src.Int32) } - if src.mapvar != nil { - return json.Marshal(&src.mapvar) + if src.MapmapOfStringAny != nil { + return json.Marshal(&src.MapmapOfStringAny) } - if src.stringvar != nil { - return json.Marshal(&src.stringvar) + if src.String != nil { + return json.Marshal(&src.String) } return nil, nil // no data in anyOf schemas } + type NullableArrayInner struct { value *ArrayInner isSet bool diff --git a/api_v3/model_attribute_definition.go b/api_v3/model_attribute_definition.go index 9af301b93..890f10e5d 100644 --- a/api_v3/model_attribute_definition.go +++ b/api_v3/model_attribute_definition.go @@ -67,7 +67,7 @@ func NewAttributeDefinitionWithDefaults() *AttributeDefinition { // GetName returns the Name field value if set, zero value otherwise. func (o *AttributeDefinition) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -77,7 +77,7 @@ func (o *AttributeDefinition) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AttributeDefinition) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -85,7 +85,7 @@ func (o *AttributeDefinition) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AttributeDefinition) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -99,7 +99,7 @@ func (o *AttributeDefinition) SetName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *AttributeDefinition) GetType() AttributeDefinitionType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret AttributeDefinitionType return ret } @@ -109,7 +109,7 @@ func (o *AttributeDefinition) GetType() AttributeDefinitionType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AttributeDefinition) GetTypeOk() (*AttributeDefinitionType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -117,7 +117,7 @@ func (o *AttributeDefinition) GetTypeOk() (*AttributeDefinitionType, bool) { // HasType returns a boolean if a field has been set. func (o *AttributeDefinition) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -131,7 +131,7 @@ func (o *AttributeDefinition) SetType(v AttributeDefinitionType) { // GetSchema returns the Schema field value if set, zero value otherwise. func (o *AttributeDefinition) GetSchema() AttributeDefinitionSchema { - if o == nil || isNil(o.Schema) { + if o == nil || IsNil(o.Schema) { var ret AttributeDefinitionSchema return ret } @@ -141,7 +141,7 @@ func (o *AttributeDefinition) GetSchema() AttributeDefinitionSchema { // GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AttributeDefinition) GetSchemaOk() (*AttributeDefinitionSchema, bool) { - if o == nil || isNil(o.Schema) { + if o == nil || IsNil(o.Schema) { return nil, false } return o.Schema, true @@ -149,7 +149,7 @@ func (o *AttributeDefinition) GetSchemaOk() (*AttributeDefinitionSchema, bool) { // HasSchema returns a boolean if a field has been set. func (o *AttributeDefinition) HasSchema() bool { - if o != nil && !isNil(o.Schema) { + if o != nil && !IsNil(o.Schema) { return true } @@ -163,7 +163,7 @@ func (o *AttributeDefinition) SetSchema(v AttributeDefinitionSchema) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *AttributeDefinition) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -173,7 +173,7 @@ func (o *AttributeDefinition) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AttributeDefinition) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -181,7 +181,7 @@ func (o *AttributeDefinition) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *AttributeDefinition) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -195,7 +195,7 @@ func (o *AttributeDefinition) SetDescription(v string) { // GetIsMulti returns the IsMulti field value if set, zero value otherwise. func (o *AttributeDefinition) GetIsMulti() bool { - if o == nil || isNil(o.IsMulti) { + if o == nil || IsNil(o.IsMulti) { var ret bool return ret } @@ -205,7 +205,7 @@ func (o *AttributeDefinition) GetIsMulti() bool { // GetIsMultiOk returns a tuple with the IsMulti field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AttributeDefinition) GetIsMultiOk() (*bool, bool) { - if o == nil || isNil(o.IsMulti) { + if o == nil || IsNil(o.IsMulti) { return nil, false } return o.IsMulti, true @@ -213,7 +213,7 @@ func (o *AttributeDefinition) GetIsMultiOk() (*bool, bool) { // HasIsMulti returns a boolean if a field has been set. func (o *AttributeDefinition) HasIsMulti() bool { - if o != nil && !isNil(o.IsMulti) { + if o != nil && !IsNil(o.IsMulti) { return true } @@ -227,7 +227,7 @@ func (o *AttributeDefinition) SetIsMulti(v bool) { // GetIsEntitlement returns the IsEntitlement field value if set, zero value otherwise. func (o *AttributeDefinition) GetIsEntitlement() bool { - if o == nil || isNil(o.IsEntitlement) { + if o == nil || IsNil(o.IsEntitlement) { var ret bool return ret } @@ -237,7 +237,7 @@ func (o *AttributeDefinition) GetIsEntitlement() bool { // GetIsEntitlementOk returns a tuple with the IsEntitlement field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AttributeDefinition) GetIsEntitlementOk() (*bool, bool) { - if o == nil || isNil(o.IsEntitlement) { + if o == nil || IsNil(o.IsEntitlement) { return nil, false } return o.IsEntitlement, true @@ -245,7 +245,7 @@ func (o *AttributeDefinition) GetIsEntitlementOk() (*bool, bool) { // HasIsEntitlement returns a boolean if a field has been set. func (o *AttributeDefinition) HasIsEntitlement() bool { - if o != nil && !isNil(o.IsEntitlement) { + if o != nil && !IsNil(o.IsEntitlement) { return true } @@ -259,7 +259,7 @@ func (o *AttributeDefinition) SetIsEntitlement(v bool) { // GetIsGroup returns the IsGroup field value if set, zero value otherwise. func (o *AttributeDefinition) GetIsGroup() bool { - if o == nil || isNil(o.IsGroup) { + if o == nil || IsNil(o.IsGroup) { var ret bool return ret } @@ -269,7 +269,7 @@ func (o *AttributeDefinition) GetIsGroup() bool { // GetIsGroupOk returns a tuple with the IsGroup field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AttributeDefinition) GetIsGroupOk() (*bool, bool) { - if o == nil || isNil(o.IsGroup) { + if o == nil || IsNil(o.IsGroup) { return nil, false } return o.IsGroup, true @@ -277,7 +277,7 @@ func (o *AttributeDefinition) GetIsGroupOk() (*bool, bool) { // HasIsGroup returns a boolean if a field has been set. func (o *AttributeDefinition) HasIsGroup() bool { - if o != nil && !isNil(o.IsGroup) { + if o != nil && !IsNil(o.IsGroup) { return true } @@ -299,25 +299,25 @@ func (o AttributeDefinition) MarshalJSON() ([]byte, error) { func (o AttributeDefinition) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Schema) { + if !IsNil(o.Schema) { toSerialize["schema"] = o.Schema } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.IsMulti) { + if !IsNil(o.IsMulti) { toSerialize["isMulti"] = o.IsMulti } - if !isNil(o.IsEntitlement) { + if !IsNil(o.IsEntitlement) { toSerialize["isEntitlement"] = o.IsEntitlement } - if !isNil(o.IsGroup) { + if !IsNil(o.IsGroup) { toSerialize["isGroup"] = o.IsGroup } @@ -328,16 +328,20 @@ func (o AttributeDefinition) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AttributeDefinition) UnmarshalJSON(bytes []byte) (err error) { +func (o *AttributeDefinition) UnmarshalJSON(data []byte) (err error) { varAttributeDefinition := _AttributeDefinition{} - if err = json.Unmarshal(bytes, &varAttributeDefinition); err == nil { + err = json.Unmarshal(data, &varAttributeDefinition) + + if err != nil { + return err + } + *o = AttributeDefinition(varAttributeDefinition) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "type") delete(additionalProperties, "schema") diff --git a/api_v3/model_attribute_definition_schema.go b/api_v3/model_attribute_definition_schema.go index fe6c8c139..8239dd14f 100644 --- a/api_v3/model_attribute_definition_schema.go +++ b/api_v3/model_attribute_definition_schema.go @@ -49,7 +49,7 @@ func NewAttributeDefinitionSchemaWithDefaults() *AttributeDefinitionSchema { // GetType returns the Type field value if set, zero value otherwise. func (o *AttributeDefinitionSchema) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *AttributeDefinitionSchema) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AttributeDefinitionSchema) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *AttributeDefinitionSchema) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *AttributeDefinitionSchema) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *AttributeDefinitionSchema) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *AttributeDefinitionSchema) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *AttributeDefinitionSchema) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AttributeDefinitionSchema) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *AttributeDefinitionSchema) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AttributeDefinitionSchema) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *AttributeDefinitionSchema) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *AttributeDefinitionSchema) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *AttributeDefinitionSchema) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AttributeDefinitionSchema) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *AttributeDefinitionSchema) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AttributeDefinitionSchema) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o AttributeDefinitionSchema) MarshalJSON() ([]byte, error) { func (o AttributeDefinitionSchema) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o AttributeDefinitionSchema) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AttributeDefinitionSchema) UnmarshalJSON(bytes []byte) (err error) { +func (o *AttributeDefinitionSchema) UnmarshalJSON(data []byte) (err error) { varAttributeDefinitionSchema := _AttributeDefinitionSchema{} - if err = json.Unmarshal(bytes, &varAttributeDefinitionSchema); err == nil { + err = json.Unmarshal(data, &varAttributeDefinitionSchema) + + if err != nil { + return err + } + *o = AttributeDefinitionSchema(varAttributeDefinitionSchema) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_attribute_request.go b/api_v3/model_attribute_request.go index f830b8aa2..f9b66e660 100644 --- a/api_v3/model_attribute_request.go +++ b/api_v3/model_attribute_request.go @@ -49,7 +49,7 @@ func NewAttributeRequestWithDefaults() *AttributeRequest { // GetName returns the Name field value if set, zero value otherwise. func (o *AttributeRequest) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *AttributeRequest) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AttributeRequest) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -67,7 +67,7 @@ func (o *AttributeRequest) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AttributeRequest) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -81,7 +81,7 @@ func (o *AttributeRequest) SetName(v string) { // GetOp returns the Op field value if set, zero value otherwise. func (o *AttributeRequest) GetOp() string { - if o == nil || isNil(o.Op) { + if o == nil || IsNil(o.Op) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *AttributeRequest) GetOp() string { // GetOpOk returns a tuple with the Op field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AttributeRequest) GetOpOk() (*string, bool) { - if o == nil || isNil(o.Op) { + if o == nil || IsNil(o.Op) { return nil, false } return o.Op, true @@ -99,7 +99,7 @@ func (o *AttributeRequest) GetOpOk() (*string, bool) { // HasOp returns a boolean if a field has been set. func (o *AttributeRequest) HasOp() bool { - if o != nil && !isNil(o.Op) { + if o != nil && !IsNil(o.Op) { return true } @@ -113,7 +113,7 @@ func (o *AttributeRequest) SetOp(v string) { // GetValue returns the Value field value if set, zero value otherwise. func (o *AttributeRequest) GetValue() string { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *AttributeRequest) GetValue() string { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AttributeRequest) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { return nil, false } return o.Value, true @@ -131,7 +131,7 @@ func (o *AttributeRequest) GetValueOk() (*string, bool) { // HasValue returns a boolean if a field has been set. func (o *AttributeRequest) HasValue() bool { - if o != nil && !isNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -153,13 +153,13 @@ func (o AttributeRequest) MarshalJSON() ([]byte, error) { func (o AttributeRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Op) { + if !IsNil(o.Op) { toSerialize["op"] = o.Op } - if !isNil(o.Value) { + if !IsNil(o.Value) { toSerialize["value"] = o.Value } @@ -170,16 +170,20 @@ func (o AttributeRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AttributeRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *AttributeRequest) UnmarshalJSON(data []byte) (err error) { varAttributeRequest := _AttributeRequest{} - if err = json.Unmarshal(bytes, &varAttributeRequest); err == nil { + err = json.Unmarshal(data, &varAttributeRequest) + + if err != nil { + return err + } + *o = AttributeRequest(varAttributeRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "op") delete(additionalProperties, "value") diff --git a/api_v3/model_auth_user.go b/api_v3/model_auth_user.go index f736ca45d..79c7dce3d 100644 --- a/api_v3/model_auth_user.go +++ b/api_v3/model_auth_user.go @@ -77,7 +77,7 @@ func NewAuthUserWithDefaults() *AuthUser { // GetTenant returns the Tenant field value if set, zero value otherwise. func (o *AuthUser) GetTenant() string { - if o == nil || isNil(o.Tenant) { + if o == nil || IsNil(o.Tenant) { var ret string return ret } @@ -87,7 +87,7 @@ func (o *AuthUser) GetTenant() string { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AuthUser) GetTenantOk() (*string, bool) { - if o == nil || isNil(o.Tenant) { + if o == nil || IsNil(o.Tenant) { return nil, false } return o.Tenant, true @@ -95,7 +95,7 @@ func (o *AuthUser) GetTenantOk() (*string, bool) { // HasTenant returns a boolean if a field has been set. func (o *AuthUser) HasTenant() bool { - if o != nil && !isNil(o.Tenant) { + if o != nil && !IsNil(o.Tenant) { return true } @@ -109,7 +109,7 @@ func (o *AuthUser) SetTenant(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *AuthUser) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -119,7 +119,7 @@ func (o *AuthUser) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AuthUser) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -127,7 +127,7 @@ func (o *AuthUser) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *AuthUser) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -141,7 +141,7 @@ func (o *AuthUser) SetId(v string) { // GetUid returns the Uid field value if set, zero value otherwise. func (o *AuthUser) GetUid() string { - if o == nil || isNil(o.Uid) { + if o == nil || IsNil(o.Uid) { var ret string return ret } @@ -151,7 +151,7 @@ func (o *AuthUser) GetUid() string { // GetUidOk returns a tuple with the Uid field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AuthUser) GetUidOk() (*string, bool) { - if o == nil || isNil(o.Uid) { + if o == nil || IsNil(o.Uid) { return nil, false } return o.Uid, true @@ -159,7 +159,7 @@ func (o *AuthUser) GetUidOk() (*string, bool) { // HasUid returns a boolean if a field has been set. func (o *AuthUser) HasUid() bool { - if o != nil && !isNil(o.Uid) { + if o != nil && !IsNil(o.Uid) { return true } @@ -173,7 +173,7 @@ func (o *AuthUser) SetUid(v string) { // GetProfile returns the Profile field value if set, zero value otherwise. func (o *AuthUser) GetProfile() string { - if o == nil || isNil(o.Profile) { + if o == nil || IsNil(o.Profile) { var ret string return ret } @@ -183,7 +183,7 @@ func (o *AuthUser) GetProfile() string { // GetProfileOk returns a tuple with the Profile field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AuthUser) GetProfileOk() (*string, bool) { - if o == nil || isNil(o.Profile) { + if o == nil || IsNil(o.Profile) { return nil, false } return o.Profile, true @@ -191,7 +191,7 @@ func (o *AuthUser) GetProfileOk() (*string, bool) { // HasProfile returns a boolean if a field has been set. func (o *AuthUser) HasProfile() bool { - if o != nil && !isNil(o.Profile) { + if o != nil && !IsNil(o.Profile) { return true } @@ -205,7 +205,7 @@ func (o *AuthUser) SetProfile(v string) { // GetIdentificationNumber returns the IdentificationNumber field value if set, zero value otherwise. func (o *AuthUser) GetIdentificationNumber() string { - if o == nil || isNil(o.IdentificationNumber) { + if o == nil || IsNil(o.IdentificationNumber) { var ret string return ret } @@ -215,7 +215,7 @@ func (o *AuthUser) GetIdentificationNumber() string { // GetIdentificationNumberOk returns a tuple with the IdentificationNumber field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AuthUser) GetIdentificationNumberOk() (*string, bool) { - if o == nil || isNil(o.IdentificationNumber) { + if o == nil || IsNil(o.IdentificationNumber) { return nil, false } return o.IdentificationNumber, true @@ -223,7 +223,7 @@ func (o *AuthUser) GetIdentificationNumberOk() (*string, bool) { // HasIdentificationNumber returns a boolean if a field has been set. func (o *AuthUser) HasIdentificationNumber() bool { - if o != nil && !isNil(o.IdentificationNumber) { + if o != nil && !IsNil(o.IdentificationNumber) { return true } @@ -237,7 +237,7 @@ func (o *AuthUser) SetIdentificationNumber(v string) { // GetEmail returns the Email field value if set, zero value otherwise. func (o *AuthUser) GetEmail() string { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { var ret string return ret } @@ -247,7 +247,7 @@ func (o *AuthUser) GetEmail() string { // GetEmailOk returns a tuple with the Email field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AuthUser) GetEmailOk() (*string, bool) { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { return nil, false } return o.Email, true @@ -255,7 +255,7 @@ func (o *AuthUser) GetEmailOk() (*string, bool) { // HasEmail returns a boolean if a field has been set. func (o *AuthUser) HasEmail() bool { - if o != nil && !isNil(o.Email) { + if o != nil && !IsNil(o.Email) { return true } @@ -269,7 +269,7 @@ func (o *AuthUser) SetEmail(v string) { // GetPhone returns the Phone field value if set, zero value otherwise. func (o *AuthUser) GetPhone() string { - if o == nil || isNil(o.Phone) { + if o == nil || IsNil(o.Phone) { var ret string return ret } @@ -279,7 +279,7 @@ func (o *AuthUser) GetPhone() string { // GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AuthUser) GetPhoneOk() (*string, bool) { - if o == nil || isNil(o.Phone) { + if o == nil || IsNil(o.Phone) { return nil, false } return o.Phone, true @@ -287,7 +287,7 @@ func (o *AuthUser) GetPhoneOk() (*string, bool) { // HasPhone returns a boolean if a field has been set. func (o *AuthUser) HasPhone() bool { - if o != nil && !isNil(o.Phone) { + if o != nil && !IsNil(o.Phone) { return true } @@ -301,7 +301,7 @@ func (o *AuthUser) SetPhone(v string) { // GetWorkPhone returns the WorkPhone field value if set, zero value otherwise. func (o *AuthUser) GetWorkPhone() string { - if o == nil || isNil(o.WorkPhone) { + if o == nil || IsNil(o.WorkPhone) { var ret string return ret } @@ -311,7 +311,7 @@ func (o *AuthUser) GetWorkPhone() string { // GetWorkPhoneOk returns a tuple with the WorkPhone field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AuthUser) GetWorkPhoneOk() (*string, bool) { - if o == nil || isNil(o.WorkPhone) { + if o == nil || IsNil(o.WorkPhone) { return nil, false } return o.WorkPhone, true @@ -319,7 +319,7 @@ func (o *AuthUser) GetWorkPhoneOk() (*string, bool) { // HasWorkPhone returns a boolean if a field has been set. func (o *AuthUser) HasWorkPhone() bool { - if o != nil && !isNil(o.WorkPhone) { + if o != nil && !IsNil(o.WorkPhone) { return true } @@ -333,7 +333,7 @@ func (o *AuthUser) SetWorkPhone(v string) { // GetPersonalEmail returns the PersonalEmail field value if set, zero value otherwise. func (o *AuthUser) GetPersonalEmail() string { - if o == nil || isNil(o.PersonalEmail) { + if o == nil || IsNil(o.PersonalEmail) { var ret string return ret } @@ -343,7 +343,7 @@ func (o *AuthUser) GetPersonalEmail() string { // GetPersonalEmailOk returns a tuple with the PersonalEmail field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AuthUser) GetPersonalEmailOk() (*string, bool) { - if o == nil || isNil(o.PersonalEmail) { + if o == nil || IsNil(o.PersonalEmail) { return nil, false } return o.PersonalEmail, true @@ -351,7 +351,7 @@ func (o *AuthUser) GetPersonalEmailOk() (*string, bool) { // HasPersonalEmail returns a boolean if a field has been set. func (o *AuthUser) HasPersonalEmail() bool { - if o != nil && !isNil(o.PersonalEmail) { + if o != nil && !IsNil(o.PersonalEmail) { return true } @@ -365,7 +365,7 @@ func (o *AuthUser) SetPersonalEmail(v string) { // GetFirstname returns the Firstname field value if set, zero value otherwise. func (o *AuthUser) GetFirstname() string { - if o == nil || isNil(o.Firstname) { + if o == nil || IsNil(o.Firstname) { var ret string return ret } @@ -375,7 +375,7 @@ func (o *AuthUser) GetFirstname() string { // GetFirstnameOk returns a tuple with the Firstname field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AuthUser) GetFirstnameOk() (*string, bool) { - if o == nil || isNil(o.Firstname) { + if o == nil || IsNil(o.Firstname) { return nil, false } return o.Firstname, true @@ -383,7 +383,7 @@ func (o *AuthUser) GetFirstnameOk() (*string, bool) { // HasFirstname returns a boolean if a field has been set. func (o *AuthUser) HasFirstname() bool { - if o != nil && !isNil(o.Firstname) { + if o != nil && !IsNil(o.Firstname) { return true } @@ -397,7 +397,7 @@ func (o *AuthUser) SetFirstname(v string) { // GetLastname returns the Lastname field value if set, zero value otherwise. func (o *AuthUser) GetLastname() string { - if o == nil || isNil(o.Lastname) { + if o == nil || IsNil(o.Lastname) { var ret string return ret } @@ -407,7 +407,7 @@ func (o *AuthUser) GetLastname() string { // GetLastnameOk returns a tuple with the Lastname field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AuthUser) GetLastnameOk() (*string, bool) { - if o == nil || isNil(o.Lastname) { + if o == nil || IsNil(o.Lastname) { return nil, false } return o.Lastname, true @@ -415,7 +415,7 @@ func (o *AuthUser) GetLastnameOk() (*string, bool) { // HasLastname returns a boolean if a field has been set. func (o *AuthUser) HasLastname() bool { - if o != nil && !isNil(o.Lastname) { + if o != nil && !IsNil(o.Lastname) { return true } @@ -429,7 +429,7 @@ func (o *AuthUser) SetLastname(v string) { // GetDisplayName returns the DisplayName field value if set, zero value otherwise. func (o *AuthUser) GetDisplayName() string { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { var ret string return ret } @@ -439,7 +439,7 @@ func (o *AuthUser) GetDisplayName() string { // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AuthUser) GetDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { return nil, false } return o.DisplayName, true @@ -447,7 +447,7 @@ func (o *AuthUser) GetDisplayNameOk() (*string, bool) { // HasDisplayName returns a boolean if a field has been set. func (o *AuthUser) HasDisplayName() bool { - if o != nil && !isNil(o.DisplayName) { + if o != nil && !IsNil(o.DisplayName) { return true } @@ -461,7 +461,7 @@ func (o *AuthUser) SetDisplayName(v string) { // GetAlias returns the Alias field value if set, zero value otherwise. func (o *AuthUser) GetAlias() string { - if o == nil || isNil(o.Alias) { + if o == nil || IsNil(o.Alias) { var ret string return ret } @@ -471,7 +471,7 @@ func (o *AuthUser) GetAlias() string { // GetAliasOk returns a tuple with the Alias field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AuthUser) GetAliasOk() (*string, bool) { - if o == nil || isNil(o.Alias) { + if o == nil || IsNil(o.Alias) { return nil, false } return o.Alias, true @@ -479,7 +479,7 @@ func (o *AuthUser) GetAliasOk() (*string, bool) { // HasAlias returns a boolean if a field has been set. func (o *AuthUser) HasAlias() bool { - if o != nil && !isNil(o.Alias) { + if o != nil && !IsNil(o.Alias) { return true } @@ -493,7 +493,7 @@ func (o *AuthUser) SetAlias(v string) { // GetLastPasswordChangeDate returns the LastPasswordChangeDate field value if set, zero value otherwise. func (o *AuthUser) GetLastPasswordChangeDate() string { - if o == nil || isNil(o.LastPasswordChangeDate) { + if o == nil || IsNil(o.LastPasswordChangeDate) { var ret string return ret } @@ -503,7 +503,7 @@ func (o *AuthUser) GetLastPasswordChangeDate() string { // GetLastPasswordChangeDateOk returns a tuple with the LastPasswordChangeDate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AuthUser) GetLastPasswordChangeDateOk() (*string, bool) { - if o == nil || isNil(o.LastPasswordChangeDate) { + if o == nil || IsNil(o.LastPasswordChangeDate) { return nil, false } return o.LastPasswordChangeDate, true @@ -511,7 +511,7 @@ func (o *AuthUser) GetLastPasswordChangeDateOk() (*string, bool) { // HasLastPasswordChangeDate returns a boolean if a field has been set. func (o *AuthUser) HasLastPasswordChangeDate() bool { - if o != nil && !isNil(o.LastPasswordChangeDate) { + if o != nil && !IsNil(o.LastPasswordChangeDate) { return true } @@ -525,7 +525,7 @@ func (o *AuthUser) SetLastPasswordChangeDate(v string) { // GetLastLoginTimestamp returns the LastLoginTimestamp field value if set, zero value otherwise. func (o *AuthUser) GetLastLoginTimestamp() int64 { - if o == nil || isNil(o.LastLoginTimestamp) { + if o == nil || IsNil(o.LastLoginTimestamp) { var ret int64 return ret } @@ -535,7 +535,7 @@ func (o *AuthUser) GetLastLoginTimestamp() int64 { // GetLastLoginTimestampOk returns a tuple with the LastLoginTimestamp field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AuthUser) GetLastLoginTimestampOk() (*int64, bool) { - if o == nil || isNil(o.LastLoginTimestamp) { + if o == nil || IsNil(o.LastLoginTimestamp) { return nil, false } return o.LastLoginTimestamp, true @@ -543,7 +543,7 @@ func (o *AuthUser) GetLastLoginTimestampOk() (*int64, bool) { // HasLastLoginTimestamp returns a boolean if a field has been set. func (o *AuthUser) HasLastLoginTimestamp() bool { - if o != nil && !isNil(o.LastLoginTimestamp) { + if o != nil && !IsNil(o.LastLoginTimestamp) { return true } @@ -557,7 +557,7 @@ func (o *AuthUser) SetLastLoginTimestamp(v int64) { // GetCurrentLoginTimestamp returns the CurrentLoginTimestamp field value if set, zero value otherwise. func (o *AuthUser) GetCurrentLoginTimestamp() int64 { - if o == nil || isNil(o.CurrentLoginTimestamp) { + if o == nil || IsNil(o.CurrentLoginTimestamp) { var ret int64 return ret } @@ -567,7 +567,7 @@ func (o *AuthUser) GetCurrentLoginTimestamp() int64 { // GetCurrentLoginTimestampOk returns a tuple with the CurrentLoginTimestamp field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AuthUser) GetCurrentLoginTimestampOk() (*int64, bool) { - if o == nil || isNil(o.CurrentLoginTimestamp) { + if o == nil || IsNil(o.CurrentLoginTimestamp) { return nil, false } return o.CurrentLoginTimestamp, true @@ -575,7 +575,7 @@ func (o *AuthUser) GetCurrentLoginTimestampOk() (*int64, bool) { // HasCurrentLoginTimestamp returns a boolean if a field has been set. func (o *AuthUser) HasCurrentLoginTimestamp() bool { - if o != nil && !isNil(o.CurrentLoginTimestamp) { + if o != nil && !IsNil(o.CurrentLoginTimestamp) { return true } @@ -589,7 +589,7 @@ func (o *AuthUser) SetCurrentLoginTimestamp(v int64) { // GetCapabilities returns the Capabilities field value if set, zero value otherwise. func (o *AuthUser) GetCapabilities() []string { - if o == nil || isNil(o.Capabilities) { + if o == nil || IsNil(o.Capabilities) { var ret []string return ret } @@ -599,7 +599,7 @@ func (o *AuthUser) GetCapabilities() []string { // GetCapabilitiesOk returns a tuple with the Capabilities field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *AuthUser) GetCapabilitiesOk() ([]string, bool) { - if o == nil || isNil(o.Capabilities) { + if o == nil || IsNil(o.Capabilities) { return nil, false } return o.Capabilities, true @@ -607,7 +607,7 @@ func (o *AuthUser) GetCapabilitiesOk() ([]string, bool) { // HasCapabilities returns a boolean if a field has been set. func (o *AuthUser) HasCapabilities() bool { - if o != nil && !isNil(o.Capabilities) { + if o != nil && !IsNil(o.Capabilities) { return true } @@ -629,55 +629,55 @@ func (o AuthUser) MarshalJSON() ([]byte, error) { func (o AuthUser) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Tenant) { + if !IsNil(o.Tenant) { toSerialize["tenant"] = o.Tenant } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Uid) { + if !IsNil(o.Uid) { toSerialize["uid"] = o.Uid } - if !isNil(o.Profile) { + if !IsNil(o.Profile) { toSerialize["profile"] = o.Profile } - if !isNil(o.IdentificationNumber) { + if !IsNil(o.IdentificationNumber) { toSerialize["identificationNumber"] = o.IdentificationNumber } - if !isNil(o.Email) { + if !IsNil(o.Email) { toSerialize["email"] = o.Email } - if !isNil(o.Phone) { + if !IsNil(o.Phone) { toSerialize["phone"] = o.Phone } - if !isNil(o.WorkPhone) { + if !IsNil(o.WorkPhone) { toSerialize["workPhone"] = o.WorkPhone } - if !isNil(o.PersonalEmail) { + if !IsNil(o.PersonalEmail) { toSerialize["personalEmail"] = o.PersonalEmail } - if !isNil(o.Firstname) { + if !IsNil(o.Firstname) { toSerialize["firstname"] = o.Firstname } - if !isNil(o.Lastname) { + if !IsNil(o.Lastname) { toSerialize["lastname"] = o.Lastname } - if !isNil(o.DisplayName) { + if !IsNil(o.DisplayName) { toSerialize["displayName"] = o.DisplayName } - if !isNil(o.Alias) { + if !IsNil(o.Alias) { toSerialize["alias"] = o.Alias } - if !isNil(o.LastPasswordChangeDate) { + if !IsNil(o.LastPasswordChangeDate) { toSerialize["lastPasswordChangeDate"] = o.LastPasswordChangeDate } - if !isNil(o.LastLoginTimestamp) { + if !IsNil(o.LastLoginTimestamp) { toSerialize["lastLoginTimestamp"] = o.LastLoginTimestamp } - if !isNil(o.CurrentLoginTimestamp) { + if !IsNil(o.CurrentLoginTimestamp) { toSerialize["currentLoginTimestamp"] = o.CurrentLoginTimestamp } - if !isNil(o.Capabilities) { + if !IsNil(o.Capabilities) { toSerialize["capabilities"] = o.Capabilities } @@ -688,16 +688,20 @@ func (o AuthUser) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *AuthUser) UnmarshalJSON(bytes []byte) (err error) { +func (o *AuthUser) UnmarshalJSON(data []byte) (err error) { varAuthUser := _AuthUser{} - if err = json.Unmarshal(bytes, &varAuthUser); err == nil { + err = json.Unmarshal(data, &varAuthUser) + + if err != nil { + return err + } + *o = AuthUser(varAuthUser) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "tenant") delete(additionalProperties, "id") delete(additionalProperties, "uid") diff --git a/api_v3/model_base_access.go b/api_v3/model_base_access.go index 7159dd107..b4563509f 100644 --- a/api_v3/model_base_access.go +++ b/api_v3/model_base_access.go @@ -75,7 +75,7 @@ func NewBaseAccessWithDefaults() *BaseAccess { // GetId returns the Id field value if set, zero value otherwise. func (o *BaseAccess) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -85,7 +85,7 @@ func (o *BaseAccess) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccess) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -93,7 +93,7 @@ func (o *BaseAccess) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *BaseAccess) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -107,7 +107,7 @@ func (o *BaseAccess) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *BaseAccess) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -117,7 +117,7 @@ func (o *BaseAccess) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccess) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -125,7 +125,7 @@ func (o *BaseAccess) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *BaseAccess) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -139,7 +139,7 @@ func (o *BaseAccess) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *BaseAccess) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -149,7 +149,7 @@ func (o *BaseAccess) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccess) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -157,7 +157,7 @@ func (o *BaseAccess) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *BaseAccess) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -171,7 +171,7 @@ func (o *BaseAccess) SetDescription(v string) { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BaseAccess) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -213,7 +213,7 @@ func (o *BaseAccess) UnsetCreated() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BaseAccess) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -255,7 +255,7 @@ func (o *BaseAccess) UnsetModified() { // GetSynced returns the Synced field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BaseAccess) GetSynced() time.Time { - if o == nil || isNil(o.Synced.Get()) { + if o == nil || IsNil(o.Synced.Get()) { var ret time.Time return ret } @@ -297,7 +297,7 @@ func (o *BaseAccess) UnsetSynced() { // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *BaseAccess) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -307,7 +307,7 @@ func (o *BaseAccess) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccess) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -315,7 +315,7 @@ func (o *BaseAccess) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *BaseAccess) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -329,7 +329,7 @@ func (o *BaseAccess) SetEnabled(v bool) { // GetRequestable returns the Requestable field value if set, zero value otherwise. func (o *BaseAccess) GetRequestable() bool { - if o == nil || isNil(o.Requestable) { + if o == nil || IsNil(o.Requestable) { var ret bool return ret } @@ -339,7 +339,7 @@ func (o *BaseAccess) GetRequestable() bool { // GetRequestableOk returns a tuple with the Requestable field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccess) GetRequestableOk() (*bool, bool) { - if o == nil || isNil(o.Requestable) { + if o == nil || IsNil(o.Requestable) { return nil, false } return o.Requestable, true @@ -347,7 +347,7 @@ func (o *BaseAccess) GetRequestableOk() (*bool, bool) { // HasRequestable returns a boolean if a field has been set. func (o *BaseAccess) HasRequestable() bool { - if o != nil && !isNil(o.Requestable) { + if o != nil && !IsNil(o.Requestable) { return true } @@ -361,7 +361,7 @@ func (o *BaseAccess) SetRequestable(v bool) { // GetRequestCommentsRequired returns the RequestCommentsRequired field value if set, zero value otherwise. func (o *BaseAccess) GetRequestCommentsRequired() bool { - if o == nil || isNil(o.RequestCommentsRequired) { + if o == nil || IsNil(o.RequestCommentsRequired) { var ret bool return ret } @@ -371,7 +371,7 @@ func (o *BaseAccess) GetRequestCommentsRequired() bool { // GetRequestCommentsRequiredOk returns a tuple with the RequestCommentsRequired field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccess) GetRequestCommentsRequiredOk() (*bool, bool) { - if o == nil || isNil(o.RequestCommentsRequired) { + if o == nil || IsNil(o.RequestCommentsRequired) { return nil, false } return o.RequestCommentsRequired, true @@ -379,7 +379,7 @@ func (o *BaseAccess) GetRequestCommentsRequiredOk() (*bool, bool) { // HasRequestCommentsRequired returns a boolean if a field has been set. func (o *BaseAccess) HasRequestCommentsRequired() bool { - if o != nil && !isNil(o.RequestCommentsRequired) { + if o != nil && !IsNil(o.RequestCommentsRequired) { return true } @@ -393,7 +393,7 @@ func (o *BaseAccess) SetRequestCommentsRequired(v bool) { // GetOwner returns the Owner field value if set, zero value otherwise. func (o *BaseAccess) GetOwner() BaseAccessAllOfOwner { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { var ret BaseAccessAllOfOwner return ret } @@ -403,7 +403,7 @@ func (o *BaseAccess) GetOwner() BaseAccessAllOfOwner { // GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccess) GetOwnerOk() (*BaseAccessAllOfOwner, bool) { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { return nil, false } return o.Owner, true @@ -411,7 +411,7 @@ func (o *BaseAccess) GetOwnerOk() (*BaseAccessAllOfOwner, bool) { // HasOwner returns a boolean if a field has been set. func (o *BaseAccess) HasOwner() bool { - if o != nil && !isNil(o.Owner) { + if o != nil && !IsNil(o.Owner) { return true } @@ -433,13 +433,13 @@ func (o BaseAccess) MarshalJSON() ([]byte, error) { func (o BaseAccess) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } if o.Created.IsSet() { @@ -451,16 +451,16 @@ func (o BaseAccess) ToMap() (map[string]interface{}, error) { if o.Synced.IsSet() { toSerialize["synced"] = o.Synced.Get() } - if !isNil(o.Enabled) { + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - if !isNil(o.Requestable) { + if !IsNil(o.Requestable) { toSerialize["requestable"] = o.Requestable } - if !isNil(o.RequestCommentsRequired) { + if !IsNil(o.RequestCommentsRequired) { toSerialize["requestCommentsRequired"] = o.RequestCommentsRequired } - if !isNil(o.Owner) { + if !IsNil(o.Owner) { toSerialize["owner"] = o.Owner } @@ -471,16 +471,20 @@ func (o BaseAccess) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BaseAccess) UnmarshalJSON(bytes []byte) (err error) { +func (o *BaseAccess) UnmarshalJSON(data []byte) (err error) { varBaseAccess := _BaseAccess{} - if err = json.Unmarshal(bytes, &varBaseAccess); err == nil { + err = json.Unmarshal(data, &varBaseAccess) + + if err != nil { + return err + } + *o = BaseAccess(varBaseAccess) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/api_v3/model_base_access_all_of_owner.go b/api_v3/model_base_access_all_of_owner.go index d24fabc30..05813ebdf 100644 --- a/api_v3/model_base_access_all_of_owner.go +++ b/api_v3/model_base_access_all_of_owner.go @@ -51,7 +51,7 @@ func NewBaseAccessAllOfOwnerWithDefaults() *BaseAccessAllOfOwner { // GetType returns the Type field value if set, zero value otherwise. func (o *BaseAccessAllOfOwner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -61,7 +61,7 @@ func (o *BaseAccessAllOfOwner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccessAllOfOwner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -69,7 +69,7 @@ func (o *BaseAccessAllOfOwner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *BaseAccessAllOfOwner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -83,7 +83,7 @@ func (o *BaseAccessAllOfOwner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *BaseAccessAllOfOwner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -93,7 +93,7 @@ func (o *BaseAccessAllOfOwner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccessAllOfOwner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -101,7 +101,7 @@ func (o *BaseAccessAllOfOwner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *BaseAccessAllOfOwner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -115,7 +115,7 @@ func (o *BaseAccessAllOfOwner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *BaseAccessAllOfOwner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -125,7 +125,7 @@ func (o *BaseAccessAllOfOwner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccessAllOfOwner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -133,7 +133,7 @@ func (o *BaseAccessAllOfOwner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *BaseAccessAllOfOwner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -147,7 +147,7 @@ func (o *BaseAccessAllOfOwner) SetName(v string) { // GetEmail returns the Email field value if set, zero value otherwise. func (o *BaseAccessAllOfOwner) GetEmail() string { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { var ret string return ret } @@ -157,7 +157,7 @@ func (o *BaseAccessAllOfOwner) GetEmail() string { // GetEmailOk returns a tuple with the Email field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccessAllOfOwner) GetEmailOk() (*string, bool) { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { return nil, false } return o.Email, true @@ -165,7 +165,7 @@ func (o *BaseAccessAllOfOwner) GetEmailOk() (*string, bool) { // HasEmail returns a boolean if a field has been set. func (o *BaseAccessAllOfOwner) HasEmail() bool { - if o != nil && !isNil(o.Email) { + if o != nil && !IsNil(o.Email) { return true } @@ -187,16 +187,16 @@ func (o BaseAccessAllOfOwner) MarshalJSON() ([]byte, error) { func (o BaseAccessAllOfOwner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Email) { + if !IsNil(o.Email) { toSerialize["email"] = o.Email } @@ -207,16 +207,20 @@ func (o BaseAccessAllOfOwner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BaseAccessAllOfOwner) UnmarshalJSON(bytes []byte) (err error) { +func (o *BaseAccessAllOfOwner) UnmarshalJSON(data []byte) (err error) { varBaseAccessAllOfOwner := _BaseAccessAllOfOwner{} - if err = json.Unmarshal(bytes, &varBaseAccessAllOfOwner); err == nil { + err = json.Unmarshal(data, &varBaseAccessAllOfOwner) + + if err != nil { + return err + } + *o = BaseAccessAllOfOwner(varBaseAccessAllOfOwner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_base_access_profile.go b/api_v3/model_base_access_profile.go index 9995a2661..f0f747f7a 100644 --- a/api_v3/model_base_access_profile.go +++ b/api_v3/model_base_access_profile.go @@ -47,7 +47,7 @@ func NewBaseAccessProfileWithDefaults() *BaseAccessProfile { // GetId returns the Id field value if set, zero value otherwise. func (o *BaseAccessProfile) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *BaseAccessProfile) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccessProfile) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -65,7 +65,7 @@ func (o *BaseAccessProfile) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *BaseAccessProfile) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -79,7 +79,7 @@ func (o *BaseAccessProfile) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *BaseAccessProfile) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *BaseAccessProfile) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccessProfile) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -97,7 +97,7 @@ func (o *BaseAccessProfile) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *BaseAccessProfile) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -119,10 +119,10 @@ func (o BaseAccessProfile) MarshalJSON() ([]byte, error) { func (o BaseAccessProfile) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -133,16 +133,20 @@ func (o BaseAccessProfile) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BaseAccessProfile) UnmarshalJSON(bytes []byte) (err error) { +func (o *BaseAccessProfile) UnmarshalJSON(data []byte) (err error) { varBaseAccessProfile := _BaseAccessProfile{} - if err = json.Unmarshal(bytes, &varBaseAccessProfile); err == nil { + err = json.Unmarshal(data, &varBaseAccessProfile) + + if err != nil { + return err + } + *o = BaseAccessProfile(varBaseAccessProfile) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_base_account.go b/api_v3/model_base_account.go index 4a2e41a99..21565e586 100644 --- a/api_v3/model_base_account.go +++ b/api_v3/model_base_account.go @@ -81,7 +81,7 @@ func NewBaseAccountWithDefaults() *BaseAccount { // GetId returns the Id field value if set, zero value otherwise. func (o *BaseAccount) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *BaseAccount) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccount) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *BaseAccount) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *BaseAccount) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *BaseAccount) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *BaseAccount) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *BaseAccount) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccount) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *BaseAccount) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *BaseAccount) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -145,7 +145,7 @@ func (o *BaseAccount) SetName(v string) { // GetAccountId returns the AccountId field value if set, zero value otherwise. func (o *BaseAccount) GetAccountId() string { - if o == nil || isNil(o.AccountId) { + if o == nil || IsNil(o.AccountId) { var ret string return ret } @@ -155,7 +155,7 @@ func (o *BaseAccount) GetAccountId() string { // GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccount) GetAccountIdOk() (*string, bool) { - if o == nil || isNil(o.AccountId) { + if o == nil || IsNil(o.AccountId) { return nil, false } return o.AccountId, true @@ -163,7 +163,7 @@ func (o *BaseAccount) GetAccountIdOk() (*string, bool) { // HasAccountId returns a boolean if a field has been set. func (o *BaseAccount) HasAccountId() bool { - if o != nil && !isNil(o.AccountId) { + if o != nil && !IsNil(o.AccountId) { return true } @@ -177,7 +177,7 @@ func (o *BaseAccount) SetAccountId(v string) { // GetSource returns the Source field value if set, zero value otherwise. func (o *BaseAccount) GetSource() AccountSource { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { var ret AccountSource return ret } @@ -187,7 +187,7 @@ func (o *BaseAccount) GetSource() AccountSource { // GetSourceOk returns a tuple with the Source field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccount) GetSourceOk() (*AccountSource, bool) { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { return nil, false } return o.Source, true @@ -195,7 +195,7 @@ func (o *BaseAccount) GetSourceOk() (*AccountSource, bool) { // HasSource returns a boolean if a field has been set. func (o *BaseAccount) HasSource() bool { - if o != nil && !isNil(o.Source) { + if o != nil && !IsNil(o.Source) { return true } @@ -209,7 +209,7 @@ func (o *BaseAccount) SetSource(v AccountSource) { // GetDisabled returns the Disabled field value if set, zero value otherwise. func (o *BaseAccount) GetDisabled() bool { - if o == nil || isNil(o.Disabled) { + if o == nil || IsNil(o.Disabled) { var ret bool return ret } @@ -219,7 +219,7 @@ func (o *BaseAccount) GetDisabled() bool { // GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccount) GetDisabledOk() (*bool, bool) { - if o == nil || isNil(o.Disabled) { + if o == nil || IsNil(o.Disabled) { return nil, false } return o.Disabled, true @@ -227,7 +227,7 @@ func (o *BaseAccount) GetDisabledOk() (*bool, bool) { // HasDisabled returns a boolean if a field has been set. func (o *BaseAccount) HasDisabled() bool { - if o != nil && !isNil(o.Disabled) { + if o != nil && !IsNil(o.Disabled) { return true } @@ -241,7 +241,7 @@ func (o *BaseAccount) SetDisabled(v bool) { // GetLocked returns the Locked field value if set, zero value otherwise. func (o *BaseAccount) GetLocked() bool { - if o == nil || isNil(o.Locked) { + if o == nil || IsNil(o.Locked) { var ret bool return ret } @@ -251,7 +251,7 @@ func (o *BaseAccount) GetLocked() bool { // GetLockedOk returns a tuple with the Locked field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccount) GetLockedOk() (*bool, bool) { - if o == nil || isNil(o.Locked) { + if o == nil || IsNil(o.Locked) { return nil, false } return o.Locked, true @@ -259,7 +259,7 @@ func (o *BaseAccount) GetLockedOk() (*bool, bool) { // HasLocked returns a boolean if a field has been set. func (o *BaseAccount) HasLocked() bool { - if o != nil && !isNil(o.Locked) { + if o != nil && !IsNil(o.Locked) { return true } @@ -273,7 +273,7 @@ func (o *BaseAccount) SetLocked(v bool) { // GetPrivileged returns the Privileged field value if set, zero value otherwise. func (o *BaseAccount) GetPrivileged() bool { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { var ret bool return ret } @@ -283,7 +283,7 @@ func (o *BaseAccount) GetPrivileged() bool { // GetPrivilegedOk returns a tuple with the Privileged field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccount) GetPrivilegedOk() (*bool, bool) { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { return nil, false } return o.Privileged, true @@ -291,7 +291,7 @@ func (o *BaseAccount) GetPrivilegedOk() (*bool, bool) { // HasPrivileged returns a boolean if a field has been set. func (o *BaseAccount) HasPrivileged() bool { - if o != nil && !isNil(o.Privileged) { + if o != nil && !IsNil(o.Privileged) { return true } @@ -305,7 +305,7 @@ func (o *BaseAccount) SetPrivileged(v bool) { // GetManuallyCorrelated returns the ManuallyCorrelated field value if set, zero value otherwise. func (o *BaseAccount) GetManuallyCorrelated() bool { - if o == nil || isNil(o.ManuallyCorrelated) { + if o == nil || IsNil(o.ManuallyCorrelated) { var ret bool return ret } @@ -315,7 +315,7 @@ func (o *BaseAccount) GetManuallyCorrelated() bool { // GetManuallyCorrelatedOk returns a tuple with the ManuallyCorrelated field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseAccount) GetManuallyCorrelatedOk() (*bool, bool) { - if o == nil || isNil(o.ManuallyCorrelated) { + if o == nil || IsNil(o.ManuallyCorrelated) { return nil, false } return o.ManuallyCorrelated, true @@ -323,7 +323,7 @@ func (o *BaseAccount) GetManuallyCorrelatedOk() (*bool, bool) { // HasManuallyCorrelated returns a boolean if a field has been set. func (o *BaseAccount) HasManuallyCorrelated() bool { - if o != nil && !isNil(o.ManuallyCorrelated) { + if o != nil && !IsNil(o.ManuallyCorrelated) { return true } @@ -337,7 +337,7 @@ func (o *BaseAccount) SetManuallyCorrelated(v bool) { // GetPasswordLastSet returns the PasswordLastSet field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BaseAccount) GetPasswordLastSet() time.Time { - if o == nil || isNil(o.PasswordLastSet.Get()) { + if o == nil || IsNil(o.PasswordLastSet.Get()) { var ret time.Time return ret } @@ -390,7 +390,7 @@ func (o *BaseAccount) GetEntitlementAttributes() map[string]interface{} { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BaseAccount) GetEntitlementAttributesOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.EntitlementAttributes) { + if o == nil || IsNil(o.EntitlementAttributes) { return map[string]interface{}{}, false } return o.EntitlementAttributes, true @@ -398,7 +398,7 @@ func (o *BaseAccount) GetEntitlementAttributesOk() (map[string]interface{}, bool // HasEntitlementAttributes returns a boolean if a field has been set. func (o *BaseAccount) HasEntitlementAttributes() bool { - if o != nil && isNil(o.EntitlementAttributes) { + if o != nil && !IsNil(o.EntitlementAttributes) { return true } @@ -412,7 +412,7 @@ func (o *BaseAccount) SetEntitlementAttributes(v map[string]interface{}) { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BaseAccount) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -462,28 +462,28 @@ func (o BaseAccount) MarshalJSON() ([]byte, error) { func (o BaseAccount) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.AccountId) { + if !IsNil(o.AccountId) { toSerialize["accountId"] = o.AccountId } - if !isNil(o.Source) { + if !IsNil(o.Source) { toSerialize["source"] = o.Source } - if !isNil(o.Disabled) { + if !IsNil(o.Disabled) { toSerialize["disabled"] = o.Disabled } - if !isNil(o.Locked) { + if !IsNil(o.Locked) { toSerialize["locked"] = o.Locked } - if !isNil(o.Privileged) { + if !IsNil(o.Privileged) { toSerialize["privileged"] = o.Privileged } - if !isNil(o.ManuallyCorrelated) { + if !IsNil(o.ManuallyCorrelated) { toSerialize["manuallyCorrelated"] = o.ManuallyCorrelated } if o.PasswordLastSet.IsSet() { @@ -503,16 +503,20 @@ func (o BaseAccount) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BaseAccount) UnmarshalJSON(bytes []byte) (err error) { +func (o *BaseAccount) UnmarshalJSON(data []byte) (err error) { varBaseAccount := _BaseAccount{} - if err = json.Unmarshal(bytes, &varBaseAccount); err == nil { + err = json.Unmarshal(data, &varBaseAccount) + + if err != nil { + return err + } + *o = BaseAccount(varBaseAccount) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "accountId") diff --git a/api_v3/model_base_common_dto.go b/api_v3/model_base_common_dto.go index bd5df117d..c367e5705 100644 --- a/api_v3/model_base_common_dto.go +++ b/api_v3/model_base_common_dto.go @@ -54,7 +54,7 @@ func NewBaseCommonDtoWithDefaults() *BaseCommonDto { // GetId returns the Id field value if set, zero value otherwise. func (o *BaseCommonDto) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -64,7 +64,7 @@ func (o *BaseCommonDto) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseCommonDto) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -72,7 +72,7 @@ func (o *BaseCommonDto) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *BaseCommonDto) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -110,7 +110,7 @@ func (o *BaseCommonDto) SetName(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *BaseCommonDto) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -120,7 +120,7 @@ func (o *BaseCommonDto) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseCommonDto) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -128,7 +128,7 @@ func (o *BaseCommonDto) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *BaseCommonDto) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -142,7 +142,7 @@ func (o *BaseCommonDto) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *BaseCommonDto) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -152,7 +152,7 @@ func (o *BaseCommonDto) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseCommonDto) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -160,7 +160,7 @@ func (o *BaseCommonDto) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *BaseCommonDto) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -182,10 +182,16 @@ func (o BaseCommonDto) MarshalJSON() ([]byte, error) { func (o BaseCommonDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } toSerialize["name"] = o.Name - // skip: created is readOnly - // skip: modified is readOnly + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } + if !IsNil(o.Modified) { + toSerialize["modified"] = o.Modified + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -194,8 +200,8 @@ func (o BaseCommonDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BaseCommonDto) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *BaseCommonDto) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -204,7 +210,7 @@ func (o *BaseCommonDto) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -218,13 +224,17 @@ func (o *BaseCommonDto) UnmarshalJSON(bytes []byte) (err error) { varBaseCommonDto := _BaseCommonDto{} - if err = json.Unmarshal(bytes, &varBaseCommonDto); err == nil { + err = json.Unmarshal(data, &varBaseCommonDto) + + if err != nil { + return err + } + *o = BaseCommonDto(varBaseCommonDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "created") diff --git a/api_v3/model_base_document.go b/api_v3/model_base_document.go index 7c025aeb6..089246742 100644 --- a/api_v3/model_base_document.go +++ b/api_v3/model_base_document.go @@ -141,8 +141,8 @@ func (o BaseDocument) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BaseDocument) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *BaseDocument) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -153,7 +153,7 @@ func (o *BaseDocument) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -167,13 +167,17 @@ func (o *BaseDocument) UnmarshalJSON(bytes []byte) (err error) { varBaseDocument := _BaseDocument{} - if err = json.Unmarshal(bytes, &varBaseDocument); err == nil { + err = json.Unmarshal(data, &varBaseDocument) + + if err != nil { + return err + } + *o = BaseDocument(varBaseDocument) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "_type") diff --git a/api_v3/model_base_entitlement.go b/api_v3/model_base_entitlement.go index a1028a35c..db90bccca 100644 --- a/api_v3/model_base_entitlement.go +++ b/api_v3/model_base_entitlement.go @@ -67,7 +67,7 @@ func NewBaseEntitlementWithDefaults() *BaseEntitlement { // GetHasPermissions returns the HasPermissions field value if set, zero value otherwise. func (o *BaseEntitlement) GetHasPermissions() bool { - if o == nil || isNil(o.HasPermissions) { + if o == nil || IsNil(o.HasPermissions) { var ret bool return ret } @@ -77,7 +77,7 @@ func (o *BaseEntitlement) GetHasPermissions() bool { // GetHasPermissionsOk returns a tuple with the HasPermissions field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseEntitlement) GetHasPermissionsOk() (*bool, bool) { - if o == nil || isNil(o.HasPermissions) { + if o == nil || IsNil(o.HasPermissions) { return nil, false } return o.HasPermissions, true @@ -85,7 +85,7 @@ func (o *BaseEntitlement) GetHasPermissionsOk() (*bool, bool) { // HasHasPermissions returns a boolean if a field has been set. func (o *BaseEntitlement) HasHasPermissions() bool { - if o != nil && !isNil(o.HasPermissions) { + if o != nil && !IsNil(o.HasPermissions) { return true } @@ -99,7 +99,7 @@ func (o *BaseEntitlement) SetHasPermissions(v bool) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *BaseEntitlement) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -109,7 +109,7 @@ func (o *BaseEntitlement) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseEntitlement) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -117,7 +117,7 @@ func (o *BaseEntitlement) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *BaseEntitlement) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -131,7 +131,7 @@ func (o *BaseEntitlement) SetDescription(v string) { // GetAttribute returns the Attribute field value if set, zero value otherwise. func (o *BaseEntitlement) GetAttribute() string { - if o == nil || isNil(o.Attribute) { + if o == nil || IsNil(o.Attribute) { var ret string return ret } @@ -141,7 +141,7 @@ func (o *BaseEntitlement) GetAttribute() string { // GetAttributeOk returns a tuple with the Attribute field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseEntitlement) GetAttributeOk() (*string, bool) { - if o == nil || isNil(o.Attribute) { + if o == nil || IsNil(o.Attribute) { return nil, false } return o.Attribute, true @@ -149,7 +149,7 @@ func (o *BaseEntitlement) GetAttributeOk() (*string, bool) { // HasAttribute returns a boolean if a field has been set. func (o *BaseEntitlement) HasAttribute() bool { - if o != nil && !isNil(o.Attribute) { + if o != nil && !IsNil(o.Attribute) { return true } @@ -163,7 +163,7 @@ func (o *BaseEntitlement) SetAttribute(v string) { // GetValue returns the Value field value if set, zero value otherwise. func (o *BaseEntitlement) GetValue() string { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { var ret string return ret } @@ -173,7 +173,7 @@ func (o *BaseEntitlement) GetValue() string { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseEntitlement) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { return nil, false } return o.Value, true @@ -181,7 +181,7 @@ func (o *BaseEntitlement) GetValueOk() (*string, bool) { // HasValue returns a boolean if a field has been set. func (o *BaseEntitlement) HasValue() bool { - if o != nil && !isNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -195,7 +195,7 @@ func (o *BaseEntitlement) SetValue(v string) { // GetSchema returns the Schema field value if set, zero value otherwise. func (o *BaseEntitlement) GetSchema() string { - if o == nil || isNil(o.Schema) { + if o == nil || IsNil(o.Schema) { var ret string return ret } @@ -205,7 +205,7 @@ func (o *BaseEntitlement) GetSchema() string { // GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseEntitlement) GetSchemaOk() (*string, bool) { - if o == nil || isNil(o.Schema) { + if o == nil || IsNil(o.Schema) { return nil, false } return o.Schema, true @@ -213,7 +213,7 @@ func (o *BaseEntitlement) GetSchemaOk() (*string, bool) { // HasSchema returns a boolean if a field has been set. func (o *BaseEntitlement) HasSchema() bool { - if o != nil && !isNil(o.Schema) { + if o != nil && !IsNil(o.Schema) { return true } @@ -227,7 +227,7 @@ func (o *BaseEntitlement) SetSchema(v string) { // GetPrivileged returns the Privileged field value if set, zero value otherwise. func (o *BaseEntitlement) GetPrivileged() bool { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { var ret bool return ret } @@ -237,7 +237,7 @@ func (o *BaseEntitlement) GetPrivileged() bool { // GetPrivilegedOk returns a tuple with the Privileged field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseEntitlement) GetPrivilegedOk() (*bool, bool) { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { return nil, false } return o.Privileged, true @@ -245,7 +245,7 @@ func (o *BaseEntitlement) GetPrivilegedOk() (*bool, bool) { // HasPrivileged returns a boolean if a field has been set. func (o *BaseEntitlement) HasPrivileged() bool { - if o != nil && !isNil(o.Privileged) { + if o != nil && !IsNil(o.Privileged) { return true } @@ -259,7 +259,7 @@ func (o *BaseEntitlement) SetPrivileged(v bool) { // GetId returns the Id field value if set, zero value otherwise. func (o *BaseEntitlement) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -269,7 +269,7 @@ func (o *BaseEntitlement) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseEntitlement) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -277,7 +277,7 @@ func (o *BaseEntitlement) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *BaseEntitlement) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -291,7 +291,7 @@ func (o *BaseEntitlement) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *BaseEntitlement) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -301,7 +301,7 @@ func (o *BaseEntitlement) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseEntitlement) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -309,7 +309,7 @@ func (o *BaseEntitlement) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *BaseEntitlement) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -331,28 +331,28 @@ func (o BaseEntitlement) MarshalJSON() ([]byte, error) { func (o BaseEntitlement) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.HasPermissions) { + if !IsNil(o.HasPermissions) { toSerialize["hasPermissions"] = o.HasPermissions } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.Attribute) { + if !IsNil(o.Attribute) { toSerialize["attribute"] = o.Attribute } - if !isNil(o.Value) { + if !IsNil(o.Value) { toSerialize["value"] = o.Value } - if !isNil(o.Schema) { + if !IsNil(o.Schema) { toSerialize["schema"] = o.Schema } - if !isNil(o.Privileged) { + if !IsNil(o.Privileged) { toSerialize["privileged"] = o.Privileged } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -363,16 +363,20 @@ func (o BaseEntitlement) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BaseEntitlement) UnmarshalJSON(bytes []byte) (err error) { +func (o *BaseEntitlement) UnmarshalJSON(data []byte) (err error) { varBaseEntitlement := _BaseEntitlement{} - if err = json.Unmarshal(bytes, &varBaseEntitlement); err == nil { + err = json.Unmarshal(data, &varBaseEntitlement) + + if err != nil { + return err + } + *o = BaseEntitlement(varBaseEntitlement) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "hasPermissions") delete(additionalProperties, "description") delete(additionalProperties, "attribute") diff --git a/api_v3/model_base_reference_dto.go b/api_v3/model_base_reference_dto.go index 07fd9ade9..80ca31e6f 100644 --- a/api_v3/model_base_reference_dto.go +++ b/api_v3/model_base_reference_dto.go @@ -48,7 +48,7 @@ func NewBaseReferenceDtoWithDefaults() *BaseReferenceDto { // GetType returns the Type field value if set, zero value otherwise. func (o *BaseReferenceDto) GetType() DtoType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret DtoType return ret } @@ -58,7 +58,7 @@ func (o *BaseReferenceDto) GetType() DtoType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseReferenceDto) GetTypeOk() (*DtoType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -66,7 +66,7 @@ func (o *BaseReferenceDto) GetTypeOk() (*DtoType, bool) { // HasType returns a boolean if a field has been set. func (o *BaseReferenceDto) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -80,7 +80,7 @@ func (o *BaseReferenceDto) SetType(v DtoType) { // GetId returns the Id field value if set, zero value otherwise. func (o *BaseReferenceDto) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -90,7 +90,7 @@ func (o *BaseReferenceDto) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseReferenceDto) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -98,7 +98,7 @@ func (o *BaseReferenceDto) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *BaseReferenceDto) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -112,7 +112,7 @@ func (o *BaseReferenceDto) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *BaseReferenceDto) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -122,7 +122,7 @@ func (o *BaseReferenceDto) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseReferenceDto) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -130,7 +130,7 @@ func (o *BaseReferenceDto) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *BaseReferenceDto) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -152,13 +152,13 @@ func (o BaseReferenceDto) MarshalJSON() ([]byte, error) { func (o BaseReferenceDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -169,16 +169,20 @@ func (o BaseReferenceDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BaseReferenceDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *BaseReferenceDto) UnmarshalJSON(data []byte) (err error) { varBaseReferenceDto := _BaseReferenceDto{} - if err = json.Unmarshal(bytes, &varBaseReferenceDto); err == nil { + err = json.Unmarshal(data, &varBaseReferenceDto) + + if err != nil { + return err + } + *o = BaseReferenceDto(varBaseReferenceDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_base_segment.go b/api_v3/model_base_segment.go index 5ccbab079..f9d4f1daf 100644 --- a/api_v3/model_base_segment.go +++ b/api_v3/model_base_segment.go @@ -47,7 +47,7 @@ func NewBaseSegmentWithDefaults() *BaseSegment { // GetId returns the Id field value if set, zero value otherwise. func (o *BaseSegment) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *BaseSegment) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseSegment) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -65,7 +65,7 @@ func (o *BaseSegment) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *BaseSegment) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -79,7 +79,7 @@ func (o *BaseSegment) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *BaseSegment) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *BaseSegment) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BaseSegment) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -97,7 +97,7 @@ func (o *BaseSegment) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *BaseSegment) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -119,10 +119,10 @@ func (o BaseSegment) MarshalJSON() ([]byte, error) { func (o BaseSegment) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -133,16 +133,20 @@ func (o BaseSegment) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BaseSegment) UnmarshalJSON(bytes []byte) (err error) { +func (o *BaseSegment) UnmarshalJSON(data []byte) (err error) { varBaseSegment := _BaseSegment{} - if err = json.Unmarshal(bytes, &varBaseSegment); err == nil { + err = json.Unmarshal(data, &varBaseSegment) + + if err != nil { + return err + } + *o = BaseSegment(varBaseSegment) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_before_provisioning_rule_dto.go b/api_v3/model_before_provisioning_rule_dto.go index 27a32b4e4..1531ed835 100644 --- a/api_v3/model_before_provisioning_rule_dto.go +++ b/api_v3/model_before_provisioning_rule_dto.go @@ -49,7 +49,7 @@ func NewBeforeProvisioningRuleDtoWithDefaults() *BeforeProvisioningRuleDto { // GetType returns the Type field value if set, zero value otherwise. func (o *BeforeProvisioningRuleDto) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *BeforeProvisioningRuleDto) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BeforeProvisioningRuleDto) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *BeforeProvisioningRuleDto) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *BeforeProvisioningRuleDto) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *BeforeProvisioningRuleDto) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *BeforeProvisioningRuleDto) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *BeforeProvisioningRuleDto) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BeforeProvisioningRuleDto) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *BeforeProvisioningRuleDto) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *BeforeProvisioningRuleDto) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *BeforeProvisioningRuleDto) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *BeforeProvisioningRuleDto) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *BeforeProvisioningRuleDto) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BeforeProvisioningRuleDto) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *BeforeProvisioningRuleDto) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *BeforeProvisioningRuleDto) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o BeforeProvisioningRuleDto) MarshalJSON() ([]byte, error) { func (o BeforeProvisioningRuleDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o BeforeProvisioningRuleDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BeforeProvisioningRuleDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *BeforeProvisioningRuleDto) UnmarshalJSON(data []byte) (err error) { varBeforeProvisioningRuleDto := _BeforeProvisioningRuleDto{} - if err = json.Unmarshal(bytes, &varBeforeProvisioningRuleDto); err == nil { + err = json.Unmarshal(data, &varBeforeProvisioningRuleDto) + + if err != nil { + return err + } + *o = BeforeProvisioningRuleDto(varBeforeProvisioningRuleDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_bound.go b/api_v3/model_bound.go index 4ab4d7e25..6b6842c09 100644 --- a/api_v3/model_bound.go +++ b/api_v3/model_bound.go @@ -77,7 +77,7 @@ func (o *Bound) SetValue(v string) { // GetInclusive returns the Inclusive field value if set, zero value otherwise. func (o *Bound) GetInclusive() bool { - if o == nil || isNil(o.Inclusive) { + if o == nil || IsNil(o.Inclusive) { var ret bool return ret } @@ -87,7 +87,7 @@ func (o *Bound) GetInclusive() bool { // GetInclusiveOk returns a tuple with the Inclusive field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Bound) GetInclusiveOk() (*bool, bool) { - if o == nil || isNil(o.Inclusive) { + if o == nil || IsNil(o.Inclusive) { return nil, false } return o.Inclusive, true @@ -95,7 +95,7 @@ func (o *Bound) GetInclusiveOk() (*bool, bool) { // HasInclusive returns a boolean if a field has been set. func (o *Bound) HasInclusive() bool { - if o != nil && !isNil(o.Inclusive) { + if o != nil && !IsNil(o.Inclusive) { return true } @@ -118,7 +118,7 @@ func (o Bound) MarshalJSON() ([]byte, error) { func (o Bound) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["value"] = o.Value - if !isNil(o.Inclusive) { + if !IsNil(o.Inclusive) { toSerialize["inclusive"] = o.Inclusive } @@ -129,8 +129,8 @@ func (o Bound) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Bound) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *Bound) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -139,7 +139,7 @@ func (o *Bound) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -153,13 +153,17 @@ func (o *Bound) UnmarshalJSON(bytes []byte) (err error) { varBound := _Bound{} - if err = json.Unmarshal(bytes, &varBound); err == nil { + err = json.Unmarshal(data, &varBound) + + if err != nil { + return err + } + *o = Bound(varBound) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "value") delete(additionalProperties, "inclusive") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_branding_item.go b/api_v3/model_branding_item.go index d0d026c23..2698cd269 100644 --- a/api_v3/model_branding_item.go +++ b/api_v3/model_branding_item.go @@ -59,7 +59,7 @@ func NewBrandingItemWithDefaults() *BrandingItem { // GetName returns the Name field value if set, zero value otherwise. func (o *BrandingItem) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -69,7 +69,7 @@ func (o *BrandingItem) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BrandingItem) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -77,7 +77,7 @@ func (o *BrandingItem) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *BrandingItem) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -91,7 +91,7 @@ func (o *BrandingItem) SetName(v string) { // GetProductName returns the ProductName field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BrandingItem) GetProductName() string { - if o == nil || isNil(o.ProductName.Get()) { + if o == nil || IsNil(o.ProductName.Get()) { var ret string return ret } @@ -133,7 +133,7 @@ func (o *BrandingItem) UnsetProductName() { // GetActionButtonColor returns the ActionButtonColor field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BrandingItem) GetActionButtonColor() string { - if o == nil || isNil(o.ActionButtonColor.Get()) { + if o == nil || IsNil(o.ActionButtonColor.Get()) { var ret string return ret } @@ -175,7 +175,7 @@ func (o *BrandingItem) UnsetActionButtonColor() { // GetActiveLinkColor returns the ActiveLinkColor field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BrandingItem) GetActiveLinkColor() string { - if o == nil || isNil(o.ActiveLinkColor.Get()) { + if o == nil || IsNil(o.ActiveLinkColor.Get()) { var ret string return ret } @@ -217,7 +217,7 @@ func (o *BrandingItem) UnsetActiveLinkColor() { // GetNavigationColor returns the NavigationColor field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BrandingItem) GetNavigationColor() string { - if o == nil || isNil(o.NavigationColor.Get()) { + if o == nil || IsNil(o.NavigationColor.Get()) { var ret string return ret } @@ -259,7 +259,7 @@ func (o *BrandingItem) UnsetNavigationColor() { // GetEmailFromAddress returns the EmailFromAddress field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BrandingItem) GetEmailFromAddress() string { - if o == nil || isNil(o.EmailFromAddress.Get()) { + if o == nil || IsNil(o.EmailFromAddress.Get()) { var ret string return ret } @@ -301,7 +301,7 @@ func (o *BrandingItem) UnsetEmailFromAddress() { // GetStandardLogoURL returns the StandardLogoURL field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BrandingItem) GetStandardLogoURL() string { - if o == nil || isNil(o.StandardLogoURL.Get()) { + if o == nil || IsNil(o.StandardLogoURL.Get()) { var ret string return ret } @@ -343,7 +343,7 @@ func (o *BrandingItem) UnsetStandardLogoURL() { // GetLoginInformationalMessage returns the LoginInformationalMessage field value if set, zero value otherwise (both if not set or set to explicit null). func (o *BrandingItem) GetLoginInformationalMessage() string { - if o == nil || isNil(o.LoginInformationalMessage.Get()) { + if o == nil || IsNil(o.LoginInformationalMessage.Get()) { var ret string return ret } @@ -393,7 +393,7 @@ func (o BrandingItem) MarshalJSON() ([]byte, error) { func (o BrandingItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } if o.ProductName.IsSet() { @@ -425,16 +425,20 @@ func (o BrandingItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BrandingItem) UnmarshalJSON(bytes []byte) (err error) { +func (o *BrandingItem) UnmarshalJSON(data []byte) (err error) { varBrandingItem := _BrandingItem{} - if err = json.Unmarshal(bytes, &varBrandingItem); err == nil { + err = json.Unmarshal(data, &varBrandingItem) + + if err != nil { + return err + } + *o = BrandingItem(varBrandingItem) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "productName") delete(additionalProperties, "actionButtonColor") diff --git a/api_v3/model_branding_item_create.go b/api_v3/model_branding_item_create.go index 8ebfcb203..b25f845c6 100644 --- a/api_v3/model_branding_item_create.go +++ b/api_v3/model_branding_item_create.go @@ -113,7 +113,7 @@ func (o *BrandingItemCreate) SetProductName(v string) { // GetActionButtonColor returns the ActionButtonColor field value if set, zero value otherwise. func (o *BrandingItemCreate) GetActionButtonColor() string { - if o == nil || isNil(o.ActionButtonColor) { + if o == nil || IsNil(o.ActionButtonColor) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *BrandingItemCreate) GetActionButtonColor() string { // GetActionButtonColorOk returns a tuple with the ActionButtonColor field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BrandingItemCreate) GetActionButtonColorOk() (*string, bool) { - if o == nil || isNil(o.ActionButtonColor) { + if o == nil || IsNil(o.ActionButtonColor) { return nil, false } return o.ActionButtonColor, true @@ -131,7 +131,7 @@ func (o *BrandingItemCreate) GetActionButtonColorOk() (*string, bool) { // HasActionButtonColor returns a boolean if a field has been set. func (o *BrandingItemCreate) HasActionButtonColor() bool { - if o != nil && !isNil(o.ActionButtonColor) { + if o != nil && !IsNil(o.ActionButtonColor) { return true } @@ -145,7 +145,7 @@ func (o *BrandingItemCreate) SetActionButtonColor(v string) { // GetActiveLinkColor returns the ActiveLinkColor field value if set, zero value otherwise. func (o *BrandingItemCreate) GetActiveLinkColor() string { - if o == nil || isNil(o.ActiveLinkColor) { + if o == nil || IsNil(o.ActiveLinkColor) { var ret string return ret } @@ -155,7 +155,7 @@ func (o *BrandingItemCreate) GetActiveLinkColor() string { // GetActiveLinkColorOk returns a tuple with the ActiveLinkColor field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BrandingItemCreate) GetActiveLinkColorOk() (*string, bool) { - if o == nil || isNil(o.ActiveLinkColor) { + if o == nil || IsNil(o.ActiveLinkColor) { return nil, false } return o.ActiveLinkColor, true @@ -163,7 +163,7 @@ func (o *BrandingItemCreate) GetActiveLinkColorOk() (*string, bool) { // HasActiveLinkColor returns a boolean if a field has been set. func (o *BrandingItemCreate) HasActiveLinkColor() bool { - if o != nil && !isNil(o.ActiveLinkColor) { + if o != nil && !IsNil(o.ActiveLinkColor) { return true } @@ -177,7 +177,7 @@ func (o *BrandingItemCreate) SetActiveLinkColor(v string) { // GetNavigationColor returns the NavigationColor field value if set, zero value otherwise. func (o *BrandingItemCreate) GetNavigationColor() string { - if o == nil || isNil(o.NavigationColor) { + if o == nil || IsNil(o.NavigationColor) { var ret string return ret } @@ -187,7 +187,7 @@ func (o *BrandingItemCreate) GetNavigationColor() string { // GetNavigationColorOk returns a tuple with the NavigationColor field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BrandingItemCreate) GetNavigationColorOk() (*string, bool) { - if o == nil || isNil(o.NavigationColor) { + if o == nil || IsNil(o.NavigationColor) { return nil, false } return o.NavigationColor, true @@ -195,7 +195,7 @@ func (o *BrandingItemCreate) GetNavigationColorOk() (*string, bool) { // HasNavigationColor returns a boolean if a field has been set. func (o *BrandingItemCreate) HasNavigationColor() bool { - if o != nil && !isNil(o.NavigationColor) { + if o != nil && !IsNil(o.NavigationColor) { return true } @@ -209,7 +209,7 @@ func (o *BrandingItemCreate) SetNavigationColor(v string) { // GetEmailFromAddress returns the EmailFromAddress field value if set, zero value otherwise. func (o *BrandingItemCreate) GetEmailFromAddress() string { - if o == nil || isNil(o.EmailFromAddress) { + if o == nil || IsNil(o.EmailFromAddress) { var ret string return ret } @@ -219,7 +219,7 @@ func (o *BrandingItemCreate) GetEmailFromAddress() string { // GetEmailFromAddressOk returns a tuple with the EmailFromAddress field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BrandingItemCreate) GetEmailFromAddressOk() (*string, bool) { - if o == nil || isNil(o.EmailFromAddress) { + if o == nil || IsNil(o.EmailFromAddress) { return nil, false } return o.EmailFromAddress, true @@ -227,7 +227,7 @@ func (o *BrandingItemCreate) GetEmailFromAddressOk() (*string, bool) { // HasEmailFromAddress returns a boolean if a field has been set. func (o *BrandingItemCreate) HasEmailFromAddress() bool { - if o != nil && !isNil(o.EmailFromAddress) { + if o != nil && !IsNil(o.EmailFromAddress) { return true } @@ -241,7 +241,7 @@ func (o *BrandingItemCreate) SetEmailFromAddress(v string) { // GetLoginInformationalMessage returns the LoginInformationalMessage field value if set, zero value otherwise. func (o *BrandingItemCreate) GetLoginInformationalMessage() string { - if o == nil || isNil(o.LoginInformationalMessage) { + if o == nil || IsNil(o.LoginInformationalMessage) { var ret string return ret } @@ -251,7 +251,7 @@ func (o *BrandingItemCreate) GetLoginInformationalMessage() string { // GetLoginInformationalMessageOk returns a tuple with the LoginInformationalMessage field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BrandingItemCreate) GetLoginInformationalMessageOk() (*string, bool) { - if o == nil || isNil(o.LoginInformationalMessage) { + if o == nil || IsNil(o.LoginInformationalMessage) { return nil, false } return o.LoginInformationalMessage, true @@ -259,7 +259,7 @@ func (o *BrandingItemCreate) GetLoginInformationalMessageOk() (*string, bool) { // HasLoginInformationalMessage returns a boolean if a field has been set. func (o *BrandingItemCreate) HasLoginInformationalMessage() bool { - if o != nil && !isNil(o.LoginInformationalMessage) { + if o != nil && !IsNil(o.LoginInformationalMessage) { return true } @@ -273,7 +273,7 @@ func (o *BrandingItemCreate) SetLoginInformationalMessage(v string) { // GetFileStandard returns the FileStandard field value if set, zero value otherwise. func (o *BrandingItemCreate) GetFileStandard() *os.File { - if o == nil || isNil(o.FileStandard) { + if o == nil || IsNil(o.FileStandard) { var ret *os.File return ret } @@ -283,7 +283,7 @@ func (o *BrandingItemCreate) GetFileStandard() *os.File { // GetFileStandardOk returns a tuple with the FileStandard field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BrandingItemCreate) GetFileStandardOk() (**os.File, bool) { - if o == nil || isNil(o.FileStandard) { + if o == nil || IsNil(o.FileStandard) { return nil, false } return o.FileStandard, true @@ -291,7 +291,7 @@ func (o *BrandingItemCreate) GetFileStandardOk() (**os.File, bool) { // HasFileStandard returns a boolean if a field has been set. func (o *BrandingItemCreate) HasFileStandard() bool { - if o != nil && !isNil(o.FileStandard) { + if o != nil && !IsNil(o.FileStandard) { return true } @@ -315,22 +315,22 @@ func (o BrandingItemCreate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["productName"] = o.ProductName.Get() - if !isNil(o.ActionButtonColor) { + if !IsNil(o.ActionButtonColor) { toSerialize["actionButtonColor"] = o.ActionButtonColor } - if !isNil(o.ActiveLinkColor) { + if !IsNil(o.ActiveLinkColor) { toSerialize["activeLinkColor"] = o.ActiveLinkColor } - if !isNil(o.NavigationColor) { + if !IsNil(o.NavigationColor) { toSerialize["navigationColor"] = o.NavigationColor } - if !isNil(o.EmailFromAddress) { + if !IsNil(o.EmailFromAddress) { toSerialize["emailFromAddress"] = o.EmailFromAddress } - if !isNil(o.LoginInformationalMessage) { + if !IsNil(o.LoginInformationalMessage) { toSerialize["loginInformationalMessage"] = o.LoginInformationalMessage } - if !isNil(o.FileStandard) { + if !IsNil(o.FileStandard) { toSerialize["fileStandard"] = o.FileStandard } @@ -341,8 +341,8 @@ func (o BrandingItemCreate) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BrandingItemCreate) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *BrandingItemCreate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -352,7 +352,7 @@ func (o *BrandingItemCreate) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -366,13 +366,17 @@ func (o *BrandingItemCreate) UnmarshalJSON(bytes []byte) (err error) { varBrandingItemCreate := _BrandingItemCreate{} - if err = json.Unmarshal(bytes, &varBrandingItemCreate); err == nil { + err = json.Unmarshal(data, &varBrandingItemCreate) + + if err != nil { + return err + } + *o = BrandingItemCreate(varBrandingItemCreate) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "productName") delete(additionalProperties, "actionButtonColor") diff --git a/api_v3/model_bucket_aggregation.go b/api_v3/model_bucket_aggregation.go index fa2dfee75..faa41cae7 100644 --- a/api_v3/model_bucket_aggregation.go +++ b/api_v3/model_bucket_aggregation.go @@ -83,7 +83,7 @@ func (o *BucketAggregation) SetName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *BucketAggregation) GetType() BucketType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret BucketType return ret } @@ -93,7 +93,7 @@ func (o *BucketAggregation) GetType() BucketType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BucketAggregation) GetTypeOk() (*BucketType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -101,7 +101,7 @@ func (o *BucketAggregation) GetTypeOk() (*BucketType, bool) { // HasType returns a boolean if a field has been set. func (o *BucketAggregation) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -139,7 +139,7 @@ func (o *BucketAggregation) SetField(v string) { // GetSize returns the Size field value if set, zero value otherwise. func (o *BucketAggregation) GetSize() int32 { - if o == nil || isNil(o.Size) { + if o == nil || IsNil(o.Size) { var ret int32 return ret } @@ -149,7 +149,7 @@ func (o *BucketAggregation) GetSize() int32 { // GetSizeOk returns a tuple with the Size field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BucketAggregation) GetSizeOk() (*int32, bool) { - if o == nil || isNil(o.Size) { + if o == nil || IsNil(o.Size) { return nil, false } return o.Size, true @@ -157,7 +157,7 @@ func (o *BucketAggregation) GetSizeOk() (*int32, bool) { // HasSize returns a boolean if a field has been set. func (o *BucketAggregation) HasSize() bool { - if o != nil && !isNil(o.Size) { + if o != nil && !IsNil(o.Size) { return true } @@ -171,7 +171,7 @@ func (o *BucketAggregation) SetSize(v int32) { // GetMinDocCount returns the MinDocCount field value if set, zero value otherwise. func (o *BucketAggregation) GetMinDocCount() int32 { - if o == nil || isNil(o.MinDocCount) { + if o == nil || IsNil(o.MinDocCount) { var ret int32 return ret } @@ -181,7 +181,7 @@ func (o *BucketAggregation) GetMinDocCount() int32 { // GetMinDocCountOk returns a tuple with the MinDocCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BucketAggregation) GetMinDocCountOk() (*int32, bool) { - if o == nil || isNil(o.MinDocCount) { + if o == nil || IsNil(o.MinDocCount) { return nil, false } return o.MinDocCount, true @@ -189,7 +189,7 @@ func (o *BucketAggregation) GetMinDocCountOk() (*int32, bool) { // HasMinDocCount returns a boolean if a field has been set. func (o *BucketAggregation) HasMinDocCount() bool { - if o != nil && !isNil(o.MinDocCount) { + if o != nil && !IsNil(o.MinDocCount) { return true } @@ -212,14 +212,14 @@ func (o BucketAggregation) MarshalJSON() ([]byte, error) { func (o BucketAggregation) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } toSerialize["field"] = o.Field - if !isNil(o.Size) { + if !IsNil(o.Size) { toSerialize["size"] = o.Size } - if !isNil(o.MinDocCount) { + if !IsNil(o.MinDocCount) { toSerialize["minDocCount"] = o.MinDocCount } @@ -230,8 +230,8 @@ func (o BucketAggregation) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BucketAggregation) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *BucketAggregation) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -241,7 +241,7 @@ func (o *BucketAggregation) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -255,13 +255,17 @@ func (o *BucketAggregation) UnmarshalJSON(bytes []byte) (err error) { varBucketAggregation := _BucketAggregation{} - if err = json.Unmarshal(bytes, &varBucketAggregation); err == nil { + err = json.Unmarshal(data, &varBucketAggregation) + + if err != nil { + return err + } + *o = BucketAggregation(varBucketAggregation) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "type") delete(additionalProperties, "field") diff --git a/api_v3/model_bulk_add_tagged_object.go b/api_v3/model_bulk_add_tagged_object.go index 30f9f078a..154f132aa 100644 --- a/api_v3/model_bulk_add_tagged_object.go +++ b/api_v3/model_bulk_add_tagged_object.go @@ -52,7 +52,7 @@ func NewBulkAddTaggedObjectWithDefaults() *BulkAddTaggedObject { // GetObjectRefs returns the ObjectRefs field value if set, zero value otherwise. func (o *BulkAddTaggedObject) GetObjectRefs() []TaggedObjectDto { - if o == nil || isNil(o.ObjectRefs) { + if o == nil || IsNil(o.ObjectRefs) { var ret []TaggedObjectDto return ret } @@ -62,7 +62,7 @@ func (o *BulkAddTaggedObject) GetObjectRefs() []TaggedObjectDto { // GetObjectRefsOk returns a tuple with the ObjectRefs field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BulkAddTaggedObject) GetObjectRefsOk() ([]TaggedObjectDto, bool) { - if o == nil || isNil(o.ObjectRefs) { + if o == nil || IsNil(o.ObjectRefs) { return nil, false } return o.ObjectRefs, true @@ -70,7 +70,7 @@ func (o *BulkAddTaggedObject) GetObjectRefsOk() ([]TaggedObjectDto, bool) { // HasObjectRefs returns a boolean if a field has been set. func (o *BulkAddTaggedObject) HasObjectRefs() bool { - if o != nil && !isNil(o.ObjectRefs) { + if o != nil && !IsNil(o.ObjectRefs) { return true } @@ -84,7 +84,7 @@ func (o *BulkAddTaggedObject) SetObjectRefs(v []TaggedObjectDto) { // GetTags returns the Tags field value if set, zero value otherwise. func (o *BulkAddTaggedObject) GetTags() []string { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { var ret []string return ret } @@ -94,7 +94,7 @@ func (o *BulkAddTaggedObject) GetTags() []string { // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BulkAddTaggedObject) GetTagsOk() ([]string, bool) { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { return nil, false } return o.Tags, true @@ -102,7 +102,7 @@ func (o *BulkAddTaggedObject) GetTagsOk() ([]string, bool) { // HasTags returns a boolean if a field has been set. func (o *BulkAddTaggedObject) HasTags() bool { - if o != nil && !isNil(o.Tags) { + if o != nil && !IsNil(o.Tags) { return true } @@ -116,7 +116,7 @@ func (o *BulkAddTaggedObject) SetTags(v []string) { // GetOperation returns the Operation field value if set, zero value otherwise. func (o *BulkAddTaggedObject) GetOperation() string { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { var ret string return ret } @@ -126,7 +126,7 @@ func (o *BulkAddTaggedObject) GetOperation() string { // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BulkAddTaggedObject) GetOperationOk() (*string, bool) { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { return nil, false } return o.Operation, true @@ -134,7 +134,7 @@ func (o *BulkAddTaggedObject) GetOperationOk() (*string, bool) { // HasOperation returns a boolean if a field has been set. func (o *BulkAddTaggedObject) HasOperation() bool { - if o != nil && !isNil(o.Operation) { + if o != nil && !IsNil(o.Operation) { return true } @@ -156,13 +156,13 @@ func (o BulkAddTaggedObject) MarshalJSON() ([]byte, error) { func (o BulkAddTaggedObject) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.ObjectRefs) { + if !IsNil(o.ObjectRefs) { toSerialize["objectRefs"] = o.ObjectRefs } - if !isNil(o.Tags) { + if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } - if !isNil(o.Operation) { + if !IsNil(o.Operation) { toSerialize["operation"] = o.Operation } @@ -173,16 +173,20 @@ func (o BulkAddTaggedObject) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BulkAddTaggedObject) UnmarshalJSON(bytes []byte) (err error) { +func (o *BulkAddTaggedObject) UnmarshalJSON(data []byte) (err error) { varBulkAddTaggedObject := _BulkAddTaggedObject{} - if err = json.Unmarshal(bytes, &varBulkAddTaggedObject); err == nil { + err = json.Unmarshal(data, &varBulkAddTaggedObject) + + if err != nil { + return err + } + *o = BulkAddTaggedObject(varBulkAddTaggedObject) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "objectRefs") delete(additionalProperties, "tags") delete(additionalProperties, "operation") diff --git a/api_v3/model_bulk_remove_tagged_object.go b/api_v3/model_bulk_remove_tagged_object.go index 89bbe40f8..37c106f4f 100644 --- a/api_v3/model_bulk_remove_tagged_object.go +++ b/api_v3/model_bulk_remove_tagged_object.go @@ -46,7 +46,7 @@ func NewBulkRemoveTaggedObjectWithDefaults() *BulkRemoveTaggedObject { // GetObjectRefs returns the ObjectRefs field value if set, zero value otherwise. func (o *BulkRemoveTaggedObject) GetObjectRefs() []TaggedObjectDto { - if o == nil || isNil(o.ObjectRefs) { + if o == nil || IsNil(o.ObjectRefs) { var ret []TaggedObjectDto return ret } @@ -56,7 +56,7 @@ func (o *BulkRemoveTaggedObject) GetObjectRefs() []TaggedObjectDto { // GetObjectRefsOk returns a tuple with the ObjectRefs field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BulkRemoveTaggedObject) GetObjectRefsOk() ([]TaggedObjectDto, bool) { - if o == nil || isNil(o.ObjectRefs) { + if o == nil || IsNil(o.ObjectRefs) { return nil, false } return o.ObjectRefs, true @@ -64,7 +64,7 @@ func (o *BulkRemoveTaggedObject) GetObjectRefsOk() ([]TaggedObjectDto, bool) { // HasObjectRefs returns a boolean if a field has been set. func (o *BulkRemoveTaggedObject) HasObjectRefs() bool { - if o != nil && !isNil(o.ObjectRefs) { + if o != nil && !IsNil(o.ObjectRefs) { return true } @@ -78,7 +78,7 @@ func (o *BulkRemoveTaggedObject) SetObjectRefs(v []TaggedObjectDto) { // GetTags returns the Tags field value if set, zero value otherwise. func (o *BulkRemoveTaggedObject) GetTags() []string { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { var ret []string return ret } @@ -88,7 +88,7 @@ func (o *BulkRemoveTaggedObject) GetTags() []string { // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BulkRemoveTaggedObject) GetTagsOk() ([]string, bool) { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { return nil, false } return o.Tags, true @@ -96,7 +96,7 @@ func (o *BulkRemoveTaggedObject) GetTagsOk() ([]string, bool) { // HasTags returns a boolean if a field has been set. func (o *BulkRemoveTaggedObject) HasTags() bool { - if o != nil && !isNil(o.Tags) { + if o != nil && !IsNil(o.Tags) { return true } @@ -118,10 +118,10 @@ func (o BulkRemoveTaggedObject) MarshalJSON() ([]byte, error) { func (o BulkRemoveTaggedObject) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.ObjectRefs) { + if !IsNil(o.ObjectRefs) { toSerialize["objectRefs"] = o.ObjectRefs } - if !isNil(o.Tags) { + if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -132,16 +132,20 @@ func (o BulkRemoveTaggedObject) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BulkRemoveTaggedObject) UnmarshalJSON(bytes []byte) (err error) { +func (o *BulkRemoveTaggedObject) UnmarshalJSON(data []byte) (err error) { varBulkRemoveTaggedObject := _BulkRemoveTaggedObject{} - if err = json.Unmarshal(bytes, &varBulkRemoveTaggedObject); err == nil { + err = json.Unmarshal(data, &varBulkRemoveTaggedObject) + + if err != nil { + return err + } + *o = BulkRemoveTaggedObject(varBulkRemoveTaggedObject) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "objectRefs") delete(additionalProperties, "tags") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_bulk_tagged_object_response.go b/api_v3/model_bulk_tagged_object_response.go index e09bde9e4..bc1a507ad 100644 --- a/api_v3/model_bulk_tagged_object_response.go +++ b/api_v3/model_bulk_tagged_object_response.go @@ -46,7 +46,7 @@ func NewBulkTaggedObjectResponseWithDefaults() *BulkTaggedObjectResponse { // GetObjectRefs returns the ObjectRefs field value if set, zero value otherwise. func (o *BulkTaggedObjectResponse) GetObjectRefs() []TaggedObjectDto { - if o == nil || isNil(o.ObjectRefs) { + if o == nil || IsNil(o.ObjectRefs) { var ret []TaggedObjectDto return ret } @@ -56,7 +56,7 @@ func (o *BulkTaggedObjectResponse) GetObjectRefs() []TaggedObjectDto { // GetObjectRefsOk returns a tuple with the ObjectRefs field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BulkTaggedObjectResponse) GetObjectRefsOk() ([]TaggedObjectDto, bool) { - if o == nil || isNil(o.ObjectRefs) { + if o == nil || IsNil(o.ObjectRefs) { return nil, false } return o.ObjectRefs, true @@ -64,7 +64,7 @@ func (o *BulkTaggedObjectResponse) GetObjectRefsOk() ([]TaggedObjectDto, bool) { // HasObjectRefs returns a boolean if a field has been set. func (o *BulkTaggedObjectResponse) HasObjectRefs() bool { - if o != nil && !isNil(o.ObjectRefs) { + if o != nil && !IsNil(o.ObjectRefs) { return true } @@ -78,7 +78,7 @@ func (o *BulkTaggedObjectResponse) SetObjectRefs(v []TaggedObjectDto) { // GetTags returns the Tags field value if set, zero value otherwise. func (o *BulkTaggedObjectResponse) GetTags() []string { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { var ret []string return ret } @@ -88,7 +88,7 @@ func (o *BulkTaggedObjectResponse) GetTags() []string { // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BulkTaggedObjectResponse) GetTagsOk() ([]string, bool) { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { return nil, false } return o.Tags, true @@ -96,7 +96,7 @@ func (o *BulkTaggedObjectResponse) GetTagsOk() ([]string, bool) { // HasTags returns a boolean if a field has been set. func (o *BulkTaggedObjectResponse) HasTags() bool { - if o != nil && !isNil(o.Tags) { + if o != nil && !IsNil(o.Tags) { return true } @@ -118,10 +118,10 @@ func (o BulkTaggedObjectResponse) MarshalJSON() ([]byte, error) { func (o BulkTaggedObjectResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.ObjectRefs) { + if !IsNil(o.ObjectRefs) { toSerialize["objectRefs"] = o.ObjectRefs } - if !isNil(o.Tags) { + if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -132,16 +132,20 @@ func (o BulkTaggedObjectResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *BulkTaggedObjectResponse) UnmarshalJSON(bytes []byte) (err error) { +func (o *BulkTaggedObjectResponse) UnmarshalJSON(data []byte) (err error) { varBulkTaggedObjectResponse := _BulkTaggedObjectResponse{} - if err = json.Unmarshal(bytes, &varBulkTaggedObjectResponse); err == nil { + err = json.Unmarshal(data, &varBulkTaggedObjectResponse) + + if err != nil { + return err + } + *o = BulkTaggedObjectResponse(varBulkTaggedObjectResponse) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "objectRefs") delete(additionalProperties, "tags") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_campaign.go b/api_v3/model_campaign.go index af8e0b565..0762da66a 100644 --- a/api_v3/model_campaign.go +++ b/api_v3/model_campaign.go @@ -104,7 +104,7 @@ func NewCampaignWithDefaults() *Campaign { // GetId returns the Id field value if set, zero value otherwise. func (o *Campaign) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -114,7 +114,7 @@ func (o *Campaign) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -122,7 +122,7 @@ func (o *Campaign) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Campaign) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -184,7 +184,7 @@ func (o *Campaign) SetDescription(v string) { // GetDeadline returns the Deadline field value if set, zero value otherwise. func (o *Campaign) GetDeadline() time.Time { - if o == nil || isNil(o.Deadline) { + if o == nil || IsNil(o.Deadline) { var ret time.Time return ret } @@ -194,7 +194,7 @@ func (o *Campaign) GetDeadline() time.Time { // GetDeadlineOk returns a tuple with the Deadline field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetDeadlineOk() (*time.Time, bool) { - if o == nil || isNil(o.Deadline) { + if o == nil || IsNil(o.Deadline) { return nil, false } return o.Deadline, true @@ -202,7 +202,7 @@ func (o *Campaign) GetDeadlineOk() (*time.Time, bool) { // HasDeadline returns a boolean if a field has been set. func (o *Campaign) HasDeadline() bool { - if o != nil && !isNil(o.Deadline) { + if o != nil && !IsNil(o.Deadline) { return true } @@ -240,7 +240,7 @@ func (o *Campaign) SetType(v string) { // GetEmailNotificationEnabled returns the EmailNotificationEnabled field value if set, zero value otherwise. func (o *Campaign) GetEmailNotificationEnabled() bool { - if o == nil || isNil(o.EmailNotificationEnabled) { + if o == nil || IsNil(o.EmailNotificationEnabled) { var ret bool return ret } @@ -250,7 +250,7 @@ func (o *Campaign) GetEmailNotificationEnabled() bool { // GetEmailNotificationEnabledOk returns a tuple with the EmailNotificationEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetEmailNotificationEnabledOk() (*bool, bool) { - if o == nil || isNil(o.EmailNotificationEnabled) { + if o == nil || IsNil(o.EmailNotificationEnabled) { return nil, false } return o.EmailNotificationEnabled, true @@ -258,7 +258,7 @@ func (o *Campaign) GetEmailNotificationEnabledOk() (*bool, bool) { // HasEmailNotificationEnabled returns a boolean if a field has been set. func (o *Campaign) HasEmailNotificationEnabled() bool { - if o != nil && !isNil(o.EmailNotificationEnabled) { + if o != nil && !IsNil(o.EmailNotificationEnabled) { return true } @@ -272,7 +272,7 @@ func (o *Campaign) SetEmailNotificationEnabled(v bool) { // GetAutoRevokeAllowed returns the AutoRevokeAllowed field value if set, zero value otherwise. func (o *Campaign) GetAutoRevokeAllowed() bool { - if o == nil || isNil(o.AutoRevokeAllowed) { + if o == nil || IsNil(o.AutoRevokeAllowed) { var ret bool return ret } @@ -282,7 +282,7 @@ func (o *Campaign) GetAutoRevokeAllowed() bool { // GetAutoRevokeAllowedOk returns a tuple with the AutoRevokeAllowed field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetAutoRevokeAllowedOk() (*bool, bool) { - if o == nil || isNil(o.AutoRevokeAllowed) { + if o == nil || IsNil(o.AutoRevokeAllowed) { return nil, false } return o.AutoRevokeAllowed, true @@ -290,7 +290,7 @@ func (o *Campaign) GetAutoRevokeAllowedOk() (*bool, bool) { // HasAutoRevokeAllowed returns a boolean if a field has been set. func (o *Campaign) HasAutoRevokeAllowed() bool { - if o != nil && !isNil(o.AutoRevokeAllowed) { + if o != nil && !IsNil(o.AutoRevokeAllowed) { return true } @@ -304,7 +304,7 @@ func (o *Campaign) SetAutoRevokeAllowed(v bool) { // GetRecommendationsEnabled returns the RecommendationsEnabled field value if set, zero value otherwise. func (o *Campaign) GetRecommendationsEnabled() bool { - if o == nil || isNil(o.RecommendationsEnabled) { + if o == nil || IsNil(o.RecommendationsEnabled) { var ret bool return ret } @@ -314,7 +314,7 @@ func (o *Campaign) GetRecommendationsEnabled() bool { // GetRecommendationsEnabledOk returns a tuple with the RecommendationsEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetRecommendationsEnabledOk() (*bool, bool) { - if o == nil || isNil(o.RecommendationsEnabled) { + if o == nil || IsNil(o.RecommendationsEnabled) { return nil, false } return o.RecommendationsEnabled, true @@ -322,7 +322,7 @@ func (o *Campaign) GetRecommendationsEnabledOk() (*bool, bool) { // HasRecommendationsEnabled returns a boolean if a field has been set. func (o *Campaign) HasRecommendationsEnabled() bool { - if o != nil && !isNil(o.RecommendationsEnabled) { + if o != nil && !IsNil(o.RecommendationsEnabled) { return true } @@ -336,7 +336,7 @@ func (o *Campaign) SetRecommendationsEnabled(v bool) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *Campaign) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -346,7 +346,7 @@ func (o *Campaign) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -354,7 +354,7 @@ func (o *Campaign) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *Campaign) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -368,7 +368,7 @@ func (o *Campaign) SetStatus(v string) { // GetCorrelatedStatus returns the CorrelatedStatus field value if set, zero value otherwise. func (o *Campaign) GetCorrelatedStatus() string { - if o == nil || isNil(o.CorrelatedStatus) { + if o == nil || IsNil(o.CorrelatedStatus) { var ret string return ret } @@ -378,7 +378,7 @@ func (o *Campaign) GetCorrelatedStatus() string { // GetCorrelatedStatusOk returns a tuple with the CorrelatedStatus field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetCorrelatedStatusOk() (*string, bool) { - if o == nil || isNil(o.CorrelatedStatus) { + if o == nil || IsNil(o.CorrelatedStatus) { return nil, false } return o.CorrelatedStatus, true @@ -386,7 +386,7 @@ func (o *Campaign) GetCorrelatedStatusOk() (*string, bool) { // HasCorrelatedStatus returns a boolean if a field has been set. func (o *Campaign) HasCorrelatedStatus() bool { - if o != nil && !isNil(o.CorrelatedStatus) { + if o != nil && !IsNil(o.CorrelatedStatus) { return true } @@ -400,7 +400,7 @@ func (o *Campaign) SetCorrelatedStatus(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *Campaign) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -410,7 +410,7 @@ func (o *Campaign) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -418,7 +418,7 @@ func (o *Campaign) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *Campaign) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -432,7 +432,7 @@ func (o *Campaign) SetCreated(v time.Time) { // GetTotalCertifications returns the TotalCertifications field value if set, zero value otherwise. func (o *Campaign) GetTotalCertifications() int32 { - if o == nil || isNil(o.TotalCertifications) { + if o == nil || IsNil(o.TotalCertifications) { var ret int32 return ret } @@ -442,7 +442,7 @@ func (o *Campaign) GetTotalCertifications() int32 { // GetTotalCertificationsOk returns a tuple with the TotalCertifications field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetTotalCertificationsOk() (*int32, bool) { - if o == nil || isNil(o.TotalCertifications) { + if o == nil || IsNil(o.TotalCertifications) { return nil, false } return o.TotalCertifications, true @@ -450,7 +450,7 @@ func (o *Campaign) GetTotalCertificationsOk() (*int32, bool) { // HasTotalCertifications returns a boolean if a field has been set. func (o *Campaign) HasTotalCertifications() bool { - if o != nil && !isNil(o.TotalCertifications) { + if o != nil && !IsNil(o.TotalCertifications) { return true } @@ -464,7 +464,7 @@ func (o *Campaign) SetTotalCertifications(v int32) { // GetCompletedCertifications returns the CompletedCertifications field value if set, zero value otherwise. func (o *Campaign) GetCompletedCertifications() int32 { - if o == nil || isNil(o.CompletedCertifications) { + if o == nil || IsNil(o.CompletedCertifications) { var ret int32 return ret } @@ -474,7 +474,7 @@ func (o *Campaign) GetCompletedCertifications() int32 { // GetCompletedCertificationsOk returns a tuple with the CompletedCertifications field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetCompletedCertificationsOk() (*int32, bool) { - if o == nil || isNil(o.CompletedCertifications) { + if o == nil || IsNil(o.CompletedCertifications) { return nil, false } return o.CompletedCertifications, true @@ -482,7 +482,7 @@ func (o *Campaign) GetCompletedCertificationsOk() (*int32, bool) { // HasCompletedCertifications returns a boolean if a field has been set. func (o *Campaign) HasCompletedCertifications() bool { - if o != nil && !isNil(o.CompletedCertifications) { + if o != nil && !IsNil(o.CompletedCertifications) { return true } @@ -496,7 +496,7 @@ func (o *Campaign) SetCompletedCertifications(v int32) { // GetAlerts returns the Alerts field value if set, zero value otherwise. func (o *Campaign) GetAlerts() []CampaignAlert { - if o == nil || isNil(o.Alerts) { + if o == nil || IsNil(o.Alerts) { var ret []CampaignAlert return ret } @@ -506,7 +506,7 @@ func (o *Campaign) GetAlerts() []CampaignAlert { // GetAlertsOk returns a tuple with the Alerts field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetAlertsOk() ([]CampaignAlert, bool) { - if o == nil || isNil(o.Alerts) { + if o == nil || IsNil(o.Alerts) { return nil, false } return o.Alerts, true @@ -514,7 +514,7 @@ func (o *Campaign) GetAlertsOk() ([]CampaignAlert, bool) { // HasAlerts returns a boolean if a field has been set. func (o *Campaign) HasAlerts() bool { - if o != nil && !isNil(o.Alerts) { + if o != nil && !IsNil(o.Alerts) { return true } @@ -528,7 +528,7 @@ func (o *Campaign) SetAlerts(v []CampaignAlert) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *Campaign) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -538,7 +538,7 @@ func (o *Campaign) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -546,7 +546,7 @@ func (o *Campaign) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *Campaign) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -560,7 +560,7 @@ func (o *Campaign) SetModified(v time.Time) { // GetFilter returns the Filter field value if set, zero value otherwise. func (o *Campaign) GetFilter() CampaignAllOfFilter { - if o == nil || isNil(o.Filter) { + if o == nil || IsNil(o.Filter) { var ret CampaignAllOfFilter return ret } @@ -570,7 +570,7 @@ func (o *Campaign) GetFilter() CampaignAllOfFilter { // GetFilterOk returns a tuple with the Filter field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetFilterOk() (*CampaignAllOfFilter, bool) { - if o == nil || isNil(o.Filter) { + if o == nil || IsNil(o.Filter) { return nil, false } return o.Filter, true @@ -578,7 +578,7 @@ func (o *Campaign) GetFilterOk() (*CampaignAllOfFilter, bool) { // HasFilter returns a boolean if a field has been set. func (o *Campaign) HasFilter() bool { - if o != nil && !isNil(o.Filter) { + if o != nil && !IsNil(o.Filter) { return true } @@ -592,7 +592,7 @@ func (o *Campaign) SetFilter(v CampaignAllOfFilter) { // GetSunsetCommentsRequired returns the SunsetCommentsRequired field value if set, zero value otherwise. func (o *Campaign) GetSunsetCommentsRequired() bool { - if o == nil || isNil(o.SunsetCommentsRequired) { + if o == nil || IsNil(o.SunsetCommentsRequired) { var ret bool return ret } @@ -602,7 +602,7 @@ func (o *Campaign) GetSunsetCommentsRequired() bool { // GetSunsetCommentsRequiredOk returns a tuple with the SunsetCommentsRequired field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetSunsetCommentsRequiredOk() (*bool, bool) { - if o == nil || isNil(o.SunsetCommentsRequired) { + if o == nil || IsNil(o.SunsetCommentsRequired) { return nil, false } return o.SunsetCommentsRequired, true @@ -610,7 +610,7 @@ func (o *Campaign) GetSunsetCommentsRequiredOk() (*bool, bool) { // HasSunsetCommentsRequired returns a boolean if a field has been set. func (o *Campaign) HasSunsetCommentsRequired() bool { - if o != nil && !isNil(o.SunsetCommentsRequired) { + if o != nil && !IsNil(o.SunsetCommentsRequired) { return true } @@ -624,7 +624,7 @@ func (o *Campaign) SetSunsetCommentsRequired(v bool) { // GetSourceOwnerCampaignInfo returns the SourceOwnerCampaignInfo field value if set, zero value otherwise. func (o *Campaign) GetSourceOwnerCampaignInfo() CampaignAllOfSourceOwnerCampaignInfo { - if o == nil || isNil(o.SourceOwnerCampaignInfo) { + if o == nil || IsNil(o.SourceOwnerCampaignInfo) { var ret CampaignAllOfSourceOwnerCampaignInfo return ret } @@ -634,7 +634,7 @@ func (o *Campaign) GetSourceOwnerCampaignInfo() CampaignAllOfSourceOwnerCampaign // GetSourceOwnerCampaignInfoOk returns a tuple with the SourceOwnerCampaignInfo field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetSourceOwnerCampaignInfoOk() (*CampaignAllOfSourceOwnerCampaignInfo, bool) { - if o == nil || isNil(o.SourceOwnerCampaignInfo) { + if o == nil || IsNil(o.SourceOwnerCampaignInfo) { return nil, false } return o.SourceOwnerCampaignInfo, true @@ -642,7 +642,7 @@ func (o *Campaign) GetSourceOwnerCampaignInfoOk() (*CampaignAllOfSourceOwnerCamp // HasSourceOwnerCampaignInfo returns a boolean if a field has been set. func (o *Campaign) HasSourceOwnerCampaignInfo() bool { - if o != nil && !isNil(o.SourceOwnerCampaignInfo) { + if o != nil && !IsNil(o.SourceOwnerCampaignInfo) { return true } @@ -656,7 +656,7 @@ func (o *Campaign) SetSourceOwnerCampaignInfo(v CampaignAllOfSourceOwnerCampaign // GetSearchCampaignInfo returns the SearchCampaignInfo field value if set, zero value otherwise. func (o *Campaign) GetSearchCampaignInfo() CampaignAllOfSearchCampaignInfo { - if o == nil || isNil(o.SearchCampaignInfo) { + if o == nil || IsNil(o.SearchCampaignInfo) { var ret CampaignAllOfSearchCampaignInfo return ret } @@ -666,7 +666,7 @@ func (o *Campaign) GetSearchCampaignInfo() CampaignAllOfSearchCampaignInfo { // GetSearchCampaignInfoOk returns a tuple with the SearchCampaignInfo field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetSearchCampaignInfoOk() (*CampaignAllOfSearchCampaignInfo, bool) { - if o == nil || isNil(o.SearchCampaignInfo) { + if o == nil || IsNil(o.SearchCampaignInfo) { return nil, false } return o.SearchCampaignInfo, true @@ -674,7 +674,7 @@ func (o *Campaign) GetSearchCampaignInfoOk() (*CampaignAllOfSearchCampaignInfo, // HasSearchCampaignInfo returns a boolean if a field has been set. func (o *Campaign) HasSearchCampaignInfo() bool { - if o != nil && !isNil(o.SearchCampaignInfo) { + if o != nil && !IsNil(o.SearchCampaignInfo) { return true } @@ -688,7 +688,7 @@ func (o *Campaign) SetSearchCampaignInfo(v CampaignAllOfSearchCampaignInfo) { // GetRoleCompositionCampaignInfo returns the RoleCompositionCampaignInfo field value if set, zero value otherwise. func (o *Campaign) GetRoleCompositionCampaignInfo() CampaignAllOfRoleCompositionCampaignInfo { - if o == nil || isNil(o.RoleCompositionCampaignInfo) { + if o == nil || IsNil(o.RoleCompositionCampaignInfo) { var ret CampaignAllOfRoleCompositionCampaignInfo return ret } @@ -698,7 +698,7 @@ func (o *Campaign) GetRoleCompositionCampaignInfo() CampaignAllOfRoleComposition // GetRoleCompositionCampaignInfoOk returns a tuple with the RoleCompositionCampaignInfo field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetRoleCompositionCampaignInfoOk() (*CampaignAllOfRoleCompositionCampaignInfo, bool) { - if o == nil || isNil(o.RoleCompositionCampaignInfo) { + if o == nil || IsNil(o.RoleCompositionCampaignInfo) { return nil, false } return o.RoleCompositionCampaignInfo, true @@ -706,7 +706,7 @@ func (o *Campaign) GetRoleCompositionCampaignInfoOk() (*CampaignAllOfRoleComposi // HasRoleCompositionCampaignInfo returns a boolean if a field has been set. func (o *Campaign) HasRoleCompositionCampaignInfo() bool { - if o != nil && !isNil(o.RoleCompositionCampaignInfo) { + if o != nil && !IsNil(o.RoleCompositionCampaignInfo) { return true } @@ -720,7 +720,7 @@ func (o *Campaign) SetRoleCompositionCampaignInfo(v CampaignAllOfRoleComposition // GetSourcesWithOrphanEntitlements returns the SourcesWithOrphanEntitlements field value if set, zero value otherwise. func (o *Campaign) GetSourcesWithOrphanEntitlements() []CampaignAllOfSourcesWithOrphanEntitlements { - if o == nil || isNil(o.SourcesWithOrphanEntitlements) { + if o == nil || IsNil(o.SourcesWithOrphanEntitlements) { var ret []CampaignAllOfSourcesWithOrphanEntitlements return ret } @@ -730,7 +730,7 @@ func (o *Campaign) GetSourcesWithOrphanEntitlements() []CampaignAllOfSourcesWith // GetSourcesWithOrphanEntitlementsOk returns a tuple with the SourcesWithOrphanEntitlements field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetSourcesWithOrphanEntitlementsOk() ([]CampaignAllOfSourcesWithOrphanEntitlements, bool) { - if o == nil || isNil(o.SourcesWithOrphanEntitlements) { + if o == nil || IsNil(o.SourcesWithOrphanEntitlements) { return nil, false } return o.SourcesWithOrphanEntitlements, true @@ -738,7 +738,7 @@ func (o *Campaign) GetSourcesWithOrphanEntitlementsOk() ([]CampaignAllOfSourcesW // HasSourcesWithOrphanEntitlements returns a boolean if a field has been set. func (o *Campaign) HasSourcesWithOrphanEntitlements() bool { - if o != nil && !isNil(o.SourcesWithOrphanEntitlements) { + if o != nil && !IsNil(o.SourcesWithOrphanEntitlements) { return true } @@ -752,7 +752,7 @@ func (o *Campaign) SetSourcesWithOrphanEntitlements(v []CampaignAllOfSourcesWith // GetMandatoryCommentRequirement returns the MandatoryCommentRequirement field value if set, zero value otherwise. func (o *Campaign) GetMandatoryCommentRequirement() string { - if o == nil || isNil(o.MandatoryCommentRequirement) { + if o == nil || IsNil(o.MandatoryCommentRequirement) { var ret string return ret } @@ -762,7 +762,7 @@ func (o *Campaign) GetMandatoryCommentRequirement() string { // GetMandatoryCommentRequirementOk returns a tuple with the MandatoryCommentRequirement field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Campaign) GetMandatoryCommentRequirementOk() (*string, bool) { - if o == nil || isNil(o.MandatoryCommentRequirement) { + if o == nil || IsNil(o.MandatoryCommentRequirement) { return nil, false } return o.MandatoryCommentRequirement, true @@ -770,7 +770,7 @@ func (o *Campaign) GetMandatoryCommentRequirementOk() (*string, bool) { // HasMandatoryCommentRequirement returns a boolean if a field has been set. func (o *Campaign) HasMandatoryCommentRequirement() bool { - if o != nil && !isNil(o.MandatoryCommentRequirement) { + if o != nil && !IsNil(o.MandatoryCommentRequirement) { return true } @@ -792,48 +792,64 @@ func (o Campaign) MarshalJSON() ([]byte, error) { func (o Campaign) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } toSerialize["name"] = o.Name toSerialize["description"] = o.Description - if !isNil(o.Deadline) { + if !IsNil(o.Deadline) { toSerialize["deadline"] = o.Deadline } toSerialize["type"] = o.Type - if !isNil(o.EmailNotificationEnabled) { + if !IsNil(o.EmailNotificationEnabled) { toSerialize["emailNotificationEnabled"] = o.EmailNotificationEnabled } - if !isNil(o.AutoRevokeAllowed) { + if !IsNil(o.AutoRevokeAllowed) { toSerialize["autoRevokeAllowed"] = o.AutoRevokeAllowed } - if !isNil(o.RecommendationsEnabled) { + if !IsNil(o.RecommendationsEnabled) { toSerialize["recommendationsEnabled"] = o.RecommendationsEnabled } - // skip: status is readOnly - if !isNil(o.CorrelatedStatus) { + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.CorrelatedStatus) { toSerialize["correlatedStatus"] = o.CorrelatedStatus } - // skip: created is readOnly - // skip: totalCertifications is readOnly - // skip: completedCertifications is readOnly - // skip: alerts is readOnly - // skip: modified is readOnly - if !isNil(o.Filter) { + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } + if !IsNil(o.TotalCertifications) { + toSerialize["totalCertifications"] = o.TotalCertifications + } + if !IsNil(o.CompletedCertifications) { + toSerialize["completedCertifications"] = o.CompletedCertifications + } + if !IsNil(o.Alerts) { + toSerialize["alerts"] = o.Alerts + } + if !IsNil(o.Modified) { + toSerialize["modified"] = o.Modified + } + if !IsNil(o.Filter) { toSerialize["filter"] = o.Filter } - if !isNil(o.SunsetCommentsRequired) { + if !IsNil(o.SunsetCommentsRequired) { toSerialize["sunsetCommentsRequired"] = o.SunsetCommentsRequired } - if !isNil(o.SourceOwnerCampaignInfo) { + if !IsNil(o.SourceOwnerCampaignInfo) { toSerialize["sourceOwnerCampaignInfo"] = o.SourceOwnerCampaignInfo } - if !isNil(o.SearchCampaignInfo) { + if !IsNil(o.SearchCampaignInfo) { toSerialize["searchCampaignInfo"] = o.SearchCampaignInfo } - if !isNil(o.RoleCompositionCampaignInfo) { + if !IsNil(o.RoleCompositionCampaignInfo) { toSerialize["roleCompositionCampaignInfo"] = o.RoleCompositionCampaignInfo } - // skip: sourcesWithOrphanEntitlements is readOnly - if !isNil(o.MandatoryCommentRequirement) { + if !IsNil(o.SourcesWithOrphanEntitlements) { + toSerialize["sourcesWithOrphanEntitlements"] = o.SourcesWithOrphanEntitlements + } + if !IsNil(o.MandatoryCommentRequirement) { toSerialize["mandatoryCommentRequirement"] = o.MandatoryCommentRequirement } @@ -844,8 +860,8 @@ func (o Campaign) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Campaign) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *Campaign) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -856,7 +872,7 @@ func (o *Campaign) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -870,13 +886,17 @@ func (o *Campaign) UnmarshalJSON(bytes []byte) (err error) { varCampaign := _Campaign{} - if err = json.Unmarshal(bytes, &varCampaign); err == nil { + err = json.Unmarshal(data, &varCampaign) + + if err != nil { + return err + } + *o = Campaign(varCampaign) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/api_v3/model_campaign_alert.go b/api_v3/model_campaign_alert.go index c75169031..510f51a28 100644 --- a/api_v3/model_campaign_alert.go +++ b/api_v3/model_campaign_alert.go @@ -46,7 +46,7 @@ func NewCampaignAlertWithDefaults() *CampaignAlert { // GetLevel returns the Level field value if set, zero value otherwise. func (o *CampaignAlert) GetLevel() string { - if o == nil || isNil(o.Level) { + if o == nil || IsNil(o.Level) { var ret string return ret } @@ -56,7 +56,7 @@ func (o *CampaignAlert) GetLevel() string { // GetLevelOk returns a tuple with the Level field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAlert) GetLevelOk() (*string, bool) { - if o == nil || isNil(o.Level) { + if o == nil || IsNil(o.Level) { return nil, false } return o.Level, true @@ -64,7 +64,7 @@ func (o *CampaignAlert) GetLevelOk() (*string, bool) { // HasLevel returns a boolean if a field has been set. func (o *CampaignAlert) HasLevel() bool { - if o != nil && !isNil(o.Level) { + if o != nil && !IsNil(o.Level) { return true } @@ -78,7 +78,7 @@ func (o *CampaignAlert) SetLevel(v string) { // GetLocalizations returns the Localizations field value if set, zero value otherwise. func (o *CampaignAlert) GetLocalizations() []ErrorMessageDto { - if o == nil || isNil(o.Localizations) { + if o == nil || IsNil(o.Localizations) { var ret []ErrorMessageDto return ret } @@ -88,7 +88,7 @@ func (o *CampaignAlert) GetLocalizations() []ErrorMessageDto { // GetLocalizationsOk returns a tuple with the Localizations field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAlert) GetLocalizationsOk() ([]ErrorMessageDto, bool) { - if o == nil || isNil(o.Localizations) { + if o == nil || IsNil(o.Localizations) { return nil, false } return o.Localizations, true @@ -96,7 +96,7 @@ func (o *CampaignAlert) GetLocalizationsOk() ([]ErrorMessageDto, bool) { // HasLocalizations returns a boolean if a field has been set. func (o *CampaignAlert) HasLocalizations() bool { - if o != nil && !isNil(o.Localizations) { + if o != nil && !IsNil(o.Localizations) { return true } @@ -118,10 +118,10 @@ func (o CampaignAlert) MarshalJSON() ([]byte, error) { func (o CampaignAlert) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Level) { + if !IsNil(o.Level) { toSerialize["level"] = o.Level } - if !isNil(o.Localizations) { + if !IsNil(o.Localizations) { toSerialize["localizations"] = o.Localizations } @@ -132,16 +132,20 @@ func (o CampaignAlert) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CampaignAlert) UnmarshalJSON(bytes []byte) (err error) { +func (o *CampaignAlert) UnmarshalJSON(data []byte) (err error) { varCampaignAlert := _CampaignAlert{} - if err = json.Unmarshal(bytes, &varCampaignAlert); err == nil { + err = json.Unmarshal(data, &varCampaignAlert) + + if err != nil { + return err + } + *o = CampaignAlert(varCampaignAlert) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "level") delete(additionalProperties, "localizations") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_campaign_all_of_filter.go b/api_v3/model_campaign_all_of_filter.go index 139c7862f..83c7124a3 100644 --- a/api_v3/model_campaign_all_of_filter.go +++ b/api_v3/model_campaign_all_of_filter.go @@ -49,7 +49,7 @@ func NewCampaignAllOfFilterWithDefaults() *CampaignAllOfFilter { // GetId returns the Id field value if set, zero value otherwise. func (o *CampaignAllOfFilter) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *CampaignAllOfFilter) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfFilter) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -67,7 +67,7 @@ func (o *CampaignAllOfFilter) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *CampaignAllOfFilter) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -81,7 +81,7 @@ func (o *CampaignAllOfFilter) SetId(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *CampaignAllOfFilter) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *CampaignAllOfFilter) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfFilter) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -99,7 +99,7 @@ func (o *CampaignAllOfFilter) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *CampaignAllOfFilter) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -113,7 +113,7 @@ func (o *CampaignAllOfFilter) SetType(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *CampaignAllOfFilter) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *CampaignAllOfFilter) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfFilter) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *CampaignAllOfFilter) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *CampaignAllOfFilter) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o CampaignAllOfFilter) MarshalJSON() ([]byte, error) { func (o CampaignAllOfFilter) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o CampaignAllOfFilter) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CampaignAllOfFilter) UnmarshalJSON(bytes []byte) (err error) { +func (o *CampaignAllOfFilter) UnmarshalJSON(data []byte) (err error) { varCampaignAllOfFilter := _CampaignAllOfFilter{} - if err = json.Unmarshal(bytes, &varCampaignAllOfFilter); err == nil { + err = json.Unmarshal(data, &varCampaignAllOfFilter) + + if err != nil { + return err + } + *o = CampaignAllOfFilter(varCampaignAllOfFilter) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "type") delete(additionalProperties, "name") diff --git a/api_v3/model_campaign_all_of_role_composition_campaign_info.go b/api_v3/model_campaign_all_of_role_composition_campaign_info.go index c93e94725..223fb41fd 100644 --- a/api_v3/model_campaign_all_of_role_composition_campaign_info.go +++ b/api_v3/model_campaign_all_of_role_composition_campaign_info.go @@ -53,7 +53,7 @@ func NewCampaignAllOfRoleCompositionCampaignInfoWithDefaults() *CampaignAllOfRol // GetReviewer returns the Reviewer field value if set, zero value otherwise. func (o *CampaignAllOfRoleCompositionCampaignInfo) GetReviewer() CampaignAllOfSearchCampaignInfoReviewer { - if o == nil || isNil(o.Reviewer) { + if o == nil || IsNil(o.Reviewer) { var ret CampaignAllOfSearchCampaignInfoReviewer return ret } @@ -63,7 +63,7 @@ func (o *CampaignAllOfRoleCompositionCampaignInfo) GetReviewer() CampaignAllOfSe // GetReviewerOk returns a tuple with the Reviewer field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfRoleCompositionCampaignInfo) GetReviewerOk() (*CampaignAllOfSearchCampaignInfoReviewer, bool) { - if o == nil || isNil(o.Reviewer) { + if o == nil || IsNil(o.Reviewer) { return nil, false } return o.Reviewer, true @@ -71,7 +71,7 @@ func (o *CampaignAllOfRoleCompositionCampaignInfo) GetReviewerOk() (*CampaignAll // HasReviewer returns a boolean if a field has been set. func (o *CampaignAllOfRoleCompositionCampaignInfo) HasReviewer() bool { - if o != nil && !isNil(o.Reviewer) { + if o != nil && !IsNil(o.Reviewer) { return true } @@ -85,7 +85,7 @@ func (o *CampaignAllOfRoleCompositionCampaignInfo) SetReviewer(v CampaignAllOfSe // GetRoleIds returns the RoleIds field value if set, zero value otherwise. func (o *CampaignAllOfRoleCompositionCampaignInfo) GetRoleIds() []string { - if o == nil || isNil(o.RoleIds) { + if o == nil || IsNil(o.RoleIds) { var ret []string return ret } @@ -95,7 +95,7 @@ func (o *CampaignAllOfRoleCompositionCampaignInfo) GetRoleIds() []string { // GetRoleIdsOk returns a tuple with the RoleIds field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfRoleCompositionCampaignInfo) GetRoleIdsOk() ([]string, bool) { - if o == nil || isNil(o.RoleIds) { + if o == nil || IsNil(o.RoleIds) { return nil, false } return o.RoleIds, true @@ -103,7 +103,7 @@ func (o *CampaignAllOfRoleCompositionCampaignInfo) GetRoleIdsOk() ([]string, boo // HasRoleIds returns a boolean if a field has been set. func (o *CampaignAllOfRoleCompositionCampaignInfo) HasRoleIds() bool { - if o != nil && !isNil(o.RoleIds) { + if o != nil && !IsNil(o.RoleIds) { return true } @@ -141,7 +141,7 @@ func (o *CampaignAllOfRoleCompositionCampaignInfo) SetRemediatorRef(v CampaignAl // GetQuery returns the Query field value if set, zero value otherwise. func (o *CampaignAllOfRoleCompositionCampaignInfo) GetQuery() string { - if o == nil || isNil(o.Query) { + if o == nil || IsNil(o.Query) { var ret string return ret } @@ -151,7 +151,7 @@ func (o *CampaignAllOfRoleCompositionCampaignInfo) GetQuery() string { // GetQueryOk returns a tuple with the Query field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfRoleCompositionCampaignInfo) GetQueryOk() (*string, bool) { - if o == nil || isNil(o.Query) { + if o == nil || IsNil(o.Query) { return nil, false } return o.Query, true @@ -159,7 +159,7 @@ func (o *CampaignAllOfRoleCompositionCampaignInfo) GetQueryOk() (*string, bool) // HasQuery returns a boolean if a field has been set. func (o *CampaignAllOfRoleCompositionCampaignInfo) HasQuery() bool { - if o != nil && !isNil(o.Query) { + if o != nil && !IsNil(o.Query) { return true } @@ -173,7 +173,7 @@ func (o *CampaignAllOfRoleCompositionCampaignInfo) SetQuery(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *CampaignAllOfRoleCompositionCampaignInfo) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -183,7 +183,7 @@ func (o *CampaignAllOfRoleCompositionCampaignInfo) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfRoleCompositionCampaignInfo) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -191,7 +191,7 @@ func (o *CampaignAllOfRoleCompositionCampaignInfo) GetDescriptionOk() (*string, // HasDescription returns a boolean if a field has been set. func (o *CampaignAllOfRoleCompositionCampaignInfo) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -213,17 +213,17 @@ func (o CampaignAllOfRoleCompositionCampaignInfo) MarshalJSON() ([]byte, error) func (o CampaignAllOfRoleCompositionCampaignInfo) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Reviewer) { + if !IsNil(o.Reviewer) { toSerialize["reviewer"] = o.Reviewer } - if !isNil(o.RoleIds) { + if !IsNil(o.RoleIds) { toSerialize["roleIds"] = o.RoleIds } toSerialize["remediatorRef"] = o.RemediatorRef - if !isNil(o.Query) { + if !IsNil(o.Query) { toSerialize["query"] = o.Query } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -234,8 +234,8 @@ func (o CampaignAllOfRoleCompositionCampaignInfo) ToMap() (map[string]interface{ return toSerialize, nil } -func (o *CampaignAllOfRoleCompositionCampaignInfo) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *CampaignAllOfRoleCompositionCampaignInfo) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -244,7 +244,7 @@ func (o *CampaignAllOfRoleCompositionCampaignInfo) UnmarshalJSON(bytes []byte) ( allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -258,13 +258,17 @@ func (o *CampaignAllOfRoleCompositionCampaignInfo) UnmarshalJSON(bytes []byte) ( varCampaignAllOfRoleCompositionCampaignInfo := _CampaignAllOfRoleCompositionCampaignInfo{} - if err = json.Unmarshal(bytes, &varCampaignAllOfRoleCompositionCampaignInfo); err == nil { + err = json.Unmarshal(data, &varCampaignAllOfRoleCompositionCampaignInfo) + + if err != nil { + return err + } + *o = CampaignAllOfRoleCompositionCampaignInfo(varCampaignAllOfRoleCompositionCampaignInfo) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "reviewer") delete(additionalProperties, "roleIds") delete(additionalProperties, "remediatorRef") diff --git a/api_v3/model_campaign_all_of_role_composition_campaign_info_remediator_ref.go b/api_v3/model_campaign_all_of_role_composition_campaign_info_remediator_ref.go index 79e43629f..d77ea4ec9 100644 --- a/api_v3/model_campaign_all_of_role_composition_campaign_info_remediator_ref.go +++ b/api_v3/model_campaign_all_of_role_composition_campaign_info_remediator_ref.go @@ -100,7 +100,7 @@ func (o *CampaignAllOfRoleCompositionCampaignInfoRemediatorRef) SetId(v string) // GetName returns the Name field value if set, zero value otherwise. func (o *CampaignAllOfRoleCompositionCampaignInfoRemediatorRef) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -110,7 +110,7 @@ func (o *CampaignAllOfRoleCompositionCampaignInfoRemediatorRef) GetName() string // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfRoleCompositionCampaignInfoRemediatorRef) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -118,7 +118,7 @@ func (o *CampaignAllOfRoleCompositionCampaignInfoRemediatorRef) GetNameOk() (*st // HasName returns a boolean if a field has been set. func (o *CampaignAllOfRoleCompositionCampaignInfoRemediatorRef) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -142,7 +142,9 @@ func (o CampaignAllOfRoleCompositionCampaignInfoRemediatorRef) ToMap() (map[stri toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type toSerialize["id"] = o.Id - // skip: name is readOnly + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -151,8 +153,8 @@ func (o CampaignAllOfRoleCompositionCampaignInfoRemediatorRef) ToMap() (map[stri return toSerialize, nil } -func (o *CampaignAllOfRoleCompositionCampaignInfoRemediatorRef) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *CampaignAllOfRoleCompositionCampaignInfoRemediatorRef) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -162,7 +164,7 @@ func (o *CampaignAllOfRoleCompositionCampaignInfoRemediatorRef) UnmarshalJSON(by allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -176,13 +178,17 @@ func (o *CampaignAllOfRoleCompositionCampaignInfoRemediatorRef) UnmarshalJSON(by varCampaignAllOfRoleCompositionCampaignInfoRemediatorRef := _CampaignAllOfRoleCompositionCampaignInfoRemediatorRef{} - if err = json.Unmarshal(bytes, &varCampaignAllOfRoleCompositionCampaignInfoRemediatorRef); err == nil { + err = json.Unmarshal(data, &varCampaignAllOfRoleCompositionCampaignInfoRemediatorRef) + + if err != nil { + return err + } + *o = CampaignAllOfRoleCompositionCampaignInfoRemediatorRef(varCampaignAllOfRoleCompositionCampaignInfoRemediatorRef) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_campaign_all_of_search_campaign_info.go b/api_v3/model_campaign_all_of_search_campaign_info.go index 629e642f5..d4a8b0fb8 100644 --- a/api_v3/model_campaign_all_of_search_campaign_info.go +++ b/api_v3/model_campaign_all_of_search_campaign_info.go @@ -80,7 +80,7 @@ func (o *CampaignAllOfSearchCampaignInfo) SetType(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *CampaignAllOfSearchCampaignInfo) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -90,7 +90,7 @@ func (o *CampaignAllOfSearchCampaignInfo) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfSearchCampaignInfo) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -98,7 +98,7 @@ func (o *CampaignAllOfSearchCampaignInfo) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *CampaignAllOfSearchCampaignInfo) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -112,7 +112,7 @@ func (o *CampaignAllOfSearchCampaignInfo) SetDescription(v string) { // GetReviewer returns the Reviewer field value if set, zero value otherwise. func (o *CampaignAllOfSearchCampaignInfo) GetReviewer() CampaignAllOfSearchCampaignInfoReviewer { - if o == nil || isNil(o.Reviewer) { + if o == nil || IsNil(o.Reviewer) { var ret CampaignAllOfSearchCampaignInfoReviewer return ret } @@ -122,7 +122,7 @@ func (o *CampaignAllOfSearchCampaignInfo) GetReviewer() CampaignAllOfSearchCampa // GetReviewerOk returns a tuple with the Reviewer field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfSearchCampaignInfo) GetReviewerOk() (*CampaignAllOfSearchCampaignInfoReviewer, bool) { - if o == nil || isNil(o.Reviewer) { + if o == nil || IsNil(o.Reviewer) { return nil, false } return o.Reviewer, true @@ -130,7 +130,7 @@ func (o *CampaignAllOfSearchCampaignInfo) GetReviewerOk() (*CampaignAllOfSearchC // HasReviewer returns a boolean if a field has been set. func (o *CampaignAllOfSearchCampaignInfo) HasReviewer() bool { - if o != nil && !isNil(o.Reviewer) { + if o != nil && !IsNil(o.Reviewer) { return true } @@ -144,7 +144,7 @@ func (o *CampaignAllOfSearchCampaignInfo) SetReviewer(v CampaignAllOfSearchCampa // GetQuery returns the Query field value if set, zero value otherwise. func (o *CampaignAllOfSearchCampaignInfo) GetQuery() string { - if o == nil || isNil(o.Query) { + if o == nil || IsNil(o.Query) { var ret string return ret } @@ -154,7 +154,7 @@ func (o *CampaignAllOfSearchCampaignInfo) GetQuery() string { // GetQueryOk returns a tuple with the Query field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfSearchCampaignInfo) GetQueryOk() (*string, bool) { - if o == nil || isNil(o.Query) { + if o == nil || IsNil(o.Query) { return nil, false } return o.Query, true @@ -162,7 +162,7 @@ func (o *CampaignAllOfSearchCampaignInfo) GetQueryOk() (*string, bool) { // HasQuery returns a boolean if a field has been set. func (o *CampaignAllOfSearchCampaignInfo) HasQuery() bool { - if o != nil && !isNil(o.Query) { + if o != nil && !IsNil(o.Query) { return true } @@ -176,7 +176,7 @@ func (o *CampaignAllOfSearchCampaignInfo) SetQuery(v string) { // GetIdentityIds returns the IdentityIds field value if set, zero value otherwise. func (o *CampaignAllOfSearchCampaignInfo) GetIdentityIds() []string { - if o == nil || isNil(o.IdentityIds) { + if o == nil || IsNil(o.IdentityIds) { var ret []string return ret } @@ -186,7 +186,7 @@ func (o *CampaignAllOfSearchCampaignInfo) GetIdentityIds() []string { // GetIdentityIdsOk returns a tuple with the IdentityIds field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfSearchCampaignInfo) GetIdentityIdsOk() ([]string, bool) { - if o == nil || isNil(o.IdentityIds) { + if o == nil || IsNil(o.IdentityIds) { return nil, false } return o.IdentityIds, true @@ -194,7 +194,7 @@ func (o *CampaignAllOfSearchCampaignInfo) GetIdentityIdsOk() ([]string, bool) { // HasIdentityIds returns a boolean if a field has been set. func (o *CampaignAllOfSearchCampaignInfo) HasIdentityIds() bool { - if o != nil && !isNil(o.IdentityIds) { + if o != nil && !IsNil(o.IdentityIds) { return true } @@ -208,7 +208,7 @@ func (o *CampaignAllOfSearchCampaignInfo) SetIdentityIds(v []string) { // GetAccessConstraints returns the AccessConstraints field value if set, zero value otherwise. func (o *CampaignAllOfSearchCampaignInfo) GetAccessConstraints() []AccessConstraint { - if o == nil || isNil(o.AccessConstraints) { + if o == nil || IsNil(o.AccessConstraints) { var ret []AccessConstraint return ret } @@ -218,7 +218,7 @@ func (o *CampaignAllOfSearchCampaignInfo) GetAccessConstraints() []AccessConstra // GetAccessConstraintsOk returns a tuple with the AccessConstraints field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfSearchCampaignInfo) GetAccessConstraintsOk() ([]AccessConstraint, bool) { - if o == nil || isNil(o.AccessConstraints) { + if o == nil || IsNil(o.AccessConstraints) { return nil, false } return o.AccessConstraints, true @@ -226,7 +226,7 @@ func (o *CampaignAllOfSearchCampaignInfo) GetAccessConstraintsOk() ([]AccessCons // HasAccessConstraints returns a boolean if a field has been set. func (o *CampaignAllOfSearchCampaignInfo) HasAccessConstraints() bool { - if o != nil && !isNil(o.AccessConstraints) { + if o != nil && !IsNil(o.AccessConstraints) { return true } @@ -249,19 +249,19 @@ func (o CampaignAllOfSearchCampaignInfo) MarshalJSON() ([]byte, error) { func (o CampaignAllOfSearchCampaignInfo) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.Reviewer) { + if !IsNil(o.Reviewer) { toSerialize["reviewer"] = o.Reviewer } - if !isNil(o.Query) { + if !IsNil(o.Query) { toSerialize["query"] = o.Query } - if !isNil(o.IdentityIds) { + if !IsNil(o.IdentityIds) { toSerialize["identityIds"] = o.IdentityIds } - if !isNil(o.AccessConstraints) { + if !IsNil(o.AccessConstraints) { toSerialize["accessConstraints"] = o.AccessConstraints } @@ -272,8 +272,8 @@ func (o CampaignAllOfSearchCampaignInfo) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *CampaignAllOfSearchCampaignInfo) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *CampaignAllOfSearchCampaignInfo) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -282,7 +282,7 @@ func (o *CampaignAllOfSearchCampaignInfo) UnmarshalJSON(bytes []byte) (err error allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -296,13 +296,17 @@ func (o *CampaignAllOfSearchCampaignInfo) UnmarshalJSON(bytes []byte) (err error varCampaignAllOfSearchCampaignInfo := _CampaignAllOfSearchCampaignInfo{} - if err = json.Unmarshal(bytes, &varCampaignAllOfSearchCampaignInfo); err == nil { + err = json.Unmarshal(data, &varCampaignAllOfSearchCampaignInfo) + + if err != nil { + return err + } + *o = CampaignAllOfSearchCampaignInfo(varCampaignAllOfSearchCampaignInfo) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "description") delete(additionalProperties, "reviewer") diff --git a/api_v3/model_campaign_all_of_search_campaign_info_reviewer.go b/api_v3/model_campaign_all_of_search_campaign_info_reviewer.go index 0d4a4a6d5..ef93c89b7 100644 --- a/api_v3/model_campaign_all_of_search_campaign_info_reviewer.go +++ b/api_v3/model_campaign_all_of_search_campaign_info_reviewer.go @@ -49,7 +49,7 @@ func NewCampaignAllOfSearchCampaignInfoReviewerWithDefaults() *CampaignAllOfSear // GetType returns the Type field value if set, zero value otherwise. func (o *CampaignAllOfSearchCampaignInfoReviewer) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *CampaignAllOfSearchCampaignInfoReviewer) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfSearchCampaignInfoReviewer) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *CampaignAllOfSearchCampaignInfoReviewer) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *CampaignAllOfSearchCampaignInfoReviewer) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *CampaignAllOfSearchCampaignInfoReviewer) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *CampaignAllOfSearchCampaignInfoReviewer) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *CampaignAllOfSearchCampaignInfoReviewer) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfSearchCampaignInfoReviewer) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *CampaignAllOfSearchCampaignInfoReviewer) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *CampaignAllOfSearchCampaignInfoReviewer) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *CampaignAllOfSearchCampaignInfoReviewer) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *CampaignAllOfSearchCampaignInfoReviewer) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *CampaignAllOfSearchCampaignInfoReviewer) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfSearchCampaignInfoReviewer) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *CampaignAllOfSearchCampaignInfoReviewer) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *CampaignAllOfSearchCampaignInfoReviewer) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o CampaignAllOfSearchCampaignInfoReviewer) MarshalJSON() ([]byte, error) { func (o CampaignAllOfSearchCampaignInfoReviewer) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o CampaignAllOfSearchCampaignInfoReviewer) ToMap() (map[string]interface{} return toSerialize, nil } -func (o *CampaignAllOfSearchCampaignInfoReviewer) UnmarshalJSON(bytes []byte) (err error) { +func (o *CampaignAllOfSearchCampaignInfoReviewer) UnmarshalJSON(data []byte) (err error) { varCampaignAllOfSearchCampaignInfoReviewer := _CampaignAllOfSearchCampaignInfoReviewer{} - if err = json.Unmarshal(bytes, &varCampaignAllOfSearchCampaignInfoReviewer); err == nil { + err = json.Unmarshal(data, &varCampaignAllOfSearchCampaignInfoReviewer) + + if err != nil { + return err + } + *o = CampaignAllOfSearchCampaignInfoReviewer(varCampaignAllOfSearchCampaignInfoReviewer) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_campaign_all_of_source_owner_campaign_info.go b/api_v3/model_campaign_all_of_source_owner_campaign_info.go index 82267cb23..c3b2ae281 100644 --- a/api_v3/model_campaign_all_of_source_owner_campaign_info.go +++ b/api_v3/model_campaign_all_of_source_owner_campaign_info.go @@ -45,7 +45,7 @@ func NewCampaignAllOfSourceOwnerCampaignInfoWithDefaults() *CampaignAllOfSourceO // GetSourceIds returns the SourceIds field value if set, zero value otherwise. func (o *CampaignAllOfSourceOwnerCampaignInfo) GetSourceIds() []string { - if o == nil || isNil(o.SourceIds) { + if o == nil || IsNil(o.SourceIds) { var ret []string return ret } @@ -55,7 +55,7 @@ func (o *CampaignAllOfSourceOwnerCampaignInfo) GetSourceIds() []string { // GetSourceIdsOk returns a tuple with the SourceIds field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfSourceOwnerCampaignInfo) GetSourceIdsOk() ([]string, bool) { - if o == nil || isNil(o.SourceIds) { + if o == nil || IsNil(o.SourceIds) { return nil, false } return o.SourceIds, true @@ -63,7 +63,7 @@ func (o *CampaignAllOfSourceOwnerCampaignInfo) GetSourceIdsOk() ([]string, bool) // HasSourceIds returns a boolean if a field has been set. func (o *CampaignAllOfSourceOwnerCampaignInfo) HasSourceIds() bool { - if o != nil && !isNil(o.SourceIds) { + if o != nil && !IsNil(o.SourceIds) { return true } @@ -85,7 +85,7 @@ func (o CampaignAllOfSourceOwnerCampaignInfo) MarshalJSON() ([]byte, error) { func (o CampaignAllOfSourceOwnerCampaignInfo) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.SourceIds) { + if !IsNil(o.SourceIds) { toSerialize["sourceIds"] = o.SourceIds } @@ -96,16 +96,20 @@ func (o CampaignAllOfSourceOwnerCampaignInfo) ToMap() (map[string]interface{}, e return toSerialize, nil } -func (o *CampaignAllOfSourceOwnerCampaignInfo) UnmarshalJSON(bytes []byte) (err error) { +func (o *CampaignAllOfSourceOwnerCampaignInfo) UnmarshalJSON(data []byte) (err error) { varCampaignAllOfSourceOwnerCampaignInfo := _CampaignAllOfSourceOwnerCampaignInfo{} - if err = json.Unmarshal(bytes, &varCampaignAllOfSourceOwnerCampaignInfo); err == nil { + err = json.Unmarshal(data, &varCampaignAllOfSourceOwnerCampaignInfo) + + if err != nil { + return err + } + *o = CampaignAllOfSourceOwnerCampaignInfo(varCampaignAllOfSourceOwnerCampaignInfo) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "sourceIds") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_campaign_all_of_sources_with_orphan_entitlements.go b/api_v3/model_campaign_all_of_sources_with_orphan_entitlements.go index 73d263226..dd13e847f 100644 --- a/api_v3/model_campaign_all_of_sources_with_orphan_entitlements.go +++ b/api_v3/model_campaign_all_of_sources_with_orphan_entitlements.go @@ -49,7 +49,7 @@ func NewCampaignAllOfSourcesWithOrphanEntitlementsWithDefaults() *CampaignAllOfS // GetId returns the Id field value if set, zero value otherwise. func (o *CampaignAllOfSourcesWithOrphanEntitlements) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *CampaignAllOfSourcesWithOrphanEntitlements) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfSourcesWithOrphanEntitlements) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -67,7 +67,7 @@ func (o *CampaignAllOfSourcesWithOrphanEntitlements) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *CampaignAllOfSourcesWithOrphanEntitlements) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -81,7 +81,7 @@ func (o *CampaignAllOfSourcesWithOrphanEntitlements) SetId(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *CampaignAllOfSourcesWithOrphanEntitlements) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *CampaignAllOfSourcesWithOrphanEntitlements) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfSourcesWithOrphanEntitlements) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -99,7 +99,7 @@ func (o *CampaignAllOfSourcesWithOrphanEntitlements) GetTypeOk() (*string, bool) // HasType returns a boolean if a field has been set. func (o *CampaignAllOfSourcesWithOrphanEntitlements) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -113,7 +113,7 @@ func (o *CampaignAllOfSourcesWithOrphanEntitlements) SetType(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *CampaignAllOfSourcesWithOrphanEntitlements) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *CampaignAllOfSourcesWithOrphanEntitlements) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignAllOfSourcesWithOrphanEntitlements) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *CampaignAllOfSourcesWithOrphanEntitlements) GetNameOk() (*string, bool) // HasName returns a boolean if a field has been set. func (o *CampaignAllOfSourcesWithOrphanEntitlements) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o CampaignAllOfSourcesWithOrphanEntitlements) MarshalJSON() ([]byte, error func (o CampaignAllOfSourcesWithOrphanEntitlements) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o CampaignAllOfSourcesWithOrphanEntitlements) ToMap() (map[string]interfac return toSerialize, nil } -func (o *CampaignAllOfSourcesWithOrphanEntitlements) UnmarshalJSON(bytes []byte) (err error) { +func (o *CampaignAllOfSourcesWithOrphanEntitlements) UnmarshalJSON(data []byte) (err error) { varCampaignAllOfSourcesWithOrphanEntitlements := _CampaignAllOfSourcesWithOrphanEntitlements{} - if err = json.Unmarshal(bytes, &varCampaignAllOfSourcesWithOrphanEntitlements); err == nil { + err = json.Unmarshal(data, &varCampaignAllOfSourcesWithOrphanEntitlements) + + if err != nil { + return err + } + *o = CampaignAllOfSourcesWithOrphanEntitlements(varCampaignAllOfSourcesWithOrphanEntitlements) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "type") delete(additionalProperties, "name") diff --git a/api_v3/model_campaign_complete_options.go b/api_v3/model_campaign_complete_options.go index 1882974f6..2b2abf852 100644 --- a/api_v3/model_campaign_complete_options.go +++ b/api_v3/model_campaign_complete_options.go @@ -49,7 +49,7 @@ func NewCampaignCompleteOptionsWithDefaults() *CampaignCompleteOptions { // GetAutoCompleteAction returns the AutoCompleteAction field value if set, zero value otherwise. func (o *CampaignCompleteOptions) GetAutoCompleteAction() string { - if o == nil || isNil(o.AutoCompleteAction) { + if o == nil || IsNil(o.AutoCompleteAction) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *CampaignCompleteOptions) GetAutoCompleteAction() string { // GetAutoCompleteActionOk returns a tuple with the AutoCompleteAction field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignCompleteOptions) GetAutoCompleteActionOk() (*string, bool) { - if o == nil || isNil(o.AutoCompleteAction) { + if o == nil || IsNil(o.AutoCompleteAction) { return nil, false } return o.AutoCompleteAction, true @@ -67,7 +67,7 @@ func (o *CampaignCompleteOptions) GetAutoCompleteActionOk() (*string, bool) { // HasAutoCompleteAction returns a boolean if a field has been set. func (o *CampaignCompleteOptions) HasAutoCompleteAction() bool { - if o != nil && !isNil(o.AutoCompleteAction) { + if o != nil && !IsNil(o.AutoCompleteAction) { return true } @@ -89,7 +89,7 @@ func (o CampaignCompleteOptions) MarshalJSON() ([]byte, error) { func (o CampaignCompleteOptions) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.AutoCompleteAction) { + if !IsNil(o.AutoCompleteAction) { toSerialize["autoCompleteAction"] = o.AutoCompleteAction } @@ -100,16 +100,20 @@ func (o CampaignCompleteOptions) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CampaignCompleteOptions) UnmarshalJSON(bytes []byte) (err error) { +func (o *CampaignCompleteOptions) UnmarshalJSON(data []byte) (err error) { varCampaignCompleteOptions := _CampaignCompleteOptions{} - if err = json.Unmarshal(bytes, &varCampaignCompleteOptions); err == nil { + err = json.Unmarshal(data, &varCampaignCompleteOptions) + + if err != nil { + return err + } + *o = CampaignCompleteOptions(varCampaignCompleteOptions) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "autoCompleteAction") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_campaign_filter_details.go b/api_v3/model_campaign_filter_details.go index 409764cf2..1eb951702 100644 --- a/api_v3/model_campaign_filter_details.go +++ b/api_v3/model_campaign_filter_details.go @@ -81,7 +81,7 @@ func (o *CampaignFilterDetails) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *CampaignFilterDetails) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *CampaignFilterDetails) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignFilterDetails) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -99,7 +99,7 @@ func (o *CampaignFilterDetails) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *CampaignFilterDetails) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -163,7 +163,7 @@ func (o *CampaignFilterDetails) SetMode(v map[string]interface{}) { // GetCriteriaList returns the CriteriaList field value if set, zero value otherwise. func (o *CampaignFilterDetails) GetCriteriaList() []CampaignFilterDetailsCriteriaListInner { - if o == nil || isNil(o.CriteriaList) { + if o == nil || IsNil(o.CriteriaList) { var ret []CampaignFilterDetailsCriteriaListInner return ret } @@ -173,7 +173,7 @@ func (o *CampaignFilterDetails) GetCriteriaList() []CampaignFilterDetailsCriteri // GetCriteriaListOk returns a tuple with the CriteriaList field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignFilterDetails) GetCriteriaListOk() ([]CampaignFilterDetailsCriteriaListInner, bool) { - if o == nil || isNil(o.CriteriaList) { + if o == nil || IsNil(o.CriteriaList) { return nil, false } return o.CriteriaList, true @@ -181,7 +181,7 @@ func (o *CampaignFilterDetails) GetCriteriaListOk() ([]CampaignFilterDetailsCrit // HasCriteriaList returns a boolean if a field has been set. func (o *CampaignFilterDetails) HasCriteriaList() bool { - if o != nil && !isNil(o.CriteriaList) { + if o != nil && !IsNil(o.CriteriaList) { return true } @@ -204,12 +204,12 @@ func (o CampaignFilterDetails) MarshalJSON() ([]byte, error) { func (o CampaignFilterDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } toSerialize["owner"] = o.Owner.Get() toSerialize["mode"] = o.Mode - if !isNil(o.CriteriaList) { + if !IsNil(o.CriteriaList) { toSerialize["criteriaList"] = o.CriteriaList } @@ -220,8 +220,8 @@ func (o CampaignFilterDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CampaignFilterDetails) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *CampaignFilterDetails) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -232,7 +232,7 @@ func (o *CampaignFilterDetails) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -246,13 +246,17 @@ func (o *CampaignFilterDetails) UnmarshalJSON(bytes []byte) (err error) { varCampaignFilterDetails := _CampaignFilterDetails{} - if err = json.Unmarshal(bytes, &varCampaignFilterDetails); err == nil { + err = json.Unmarshal(data, &varCampaignFilterDetails) + + if err != nil { + return err + } + *o = CampaignFilterDetails(varCampaignFilterDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "description") delete(additionalProperties, "owner") diff --git a/api_v3/model_campaign_filter_details_criteria_list_inner.go b/api_v3/model_campaign_filter_details_criteria_list_inner.go index 5d0ba3111..02d271e62 100644 --- a/api_v3/model_campaign_filter_details_criteria_list_inner.go +++ b/api_v3/model_campaign_filter_details_criteria_list_inner.go @@ -174,8 +174,8 @@ func (o CampaignFilterDetailsCriteriaListInner) ToMap() (map[string]interface{}, return toSerialize, nil } -func (o *CampaignFilterDetailsCriteriaListInner) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *CampaignFilterDetailsCriteriaListInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -187,7 +187,7 @@ func (o *CampaignFilterDetailsCriteriaListInner) UnmarshalJSON(bytes []byte) (er allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -201,13 +201,17 @@ func (o *CampaignFilterDetailsCriteriaListInner) UnmarshalJSON(bytes []byte) (er varCampaignFilterDetailsCriteriaListInner := _CampaignFilterDetailsCriteriaListInner{} - if err = json.Unmarshal(bytes, &varCampaignFilterDetailsCriteriaListInner); err == nil { + err = json.Unmarshal(data, &varCampaignFilterDetailsCriteriaListInner) + + if err != nil { + return err + } + *o = CampaignFilterDetailsCriteriaListInner(varCampaignFilterDetailsCriteriaListInner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "operation") delete(additionalProperties, "property") diff --git a/api_v3/model_campaign_reference.go b/api_v3/model_campaign_reference.go index 4709df79b..d58c79ef2 100644 --- a/api_v3/model_campaign_reference.go +++ b/api_v3/model_campaign_reference.go @@ -258,8 +258,8 @@ func (o CampaignReference) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CampaignReference) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *CampaignReference) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -274,7 +274,7 @@ func (o *CampaignReference) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -288,13 +288,17 @@ func (o *CampaignReference) UnmarshalJSON(bytes []byte) (err error) { varCampaignReference := _CampaignReference{} - if err = json.Unmarshal(bytes, &varCampaignReference); err == nil { + err = json.Unmarshal(data, &varCampaignReference) + + if err != nil { + return err + } + *o = CampaignReference(varCampaignReference) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "type") diff --git a/api_v3/model_campaign_report.go b/api_v3/model_campaign_report.go index c8792cd2d..bef113c04 100644 --- a/api_v3/model_campaign_report.go +++ b/api_v3/model_campaign_report.go @@ -57,7 +57,7 @@ func NewCampaignReportWithDefaults() *CampaignReport { // GetType returns the Type field value if set, zero value otherwise. func (o *CampaignReport) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -67,7 +67,7 @@ func (o *CampaignReport) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignReport) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -75,7 +75,7 @@ func (o *CampaignReport) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *CampaignReport) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -89,7 +89,7 @@ func (o *CampaignReport) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *CampaignReport) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -99,7 +99,7 @@ func (o *CampaignReport) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignReport) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -107,7 +107,7 @@ func (o *CampaignReport) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *CampaignReport) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -121,7 +121,7 @@ func (o *CampaignReport) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *CampaignReport) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -131,7 +131,7 @@ func (o *CampaignReport) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignReport) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -139,7 +139,7 @@ func (o *CampaignReport) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *CampaignReport) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,7 +153,7 @@ func (o *CampaignReport) SetName(v string) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *CampaignReport) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -163,7 +163,7 @@ func (o *CampaignReport) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignReport) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -171,7 +171,7 @@ func (o *CampaignReport) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *CampaignReport) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -209,7 +209,7 @@ func (o *CampaignReport) SetReportType(v ReportType) { // GetLastRunAt returns the LastRunAt field value if set, zero value otherwise. func (o *CampaignReport) GetLastRunAt() time.Time { - if o == nil || isNil(o.LastRunAt) { + if o == nil || IsNil(o.LastRunAt) { var ret time.Time return ret } @@ -219,7 +219,7 @@ func (o *CampaignReport) GetLastRunAt() time.Time { // GetLastRunAtOk returns a tuple with the LastRunAt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignReport) GetLastRunAtOk() (*time.Time, bool) { - if o == nil || isNil(o.LastRunAt) { + if o == nil || IsNil(o.LastRunAt) { return nil, false } return o.LastRunAt, true @@ -227,7 +227,7 @@ func (o *CampaignReport) GetLastRunAtOk() (*time.Time, bool) { // HasLastRunAt returns a boolean if a field has been set. func (o *CampaignReport) HasLastRunAt() bool { - if o != nil && !isNil(o.LastRunAt) { + if o != nil && !IsNil(o.LastRunAt) { return true } @@ -249,20 +249,22 @@ func (o CampaignReport) MarshalJSON() ([]byte, error) { func (o CampaignReport) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } toSerialize["reportType"] = o.ReportType - // skip: lastRunAt is readOnly + if !IsNil(o.LastRunAt) { + toSerialize["lastRunAt"] = o.LastRunAt + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -271,8 +273,8 @@ func (o CampaignReport) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CampaignReport) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *CampaignReport) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -281,7 +283,7 @@ func (o *CampaignReport) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -295,13 +297,17 @@ func (o *CampaignReport) UnmarshalJSON(bytes []byte) (err error) { varCampaignReport := _CampaignReport{} - if err = json.Unmarshal(bytes, &varCampaignReport); err == nil { + err = json.Unmarshal(data, &varCampaignReport) + + if err != nil { + return err + } + *o = CampaignReport(varCampaignReport) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_campaign_reports_config.go b/api_v3/model_campaign_reports_config.go index 68a9f8d3a..a2e8bb931 100644 --- a/api_v3/model_campaign_reports_config.go +++ b/api_v3/model_campaign_reports_config.go @@ -56,7 +56,7 @@ func (o *CampaignReportsConfig) GetIdentityAttributeColumns() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CampaignReportsConfig) GetIdentityAttributeColumnsOk() ([]string, bool) { - if o == nil || isNil(o.IdentityAttributeColumns) { + if o == nil || IsNil(o.IdentityAttributeColumns) { return nil, false } return o.IdentityAttributeColumns, true @@ -64,7 +64,7 @@ func (o *CampaignReportsConfig) GetIdentityAttributeColumnsOk() ([]string, bool) // HasIdentityAttributeColumns returns a boolean if a field has been set. func (o *CampaignReportsConfig) HasIdentityAttributeColumns() bool { - if o != nil && isNil(o.IdentityAttributeColumns) { + if o != nil && !IsNil(o.IdentityAttributeColumns) { return true } @@ -97,16 +97,20 @@ func (o CampaignReportsConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CampaignReportsConfig) UnmarshalJSON(bytes []byte) (err error) { +func (o *CampaignReportsConfig) UnmarshalJSON(data []byte) (err error) { varCampaignReportsConfig := _CampaignReportsConfig{} - if err = json.Unmarshal(bytes, &varCampaignReportsConfig); err == nil { + err = json.Unmarshal(data, &varCampaignReportsConfig) + + if err != nil { + return err + } + *o = CampaignReportsConfig(varCampaignReportsConfig) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "identityAttributeColumns") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_campaign_template.go b/api_v3/model_campaign_template.go index 442982bd0..1c2de69cd 100644 --- a/api_v3/model_campaign_template.go +++ b/api_v3/model_campaign_template.go @@ -67,7 +67,7 @@ func NewCampaignTemplateWithDefaults() *CampaignTemplate { // GetId returns the Id field value if set, zero value otherwise. func (o *CampaignTemplate) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -77,7 +77,7 @@ func (o *CampaignTemplate) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignTemplate) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -85,7 +85,7 @@ func (o *CampaignTemplate) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *CampaignTemplate) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -195,7 +195,7 @@ func (o *CampaignTemplate) SetModified(v time.Time) { // GetScheduled returns the Scheduled field value if set, zero value otherwise. func (o *CampaignTemplate) GetScheduled() bool { - if o == nil || isNil(o.Scheduled) { + if o == nil || IsNil(o.Scheduled) { var ret bool return ret } @@ -205,7 +205,7 @@ func (o *CampaignTemplate) GetScheduled() bool { // GetScheduledOk returns a tuple with the Scheduled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignTemplate) GetScheduledOk() (*bool, bool) { - if o == nil || isNil(o.Scheduled) { + if o == nil || IsNil(o.Scheduled) { return nil, false } return o.Scheduled, true @@ -213,7 +213,7 @@ func (o *CampaignTemplate) GetScheduledOk() (*bool, bool) { // HasScheduled returns a boolean if a field has been set. func (o *CampaignTemplate) HasScheduled() bool { - if o != nil && !isNil(o.Scheduled) { + if o != nil && !IsNil(o.Scheduled) { return true } @@ -227,7 +227,7 @@ func (o *CampaignTemplate) SetScheduled(v bool) { // GetOwnerRef returns the OwnerRef field value if set, zero value otherwise. func (o *CampaignTemplate) GetOwnerRef() CampaignTemplateOwnerRef { - if o == nil || isNil(o.OwnerRef) { + if o == nil || IsNil(o.OwnerRef) { var ret CampaignTemplateOwnerRef return ret } @@ -237,7 +237,7 @@ func (o *CampaignTemplate) GetOwnerRef() CampaignTemplateOwnerRef { // GetOwnerRefOk returns a tuple with the OwnerRef field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignTemplate) GetOwnerRefOk() (*CampaignTemplateOwnerRef, bool) { - if o == nil || isNil(o.OwnerRef) { + if o == nil || IsNil(o.OwnerRef) { return nil, false } return o.OwnerRef, true @@ -245,7 +245,7 @@ func (o *CampaignTemplate) GetOwnerRefOk() (*CampaignTemplateOwnerRef, bool) { // HasOwnerRef returns a boolean if a field has been set. func (o *CampaignTemplate) HasOwnerRef() bool { - if o != nil && !isNil(o.OwnerRef) { + if o != nil && !IsNil(o.OwnerRef) { return true } @@ -259,7 +259,7 @@ func (o *CampaignTemplate) SetOwnerRef(v CampaignTemplateOwnerRef) { // GetDeadlineDuration returns the DeadlineDuration field value if set, zero value otherwise. func (o *CampaignTemplate) GetDeadlineDuration() string { - if o == nil || isNil(o.DeadlineDuration) { + if o == nil || IsNil(o.DeadlineDuration) { var ret string return ret } @@ -269,7 +269,7 @@ func (o *CampaignTemplate) GetDeadlineDuration() string { // GetDeadlineDurationOk returns a tuple with the DeadlineDuration field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignTemplate) GetDeadlineDurationOk() (*string, bool) { - if o == nil || isNil(o.DeadlineDuration) { + if o == nil || IsNil(o.DeadlineDuration) { return nil, false } return o.DeadlineDuration, true @@ -277,7 +277,7 @@ func (o *CampaignTemplate) GetDeadlineDurationOk() (*string, bool) { // HasDeadlineDuration returns a boolean if a field has been set. func (o *CampaignTemplate) HasDeadlineDuration() bool { - if o != nil && !isNil(o.DeadlineDuration) { + if o != nil && !IsNil(o.DeadlineDuration) { return true } @@ -323,18 +323,20 @@ func (o CampaignTemplate) MarshalJSON() ([]byte, error) { func (o CampaignTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } toSerialize["name"] = o.Name toSerialize["description"] = o.Description - // skip: created is readOnly - // skip: modified is readOnly - // skip: scheduled is readOnly - if !isNil(o.OwnerRef) { + toSerialize["created"] = o.Created + toSerialize["modified"] = o.Modified + if !IsNil(o.Scheduled) { + toSerialize["scheduled"] = o.Scheduled + } + if !IsNil(o.OwnerRef) { toSerialize["ownerRef"] = o.OwnerRef } - if !isNil(o.DeadlineDuration) { + if !IsNil(o.DeadlineDuration) { toSerialize["deadlineDuration"] = o.DeadlineDuration } toSerialize["campaign"] = o.Campaign @@ -346,8 +348,8 @@ func (o CampaignTemplate) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CampaignTemplate) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *CampaignTemplate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -360,7 +362,7 @@ func (o *CampaignTemplate) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -374,13 +376,17 @@ func (o *CampaignTemplate) UnmarshalJSON(bytes []byte) (err error) { varCampaignTemplate := _CampaignTemplate{} - if err = json.Unmarshal(bytes, &varCampaignTemplate); err == nil { + err = json.Unmarshal(data, &varCampaignTemplate) + + if err != nil { + return err + } + *o = CampaignTemplate(varCampaignTemplate) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/api_v3/model_campaign_template_owner_ref.go b/api_v3/model_campaign_template_owner_ref.go index f7ca36152..ab2e843d6 100644 --- a/api_v3/model_campaign_template_owner_ref.go +++ b/api_v3/model_campaign_template_owner_ref.go @@ -51,7 +51,7 @@ func NewCampaignTemplateOwnerRefWithDefaults() *CampaignTemplateOwnerRef { // GetId returns the Id field value if set, zero value otherwise. func (o *CampaignTemplateOwnerRef) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -61,7 +61,7 @@ func (o *CampaignTemplateOwnerRef) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignTemplateOwnerRef) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -69,7 +69,7 @@ func (o *CampaignTemplateOwnerRef) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *CampaignTemplateOwnerRef) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -83,7 +83,7 @@ func (o *CampaignTemplateOwnerRef) SetId(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *CampaignTemplateOwnerRef) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -93,7 +93,7 @@ func (o *CampaignTemplateOwnerRef) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignTemplateOwnerRef) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -101,7 +101,7 @@ func (o *CampaignTemplateOwnerRef) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *CampaignTemplateOwnerRef) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -115,7 +115,7 @@ func (o *CampaignTemplateOwnerRef) SetType(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *CampaignTemplateOwnerRef) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -125,7 +125,7 @@ func (o *CampaignTemplateOwnerRef) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignTemplateOwnerRef) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -133,7 +133,7 @@ func (o *CampaignTemplateOwnerRef) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *CampaignTemplateOwnerRef) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -147,7 +147,7 @@ func (o *CampaignTemplateOwnerRef) SetName(v string) { // GetEmail returns the Email field value if set, zero value otherwise. func (o *CampaignTemplateOwnerRef) GetEmail() string { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { var ret string return ret } @@ -157,7 +157,7 @@ func (o *CampaignTemplateOwnerRef) GetEmail() string { // GetEmailOk returns a tuple with the Email field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignTemplateOwnerRef) GetEmailOk() (*string, bool) { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { return nil, false } return o.Email, true @@ -165,7 +165,7 @@ func (o *CampaignTemplateOwnerRef) GetEmailOk() (*string, bool) { // HasEmail returns a boolean if a field has been set. func (o *CampaignTemplateOwnerRef) HasEmail() bool { - if o != nil && !isNil(o.Email) { + if o != nil && !IsNil(o.Email) { return true } @@ -187,16 +187,16 @@ func (o CampaignTemplateOwnerRef) MarshalJSON() ([]byte, error) { func (o CampaignTemplateOwnerRef) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Email) { + if !IsNil(o.Email) { toSerialize["email"] = o.Email } @@ -207,16 +207,20 @@ func (o CampaignTemplateOwnerRef) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CampaignTemplateOwnerRef) UnmarshalJSON(bytes []byte) (err error) { +func (o *CampaignTemplateOwnerRef) UnmarshalJSON(data []byte) (err error) { varCampaignTemplateOwnerRef := _CampaignTemplateOwnerRef{} - if err = json.Unmarshal(bytes, &varCampaignTemplateOwnerRef); err == nil { + err = json.Unmarshal(data, &varCampaignTemplateOwnerRef) + + if err != nil { + return err + } + *o = CampaignTemplateOwnerRef(varCampaignTemplateOwnerRef) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "type") delete(additionalProperties, "name") diff --git a/api_v3/model_campaigns_delete_request.go b/api_v3/model_campaigns_delete_request.go index d101b069d..fbe930ac3 100644 --- a/api_v3/model_campaigns_delete_request.go +++ b/api_v3/model_campaigns_delete_request.go @@ -45,7 +45,7 @@ func NewCampaignsDeleteRequestWithDefaults() *CampaignsDeleteRequest { // GetIds returns the Ids field value if set, zero value otherwise. func (o *CampaignsDeleteRequest) GetIds() []string { - if o == nil || isNil(o.Ids) { + if o == nil || IsNil(o.Ids) { var ret []string return ret } @@ -55,7 +55,7 @@ func (o *CampaignsDeleteRequest) GetIds() []string { // GetIdsOk returns a tuple with the Ids field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CampaignsDeleteRequest) GetIdsOk() ([]string, bool) { - if o == nil || isNil(o.Ids) { + if o == nil || IsNil(o.Ids) { return nil, false } return o.Ids, true @@ -63,7 +63,7 @@ func (o *CampaignsDeleteRequest) GetIdsOk() ([]string, bool) { // HasIds returns a boolean if a field has been set. func (o *CampaignsDeleteRequest) HasIds() bool { - if o != nil && !isNil(o.Ids) { + if o != nil && !IsNil(o.Ids) { return true } @@ -85,7 +85,7 @@ func (o CampaignsDeleteRequest) MarshalJSON() ([]byte, error) { func (o CampaignsDeleteRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Ids) { + if !IsNil(o.Ids) { toSerialize["ids"] = o.Ids } @@ -96,16 +96,20 @@ func (o CampaignsDeleteRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CampaignsDeleteRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *CampaignsDeleteRequest) UnmarshalJSON(data []byte) (err error) { varCampaignsDeleteRequest := _CampaignsDeleteRequest{} - if err = json.Unmarshal(bytes, &varCampaignsDeleteRequest); err == nil { + err = json.Unmarshal(data, &varCampaignsDeleteRequest) + + if err != nil { + return err + } + *o = CampaignsDeleteRequest(varCampaignsDeleteRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "ids") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_cancel_access_request.go b/api_v3/model_cancel_access_request.go index 5302ce693..cdb5d7a4d 100644 --- a/api_v3/model_cancel_access_request.go +++ b/api_v3/model_cancel_access_request.go @@ -116,8 +116,8 @@ func (o CancelAccessRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CancelAccessRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *CancelAccessRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -127,7 +127,7 @@ func (o *CancelAccessRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -141,13 +141,17 @@ func (o *CancelAccessRequest) UnmarshalJSON(bytes []byte) (err error) { varCancelAccessRequest := _CancelAccessRequest{} - if err = json.Unmarshal(bytes, &varCancelAccessRequest); err == nil { + err = json.Unmarshal(data, &varCancelAccessRequest) + + if err != nil { + return err + } + *o = CancelAccessRequest(varCancelAccessRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "accountActivityId") delete(additionalProperties, "comment") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_cancelled_request_details.go b/api_v3/model_cancelled_request_details.go index b69bfc209..c9e927fb1 100644 --- a/api_v3/model_cancelled_request_details.go +++ b/api_v3/model_cancelled_request_details.go @@ -49,7 +49,7 @@ func NewCancelledRequestDetailsWithDefaults() *CancelledRequestDetails { // GetComment returns the Comment field value if set, zero value otherwise. func (o *CancelledRequestDetails) GetComment() string { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *CancelledRequestDetails) GetComment() string { // GetCommentOk returns a tuple with the Comment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CancelledRequestDetails) GetCommentOk() (*string, bool) { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { return nil, false } return o.Comment, true @@ -67,7 +67,7 @@ func (o *CancelledRequestDetails) GetCommentOk() (*string, bool) { // HasComment returns a boolean if a field has been set. func (o *CancelledRequestDetails) HasComment() bool { - if o != nil && !isNil(o.Comment) { + if o != nil && !IsNil(o.Comment) { return true } @@ -81,7 +81,7 @@ func (o *CancelledRequestDetails) SetComment(v string) { // GetOwner returns the Owner field value if set, zero value otherwise. func (o *CancelledRequestDetails) GetOwner() OwnerDto { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { var ret OwnerDto return ret } @@ -91,7 +91,7 @@ func (o *CancelledRequestDetails) GetOwner() OwnerDto { // GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CancelledRequestDetails) GetOwnerOk() (*OwnerDto, bool) { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { return nil, false } return o.Owner, true @@ -99,7 +99,7 @@ func (o *CancelledRequestDetails) GetOwnerOk() (*OwnerDto, bool) { // HasOwner returns a boolean if a field has been set. func (o *CancelledRequestDetails) HasOwner() bool { - if o != nil && !isNil(o.Owner) { + if o != nil && !IsNil(o.Owner) { return true } @@ -113,7 +113,7 @@ func (o *CancelledRequestDetails) SetOwner(v OwnerDto) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *CancelledRequestDetails) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -123,7 +123,7 @@ func (o *CancelledRequestDetails) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CancelledRequestDetails) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -131,7 +131,7 @@ func (o *CancelledRequestDetails) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *CancelledRequestDetails) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -153,13 +153,13 @@ func (o CancelledRequestDetails) MarshalJSON() ([]byte, error) { func (o CancelledRequestDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Comment) { + if !IsNil(o.Comment) { toSerialize["comment"] = o.Comment } - if !isNil(o.Owner) { + if !IsNil(o.Owner) { toSerialize["owner"] = o.Owner } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } @@ -170,16 +170,20 @@ func (o CancelledRequestDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CancelledRequestDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *CancelledRequestDetails) UnmarshalJSON(data []byte) (err error) { varCancelledRequestDetails := _CancelledRequestDetails{} - if err = json.Unmarshal(bytes, &varCancelledRequestDetails); err == nil { + err = json.Unmarshal(data, &varCancelledRequestDetails) + + if err != nil { + return err + } + *o = CancelledRequestDetails(varCancelledRequestDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "comment") delete(additionalProperties, "owner") delete(additionalProperties, "modified") diff --git a/api_v3/model_certification.go b/api_v3/model_certification.go index 15b4a1590..11e539196 100644 --- a/api_v3/model_certification.go +++ b/api_v3/model_certification.go @@ -74,7 +74,7 @@ func NewCertificationWithDefaults() *Certification { // GetId returns the Id field value if set, zero value otherwise. func (o *Certification) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -84,7 +84,7 @@ func (o *Certification) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Certification) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -92,7 +92,7 @@ func (o *Certification) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Certification) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -106,7 +106,7 @@ func (o *Certification) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *Certification) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -116,7 +116,7 @@ func (o *Certification) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Certification) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -124,7 +124,7 @@ func (o *Certification) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *Certification) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -138,7 +138,7 @@ func (o *Certification) SetName(v string) { // GetCampaign returns the Campaign field value if set, zero value otherwise. func (o *Certification) GetCampaign() CampaignReference { - if o == nil || isNil(o.Campaign) { + if o == nil || IsNil(o.Campaign) { var ret CampaignReference return ret } @@ -148,7 +148,7 @@ func (o *Certification) GetCampaign() CampaignReference { // GetCampaignOk returns a tuple with the Campaign field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Certification) GetCampaignOk() (*CampaignReference, bool) { - if o == nil || isNil(o.Campaign) { + if o == nil || IsNil(o.Campaign) { return nil, false } return o.Campaign, true @@ -156,7 +156,7 @@ func (o *Certification) GetCampaignOk() (*CampaignReference, bool) { // HasCampaign returns a boolean if a field has been set. func (o *Certification) HasCampaign() bool { - if o != nil && !isNil(o.Campaign) { + if o != nil && !IsNil(o.Campaign) { return true } @@ -170,7 +170,7 @@ func (o *Certification) SetCampaign(v CampaignReference) { // GetCompleted returns the Completed field value if set, zero value otherwise. func (o *Certification) GetCompleted() bool { - if o == nil || isNil(o.Completed) { + if o == nil || IsNil(o.Completed) { var ret bool return ret } @@ -180,7 +180,7 @@ func (o *Certification) GetCompleted() bool { // GetCompletedOk returns a tuple with the Completed field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Certification) GetCompletedOk() (*bool, bool) { - if o == nil || isNil(o.Completed) { + if o == nil || IsNil(o.Completed) { return nil, false } return o.Completed, true @@ -188,7 +188,7 @@ func (o *Certification) GetCompletedOk() (*bool, bool) { // HasCompleted returns a boolean if a field has been set. func (o *Certification) HasCompleted() bool { - if o != nil && !isNil(o.Completed) { + if o != nil && !IsNil(o.Completed) { return true } @@ -202,7 +202,7 @@ func (o *Certification) SetCompleted(v bool) { // GetIdentitiesCompleted returns the IdentitiesCompleted field value if set, zero value otherwise. func (o *Certification) GetIdentitiesCompleted() int32 { - if o == nil || isNil(o.IdentitiesCompleted) { + if o == nil || IsNil(o.IdentitiesCompleted) { var ret int32 return ret } @@ -212,7 +212,7 @@ func (o *Certification) GetIdentitiesCompleted() int32 { // GetIdentitiesCompletedOk returns a tuple with the IdentitiesCompleted field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Certification) GetIdentitiesCompletedOk() (*int32, bool) { - if o == nil || isNil(o.IdentitiesCompleted) { + if o == nil || IsNil(o.IdentitiesCompleted) { return nil, false } return o.IdentitiesCompleted, true @@ -220,7 +220,7 @@ func (o *Certification) GetIdentitiesCompletedOk() (*int32, bool) { // HasIdentitiesCompleted returns a boolean if a field has been set. func (o *Certification) HasIdentitiesCompleted() bool { - if o != nil && !isNil(o.IdentitiesCompleted) { + if o != nil && !IsNil(o.IdentitiesCompleted) { return true } @@ -234,7 +234,7 @@ func (o *Certification) SetIdentitiesCompleted(v int32) { // GetIdentitiesTotal returns the IdentitiesTotal field value if set, zero value otherwise. func (o *Certification) GetIdentitiesTotal() int32 { - if o == nil || isNil(o.IdentitiesTotal) { + if o == nil || IsNil(o.IdentitiesTotal) { var ret int32 return ret } @@ -244,7 +244,7 @@ func (o *Certification) GetIdentitiesTotal() int32 { // GetIdentitiesTotalOk returns a tuple with the IdentitiesTotal field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Certification) GetIdentitiesTotalOk() (*int32, bool) { - if o == nil || isNil(o.IdentitiesTotal) { + if o == nil || IsNil(o.IdentitiesTotal) { return nil, false } return o.IdentitiesTotal, true @@ -252,7 +252,7 @@ func (o *Certification) GetIdentitiesTotalOk() (*int32, bool) { // HasIdentitiesTotal returns a boolean if a field has been set. func (o *Certification) HasIdentitiesTotal() bool { - if o != nil && !isNil(o.IdentitiesTotal) { + if o != nil && !IsNil(o.IdentitiesTotal) { return true } @@ -266,7 +266,7 @@ func (o *Certification) SetIdentitiesTotal(v int32) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *Certification) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -276,7 +276,7 @@ func (o *Certification) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Certification) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -284,7 +284,7 @@ func (o *Certification) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *Certification) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -298,7 +298,7 @@ func (o *Certification) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *Certification) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -308,7 +308,7 @@ func (o *Certification) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Certification) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -316,7 +316,7 @@ func (o *Certification) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *Certification) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -330,7 +330,7 @@ func (o *Certification) SetModified(v time.Time) { // GetDecisionsMade returns the DecisionsMade field value if set, zero value otherwise. func (o *Certification) GetDecisionsMade() int32 { - if o == nil || isNil(o.DecisionsMade) { + if o == nil || IsNil(o.DecisionsMade) { var ret int32 return ret } @@ -340,7 +340,7 @@ func (o *Certification) GetDecisionsMade() int32 { // GetDecisionsMadeOk returns a tuple with the DecisionsMade field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Certification) GetDecisionsMadeOk() (*int32, bool) { - if o == nil || isNil(o.DecisionsMade) { + if o == nil || IsNil(o.DecisionsMade) { return nil, false } return o.DecisionsMade, true @@ -348,7 +348,7 @@ func (o *Certification) GetDecisionsMadeOk() (*int32, bool) { // HasDecisionsMade returns a boolean if a field has been set. func (o *Certification) HasDecisionsMade() bool { - if o != nil && !isNil(o.DecisionsMade) { + if o != nil && !IsNil(o.DecisionsMade) { return true } @@ -362,7 +362,7 @@ func (o *Certification) SetDecisionsMade(v int32) { // GetDecisionsTotal returns the DecisionsTotal field value if set, zero value otherwise. func (o *Certification) GetDecisionsTotal() int32 { - if o == nil || isNil(o.DecisionsTotal) { + if o == nil || IsNil(o.DecisionsTotal) { var ret int32 return ret } @@ -372,7 +372,7 @@ func (o *Certification) GetDecisionsTotal() int32 { // GetDecisionsTotalOk returns a tuple with the DecisionsTotal field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Certification) GetDecisionsTotalOk() (*int32, bool) { - if o == nil || isNil(o.DecisionsTotal) { + if o == nil || IsNil(o.DecisionsTotal) { return nil, false } return o.DecisionsTotal, true @@ -380,7 +380,7 @@ func (o *Certification) GetDecisionsTotalOk() (*int32, bool) { // HasDecisionsTotal returns a boolean if a field has been set. func (o *Certification) HasDecisionsTotal() bool { - if o != nil && !isNil(o.DecisionsTotal) { + if o != nil && !IsNil(o.DecisionsTotal) { return true } @@ -394,7 +394,7 @@ func (o *Certification) SetDecisionsTotal(v int32) { // GetDue returns the Due field value if set, zero value otherwise. func (o *Certification) GetDue() time.Time { - if o == nil || isNil(o.Due) { + if o == nil || IsNil(o.Due) { var ret time.Time return ret } @@ -404,7 +404,7 @@ func (o *Certification) GetDue() time.Time { // GetDueOk returns a tuple with the Due field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Certification) GetDueOk() (*time.Time, bool) { - if o == nil || isNil(o.Due) { + if o == nil || IsNil(o.Due) { return nil, false } return o.Due, true @@ -412,7 +412,7 @@ func (o *Certification) GetDueOk() (*time.Time, bool) { // HasDue returns a boolean if a field has been set. func (o *Certification) HasDue() bool { - if o != nil && !isNil(o.Due) { + if o != nil && !IsNil(o.Due) { return true } @@ -426,7 +426,7 @@ func (o *Certification) SetDue(v time.Time) { // GetSigned returns the Signed field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Certification) GetSigned() time.Time { - if o == nil || isNil(o.Signed.Get()) { + if o == nil || IsNil(o.Signed.Get()) { var ret time.Time return ret } @@ -468,7 +468,7 @@ func (o *Certification) UnsetSigned() { // GetReviewer returns the Reviewer field value if set, zero value otherwise. func (o *Certification) GetReviewer() Reviewer { - if o == nil || isNil(o.Reviewer) { + if o == nil || IsNil(o.Reviewer) { var ret Reviewer return ret } @@ -478,7 +478,7 @@ func (o *Certification) GetReviewer() Reviewer { // GetReviewerOk returns a tuple with the Reviewer field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Certification) GetReviewerOk() (*Reviewer, bool) { - if o == nil || isNil(o.Reviewer) { + if o == nil || IsNil(o.Reviewer) { return nil, false } return o.Reviewer, true @@ -486,7 +486,7 @@ func (o *Certification) GetReviewerOk() (*Reviewer, bool) { // HasReviewer returns a boolean if a field has been set. func (o *Certification) HasReviewer() bool { - if o != nil && !isNil(o.Reviewer) { + if o != nil && !IsNil(o.Reviewer) { return true } @@ -500,7 +500,7 @@ func (o *Certification) SetReviewer(v Reviewer) { // GetReassignment returns the Reassignment field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Certification) GetReassignment() Reassignment { - if o == nil || isNil(o.Reassignment.Get()) { + if o == nil || IsNil(o.Reassignment.Get()) { var ret Reassignment return ret } @@ -542,7 +542,7 @@ func (o *Certification) UnsetReassignment() { // GetHasErrors returns the HasErrors field value if set, zero value otherwise. func (o *Certification) GetHasErrors() bool { - if o == nil || isNil(o.HasErrors) { + if o == nil || IsNil(o.HasErrors) { var ret bool return ret } @@ -552,7 +552,7 @@ func (o *Certification) GetHasErrors() bool { // GetHasErrorsOk returns a tuple with the HasErrors field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Certification) GetHasErrorsOk() (*bool, bool) { - if o == nil || isNil(o.HasErrors) { + if o == nil || IsNil(o.HasErrors) { return nil, false } return o.HasErrors, true @@ -560,7 +560,7 @@ func (o *Certification) GetHasErrorsOk() (*bool, bool) { // HasHasErrors returns a boolean if a field has been set. func (o *Certification) HasHasErrors() bool { - if o != nil && !isNil(o.HasErrors) { + if o != nil && !IsNil(o.HasErrors) { return true } @@ -574,7 +574,7 @@ func (o *Certification) SetHasErrors(v bool) { // GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Certification) GetErrorMessage() string { - if o == nil || isNil(o.ErrorMessage.Get()) { + if o == nil || IsNil(o.ErrorMessage.Get()) { var ret string return ret } @@ -616,7 +616,7 @@ func (o *Certification) UnsetErrorMessage() { // GetPhase returns the Phase field value if set, zero value otherwise. func (o *Certification) GetPhase() CertificationPhase { - if o == nil || isNil(o.Phase) { + if o == nil || IsNil(o.Phase) { var ret CertificationPhase return ret } @@ -626,7 +626,7 @@ func (o *Certification) GetPhase() CertificationPhase { // GetPhaseOk returns a tuple with the Phase field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Certification) GetPhaseOk() (*CertificationPhase, bool) { - if o == nil || isNil(o.Phase) { + if o == nil || IsNil(o.Phase) { return nil, false } return o.Phase, true @@ -634,7 +634,7 @@ func (o *Certification) GetPhaseOk() (*CertificationPhase, bool) { // HasPhase returns a boolean if a field has been set. func (o *Certification) HasPhase() bool { - if o != nil && !isNil(o.Phase) { + if o != nil && !IsNil(o.Phase) { return true } @@ -656,55 +656,55 @@ func (o Certification) MarshalJSON() ([]byte, error) { func (o Certification) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Campaign) { + if !IsNil(o.Campaign) { toSerialize["campaign"] = o.Campaign } - if !isNil(o.Completed) { + if !IsNil(o.Completed) { toSerialize["completed"] = o.Completed } - if !isNil(o.IdentitiesCompleted) { + if !IsNil(o.IdentitiesCompleted) { toSerialize["identitiesCompleted"] = o.IdentitiesCompleted } - if !isNil(o.IdentitiesTotal) { + if !IsNil(o.IdentitiesTotal) { toSerialize["identitiesTotal"] = o.IdentitiesTotal } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.DecisionsMade) { + if !IsNil(o.DecisionsMade) { toSerialize["decisionsMade"] = o.DecisionsMade } - if !isNil(o.DecisionsTotal) { + if !IsNil(o.DecisionsTotal) { toSerialize["decisionsTotal"] = o.DecisionsTotal } - if !isNil(o.Due) { + if !IsNil(o.Due) { toSerialize["due"] = o.Due } if o.Signed.IsSet() { toSerialize["signed"] = o.Signed.Get() } - if !isNil(o.Reviewer) { + if !IsNil(o.Reviewer) { toSerialize["reviewer"] = o.Reviewer } if o.Reassignment.IsSet() { toSerialize["reassignment"] = o.Reassignment.Get() } - if !isNil(o.HasErrors) { + if !IsNil(o.HasErrors) { toSerialize["hasErrors"] = o.HasErrors } if o.ErrorMessage.IsSet() { toSerialize["errorMessage"] = o.ErrorMessage.Get() } - if !isNil(o.Phase) { + if !IsNil(o.Phase) { toSerialize["phase"] = o.Phase } @@ -715,16 +715,20 @@ func (o Certification) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Certification) UnmarshalJSON(bytes []byte) (err error) { +func (o *Certification) UnmarshalJSON(data []byte) (err error) { varCertification := _Certification{} - if err = json.Unmarshal(bytes, &varCertification); err == nil { + err = json.Unmarshal(data, &varCertification) + + if err != nil { + return err + } + *o = Certification(varCertification) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "campaign") diff --git a/api_v3/model_certification_identity_summary.go b/api_v3/model_certification_identity_summary.go index d7c97a801..af93bf9cf 100644 --- a/api_v3/model_certification_identity_summary.go +++ b/api_v3/model_certification_identity_summary.go @@ -51,7 +51,7 @@ func NewCertificationIdentitySummaryWithDefaults() *CertificationIdentitySummary // GetId returns the Id field value if set, zero value otherwise. func (o *CertificationIdentitySummary) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -61,7 +61,7 @@ func (o *CertificationIdentitySummary) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CertificationIdentitySummary) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -69,7 +69,7 @@ func (o *CertificationIdentitySummary) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *CertificationIdentitySummary) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -83,7 +83,7 @@ func (o *CertificationIdentitySummary) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *CertificationIdentitySummary) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -93,7 +93,7 @@ func (o *CertificationIdentitySummary) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CertificationIdentitySummary) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -101,7 +101,7 @@ func (o *CertificationIdentitySummary) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *CertificationIdentitySummary) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -115,7 +115,7 @@ func (o *CertificationIdentitySummary) SetName(v string) { // GetIdentityId returns the IdentityId field value if set, zero value otherwise. func (o *CertificationIdentitySummary) GetIdentityId() string { - if o == nil || isNil(o.IdentityId) { + if o == nil || IsNil(o.IdentityId) { var ret string return ret } @@ -125,7 +125,7 @@ func (o *CertificationIdentitySummary) GetIdentityId() string { // GetIdentityIdOk returns a tuple with the IdentityId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CertificationIdentitySummary) GetIdentityIdOk() (*string, bool) { - if o == nil || isNil(o.IdentityId) { + if o == nil || IsNil(o.IdentityId) { return nil, false } return o.IdentityId, true @@ -133,7 +133,7 @@ func (o *CertificationIdentitySummary) GetIdentityIdOk() (*string, bool) { // HasIdentityId returns a boolean if a field has been set. func (o *CertificationIdentitySummary) HasIdentityId() bool { - if o != nil && !isNil(o.IdentityId) { + if o != nil && !IsNil(o.IdentityId) { return true } @@ -147,7 +147,7 @@ func (o *CertificationIdentitySummary) SetIdentityId(v string) { // GetCompleted returns the Completed field value if set, zero value otherwise. func (o *CertificationIdentitySummary) GetCompleted() bool { - if o == nil || isNil(o.Completed) { + if o == nil || IsNil(o.Completed) { var ret bool return ret } @@ -157,7 +157,7 @@ func (o *CertificationIdentitySummary) GetCompleted() bool { // GetCompletedOk returns a tuple with the Completed field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CertificationIdentitySummary) GetCompletedOk() (*bool, bool) { - if o == nil || isNil(o.Completed) { + if o == nil || IsNil(o.Completed) { return nil, false } return o.Completed, true @@ -165,7 +165,7 @@ func (o *CertificationIdentitySummary) GetCompletedOk() (*bool, bool) { // HasCompleted returns a boolean if a field has been set. func (o *CertificationIdentitySummary) HasCompleted() bool { - if o != nil && !isNil(o.Completed) { + if o != nil && !IsNil(o.Completed) { return true } @@ -187,16 +187,16 @@ func (o CertificationIdentitySummary) MarshalJSON() ([]byte, error) { func (o CertificationIdentitySummary) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.IdentityId) { + if !IsNil(o.IdentityId) { toSerialize["identityId"] = o.IdentityId } - if !isNil(o.Completed) { + if !IsNil(o.Completed) { toSerialize["completed"] = o.Completed } @@ -207,16 +207,20 @@ func (o CertificationIdentitySummary) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CertificationIdentitySummary) UnmarshalJSON(bytes []byte) (err error) { +func (o *CertificationIdentitySummary) UnmarshalJSON(data []byte) (err error) { varCertificationIdentitySummary := _CertificationIdentitySummary{} - if err = json.Unmarshal(bytes, &varCertificationIdentitySummary); err == nil { + err = json.Unmarshal(data, &varCertificationIdentitySummary) + + if err != nil { + return err + } + *o = CertificationIdentitySummary(varCertificationIdentitySummary) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "identityId") diff --git a/api_v3/model_certification_reference.go b/api_v3/model_certification_reference.go index 16f775dab..931d55dc8 100644 --- a/api_v3/model_certification_reference.go +++ b/api_v3/model_certification_reference.go @@ -49,7 +49,7 @@ func NewCertificationReferenceWithDefaults() *CertificationReference { // GetId returns the Id field value if set, zero value otherwise. func (o *CertificationReference) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *CertificationReference) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CertificationReference) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -67,7 +67,7 @@ func (o *CertificationReference) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *CertificationReference) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -81,7 +81,7 @@ func (o *CertificationReference) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *CertificationReference) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *CertificationReference) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CertificationReference) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -99,7 +99,7 @@ func (o *CertificationReference) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *CertificationReference) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -113,7 +113,7 @@ func (o *CertificationReference) SetName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *CertificationReference) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *CertificationReference) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CertificationReference) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -131,7 +131,7 @@ func (o *CertificationReference) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *CertificationReference) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -145,7 +145,7 @@ func (o *CertificationReference) SetType(v string) { // GetReviewer returns the Reviewer field value if set, zero value otherwise. func (o *CertificationReference) GetReviewer() Reviewer { - if o == nil || isNil(o.Reviewer) { + if o == nil || IsNil(o.Reviewer) { var ret Reviewer return ret } @@ -155,7 +155,7 @@ func (o *CertificationReference) GetReviewer() Reviewer { // GetReviewerOk returns a tuple with the Reviewer field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CertificationReference) GetReviewerOk() (*Reviewer, bool) { - if o == nil || isNil(o.Reviewer) { + if o == nil || IsNil(o.Reviewer) { return nil, false } return o.Reviewer, true @@ -163,7 +163,7 @@ func (o *CertificationReference) GetReviewerOk() (*Reviewer, bool) { // HasReviewer returns a boolean if a field has been set. func (o *CertificationReference) HasReviewer() bool { - if o != nil && !isNil(o.Reviewer) { + if o != nil && !IsNil(o.Reviewer) { return true } @@ -185,16 +185,16 @@ func (o CertificationReference) MarshalJSON() ([]byte, error) { func (o CertificationReference) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Reviewer) { + if !IsNil(o.Reviewer) { toSerialize["reviewer"] = o.Reviewer } @@ -205,16 +205,20 @@ func (o CertificationReference) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CertificationReference) UnmarshalJSON(bytes []byte) (err error) { +func (o *CertificationReference) UnmarshalJSON(data []byte) (err error) { varCertificationReference := _CertificationReference{} - if err = json.Unmarshal(bytes, &varCertificationReference); err == nil { + err = json.Unmarshal(data, &varCertificationReference) + + if err != nil { + return err + } + *o = CertificationReference(varCertificationReference) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "type") diff --git a/api_v3/model_certification_task.go b/api_v3/model_certification_task.go index 6ada31cf6..37b6d5e59 100644 --- a/api_v3/model_certification_task.go +++ b/api_v3/model_certification_task.go @@ -59,7 +59,7 @@ func NewCertificationTaskWithDefaults() *CertificationTask { // GetId returns the Id field value if set, zero value otherwise. func (o *CertificationTask) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -69,7 +69,7 @@ func (o *CertificationTask) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CertificationTask) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -77,7 +77,7 @@ func (o *CertificationTask) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *CertificationTask) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -91,7 +91,7 @@ func (o *CertificationTask) SetId(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *CertificationTask) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -101,7 +101,7 @@ func (o *CertificationTask) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CertificationTask) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -109,7 +109,7 @@ func (o *CertificationTask) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *CertificationTask) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -123,7 +123,7 @@ func (o *CertificationTask) SetType(v string) { // GetTargetType returns the TargetType field value if set, zero value otherwise. func (o *CertificationTask) GetTargetType() string { - if o == nil || isNil(o.TargetType) { + if o == nil || IsNil(o.TargetType) { var ret string return ret } @@ -133,7 +133,7 @@ func (o *CertificationTask) GetTargetType() string { // GetTargetTypeOk returns a tuple with the TargetType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CertificationTask) GetTargetTypeOk() (*string, bool) { - if o == nil || isNil(o.TargetType) { + if o == nil || IsNil(o.TargetType) { return nil, false } return o.TargetType, true @@ -141,7 +141,7 @@ func (o *CertificationTask) GetTargetTypeOk() (*string, bool) { // HasTargetType returns a boolean if a field has been set. func (o *CertificationTask) HasTargetType() bool { - if o != nil && !isNil(o.TargetType) { + if o != nil && !IsNil(o.TargetType) { return true } @@ -155,7 +155,7 @@ func (o *CertificationTask) SetTargetType(v string) { // GetTargetId returns the TargetId field value if set, zero value otherwise. func (o *CertificationTask) GetTargetId() string { - if o == nil || isNil(o.TargetId) { + if o == nil || IsNil(o.TargetId) { var ret string return ret } @@ -165,7 +165,7 @@ func (o *CertificationTask) GetTargetId() string { // GetTargetIdOk returns a tuple with the TargetId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CertificationTask) GetTargetIdOk() (*string, bool) { - if o == nil || isNil(o.TargetId) { + if o == nil || IsNil(o.TargetId) { return nil, false } return o.TargetId, true @@ -173,7 +173,7 @@ func (o *CertificationTask) GetTargetIdOk() (*string, bool) { // HasTargetId returns a boolean if a field has been set. func (o *CertificationTask) HasTargetId() bool { - if o != nil && !isNil(o.TargetId) { + if o != nil && !IsNil(o.TargetId) { return true } @@ -187,7 +187,7 @@ func (o *CertificationTask) SetTargetId(v string) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *CertificationTask) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -197,7 +197,7 @@ func (o *CertificationTask) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CertificationTask) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -205,7 +205,7 @@ func (o *CertificationTask) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *CertificationTask) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -219,7 +219,7 @@ func (o *CertificationTask) SetStatus(v string) { // GetErrors returns the Errors field value if set, zero value otherwise. func (o *CertificationTask) GetErrors() []ErrorMessageDto { - if o == nil || isNil(o.Errors) { + if o == nil || IsNil(o.Errors) { var ret []ErrorMessageDto return ret } @@ -229,7 +229,7 @@ func (o *CertificationTask) GetErrors() []ErrorMessageDto { // GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CertificationTask) GetErrorsOk() ([]ErrorMessageDto, bool) { - if o == nil || isNil(o.Errors) { + if o == nil || IsNil(o.Errors) { return nil, false } return o.Errors, true @@ -237,7 +237,7 @@ func (o *CertificationTask) GetErrorsOk() ([]ErrorMessageDto, bool) { // HasErrors returns a boolean if a field has been set. func (o *CertificationTask) HasErrors() bool { - if o != nil && !isNil(o.Errors) { + if o != nil && !IsNil(o.Errors) { return true } @@ -251,7 +251,7 @@ func (o *CertificationTask) SetErrors(v []ErrorMessageDto) { // GetReassignmentTrailDTOs returns the ReassignmentTrailDTOs field value if set, zero value otherwise. func (o *CertificationTask) GetReassignmentTrailDTOs() []ReassignmentTrailDTO { - if o == nil || isNil(o.ReassignmentTrailDTOs) { + if o == nil || IsNil(o.ReassignmentTrailDTOs) { var ret []ReassignmentTrailDTO return ret } @@ -261,7 +261,7 @@ func (o *CertificationTask) GetReassignmentTrailDTOs() []ReassignmentTrailDTO { // GetReassignmentTrailDTOsOk returns a tuple with the ReassignmentTrailDTOs field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CertificationTask) GetReassignmentTrailDTOsOk() ([]ReassignmentTrailDTO, bool) { - if o == nil || isNil(o.ReassignmentTrailDTOs) { + if o == nil || IsNil(o.ReassignmentTrailDTOs) { return nil, false } return o.ReassignmentTrailDTOs, true @@ -269,7 +269,7 @@ func (o *CertificationTask) GetReassignmentTrailDTOsOk() ([]ReassignmentTrailDTO // HasReassignmentTrailDTOs returns a boolean if a field has been set. func (o *CertificationTask) HasReassignmentTrailDTOs() bool { - if o != nil && !isNil(o.ReassignmentTrailDTOs) { + if o != nil && !IsNil(o.ReassignmentTrailDTOs) { return true } @@ -283,7 +283,7 @@ func (o *CertificationTask) SetReassignmentTrailDTOs(v []ReassignmentTrailDTO) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *CertificationTask) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -293,7 +293,7 @@ func (o *CertificationTask) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CertificationTask) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -301,7 +301,7 @@ func (o *CertificationTask) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *CertificationTask) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -323,28 +323,28 @@ func (o CertificationTask) MarshalJSON() ([]byte, error) { func (o CertificationTask) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.TargetType) { + if !IsNil(o.TargetType) { toSerialize["targetType"] = o.TargetType } - if !isNil(o.TargetId) { + if !IsNil(o.TargetId) { toSerialize["targetId"] = o.TargetId } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } - if !isNil(o.Errors) { + if !IsNil(o.Errors) { toSerialize["errors"] = o.Errors } - if !isNil(o.ReassignmentTrailDTOs) { + if !IsNil(o.ReassignmentTrailDTOs) { toSerialize["reassignmentTrailDTOs"] = o.ReassignmentTrailDTOs } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } @@ -355,16 +355,20 @@ func (o CertificationTask) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CertificationTask) UnmarshalJSON(bytes []byte) (err error) { +func (o *CertificationTask) UnmarshalJSON(data []byte) (err error) { varCertificationTask := _CertificationTask{} - if err = json.Unmarshal(bytes, &varCertificationTask); err == nil { + err = json.Unmarshal(data, &varCertificationTask) + + if err != nil { + return err + } + *o = CertificationTask(varCertificationTask) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "type") delete(additionalProperties, "targetType") diff --git a/api_v3/model_client_log_configuration.go b/api_v3/model_client_log_configuration.go index 7e8a754f5..007290b3b 100644 --- a/api_v3/model_client_log_configuration.go +++ b/api_v3/model_client_log_configuration.go @@ -56,7 +56,7 @@ func NewClientLogConfigurationWithDefaults() *ClientLogConfiguration { // GetClientId returns the ClientId field value if set, zero value otherwise. func (o *ClientLogConfiguration) GetClientId() string { - if o == nil || isNil(o.ClientId) { + if o == nil || IsNil(o.ClientId) { var ret string return ret } @@ -66,7 +66,7 @@ func (o *ClientLogConfiguration) GetClientId() string { // GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ClientLogConfiguration) GetClientIdOk() (*string, bool) { - if o == nil || isNil(o.ClientId) { + if o == nil || IsNil(o.ClientId) { return nil, false } return o.ClientId, true @@ -74,7 +74,7 @@ func (o *ClientLogConfiguration) GetClientIdOk() (*string, bool) { // HasClientId returns a boolean if a field has been set. func (o *ClientLogConfiguration) HasClientId() bool { - if o != nil && !isNil(o.ClientId) { + if o != nil && !IsNil(o.ClientId) { return true } @@ -112,7 +112,7 @@ func (o *ClientLogConfiguration) SetDurationMinutes(v int32) { // GetExpiration returns the Expiration field value if set, zero value otherwise. func (o *ClientLogConfiguration) GetExpiration() time.Time { - if o == nil || isNil(o.Expiration) { + if o == nil || IsNil(o.Expiration) { var ret time.Time return ret } @@ -122,7 +122,7 @@ func (o *ClientLogConfiguration) GetExpiration() time.Time { // GetExpirationOk returns a tuple with the Expiration field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ClientLogConfiguration) GetExpirationOk() (*time.Time, bool) { - if o == nil || isNil(o.Expiration) { + if o == nil || IsNil(o.Expiration) { return nil, false } return o.Expiration, true @@ -130,7 +130,7 @@ func (o *ClientLogConfiguration) GetExpirationOk() (*time.Time, bool) { // HasExpiration returns a boolean if a field has been set. func (o *ClientLogConfiguration) HasExpiration() bool { - if o != nil && !isNil(o.Expiration) { + if o != nil && !IsNil(o.Expiration) { return true } @@ -168,7 +168,7 @@ func (o *ClientLogConfiguration) SetRootLevel(v StandardLevel) { // GetLogLevels returns the LogLevels field value if set, zero value otherwise. func (o *ClientLogConfiguration) GetLogLevels() map[string]StandardLevel { - if o == nil || isNil(o.LogLevels) { + if o == nil || IsNil(o.LogLevels) { var ret map[string]StandardLevel return ret } @@ -178,7 +178,7 @@ func (o *ClientLogConfiguration) GetLogLevels() map[string]StandardLevel { // GetLogLevelsOk returns a tuple with the LogLevels field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ClientLogConfiguration) GetLogLevelsOk() (*map[string]StandardLevel, bool) { - if o == nil || isNil(o.LogLevels) { + if o == nil || IsNil(o.LogLevels) { return nil, false } return o.LogLevels, true @@ -186,7 +186,7 @@ func (o *ClientLogConfiguration) GetLogLevelsOk() (*map[string]StandardLevel, bo // HasLogLevels returns a boolean if a field has been set. func (o *ClientLogConfiguration) HasLogLevels() bool { - if o != nil && !isNil(o.LogLevels) { + if o != nil && !IsNil(o.LogLevels) { return true } @@ -208,15 +208,15 @@ func (o ClientLogConfiguration) MarshalJSON() ([]byte, error) { func (o ClientLogConfiguration) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.ClientId) { + if !IsNil(o.ClientId) { toSerialize["clientId"] = o.ClientId } toSerialize["durationMinutes"] = o.DurationMinutes - if !isNil(o.Expiration) { + if !IsNil(o.Expiration) { toSerialize["expiration"] = o.Expiration } toSerialize["rootLevel"] = o.RootLevel - if !isNil(o.LogLevels) { + if !IsNil(o.LogLevels) { toSerialize["logLevels"] = o.LogLevels } @@ -227,8 +227,8 @@ func (o ClientLogConfiguration) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ClientLogConfiguration) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ClientLogConfiguration) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -238,7 +238,7 @@ func (o *ClientLogConfiguration) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -252,13 +252,17 @@ func (o *ClientLogConfiguration) UnmarshalJSON(bytes []byte) (err error) { varClientLogConfiguration := _ClientLogConfiguration{} - if err = json.Unmarshal(bytes, &varClientLogConfiguration); err == nil { + err = json.Unmarshal(data, &varClientLogConfiguration) + + if err != nil { + return err + } + *o = ClientLogConfiguration(varClientLogConfiguration) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "clientId") delete(additionalProperties, "durationMinutes") delete(additionalProperties, "expiration") diff --git a/api_v3/model_column.go b/api_v3/model_column.go index 1c8571d04..20dbc0500 100644 --- a/api_v3/model_column.go +++ b/api_v3/model_column.go @@ -73,7 +73,7 @@ func (o *Column) SetField(v string) { // GetHeader returns the Header field value if set, zero value otherwise. func (o *Column) GetHeader() string { - if o == nil || isNil(o.Header) { + if o == nil || IsNil(o.Header) { var ret string return ret } @@ -83,7 +83,7 @@ func (o *Column) GetHeader() string { // GetHeaderOk returns a tuple with the Header field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Column) GetHeaderOk() (*string, bool) { - if o == nil || isNil(o.Header) { + if o == nil || IsNil(o.Header) { return nil, false } return o.Header, true @@ -91,7 +91,7 @@ func (o *Column) GetHeaderOk() (*string, bool) { // HasHeader returns a boolean if a field has been set. func (o *Column) HasHeader() bool { - if o != nil && !isNil(o.Header) { + if o != nil && !IsNil(o.Header) { return true } @@ -114,7 +114,7 @@ func (o Column) MarshalJSON() ([]byte, error) { func (o Column) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["field"] = o.Field - if !isNil(o.Header) { + if !IsNil(o.Header) { toSerialize["header"] = o.Header } @@ -125,8 +125,8 @@ func (o Column) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Column) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *Column) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -135,7 +135,7 @@ func (o *Column) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -149,13 +149,17 @@ func (o *Column) UnmarshalJSON(bytes []byte) (err error) { varColumn := _Column{} - if err = json.Unmarshal(bytes, &varColumn); err == nil { + err = json.Unmarshal(data, &varColumn) + + if err != nil { + return err + } + *o = Column(varColumn) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "field") delete(additionalProperties, "header") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_comment.go b/api_v3/model_comment.go index 00605d197..2f818754b 100644 --- a/api_v3/model_comment.go +++ b/api_v3/model_comment.go @@ -52,7 +52,7 @@ func NewCommentWithDefaults() *Comment { // GetCommenterId returns the CommenterId field value if set, zero value otherwise. func (o *Comment) GetCommenterId() string { - if o == nil || isNil(o.CommenterId) { + if o == nil || IsNil(o.CommenterId) { var ret string return ret } @@ -62,7 +62,7 @@ func (o *Comment) GetCommenterId() string { // GetCommenterIdOk returns a tuple with the CommenterId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Comment) GetCommenterIdOk() (*string, bool) { - if o == nil || isNil(o.CommenterId) { + if o == nil || IsNil(o.CommenterId) { return nil, false } return o.CommenterId, true @@ -70,7 +70,7 @@ func (o *Comment) GetCommenterIdOk() (*string, bool) { // HasCommenterId returns a boolean if a field has been set. func (o *Comment) HasCommenterId() bool { - if o != nil && !isNil(o.CommenterId) { + if o != nil && !IsNil(o.CommenterId) { return true } @@ -84,7 +84,7 @@ func (o *Comment) SetCommenterId(v string) { // GetCommenterName returns the CommenterName field value if set, zero value otherwise. func (o *Comment) GetCommenterName() string { - if o == nil || isNil(o.CommenterName) { + if o == nil || IsNil(o.CommenterName) { var ret string return ret } @@ -94,7 +94,7 @@ func (o *Comment) GetCommenterName() string { // GetCommenterNameOk returns a tuple with the CommenterName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Comment) GetCommenterNameOk() (*string, bool) { - if o == nil || isNil(o.CommenterName) { + if o == nil || IsNil(o.CommenterName) { return nil, false } return o.CommenterName, true @@ -102,7 +102,7 @@ func (o *Comment) GetCommenterNameOk() (*string, bool) { // HasCommenterName returns a boolean if a field has been set. func (o *Comment) HasCommenterName() bool { - if o != nil && !isNil(o.CommenterName) { + if o != nil && !IsNil(o.CommenterName) { return true } @@ -116,7 +116,7 @@ func (o *Comment) SetCommenterName(v string) { // GetBody returns the Body field value if set, zero value otherwise. func (o *Comment) GetBody() string { - if o == nil || isNil(o.Body) { + if o == nil || IsNil(o.Body) { var ret string return ret } @@ -126,7 +126,7 @@ func (o *Comment) GetBody() string { // GetBodyOk returns a tuple with the Body field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Comment) GetBodyOk() (*string, bool) { - if o == nil || isNil(o.Body) { + if o == nil || IsNil(o.Body) { return nil, false } return o.Body, true @@ -134,7 +134,7 @@ func (o *Comment) GetBodyOk() (*string, bool) { // HasBody returns a boolean if a field has been set. func (o *Comment) HasBody() bool { - if o != nil && !isNil(o.Body) { + if o != nil && !IsNil(o.Body) { return true } @@ -148,7 +148,7 @@ func (o *Comment) SetBody(v string) { // GetDate returns the Date field value if set, zero value otherwise. func (o *Comment) GetDate() time.Time { - if o == nil || isNil(o.Date) { + if o == nil || IsNil(o.Date) { var ret time.Time return ret } @@ -158,7 +158,7 @@ func (o *Comment) GetDate() time.Time { // GetDateOk returns a tuple with the Date field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Comment) GetDateOk() (*time.Time, bool) { - if o == nil || isNil(o.Date) { + if o == nil || IsNil(o.Date) { return nil, false } return o.Date, true @@ -166,7 +166,7 @@ func (o *Comment) GetDateOk() (*time.Time, bool) { // HasDate returns a boolean if a field has been set. func (o *Comment) HasDate() bool { - if o != nil && !isNil(o.Date) { + if o != nil && !IsNil(o.Date) { return true } @@ -188,16 +188,16 @@ func (o Comment) MarshalJSON() ([]byte, error) { func (o Comment) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.CommenterId) { + if !IsNil(o.CommenterId) { toSerialize["commenterId"] = o.CommenterId } - if !isNil(o.CommenterName) { + if !IsNil(o.CommenterName) { toSerialize["commenterName"] = o.CommenterName } - if !isNil(o.Body) { + if !IsNil(o.Body) { toSerialize["body"] = o.Body } - if !isNil(o.Date) { + if !IsNil(o.Date) { toSerialize["date"] = o.Date } @@ -208,16 +208,20 @@ func (o Comment) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Comment) UnmarshalJSON(bytes []byte) (err error) { +func (o *Comment) UnmarshalJSON(data []byte) (err error) { varComment := _Comment{} - if err = json.Unmarshal(bytes, &varComment); err == nil { + err = json.Unmarshal(data, &varComment) + + if err != nil { + return err + } + *o = Comment(varComment) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "commenterId") delete(additionalProperties, "commenterName") delete(additionalProperties, "body") diff --git a/api_v3/model_comment_dto.go b/api_v3/model_comment_dto.go index 1c76dee58..2f73c773d 100644 --- a/api_v3/model_comment_dto.go +++ b/api_v3/model_comment_dto.go @@ -49,7 +49,7 @@ func NewCommentDtoWithDefaults() *CommentDto { // GetComment returns the Comment field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CommentDto) GetComment() string { - if o == nil || isNil(o.Comment.Get()) { + if o == nil || IsNil(o.Comment.Get()) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *CommentDto) UnsetComment() { // GetCreated returns the Created field value if set, zero value otherwise. func (o *CommentDto) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -101,7 +101,7 @@ func (o *CommentDto) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CommentDto) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -109,7 +109,7 @@ func (o *CommentDto) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *CommentDto) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -123,7 +123,7 @@ func (o *CommentDto) SetCreated(v time.Time) { // GetAuthor returns the Author field value if set, zero value otherwise. func (o *CommentDto) GetAuthor() CommentDtoAuthor { - if o == nil || isNil(o.Author) { + if o == nil || IsNil(o.Author) { var ret CommentDtoAuthor return ret } @@ -133,7 +133,7 @@ func (o *CommentDto) GetAuthor() CommentDtoAuthor { // GetAuthorOk returns a tuple with the Author field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CommentDto) GetAuthorOk() (*CommentDtoAuthor, bool) { - if o == nil || isNil(o.Author) { + if o == nil || IsNil(o.Author) { return nil, false } return o.Author, true @@ -141,7 +141,7 @@ func (o *CommentDto) GetAuthorOk() (*CommentDtoAuthor, bool) { // HasAuthor returns a boolean if a field has been set. func (o *CommentDto) HasAuthor() bool { - if o != nil && !isNil(o.Author) { + if o != nil && !IsNil(o.Author) { return true } @@ -166,10 +166,10 @@ func (o CommentDto) ToMap() (map[string]interface{}, error) { if o.Comment.IsSet() { toSerialize["comment"] = o.Comment.Get() } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Author) { + if !IsNil(o.Author) { toSerialize["author"] = o.Author } @@ -180,16 +180,20 @@ func (o CommentDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CommentDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *CommentDto) UnmarshalJSON(data []byte) (err error) { varCommentDto := _CommentDto{} - if err = json.Unmarshal(bytes, &varCommentDto); err == nil { + err = json.Unmarshal(data, &varCommentDto) + + if err != nil { + return err + } + *o = CommentDto(varCommentDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "comment") delete(additionalProperties, "created") delete(additionalProperties, "author") diff --git a/api_v3/model_comment_dto_author.go b/api_v3/model_comment_dto_author.go index 4f2cdb630..c26dd1827 100644 --- a/api_v3/model_comment_dto_author.go +++ b/api_v3/model_comment_dto_author.go @@ -49,7 +49,7 @@ func NewCommentDtoAuthorWithDefaults() *CommentDtoAuthor { // GetType returns the Type field value if set, zero value otherwise. func (o *CommentDtoAuthor) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *CommentDtoAuthor) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CommentDtoAuthor) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *CommentDtoAuthor) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *CommentDtoAuthor) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *CommentDtoAuthor) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *CommentDtoAuthor) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *CommentDtoAuthor) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CommentDtoAuthor) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *CommentDtoAuthor) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *CommentDtoAuthor) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *CommentDtoAuthor) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *CommentDtoAuthor) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *CommentDtoAuthor) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CommentDtoAuthor) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *CommentDtoAuthor) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *CommentDtoAuthor) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o CommentDtoAuthor) MarshalJSON() ([]byte, error) { func (o CommentDtoAuthor) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o CommentDtoAuthor) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CommentDtoAuthor) UnmarshalJSON(bytes []byte) (err error) { +func (o *CommentDtoAuthor) UnmarshalJSON(data []byte) (err error) { varCommentDtoAuthor := _CommentDtoAuthor{} - if err = json.Unmarshal(bytes, &varCommentDtoAuthor); err == nil { + err = json.Unmarshal(data, &varCommentDtoAuthor) + + if err != nil { + return err + } + *o = CommentDtoAuthor(varCommentDtoAuthor) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_completed_approval.go b/api_v3/model_completed_approval.go index f376facb8..d10802230 100644 --- a/api_v3/model_completed_approval.go +++ b/api_v3/model_completed_approval.go @@ -87,7 +87,7 @@ func NewCompletedApprovalWithDefaults() *CompletedApproval { // GetId returns the Id field value if set, zero value otherwise. func (o *CompletedApproval) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -97,7 +97,7 @@ func (o *CompletedApproval) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -105,7 +105,7 @@ func (o *CompletedApproval) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *CompletedApproval) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -119,7 +119,7 @@ func (o *CompletedApproval) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *CompletedApproval) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -129,7 +129,7 @@ func (o *CompletedApproval) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -137,7 +137,7 @@ func (o *CompletedApproval) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *CompletedApproval) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -151,7 +151,7 @@ func (o *CompletedApproval) SetName(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *CompletedApproval) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -161,7 +161,7 @@ func (o *CompletedApproval) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -169,7 +169,7 @@ func (o *CompletedApproval) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *CompletedApproval) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -183,7 +183,7 @@ func (o *CompletedApproval) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *CompletedApproval) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -193,7 +193,7 @@ func (o *CompletedApproval) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -201,7 +201,7 @@ func (o *CompletedApproval) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *CompletedApproval) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -215,7 +215,7 @@ func (o *CompletedApproval) SetModified(v time.Time) { // GetRequestCreated returns the RequestCreated field value if set, zero value otherwise. func (o *CompletedApproval) GetRequestCreated() time.Time { - if o == nil || isNil(o.RequestCreated) { + if o == nil || IsNil(o.RequestCreated) { var ret time.Time return ret } @@ -225,7 +225,7 @@ func (o *CompletedApproval) GetRequestCreated() time.Time { // GetRequestCreatedOk returns a tuple with the RequestCreated field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetRequestCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.RequestCreated) { + if o == nil || IsNil(o.RequestCreated) { return nil, false } return o.RequestCreated, true @@ -233,7 +233,7 @@ func (o *CompletedApproval) GetRequestCreatedOk() (*time.Time, bool) { // HasRequestCreated returns a boolean if a field has been set. func (o *CompletedApproval) HasRequestCreated() bool { - if o != nil && !isNil(o.RequestCreated) { + if o != nil && !IsNil(o.RequestCreated) { return true } @@ -247,7 +247,7 @@ func (o *CompletedApproval) SetRequestCreated(v time.Time) { // GetRequestType returns the RequestType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CompletedApproval) GetRequestType() AccessRequestType { - if o == nil || isNil(o.RequestType.Get()) { + if o == nil || IsNil(o.RequestType.Get()) { var ret AccessRequestType return ret } @@ -289,7 +289,7 @@ func (o *CompletedApproval) UnsetRequestType() { // GetRequester returns the Requester field value if set, zero value otherwise. func (o *CompletedApproval) GetRequester() AccessItemRequester { - if o == nil || isNil(o.Requester) { + if o == nil || IsNil(o.Requester) { var ret AccessItemRequester return ret } @@ -299,7 +299,7 @@ func (o *CompletedApproval) GetRequester() AccessItemRequester { // GetRequesterOk returns a tuple with the Requester field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetRequesterOk() (*AccessItemRequester, bool) { - if o == nil || isNil(o.Requester) { + if o == nil || IsNil(o.Requester) { return nil, false } return o.Requester, true @@ -307,7 +307,7 @@ func (o *CompletedApproval) GetRequesterOk() (*AccessItemRequester, bool) { // HasRequester returns a boolean if a field has been set. func (o *CompletedApproval) HasRequester() bool { - if o != nil && !isNil(o.Requester) { + if o != nil && !IsNil(o.Requester) { return true } @@ -321,7 +321,7 @@ func (o *CompletedApproval) SetRequester(v AccessItemRequester) { // GetRequestedFor returns the RequestedFor field value if set, zero value otherwise. func (o *CompletedApproval) GetRequestedFor() RequestedItemStatusRequestedFor { - if o == nil || isNil(o.RequestedFor) { + if o == nil || IsNil(o.RequestedFor) { var ret RequestedItemStatusRequestedFor return ret } @@ -331,7 +331,7 @@ func (o *CompletedApproval) GetRequestedFor() RequestedItemStatusRequestedFor { // GetRequestedForOk returns a tuple with the RequestedFor field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetRequestedForOk() (*RequestedItemStatusRequestedFor, bool) { - if o == nil || isNil(o.RequestedFor) { + if o == nil || IsNil(o.RequestedFor) { return nil, false } return o.RequestedFor, true @@ -339,7 +339,7 @@ func (o *CompletedApproval) GetRequestedForOk() (*RequestedItemStatusRequestedFo // HasRequestedFor returns a boolean if a field has been set. func (o *CompletedApproval) HasRequestedFor() bool { - if o != nil && !isNil(o.RequestedFor) { + if o != nil && !IsNil(o.RequestedFor) { return true } @@ -353,7 +353,7 @@ func (o *CompletedApproval) SetRequestedFor(v RequestedItemStatusRequestedFor) { // GetReviewedBy returns the ReviewedBy field value if set, zero value otherwise. func (o *CompletedApproval) GetReviewedBy() AccessItemReviewedBy { - if o == nil || isNil(o.ReviewedBy) { + if o == nil || IsNil(o.ReviewedBy) { var ret AccessItemReviewedBy return ret } @@ -363,7 +363,7 @@ func (o *CompletedApproval) GetReviewedBy() AccessItemReviewedBy { // GetReviewedByOk returns a tuple with the ReviewedBy field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetReviewedByOk() (*AccessItemReviewedBy, bool) { - if o == nil || isNil(o.ReviewedBy) { + if o == nil || IsNil(o.ReviewedBy) { return nil, false } return o.ReviewedBy, true @@ -371,7 +371,7 @@ func (o *CompletedApproval) GetReviewedByOk() (*AccessItemReviewedBy, bool) { // HasReviewedBy returns a boolean if a field has been set. func (o *CompletedApproval) HasReviewedBy() bool { - if o != nil && !isNil(o.ReviewedBy) { + if o != nil && !IsNil(o.ReviewedBy) { return true } @@ -385,7 +385,7 @@ func (o *CompletedApproval) SetReviewedBy(v AccessItemReviewedBy) { // GetOwner returns the Owner field value if set, zero value otherwise. func (o *CompletedApproval) GetOwner() OwnerDto { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { var ret OwnerDto return ret } @@ -395,7 +395,7 @@ func (o *CompletedApproval) GetOwner() OwnerDto { // GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetOwnerOk() (*OwnerDto, bool) { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { return nil, false } return o.Owner, true @@ -403,7 +403,7 @@ func (o *CompletedApproval) GetOwnerOk() (*OwnerDto, bool) { // HasOwner returns a boolean if a field has been set. func (o *CompletedApproval) HasOwner() bool { - if o != nil && !isNil(o.Owner) { + if o != nil && !IsNil(o.Owner) { return true } @@ -417,7 +417,7 @@ func (o *CompletedApproval) SetOwner(v OwnerDto) { // GetRequestedObject returns the RequestedObject field value if set, zero value otherwise. func (o *CompletedApproval) GetRequestedObject() RequestableObjectReference { - if o == nil || isNil(o.RequestedObject) { + if o == nil || IsNil(o.RequestedObject) { var ret RequestableObjectReference return ret } @@ -427,7 +427,7 @@ func (o *CompletedApproval) GetRequestedObject() RequestableObjectReference { // GetRequestedObjectOk returns a tuple with the RequestedObject field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetRequestedObjectOk() (*RequestableObjectReference, bool) { - if o == nil || isNil(o.RequestedObject) { + if o == nil || IsNil(o.RequestedObject) { return nil, false } return o.RequestedObject, true @@ -435,7 +435,7 @@ func (o *CompletedApproval) GetRequestedObjectOk() (*RequestableObjectReference, // HasRequestedObject returns a boolean if a field has been set. func (o *CompletedApproval) HasRequestedObject() bool { - if o != nil && !isNil(o.RequestedObject) { + if o != nil && !IsNil(o.RequestedObject) { return true } @@ -449,7 +449,7 @@ func (o *CompletedApproval) SetRequestedObject(v RequestableObjectReference) { // GetRequesterComment returns the RequesterComment field value if set, zero value otherwise. func (o *CompletedApproval) GetRequesterComment() CompletedApprovalRequesterComment { - if o == nil || isNil(o.RequesterComment) { + if o == nil || IsNil(o.RequesterComment) { var ret CompletedApprovalRequesterComment return ret } @@ -459,7 +459,7 @@ func (o *CompletedApproval) GetRequesterComment() CompletedApprovalRequesterComm // GetRequesterCommentOk returns a tuple with the RequesterComment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetRequesterCommentOk() (*CompletedApprovalRequesterComment, bool) { - if o == nil || isNil(o.RequesterComment) { + if o == nil || IsNil(o.RequesterComment) { return nil, false } return o.RequesterComment, true @@ -467,7 +467,7 @@ func (o *CompletedApproval) GetRequesterCommentOk() (*CompletedApprovalRequester // HasRequesterComment returns a boolean if a field has been set. func (o *CompletedApproval) HasRequesterComment() bool { - if o != nil && !isNil(o.RequesterComment) { + if o != nil && !IsNil(o.RequesterComment) { return true } @@ -481,7 +481,7 @@ func (o *CompletedApproval) SetRequesterComment(v CompletedApprovalRequesterComm // GetReviewerComment returns the ReviewerComment field value if set, zero value otherwise. func (o *CompletedApproval) GetReviewerComment() CompletedApprovalReviewerComment { - if o == nil || isNil(o.ReviewerComment) { + if o == nil || IsNil(o.ReviewerComment) { var ret CompletedApprovalReviewerComment return ret } @@ -491,7 +491,7 @@ func (o *CompletedApproval) GetReviewerComment() CompletedApprovalReviewerCommen // GetReviewerCommentOk returns a tuple with the ReviewerComment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetReviewerCommentOk() (*CompletedApprovalReviewerComment, bool) { - if o == nil || isNil(o.ReviewerComment) { + if o == nil || IsNil(o.ReviewerComment) { return nil, false } return o.ReviewerComment, true @@ -499,7 +499,7 @@ func (o *CompletedApproval) GetReviewerCommentOk() (*CompletedApprovalReviewerCo // HasReviewerComment returns a boolean if a field has been set. func (o *CompletedApproval) HasReviewerComment() bool { - if o != nil && !isNil(o.ReviewerComment) { + if o != nil && !IsNil(o.ReviewerComment) { return true } @@ -513,7 +513,7 @@ func (o *CompletedApproval) SetReviewerComment(v CompletedApprovalReviewerCommen // GetPreviousReviewersComments returns the PreviousReviewersComments field value if set, zero value otherwise. func (o *CompletedApproval) GetPreviousReviewersComments() []CommentDto { - if o == nil || isNil(o.PreviousReviewersComments) { + if o == nil || IsNil(o.PreviousReviewersComments) { var ret []CommentDto return ret } @@ -523,7 +523,7 @@ func (o *CompletedApproval) GetPreviousReviewersComments() []CommentDto { // GetPreviousReviewersCommentsOk returns a tuple with the PreviousReviewersComments field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetPreviousReviewersCommentsOk() ([]CommentDto, bool) { - if o == nil || isNil(o.PreviousReviewersComments) { + if o == nil || IsNil(o.PreviousReviewersComments) { return nil, false } return o.PreviousReviewersComments, true @@ -531,7 +531,7 @@ func (o *CompletedApproval) GetPreviousReviewersCommentsOk() ([]CommentDto, bool // HasPreviousReviewersComments returns a boolean if a field has been set. func (o *CompletedApproval) HasPreviousReviewersComments() bool { - if o != nil && !isNil(o.PreviousReviewersComments) { + if o != nil && !IsNil(o.PreviousReviewersComments) { return true } @@ -545,7 +545,7 @@ func (o *CompletedApproval) SetPreviousReviewersComments(v []CommentDto) { // GetForwardHistory returns the ForwardHistory field value if set, zero value otherwise. func (o *CompletedApproval) GetForwardHistory() []ApprovalForwardHistory { - if o == nil || isNil(o.ForwardHistory) { + if o == nil || IsNil(o.ForwardHistory) { var ret []ApprovalForwardHistory return ret } @@ -555,7 +555,7 @@ func (o *CompletedApproval) GetForwardHistory() []ApprovalForwardHistory { // GetForwardHistoryOk returns a tuple with the ForwardHistory field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetForwardHistoryOk() ([]ApprovalForwardHistory, bool) { - if o == nil || isNil(o.ForwardHistory) { + if o == nil || IsNil(o.ForwardHistory) { return nil, false } return o.ForwardHistory, true @@ -563,7 +563,7 @@ func (o *CompletedApproval) GetForwardHistoryOk() ([]ApprovalForwardHistory, boo // HasForwardHistory returns a boolean if a field has been set. func (o *CompletedApproval) HasForwardHistory() bool { - if o != nil && !isNil(o.ForwardHistory) { + if o != nil && !IsNil(o.ForwardHistory) { return true } @@ -577,7 +577,7 @@ func (o *CompletedApproval) SetForwardHistory(v []ApprovalForwardHistory) { // GetCommentRequiredWhenRejected returns the CommentRequiredWhenRejected field value if set, zero value otherwise. func (o *CompletedApproval) GetCommentRequiredWhenRejected() bool { - if o == nil || isNil(o.CommentRequiredWhenRejected) { + if o == nil || IsNil(o.CommentRequiredWhenRejected) { var ret bool return ret } @@ -587,7 +587,7 @@ func (o *CompletedApproval) GetCommentRequiredWhenRejected() bool { // GetCommentRequiredWhenRejectedOk returns a tuple with the CommentRequiredWhenRejected field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetCommentRequiredWhenRejectedOk() (*bool, bool) { - if o == nil || isNil(o.CommentRequiredWhenRejected) { + if o == nil || IsNil(o.CommentRequiredWhenRejected) { return nil, false } return o.CommentRequiredWhenRejected, true @@ -595,7 +595,7 @@ func (o *CompletedApproval) GetCommentRequiredWhenRejectedOk() (*bool, bool) { // HasCommentRequiredWhenRejected returns a boolean if a field has been set. func (o *CompletedApproval) HasCommentRequiredWhenRejected() bool { - if o != nil && !isNil(o.CommentRequiredWhenRejected) { + if o != nil && !IsNil(o.CommentRequiredWhenRejected) { return true } @@ -609,7 +609,7 @@ func (o *CompletedApproval) SetCommentRequiredWhenRejected(v bool) { // GetState returns the State field value if set, zero value otherwise. func (o *CompletedApproval) GetState() CompletedApprovalState { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { var ret CompletedApprovalState return ret } @@ -619,7 +619,7 @@ func (o *CompletedApproval) GetState() CompletedApprovalState { // GetStateOk returns a tuple with the State field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetStateOk() (*CompletedApprovalState, bool) { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { return nil, false } return o.State, true @@ -627,7 +627,7 @@ func (o *CompletedApproval) GetStateOk() (*CompletedApprovalState, bool) { // HasState returns a boolean if a field has been set. func (o *CompletedApproval) HasState() bool { - if o != nil && !isNil(o.State) { + if o != nil && !IsNil(o.State) { return true } @@ -641,7 +641,7 @@ func (o *CompletedApproval) SetState(v CompletedApprovalState) { // GetRemoveDate returns the RemoveDate field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CompletedApproval) GetRemoveDate() time.Time { - if o == nil || isNil(o.RemoveDate.Get()) { + if o == nil || IsNil(o.RemoveDate.Get()) { var ret time.Time return ret } @@ -683,7 +683,7 @@ func (o *CompletedApproval) UnsetRemoveDate() { // GetRemoveDateUpdateRequested returns the RemoveDateUpdateRequested field value if set, zero value otherwise. func (o *CompletedApproval) GetRemoveDateUpdateRequested() bool { - if o == nil || isNil(o.RemoveDateUpdateRequested) { + if o == nil || IsNil(o.RemoveDateUpdateRequested) { var ret bool return ret } @@ -693,7 +693,7 @@ func (o *CompletedApproval) GetRemoveDateUpdateRequested() bool { // GetRemoveDateUpdateRequestedOk returns a tuple with the RemoveDateUpdateRequested field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetRemoveDateUpdateRequestedOk() (*bool, bool) { - if o == nil || isNil(o.RemoveDateUpdateRequested) { + if o == nil || IsNil(o.RemoveDateUpdateRequested) { return nil, false } return o.RemoveDateUpdateRequested, true @@ -701,7 +701,7 @@ func (o *CompletedApproval) GetRemoveDateUpdateRequestedOk() (*bool, bool) { // HasRemoveDateUpdateRequested returns a boolean if a field has been set. func (o *CompletedApproval) HasRemoveDateUpdateRequested() bool { - if o != nil && !isNil(o.RemoveDateUpdateRequested) { + if o != nil && !IsNil(o.RemoveDateUpdateRequested) { return true } @@ -715,7 +715,7 @@ func (o *CompletedApproval) SetRemoveDateUpdateRequested(v bool) { // GetCurrentRemoveDate returns the CurrentRemoveDate field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CompletedApproval) GetCurrentRemoveDate() time.Time { - if o == nil || isNil(o.CurrentRemoveDate.Get()) { + if o == nil || IsNil(o.CurrentRemoveDate.Get()) { var ret time.Time return ret } @@ -757,7 +757,7 @@ func (o *CompletedApproval) UnsetCurrentRemoveDate() { // GetSodViolationContext returns the SodViolationContext field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CompletedApproval) GetSodViolationContext() SodViolationContextCheckCompleted { - if o == nil || isNil(o.SodViolationContext.Get()) { + if o == nil || IsNil(o.SodViolationContext.Get()) { var ret SodViolationContextCheckCompleted return ret } @@ -799,7 +799,7 @@ func (o *CompletedApproval) UnsetSodViolationContext() { // GetPreApprovalTriggerResult returns the PreApprovalTriggerResult field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CompletedApproval) GetPreApprovalTriggerResult() CompletedApprovalPreApprovalTriggerResult { - if o == nil || isNil(o.PreApprovalTriggerResult.Get()) { + if o == nil || IsNil(o.PreApprovalTriggerResult.Get()) { var ret CompletedApprovalPreApprovalTriggerResult return ret } @@ -841,7 +841,7 @@ func (o *CompletedApproval) UnsetPreApprovalTriggerResult() { // GetClientMetadata returns the ClientMetadata field value if set, zero value otherwise. func (o *CompletedApproval) GetClientMetadata() map[string]string { - if o == nil || isNil(o.ClientMetadata) { + if o == nil || IsNil(o.ClientMetadata) { var ret map[string]string return ret } @@ -851,7 +851,7 @@ func (o *CompletedApproval) GetClientMetadata() map[string]string { // GetClientMetadataOk returns a tuple with the ClientMetadata field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApproval) GetClientMetadataOk() (*map[string]string, bool) { - if o == nil || isNil(o.ClientMetadata) { + if o == nil || IsNil(o.ClientMetadata) { return nil, false } return o.ClientMetadata, true @@ -859,7 +859,7 @@ func (o *CompletedApproval) GetClientMetadataOk() (*map[string]string, bool) { // HasClientMetadata returns a boolean if a field has been set. func (o *CompletedApproval) HasClientMetadata() bool { - if o != nil && !isNil(o.ClientMetadata) { + if o != nil && !IsNil(o.ClientMetadata) { return true } @@ -881,61 +881,61 @@ func (o CompletedApproval) MarshalJSON() ([]byte, error) { func (o CompletedApproval) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.RequestCreated) { + if !IsNil(o.RequestCreated) { toSerialize["requestCreated"] = o.RequestCreated } if o.RequestType.IsSet() { toSerialize["requestType"] = o.RequestType.Get() } - if !isNil(o.Requester) { + if !IsNil(o.Requester) { toSerialize["requester"] = o.Requester } - if !isNil(o.RequestedFor) { + if !IsNil(o.RequestedFor) { toSerialize["requestedFor"] = o.RequestedFor } - if !isNil(o.ReviewedBy) { + if !IsNil(o.ReviewedBy) { toSerialize["reviewedBy"] = o.ReviewedBy } - if !isNil(o.Owner) { + if !IsNil(o.Owner) { toSerialize["owner"] = o.Owner } - if !isNil(o.RequestedObject) { + if !IsNil(o.RequestedObject) { toSerialize["requestedObject"] = o.RequestedObject } - if !isNil(o.RequesterComment) { + if !IsNil(o.RequesterComment) { toSerialize["requesterComment"] = o.RequesterComment } - if !isNil(o.ReviewerComment) { + if !IsNil(o.ReviewerComment) { toSerialize["reviewerComment"] = o.ReviewerComment } - if !isNil(o.PreviousReviewersComments) { + if !IsNil(o.PreviousReviewersComments) { toSerialize["previousReviewersComments"] = o.PreviousReviewersComments } - if !isNil(o.ForwardHistory) { + if !IsNil(o.ForwardHistory) { toSerialize["forwardHistory"] = o.ForwardHistory } - if !isNil(o.CommentRequiredWhenRejected) { + if !IsNil(o.CommentRequiredWhenRejected) { toSerialize["commentRequiredWhenRejected"] = o.CommentRequiredWhenRejected } - if !isNil(o.State) { + if !IsNil(o.State) { toSerialize["state"] = o.State } if o.RemoveDate.IsSet() { toSerialize["removeDate"] = o.RemoveDate.Get() } - if !isNil(o.RemoveDateUpdateRequested) { + if !IsNil(o.RemoveDateUpdateRequested) { toSerialize["removeDateUpdateRequested"] = o.RemoveDateUpdateRequested } if o.CurrentRemoveDate.IsSet() { @@ -947,7 +947,7 @@ func (o CompletedApproval) ToMap() (map[string]interface{}, error) { if o.PreApprovalTriggerResult.IsSet() { toSerialize["preApprovalTriggerResult"] = o.PreApprovalTriggerResult.Get() } - if !isNil(o.ClientMetadata) { + if !IsNil(o.ClientMetadata) { toSerialize["clientMetadata"] = o.ClientMetadata } @@ -958,16 +958,20 @@ func (o CompletedApproval) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CompletedApproval) UnmarshalJSON(bytes []byte) (err error) { +func (o *CompletedApproval) UnmarshalJSON(data []byte) (err error) { varCompletedApproval := _CompletedApproval{} - if err = json.Unmarshal(bytes, &varCompletedApproval); err == nil { + err = json.Unmarshal(data, &varCompletedApproval) + + if err != nil { + return err + } + *o = CompletedApproval(varCompletedApproval) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "created") diff --git a/api_v3/model_completed_approval_pre_approval_trigger_result.go b/api_v3/model_completed_approval_pre_approval_trigger_result.go index 5646386f6..8f93b3179 100644 --- a/api_v3/model_completed_approval_pre_approval_trigger_result.go +++ b/api_v3/model_completed_approval_pre_approval_trigger_result.go @@ -51,7 +51,7 @@ func NewCompletedApprovalPreApprovalTriggerResultWithDefaults() *CompletedApprov // GetComment returns the Comment field value if set, zero value otherwise. func (o *CompletedApprovalPreApprovalTriggerResult) GetComment() string { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { var ret string return ret } @@ -61,7 +61,7 @@ func (o *CompletedApprovalPreApprovalTriggerResult) GetComment() string { // GetCommentOk returns a tuple with the Comment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApprovalPreApprovalTriggerResult) GetCommentOk() (*string, bool) { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { return nil, false } return o.Comment, true @@ -69,7 +69,7 @@ func (o *CompletedApprovalPreApprovalTriggerResult) GetCommentOk() (*string, boo // HasComment returns a boolean if a field has been set. func (o *CompletedApprovalPreApprovalTriggerResult) HasComment() bool { - if o != nil && !isNil(o.Comment) { + if o != nil && !IsNil(o.Comment) { return true } @@ -83,7 +83,7 @@ func (o *CompletedApprovalPreApprovalTriggerResult) SetComment(v string) { // GetDecision returns the Decision field value if set, zero value otherwise. func (o *CompletedApprovalPreApprovalTriggerResult) GetDecision() CompletedApprovalState { - if o == nil || isNil(o.Decision) { + if o == nil || IsNil(o.Decision) { var ret CompletedApprovalState return ret } @@ -93,7 +93,7 @@ func (o *CompletedApprovalPreApprovalTriggerResult) GetDecision() CompletedAppro // GetDecisionOk returns a tuple with the Decision field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApprovalPreApprovalTriggerResult) GetDecisionOk() (*CompletedApprovalState, bool) { - if o == nil || isNil(o.Decision) { + if o == nil || IsNil(o.Decision) { return nil, false } return o.Decision, true @@ -101,7 +101,7 @@ func (o *CompletedApprovalPreApprovalTriggerResult) GetDecisionOk() (*CompletedA // HasDecision returns a boolean if a field has been set. func (o *CompletedApprovalPreApprovalTriggerResult) HasDecision() bool { - if o != nil && !isNil(o.Decision) { + if o != nil && !IsNil(o.Decision) { return true } @@ -115,7 +115,7 @@ func (o *CompletedApprovalPreApprovalTriggerResult) SetDecision(v CompletedAppro // GetReviewer returns the Reviewer field value if set, zero value otherwise. func (o *CompletedApprovalPreApprovalTriggerResult) GetReviewer() string { - if o == nil || isNil(o.Reviewer) { + if o == nil || IsNil(o.Reviewer) { var ret string return ret } @@ -125,7 +125,7 @@ func (o *CompletedApprovalPreApprovalTriggerResult) GetReviewer() string { // GetReviewerOk returns a tuple with the Reviewer field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApprovalPreApprovalTriggerResult) GetReviewerOk() (*string, bool) { - if o == nil || isNil(o.Reviewer) { + if o == nil || IsNil(o.Reviewer) { return nil, false } return o.Reviewer, true @@ -133,7 +133,7 @@ func (o *CompletedApprovalPreApprovalTriggerResult) GetReviewerOk() (*string, bo // HasReviewer returns a boolean if a field has been set. func (o *CompletedApprovalPreApprovalTriggerResult) HasReviewer() bool { - if o != nil && !isNil(o.Reviewer) { + if o != nil && !IsNil(o.Reviewer) { return true } @@ -147,7 +147,7 @@ func (o *CompletedApprovalPreApprovalTriggerResult) SetReviewer(v string) { // GetDate returns the Date field value if set, zero value otherwise. func (o *CompletedApprovalPreApprovalTriggerResult) GetDate() time.Time { - if o == nil || isNil(o.Date) { + if o == nil || IsNil(o.Date) { var ret time.Time return ret } @@ -157,7 +157,7 @@ func (o *CompletedApprovalPreApprovalTriggerResult) GetDate() time.Time { // GetDateOk returns a tuple with the Date field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApprovalPreApprovalTriggerResult) GetDateOk() (*time.Time, bool) { - if o == nil || isNil(o.Date) { + if o == nil || IsNil(o.Date) { return nil, false } return o.Date, true @@ -165,7 +165,7 @@ func (o *CompletedApprovalPreApprovalTriggerResult) GetDateOk() (*time.Time, boo // HasDate returns a boolean if a field has been set. func (o *CompletedApprovalPreApprovalTriggerResult) HasDate() bool { - if o != nil && !isNil(o.Date) { + if o != nil && !IsNil(o.Date) { return true } @@ -187,16 +187,16 @@ func (o CompletedApprovalPreApprovalTriggerResult) MarshalJSON() ([]byte, error) func (o CompletedApprovalPreApprovalTriggerResult) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Comment) { + if !IsNil(o.Comment) { toSerialize["comment"] = o.Comment } - if !isNil(o.Decision) { + if !IsNil(o.Decision) { toSerialize["decision"] = o.Decision } - if !isNil(o.Reviewer) { + if !IsNil(o.Reviewer) { toSerialize["reviewer"] = o.Reviewer } - if !isNil(o.Date) { + if !IsNil(o.Date) { toSerialize["date"] = o.Date } @@ -207,16 +207,20 @@ func (o CompletedApprovalPreApprovalTriggerResult) ToMap() (map[string]interface return toSerialize, nil } -func (o *CompletedApprovalPreApprovalTriggerResult) UnmarshalJSON(bytes []byte) (err error) { +func (o *CompletedApprovalPreApprovalTriggerResult) UnmarshalJSON(data []byte) (err error) { varCompletedApprovalPreApprovalTriggerResult := _CompletedApprovalPreApprovalTriggerResult{} - if err = json.Unmarshal(bytes, &varCompletedApprovalPreApprovalTriggerResult); err == nil { + err = json.Unmarshal(data, &varCompletedApprovalPreApprovalTriggerResult) + + if err != nil { + return err + } + *o = CompletedApprovalPreApprovalTriggerResult(varCompletedApprovalPreApprovalTriggerResult) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "comment") delete(additionalProperties, "decision") delete(additionalProperties, "reviewer") diff --git a/api_v3/model_completed_approval_requester_comment.go b/api_v3/model_completed_approval_requester_comment.go index 3fb6cd14c..fb7e31775 100644 --- a/api_v3/model_completed_approval_requester_comment.go +++ b/api_v3/model_completed_approval_requester_comment.go @@ -49,7 +49,7 @@ func NewCompletedApprovalRequesterCommentWithDefaults() *CompletedApprovalReques // GetComment returns the Comment field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CompletedApprovalRequesterComment) GetComment() string { - if o == nil || isNil(o.Comment.Get()) { + if o == nil || IsNil(o.Comment.Get()) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *CompletedApprovalRequesterComment) UnsetComment() { // GetCreated returns the Created field value if set, zero value otherwise. func (o *CompletedApprovalRequesterComment) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -101,7 +101,7 @@ func (o *CompletedApprovalRequesterComment) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApprovalRequesterComment) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -109,7 +109,7 @@ func (o *CompletedApprovalRequesterComment) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *CompletedApprovalRequesterComment) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -123,7 +123,7 @@ func (o *CompletedApprovalRequesterComment) SetCreated(v time.Time) { // GetAuthor returns the Author field value if set, zero value otherwise. func (o *CompletedApprovalRequesterComment) GetAuthor() CommentDtoAuthor { - if o == nil || isNil(o.Author) { + if o == nil || IsNil(o.Author) { var ret CommentDtoAuthor return ret } @@ -133,7 +133,7 @@ func (o *CompletedApprovalRequesterComment) GetAuthor() CommentDtoAuthor { // GetAuthorOk returns a tuple with the Author field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApprovalRequesterComment) GetAuthorOk() (*CommentDtoAuthor, bool) { - if o == nil || isNil(o.Author) { + if o == nil || IsNil(o.Author) { return nil, false } return o.Author, true @@ -141,7 +141,7 @@ func (o *CompletedApprovalRequesterComment) GetAuthorOk() (*CommentDtoAuthor, bo // HasAuthor returns a boolean if a field has been set. func (o *CompletedApprovalRequesterComment) HasAuthor() bool { - if o != nil && !isNil(o.Author) { + if o != nil && !IsNil(o.Author) { return true } @@ -166,10 +166,10 @@ func (o CompletedApprovalRequesterComment) ToMap() (map[string]interface{}, erro if o.Comment.IsSet() { toSerialize["comment"] = o.Comment.Get() } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Author) { + if !IsNil(o.Author) { toSerialize["author"] = o.Author } @@ -180,16 +180,20 @@ func (o CompletedApprovalRequesterComment) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *CompletedApprovalRequesterComment) UnmarshalJSON(bytes []byte) (err error) { +func (o *CompletedApprovalRequesterComment) UnmarshalJSON(data []byte) (err error) { varCompletedApprovalRequesterComment := _CompletedApprovalRequesterComment{} - if err = json.Unmarshal(bytes, &varCompletedApprovalRequesterComment); err == nil { + err = json.Unmarshal(data, &varCompletedApprovalRequesterComment) + + if err != nil { + return err + } + *o = CompletedApprovalRequesterComment(varCompletedApprovalRequesterComment) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "comment") delete(additionalProperties, "created") delete(additionalProperties, "author") diff --git a/api_v3/model_completed_approval_reviewer_comment.go b/api_v3/model_completed_approval_reviewer_comment.go index 2d9cf6a9f..005e4f42a 100644 --- a/api_v3/model_completed_approval_reviewer_comment.go +++ b/api_v3/model_completed_approval_reviewer_comment.go @@ -49,7 +49,7 @@ func NewCompletedApprovalReviewerCommentWithDefaults() *CompletedApprovalReviewe // GetComment returns the Comment field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CompletedApprovalReviewerComment) GetComment() string { - if o == nil || isNil(o.Comment.Get()) { + if o == nil || IsNil(o.Comment.Get()) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *CompletedApprovalReviewerComment) UnsetComment() { // GetCreated returns the Created field value if set, zero value otherwise. func (o *CompletedApprovalReviewerComment) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -101,7 +101,7 @@ func (o *CompletedApprovalReviewerComment) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApprovalReviewerComment) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -109,7 +109,7 @@ func (o *CompletedApprovalReviewerComment) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *CompletedApprovalReviewerComment) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -123,7 +123,7 @@ func (o *CompletedApprovalReviewerComment) SetCreated(v time.Time) { // GetAuthor returns the Author field value if set, zero value otherwise. func (o *CompletedApprovalReviewerComment) GetAuthor() CommentDtoAuthor { - if o == nil || isNil(o.Author) { + if o == nil || IsNil(o.Author) { var ret CommentDtoAuthor return ret } @@ -133,7 +133,7 @@ func (o *CompletedApprovalReviewerComment) GetAuthor() CommentDtoAuthor { // GetAuthorOk returns a tuple with the Author field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CompletedApprovalReviewerComment) GetAuthorOk() (*CommentDtoAuthor, bool) { - if o == nil || isNil(o.Author) { + if o == nil || IsNil(o.Author) { return nil, false } return o.Author, true @@ -141,7 +141,7 @@ func (o *CompletedApprovalReviewerComment) GetAuthorOk() (*CommentDtoAuthor, boo // HasAuthor returns a boolean if a field has been set. func (o *CompletedApprovalReviewerComment) HasAuthor() bool { - if o != nil && !isNil(o.Author) { + if o != nil && !IsNil(o.Author) { return true } @@ -166,10 +166,10 @@ func (o CompletedApprovalReviewerComment) ToMap() (map[string]interface{}, error if o.Comment.IsSet() { toSerialize["comment"] = o.Comment.Get() } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Author) { + if !IsNil(o.Author) { toSerialize["author"] = o.Author } @@ -180,16 +180,20 @@ func (o CompletedApprovalReviewerComment) ToMap() (map[string]interface{}, error return toSerialize, nil } -func (o *CompletedApprovalReviewerComment) UnmarshalJSON(bytes []byte) (err error) { +func (o *CompletedApprovalReviewerComment) UnmarshalJSON(data []byte) (err error) { varCompletedApprovalReviewerComment := _CompletedApprovalReviewerComment{} - if err = json.Unmarshal(bytes, &varCompletedApprovalReviewerComment); err == nil { + err = json.Unmarshal(data, &varCompletedApprovalReviewerComment) + + if err != nil { + return err + } + *o = CompletedApprovalReviewerComment(varCompletedApprovalReviewerComment) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "comment") delete(additionalProperties, "created") delete(additionalProperties, "author") diff --git a/api_v3/model_conflicting_access_criteria.go b/api_v3/model_conflicting_access_criteria.go index 13384b264..33b11aca7 100644 --- a/api_v3/model_conflicting_access_criteria.go +++ b/api_v3/model_conflicting_access_criteria.go @@ -45,7 +45,7 @@ func NewConflictingAccessCriteriaWithDefaults() *ConflictingAccessCriteria { // GetLeftCriteria returns the LeftCriteria field value if set, zero value otherwise. func (o *ConflictingAccessCriteria) GetLeftCriteria() AccessCriteria { - if o == nil || isNil(o.LeftCriteria) { + if o == nil || IsNil(o.LeftCriteria) { var ret AccessCriteria return ret } @@ -55,7 +55,7 @@ func (o *ConflictingAccessCriteria) GetLeftCriteria() AccessCriteria { // GetLeftCriteriaOk returns a tuple with the LeftCriteria field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConflictingAccessCriteria) GetLeftCriteriaOk() (*AccessCriteria, bool) { - if o == nil || isNil(o.LeftCriteria) { + if o == nil || IsNil(o.LeftCriteria) { return nil, false } return o.LeftCriteria, true @@ -63,7 +63,7 @@ func (o *ConflictingAccessCriteria) GetLeftCriteriaOk() (*AccessCriteria, bool) // HasLeftCriteria returns a boolean if a field has been set. func (o *ConflictingAccessCriteria) HasLeftCriteria() bool { - if o != nil && !isNil(o.LeftCriteria) { + if o != nil && !IsNil(o.LeftCriteria) { return true } @@ -77,7 +77,7 @@ func (o *ConflictingAccessCriteria) SetLeftCriteria(v AccessCriteria) { // GetRightCriteria returns the RightCriteria field value if set, zero value otherwise. func (o *ConflictingAccessCriteria) GetRightCriteria() AccessCriteria { - if o == nil || isNil(o.RightCriteria) { + if o == nil || IsNil(o.RightCriteria) { var ret AccessCriteria return ret } @@ -87,7 +87,7 @@ func (o *ConflictingAccessCriteria) GetRightCriteria() AccessCriteria { // GetRightCriteriaOk returns a tuple with the RightCriteria field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConflictingAccessCriteria) GetRightCriteriaOk() (*AccessCriteria, bool) { - if o == nil || isNil(o.RightCriteria) { + if o == nil || IsNil(o.RightCriteria) { return nil, false } return o.RightCriteria, true @@ -95,7 +95,7 @@ func (o *ConflictingAccessCriteria) GetRightCriteriaOk() (*AccessCriteria, bool) // HasRightCriteria returns a boolean if a field has been set. func (o *ConflictingAccessCriteria) HasRightCriteria() bool { - if o != nil && !isNil(o.RightCriteria) { + if o != nil && !IsNil(o.RightCriteria) { return true } @@ -117,10 +117,10 @@ func (o ConflictingAccessCriteria) MarshalJSON() ([]byte, error) { func (o ConflictingAccessCriteria) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.LeftCriteria) { + if !IsNil(o.LeftCriteria) { toSerialize["leftCriteria"] = o.LeftCriteria } - if !isNil(o.RightCriteria) { + if !IsNil(o.RightCriteria) { toSerialize["rightCriteria"] = o.RightCriteria } @@ -131,16 +131,20 @@ func (o ConflictingAccessCriteria) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ConflictingAccessCriteria) UnmarshalJSON(bytes []byte) (err error) { +func (o *ConflictingAccessCriteria) UnmarshalJSON(data []byte) (err error) { varConflictingAccessCriteria := _ConflictingAccessCriteria{} - if err = json.Unmarshal(bytes, &varConflictingAccessCriteria); err == nil { + err = json.Unmarshal(data, &varConflictingAccessCriteria) + + if err != nil { + return err + } + *o = ConflictingAccessCriteria(varConflictingAccessCriteria) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "leftCriteria") delete(additionalProperties, "rightCriteria") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_connector_detail.go b/api_v3/model_connector_detail.go index 1947245da..4fcd75f07 100644 --- a/api_v3/model_connector_detail.go +++ b/api_v3/model_connector_detail.go @@ -83,7 +83,7 @@ func NewConnectorDetailWithDefaults() *ConnectorDetail { // GetName returns the Name field value if set, zero value otherwise. func (o *ConnectorDetail) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -93,7 +93,7 @@ func (o *ConnectorDetail) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConnectorDetail) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -101,7 +101,7 @@ func (o *ConnectorDetail) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ConnectorDetail) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -115,7 +115,7 @@ func (o *ConnectorDetail) SetName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *ConnectorDetail) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -125,7 +125,7 @@ func (o *ConnectorDetail) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConnectorDetail) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -133,7 +133,7 @@ func (o *ConnectorDetail) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *ConnectorDetail) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -147,7 +147,7 @@ func (o *ConnectorDetail) SetType(v string) { // GetClassName returns the ClassName field value if set, zero value otherwise. func (o *ConnectorDetail) GetClassName() string { - if o == nil || isNil(o.ClassName) { + if o == nil || IsNil(o.ClassName) { var ret string return ret } @@ -157,7 +157,7 @@ func (o *ConnectorDetail) GetClassName() string { // GetClassNameOk returns a tuple with the ClassName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConnectorDetail) GetClassNameOk() (*string, bool) { - if o == nil || isNil(o.ClassName) { + if o == nil || IsNil(o.ClassName) { return nil, false } return o.ClassName, true @@ -165,7 +165,7 @@ func (o *ConnectorDetail) GetClassNameOk() (*string, bool) { // HasClassName returns a boolean if a field has been set. func (o *ConnectorDetail) HasClassName() bool { - if o != nil && !isNil(o.ClassName) { + if o != nil && !IsNil(o.ClassName) { return true } @@ -179,7 +179,7 @@ func (o *ConnectorDetail) SetClassName(v string) { // GetScriptName returns the ScriptName field value if set, zero value otherwise. func (o *ConnectorDetail) GetScriptName() string { - if o == nil || isNil(o.ScriptName) { + if o == nil || IsNil(o.ScriptName) { var ret string return ret } @@ -189,7 +189,7 @@ func (o *ConnectorDetail) GetScriptName() string { // GetScriptNameOk returns a tuple with the ScriptName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConnectorDetail) GetScriptNameOk() (*string, bool) { - if o == nil || isNil(o.ScriptName) { + if o == nil || IsNil(o.ScriptName) { return nil, false } return o.ScriptName, true @@ -197,7 +197,7 @@ func (o *ConnectorDetail) GetScriptNameOk() (*string, bool) { // HasScriptName returns a boolean if a field has been set. func (o *ConnectorDetail) HasScriptName() bool { - if o != nil && !isNil(o.ScriptName) { + if o != nil && !IsNil(o.ScriptName) { return true } @@ -211,7 +211,7 @@ func (o *ConnectorDetail) SetScriptName(v string) { // GetApplicationXml returns the ApplicationXml field value if set, zero value otherwise. func (o *ConnectorDetail) GetApplicationXml() string { - if o == nil || isNil(o.ApplicationXml) { + if o == nil || IsNil(o.ApplicationXml) { var ret string return ret } @@ -221,7 +221,7 @@ func (o *ConnectorDetail) GetApplicationXml() string { // GetApplicationXmlOk returns a tuple with the ApplicationXml field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConnectorDetail) GetApplicationXmlOk() (*string, bool) { - if o == nil || isNil(o.ApplicationXml) { + if o == nil || IsNil(o.ApplicationXml) { return nil, false } return o.ApplicationXml, true @@ -229,7 +229,7 @@ func (o *ConnectorDetail) GetApplicationXmlOk() (*string, bool) { // HasApplicationXml returns a boolean if a field has been set. func (o *ConnectorDetail) HasApplicationXml() bool { - if o != nil && !isNil(o.ApplicationXml) { + if o != nil && !IsNil(o.ApplicationXml) { return true } @@ -243,7 +243,7 @@ func (o *ConnectorDetail) SetApplicationXml(v string) { // GetCorrelationConfigXml returns the CorrelationConfigXml field value if set, zero value otherwise. func (o *ConnectorDetail) GetCorrelationConfigXml() string { - if o == nil || isNil(o.CorrelationConfigXml) { + if o == nil || IsNil(o.CorrelationConfigXml) { var ret string return ret } @@ -253,7 +253,7 @@ func (o *ConnectorDetail) GetCorrelationConfigXml() string { // GetCorrelationConfigXmlOk returns a tuple with the CorrelationConfigXml field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConnectorDetail) GetCorrelationConfigXmlOk() (*string, bool) { - if o == nil || isNil(o.CorrelationConfigXml) { + if o == nil || IsNil(o.CorrelationConfigXml) { return nil, false } return o.CorrelationConfigXml, true @@ -261,7 +261,7 @@ func (o *ConnectorDetail) GetCorrelationConfigXmlOk() (*string, bool) { // HasCorrelationConfigXml returns a boolean if a field has been set. func (o *ConnectorDetail) HasCorrelationConfigXml() bool { - if o != nil && !isNil(o.CorrelationConfigXml) { + if o != nil && !IsNil(o.CorrelationConfigXml) { return true } @@ -275,7 +275,7 @@ func (o *ConnectorDetail) SetCorrelationConfigXml(v string) { // GetSourceConfigXml returns the SourceConfigXml field value if set, zero value otherwise. func (o *ConnectorDetail) GetSourceConfigXml() string { - if o == nil || isNil(o.SourceConfigXml) { + if o == nil || IsNil(o.SourceConfigXml) { var ret string return ret } @@ -285,7 +285,7 @@ func (o *ConnectorDetail) GetSourceConfigXml() string { // GetSourceConfigXmlOk returns a tuple with the SourceConfigXml field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConnectorDetail) GetSourceConfigXmlOk() (*string, bool) { - if o == nil || isNil(o.SourceConfigXml) { + if o == nil || IsNil(o.SourceConfigXml) { return nil, false } return o.SourceConfigXml, true @@ -293,7 +293,7 @@ func (o *ConnectorDetail) GetSourceConfigXmlOk() (*string, bool) { // HasSourceConfigXml returns a boolean if a field has been set. func (o *ConnectorDetail) HasSourceConfigXml() bool { - if o != nil && !isNil(o.SourceConfigXml) { + if o != nil && !IsNil(o.SourceConfigXml) { return true } @@ -307,7 +307,7 @@ func (o *ConnectorDetail) SetSourceConfigXml(v string) { // GetSourceConfig returns the SourceConfig field value if set, zero value otherwise. func (o *ConnectorDetail) GetSourceConfig() string { - if o == nil || isNil(o.SourceConfig) { + if o == nil || IsNil(o.SourceConfig) { var ret string return ret } @@ -317,7 +317,7 @@ func (o *ConnectorDetail) GetSourceConfig() string { // GetSourceConfigOk returns a tuple with the SourceConfig field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConnectorDetail) GetSourceConfigOk() (*string, bool) { - if o == nil || isNil(o.SourceConfig) { + if o == nil || IsNil(o.SourceConfig) { return nil, false } return o.SourceConfig, true @@ -325,7 +325,7 @@ func (o *ConnectorDetail) GetSourceConfigOk() (*string, bool) { // HasSourceConfig returns a boolean if a field has been set. func (o *ConnectorDetail) HasSourceConfig() bool { - if o != nil && !isNil(o.SourceConfig) { + if o != nil && !IsNil(o.SourceConfig) { return true } @@ -339,7 +339,7 @@ func (o *ConnectorDetail) SetSourceConfig(v string) { // GetSourceConfigFrom returns the SourceConfigFrom field value if set, zero value otherwise. func (o *ConnectorDetail) GetSourceConfigFrom() string { - if o == nil || isNil(o.SourceConfigFrom) { + if o == nil || IsNil(o.SourceConfigFrom) { var ret string return ret } @@ -349,7 +349,7 @@ func (o *ConnectorDetail) GetSourceConfigFrom() string { // GetSourceConfigFromOk returns a tuple with the SourceConfigFrom field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConnectorDetail) GetSourceConfigFromOk() (*string, bool) { - if o == nil || isNil(o.SourceConfigFrom) { + if o == nil || IsNil(o.SourceConfigFrom) { return nil, false } return o.SourceConfigFrom, true @@ -357,7 +357,7 @@ func (o *ConnectorDetail) GetSourceConfigFromOk() (*string, bool) { // HasSourceConfigFrom returns a boolean if a field has been set. func (o *ConnectorDetail) HasSourceConfigFrom() bool { - if o != nil && !isNil(o.SourceConfigFrom) { + if o != nil && !IsNil(o.SourceConfigFrom) { return true } @@ -371,7 +371,7 @@ func (o *ConnectorDetail) SetSourceConfigFrom(v string) { // GetS3Location returns the S3Location field value if set, zero value otherwise. func (o *ConnectorDetail) GetS3Location() string { - if o == nil || isNil(o.S3Location) { + if o == nil || IsNil(o.S3Location) { var ret string return ret } @@ -381,7 +381,7 @@ func (o *ConnectorDetail) GetS3Location() string { // GetS3LocationOk returns a tuple with the S3Location field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConnectorDetail) GetS3LocationOk() (*string, bool) { - if o == nil || isNil(o.S3Location) { + if o == nil || IsNil(o.S3Location) { return nil, false } return o.S3Location, true @@ -389,7 +389,7 @@ func (o *ConnectorDetail) GetS3LocationOk() (*string, bool) { // HasS3Location returns a boolean if a field has been set. func (o *ConnectorDetail) HasS3Location() bool { - if o != nil && !isNil(o.S3Location) { + if o != nil && !IsNil(o.S3Location) { return true } @@ -414,7 +414,7 @@ func (o *ConnectorDetail) GetUploadedFiles() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConnectorDetail) GetUploadedFilesOk() ([]string, bool) { - if o == nil || isNil(o.UploadedFiles) { + if o == nil || IsNil(o.UploadedFiles) { return nil, false } return o.UploadedFiles, true @@ -422,7 +422,7 @@ func (o *ConnectorDetail) GetUploadedFilesOk() ([]string, bool) { // HasUploadedFiles returns a boolean if a field has been set. func (o *ConnectorDetail) HasUploadedFiles() bool { - if o != nil && isNil(o.UploadedFiles) { + if o != nil && !IsNil(o.UploadedFiles) { return true } @@ -436,7 +436,7 @@ func (o *ConnectorDetail) SetUploadedFiles(v []string) { // GetFileUpload returns the FileUpload field value if set, zero value otherwise. func (o *ConnectorDetail) GetFileUpload() bool { - if o == nil || isNil(o.FileUpload) { + if o == nil || IsNil(o.FileUpload) { var ret bool return ret } @@ -446,7 +446,7 @@ func (o *ConnectorDetail) GetFileUpload() bool { // GetFileUploadOk returns a tuple with the FileUpload field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConnectorDetail) GetFileUploadOk() (*bool, bool) { - if o == nil || isNil(o.FileUpload) { + if o == nil || IsNil(o.FileUpload) { return nil, false } return o.FileUpload, true @@ -454,7 +454,7 @@ func (o *ConnectorDetail) GetFileUploadOk() (*bool, bool) { // HasFileUpload returns a boolean if a field has been set. func (o *ConnectorDetail) HasFileUpload() bool { - if o != nil && !isNil(o.FileUpload) { + if o != nil && !IsNil(o.FileUpload) { return true } @@ -468,7 +468,7 @@ func (o *ConnectorDetail) SetFileUpload(v bool) { // GetDirectConnect returns the DirectConnect field value if set, zero value otherwise. func (o *ConnectorDetail) GetDirectConnect() bool { - if o == nil || isNil(o.DirectConnect) { + if o == nil || IsNil(o.DirectConnect) { var ret bool return ret } @@ -478,7 +478,7 @@ func (o *ConnectorDetail) GetDirectConnect() bool { // GetDirectConnectOk returns a tuple with the DirectConnect field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConnectorDetail) GetDirectConnectOk() (*bool, bool) { - if o == nil || isNil(o.DirectConnect) { + if o == nil || IsNil(o.DirectConnect) { return nil, false } return o.DirectConnect, true @@ -486,7 +486,7 @@ func (o *ConnectorDetail) GetDirectConnectOk() (*bool, bool) { // HasDirectConnect returns a boolean if a field has been set. func (o *ConnectorDetail) HasDirectConnect() bool { - if o != nil && !isNil(o.DirectConnect) { + if o != nil && !IsNil(o.DirectConnect) { return true } @@ -500,7 +500,7 @@ func (o *ConnectorDetail) SetDirectConnect(v bool) { // GetTranslationProperties returns the TranslationProperties field value if set, zero value otherwise. func (o *ConnectorDetail) GetTranslationProperties() map[string]interface{} { - if o == nil || isNil(o.TranslationProperties) { + if o == nil || IsNil(o.TranslationProperties) { var ret map[string]interface{} return ret } @@ -510,7 +510,7 @@ func (o *ConnectorDetail) GetTranslationProperties() map[string]interface{} { // GetTranslationPropertiesOk returns a tuple with the TranslationProperties field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConnectorDetail) GetTranslationPropertiesOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.TranslationProperties) { + if o == nil || IsNil(o.TranslationProperties) { return map[string]interface{}{}, false } return o.TranslationProperties, true @@ -518,7 +518,7 @@ func (o *ConnectorDetail) GetTranslationPropertiesOk() (map[string]interface{}, // HasTranslationProperties returns a boolean if a field has been set. func (o *ConnectorDetail) HasTranslationProperties() bool { - if o != nil && !isNil(o.TranslationProperties) { + if o != nil && !IsNil(o.TranslationProperties) { return true } @@ -532,7 +532,7 @@ func (o *ConnectorDetail) SetTranslationProperties(v map[string]interface{}) { // GetConnectorMetadata returns the ConnectorMetadata field value if set, zero value otherwise. func (o *ConnectorDetail) GetConnectorMetadata() map[string]interface{} { - if o == nil || isNil(o.ConnectorMetadata) { + if o == nil || IsNil(o.ConnectorMetadata) { var ret map[string]interface{} return ret } @@ -542,7 +542,7 @@ func (o *ConnectorDetail) GetConnectorMetadata() map[string]interface{} { // GetConnectorMetadataOk returns a tuple with the ConnectorMetadata field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConnectorDetail) GetConnectorMetadataOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.ConnectorMetadata) { + if o == nil || IsNil(o.ConnectorMetadata) { return map[string]interface{}{}, false } return o.ConnectorMetadata, true @@ -550,7 +550,7 @@ func (o *ConnectorDetail) GetConnectorMetadataOk() (map[string]interface{}, bool // HasConnectorMetadata returns a boolean if a field has been set. func (o *ConnectorDetail) HasConnectorMetadata() bool { - if o != nil && !isNil(o.ConnectorMetadata) { + if o != nil && !IsNil(o.ConnectorMetadata) { return true } @@ -564,7 +564,7 @@ func (o *ConnectorDetail) SetConnectorMetadata(v map[string]interface{}) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *ConnectorDetail) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -574,7 +574,7 @@ func (o *ConnectorDetail) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ConnectorDetail) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -582,7 +582,7 @@ func (o *ConnectorDetail) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *ConnectorDetail) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -604,52 +604,52 @@ func (o ConnectorDetail) MarshalJSON() ([]byte, error) { func (o ConnectorDetail) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.ClassName) { + if !IsNil(o.ClassName) { toSerialize["className"] = o.ClassName } - if !isNil(o.ScriptName) { + if !IsNil(o.ScriptName) { toSerialize["scriptName"] = o.ScriptName } - if !isNil(o.ApplicationXml) { + if !IsNil(o.ApplicationXml) { toSerialize["applicationXml"] = o.ApplicationXml } - if !isNil(o.CorrelationConfigXml) { + if !IsNil(o.CorrelationConfigXml) { toSerialize["correlationConfigXml"] = o.CorrelationConfigXml } - if !isNil(o.SourceConfigXml) { + if !IsNil(o.SourceConfigXml) { toSerialize["sourceConfigXml"] = o.SourceConfigXml } - if !isNil(o.SourceConfig) { + if !IsNil(o.SourceConfig) { toSerialize["sourceConfig"] = o.SourceConfig } - if !isNil(o.SourceConfigFrom) { + if !IsNil(o.SourceConfigFrom) { toSerialize["sourceConfigFrom"] = o.SourceConfigFrom } - if !isNil(o.S3Location) { + if !IsNil(o.S3Location) { toSerialize["s3Location"] = o.S3Location } if o.UploadedFiles != nil { toSerialize["uploadedFiles"] = o.UploadedFiles } - if !isNil(o.FileUpload) { + if !IsNil(o.FileUpload) { toSerialize["fileUpload"] = o.FileUpload } - if !isNil(o.DirectConnect) { + if !IsNil(o.DirectConnect) { toSerialize["directConnect"] = o.DirectConnect } - if !isNil(o.TranslationProperties) { + if !IsNil(o.TranslationProperties) { toSerialize["translationProperties"] = o.TranslationProperties } - if !isNil(o.ConnectorMetadata) { + if !IsNil(o.ConnectorMetadata) { toSerialize["connectorMetadata"] = o.ConnectorMetadata } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -660,16 +660,20 @@ func (o ConnectorDetail) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ConnectorDetail) UnmarshalJSON(bytes []byte) (err error) { +func (o *ConnectorDetail) UnmarshalJSON(data []byte) (err error) { varConnectorDetail := _ConnectorDetail{} - if err = json.Unmarshal(bytes, &varConnectorDetail); err == nil { + err = json.Unmarshal(data, &varConnectorDetail) + + if err != nil { + return err + } + *o = ConnectorDetail(varConnectorDetail) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "type") delete(additionalProperties, "className") diff --git a/api_v3/model_create_external_execute_workflow_200_response.go b/api_v3/model_create_external_execute_workflow_200_response.go index a34338f22..1762c27b7 100644 --- a/api_v3/model_create_external_execute_workflow_200_response.go +++ b/api_v3/model_create_external_execute_workflow_200_response.go @@ -47,7 +47,7 @@ func NewCreateExternalExecuteWorkflow200ResponseWithDefaults() *CreateExternalEx // GetWorkflowExecutionId returns the WorkflowExecutionId field value if set, zero value otherwise. func (o *CreateExternalExecuteWorkflow200Response) GetWorkflowExecutionId() string { - if o == nil || isNil(o.WorkflowExecutionId) { + if o == nil || IsNil(o.WorkflowExecutionId) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *CreateExternalExecuteWorkflow200Response) GetWorkflowExecutionId() stri // GetWorkflowExecutionIdOk returns a tuple with the WorkflowExecutionId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateExternalExecuteWorkflow200Response) GetWorkflowExecutionIdOk() (*string, bool) { - if o == nil || isNil(o.WorkflowExecutionId) { + if o == nil || IsNil(o.WorkflowExecutionId) { return nil, false } return o.WorkflowExecutionId, true @@ -65,7 +65,7 @@ func (o *CreateExternalExecuteWorkflow200Response) GetWorkflowExecutionIdOk() (* // HasWorkflowExecutionId returns a boolean if a field has been set. func (o *CreateExternalExecuteWorkflow200Response) HasWorkflowExecutionId() bool { - if o != nil && !isNil(o.WorkflowExecutionId) { + if o != nil && !IsNil(o.WorkflowExecutionId) { return true } @@ -79,7 +79,7 @@ func (o *CreateExternalExecuteWorkflow200Response) SetWorkflowExecutionId(v stri // GetMessage returns the Message field value if set, zero value otherwise. func (o *CreateExternalExecuteWorkflow200Response) GetMessage() string { - if o == nil || isNil(o.Message) { + if o == nil || IsNil(o.Message) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *CreateExternalExecuteWorkflow200Response) GetMessage() string { // GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateExternalExecuteWorkflow200Response) GetMessageOk() (*string, bool) { - if o == nil || isNil(o.Message) { + if o == nil || IsNil(o.Message) { return nil, false } return o.Message, true @@ -97,7 +97,7 @@ func (o *CreateExternalExecuteWorkflow200Response) GetMessageOk() (*string, bool // HasMessage returns a boolean if a field has been set. func (o *CreateExternalExecuteWorkflow200Response) HasMessage() bool { - if o != nil && !isNil(o.Message) { + if o != nil && !IsNil(o.Message) { return true } @@ -119,10 +119,10 @@ func (o CreateExternalExecuteWorkflow200Response) MarshalJSON() ([]byte, error) func (o CreateExternalExecuteWorkflow200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.WorkflowExecutionId) { + if !IsNil(o.WorkflowExecutionId) { toSerialize["workflowExecutionId"] = o.WorkflowExecutionId } - if !isNil(o.Message) { + if !IsNil(o.Message) { toSerialize["message"] = o.Message } @@ -133,16 +133,20 @@ func (o CreateExternalExecuteWorkflow200Response) ToMap() (map[string]interface{ return toSerialize, nil } -func (o *CreateExternalExecuteWorkflow200Response) UnmarshalJSON(bytes []byte) (err error) { +func (o *CreateExternalExecuteWorkflow200Response) UnmarshalJSON(data []byte) (err error) { varCreateExternalExecuteWorkflow200Response := _CreateExternalExecuteWorkflow200Response{} - if err = json.Unmarshal(bytes, &varCreateExternalExecuteWorkflow200Response); err == nil { + err = json.Unmarshal(data, &varCreateExternalExecuteWorkflow200Response) + + if err != nil { + return err + } + *o = CreateExternalExecuteWorkflow200Response(varCreateExternalExecuteWorkflow200Response) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "workflowExecutionId") delete(additionalProperties, "message") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_create_external_execute_workflow_request.go b/api_v3/model_create_external_execute_workflow_request.go index e518a45ec..9dd1462ef 100644 --- a/api_v3/model_create_external_execute_workflow_request.go +++ b/api_v3/model_create_external_execute_workflow_request.go @@ -45,7 +45,7 @@ func NewCreateExternalExecuteWorkflowRequestWithDefaults() *CreateExternalExecut // GetInput returns the Input field value if set, zero value otherwise. func (o *CreateExternalExecuteWorkflowRequest) GetInput() map[string]interface{} { - if o == nil || isNil(o.Input) { + if o == nil || IsNil(o.Input) { var ret map[string]interface{} return ret } @@ -55,7 +55,7 @@ func (o *CreateExternalExecuteWorkflowRequest) GetInput() map[string]interface{} // GetInputOk returns a tuple with the Input field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateExternalExecuteWorkflowRequest) GetInputOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Input) { + if o == nil || IsNil(o.Input) { return map[string]interface{}{}, false } return o.Input, true @@ -63,7 +63,7 @@ func (o *CreateExternalExecuteWorkflowRequest) GetInputOk() (map[string]interfac // HasInput returns a boolean if a field has been set. func (o *CreateExternalExecuteWorkflowRequest) HasInput() bool { - if o != nil && !isNil(o.Input) { + if o != nil && !IsNil(o.Input) { return true } @@ -85,7 +85,7 @@ func (o CreateExternalExecuteWorkflowRequest) MarshalJSON() ([]byte, error) { func (o CreateExternalExecuteWorkflowRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Input) { + if !IsNil(o.Input) { toSerialize["input"] = o.Input } @@ -96,16 +96,20 @@ func (o CreateExternalExecuteWorkflowRequest) ToMap() (map[string]interface{}, e return toSerialize, nil } -func (o *CreateExternalExecuteWorkflowRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *CreateExternalExecuteWorkflowRequest) UnmarshalJSON(data []byte) (err error) { varCreateExternalExecuteWorkflowRequest := _CreateExternalExecuteWorkflowRequest{} - if err = json.Unmarshal(bytes, &varCreateExternalExecuteWorkflowRequest); err == nil { + err = json.Unmarshal(data, &varCreateExternalExecuteWorkflowRequest) + + if err != nil { + return err + } + *o = CreateExternalExecuteWorkflowRequest(varCreateExternalExecuteWorkflowRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "input") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_create_o_auth_client_request.go b/api_v3/model_create_o_auth_client_request.go index a3e6c31c9..d8f42e658 100644 --- a/api_v3/model_create_o_auth_client_request.go +++ b/api_v3/model_create_o_auth_client_request.go @@ -78,7 +78,7 @@ func NewCreateOAuthClientRequestWithDefaults() *CreateOAuthClientRequest { // GetBusinessName returns the BusinessName field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CreateOAuthClientRequest) GetBusinessName() string { - if o == nil || isNil(o.BusinessName.Get()) { + if o == nil || IsNil(o.BusinessName.Get()) { var ret string return ret } @@ -120,7 +120,7 @@ func (o *CreateOAuthClientRequest) UnsetBusinessName() { // GetHomepageUrl returns the HomepageUrl field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CreateOAuthClientRequest) GetHomepageUrl() string { - if o == nil || isNil(o.HomepageUrl.Get()) { + if o == nil || IsNil(o.HomepageUrl.Get()) { var ret string return ret } @@ -238,7 +238,7 @@ func (o *CreateOAuthClientRequest) SetAccessTokenValiditySeconds(v int32) { // GetRefreshTokenValiditySeconds returns the RefreshTokenValiditySeconds field value if set, zero value otherwise. func (o *CreateOAuthClientRequest) GetRefreshTokenValiditySeconds() int32 { - if o == nil || isNil(o.RefreshTokenValiditySeconds) { + if o == nil || IsNil(o.RefreshTokenValiditySeconds) { var ret int32 return ret } @@ -248,7 +248,7 @@ func (o *CreateOAuthClientRequest) GetRefreshTokenValiditySeconds() int32 { // GetRefreshTokenValiditySecondsOk returns a tuple with the RefreshTokenValiditySeconds field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateOAuthClientRequest) GetRefreshTokenValiditySecondsOk() (*int32, bool) { - if o == nil || isNil(o.RefreshTokenValiditySeconds) { + if o == nil || IsNil(o.RefreshTokenValiditySeconds) { return nil, false } return o.RefreshTokenValiditySeconds, true @@ -256,7 +256,7 @@ func (o *CreateOAuthClientRequest) GetRefreshTokenValiditySecondsOk() (*int32, b // HasRefreshTokenValiditySeconds returns a boolean if a field has been set. func (o *CreateOAuthClientRequest) HasRefreshTokenValiditySeconds() bool { - if o != nil && !isNil(o.RefreshTokenValiditySeconds) { + if o != nil && !IsNil(o.RefreshTokenValiditySeconds) { return true } @@ -281,7 +281,7 @@ func (o *CreateOAuthClientRequest) GetRedirectUris() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CreateOAuthClientRequest) GetRedirectUrisOk() ([]string, bool) { - if o == nil || isNil(o.RedirectUris) { + if o == nil || IsNil(o.RedirectUris) { return nil, false } return o.RedirectUris, true @@ -289,7 +289,7 @@ func (o *CreateOAuthClientRequest) GetRedirectUrisOk() ([]string, bool) { // HasRedirectUris returns a boolean if a field has been set. func (o *CreateOAuthClientRequest) HasRedirectUris() bool { - if o != nil && isNil(o.RedirectUris) { + if o != nil && !IsNil(o.RedirectUris) { return true } @@ -316,7 +316,7 @@ func (o *CreateOAuthClientRequest) GetGrantTypes() []GrantType { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CreateOAuthClientRequest) GetGrantTypesOk() ([]GrantType, bool) { - if o == nil || isNil(o.GrantTypes) { + if o == nil || IsNil(o.GrantTypes) { return nil, false } return o.GrantTypes, true @@ -353,7 +353,7 @@ func (o *CreateOAuthClientRequest) SetAccessType(v AccessType) { // GetType returns the Type field value if set, zero value otherwise. func (o *CreateOAuthClientRequest) GetType() ClientType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret ClientType return ret } @@ -363,7 +363,7 @@ func (o *CreateOAuthClientRequest) GetType() ClientType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateOAuthClientRequest) GetTypeOk() (*ClientType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -371,7 +371,7 @@ func (o *CreateOAuthClientRequest) GetTypeOk() (*ClientType, bool) { // HasType returns a boolean if a field has been set. func (o *CreateOAuthClientRequest) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -385,7 +385,7 @@ func (o *CreateOAuthClientRequest) SetType(v ClientType) { // GetInternal returns the Internal field value if set, zero value otherwise. func (o *CreateOAuthClientRequest) GetInternal() bool { - if o == nil || isNil(o.Internal) { + if o == nil || IsNil(o.Internal) { var ret bool return ret } @@ -395,7 +395,7 @@ func (o *CreateOAuthClientRequest) GetInternal() bool { // GetInternalOk returns a tuple with the Internal field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateOAuthClientRequest) GetInternalOk() (*bool, bool) { - if o == nil || isNil(o.Internal) { + if o == nil || IsNil(o.Internal) { return nil, false } return o.Internal, true @@ -403,7 +403,7 @@ func (o *CreateOAuthClientRequest) GetInternalOk() (*bool, bool) { // HasInternal returns a boolean if a field has been set. func (o *CreateOAuthClientRequest) HasInternal() bool { - if o != nil && !isNil(o.Internal) { + if o != nil && !IsNil(o.Internal) { return true } @@ -441,7 +441,7 @@ func (o *CreateOAuthClientRequest) SetEnabled(v bool) { // GetStrongAuthSupported returns the StrongAuthSupported field value if set, zero value otherwise. func (o *CreateOAuthClientRequest) GetStrongAuthSupported() bool { - if o == nil || isNil(o.StrongAuthSupported) { + if o == nil || IsNil(o.StrongAuthSupported) { var ret bool return ret } @@ -451,7 +451,7 @@ func (o *CreateOAuthClientRequest) GetStrongAuthSupported() bool { // GetStrongAuthSupportedOk returns a tuple with the StrongAuthSupported field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateOAuthClientRequest) GetStrongAuthSupportedOk() (*bool, bool) { - if o == nil || isNil(o.StrongAuthSupported) { + if o == nil || IsNil(o.StrongAuthSupported) { return nil, false } return o.StrongAuthSupported, true @@ -459,7 +459,7 @@ func (o *CreateOAuthClientRequest) GetStrongAuthSupportedOk() (*bool, bool) { // HasStrongAuthSupported returns a boolean if a field has been set. func (o *CreateOAuthClientRequest) HasStrongAuthSupported() bool { - if o != nil && !isNil(o.StrongAuthSupported) { + if o != nil && !IsNil(o.StrongAuthSupported) { return true } @@ -473,7 +473,7 @@ func (o *CreateOAuthClientRequest) SetStrongAuthSupported(v bool) { // GetClaimsSupported returns the ClaimsSupported field value if set, zero value otherwise. func (o *CreateOAuthClientRequest) GetClaimsSupported() bool { - if o == nil || isNil(o.ClaimsSupported) { + if o == nil || IsNil(o.ClaimsSupported) { var ret bool return ret } @@ -483,7 +483,7 @@ func (o *CreateOAuthClientRequest) GetClaimsSupported() bool { // GetClaimsSupportedOk returns a tuple with the ClaimsSupported field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateOAuthClientRequest) GetClaimsSupportedOk() (*bool, bool) { - if o == nil || isNil(o.ClaimsSupported) { + if o == nil || IsNil(o.ClaimsSupported) { return nil, false } return o.ClaimsSupported, true @@ -491,7 +491,7 @@ func (o *CreateOAuthClientRequest) GetClaimsSupportedOk() (*bool, bool) { // HasClaimsSupported returns a boolean if a field has been set. func (o *CreateOAuthClientRequest) HasClaimsSupported() bool { - if o != nil && !isNil(o.ClaimsSupported) { + if o != nil && !IsNil(o.ClaimsSupported) { return true } @@ -516,7 +516,7 @@ func (o *CreateOAuthClientRequest) GetScope() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CreateOAuthClientRequest) GetScopeOk() ([]string, bool) { - if o == nil || isNil(o.Scope) { + if o == nil || IsNil(o.Scope) { return nil, false } return o.Scope, true @@ -524,7 +524,7 @@ func (o *CreateOAuthClientRequest) GetScopeOk() ([]string, bool) { // HasScope returns a boolean if a field has been set. func (o *CreateOAuthClientRequest) HasScope() bool { - if o != nil && isNil(o.Scope) { + if o != nil && !IsNil(o.Scope) { return true } @@ -555,7 +555,7 @@ func (o CreateOAuthClientRequest) ToMap() (map[string]interface{}, error) { toSerialize["name"] = o.Name.Get() toSerialize["description"] = o.Description.Get() toSerialize["accessTokenValiditySeconds"] = o.AccessTokenValiditySeconds - if !isNil(o.RefreshTokenValiditySeconds) { + if !IsNil(o.RefreshTokenValiditySeconds) { toSerialize["refreshTokenValiditySeconds"] = o.RefreshTokenValiditySeconds } if o.RedirectUris != nil { @@ -565,17 +565,17 @@ func (o CreateOAuthClientRequest) ToMap() (map[string]interface{}, error) { toSerialize["grantTypes"] = o.GrantTypes } toSerialize["accessType"] = o.AccessType - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Internal) { + if !IsNil(o.Internal) { toSerialize["internal"] = o.Internal } toSerialize["enabled"] = o.Enabled - if !isNil(o.StrongAuthSupported) { + if !IsNil(o.StrongAuthSupported) { toSerialize["strongAuthSupported"] = o.StrongAuthSupported } - if !isNil(o.ClaimsSupported) { + if !IsNil(o.ClaimsSupported) { toSerialize["claimsSupported"] = o.ClaimsSupported } if o.Scope != nil { @@ -589,8 +589,8 @@ func (o CreateOAuthClientRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CreateOAuthClientRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *CreateOAuthClientRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -604,7 +604,7 @@ func (o *CreateOAuthClientRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -618,13 +618,17 @@ func (o *CreateOAuthClientRequest) UnmarshalJSON(bytes []byte) (err error) { varCreateOAuthClientRequest := _CreateOAuthClientRequest{} - if err = json.Unmarshal(bytes, &varCreateOAuthClientRequest); err == nil { + err = json.Unmarshal(data, &varCreateOAuthClientRequest) + + if err != nil { + return err + } + *o = CreateOAuthClientRequest(varCreateOAuthClientRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "businessName") delete(additionalProperties, "homepageUrl") delete(additionalProperties, "name") diff --git a/api_v3/model_create_o_auth_client_response.go b/api_v3/model_create_o_auth_client_response.go index 452477761..79895e3ec 100644 --- a/api_v3/model_create_o_auth_client_response.go +++ b/api_v3/model_create_o_auth_client_response.go @@ -545,7 +545,7 @@ func (o *CreateOAuthClientResponse) GetScope() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CreateOAuthClientResponse) GetScopeOk() ([]string, bool) { - if o == nil || isNil(o.Scope) { + if o == nil || IsNil(o.Scope) { return nil, false } return o.Scope, true @@ -595,8 +595,8 @@ func (o CreateOAuthClientResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CreateOAuthClientResponse) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *CreateOAuthClientResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -623,7 +623,7 @@ func (o *CreateOAuthClientResponse) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -637,13 +637,17 @@ func (o *CreateOAuthClientResponse) UnmarshalJSON(bytes []byte) (err error) { varCreateOAuthClientResponse := _CreateOAuthClientResponse{} - if err = json.Unmarshal(bytes, &varCreateOAuthClientResponse); err == nil { + err = json.Unmarshal(data, &varCreateOAuthClientResponse) + + if err != nil { + return err + } + *o = CreateOAuthClientResponse(varCreateOAuthClientResponse) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "secret") delete(additionalProperties, "businessName") diff --git a/api_v3/model_create_personal_access_token_request.go b/api_v3/model_create_personal_access_token_request.go index cd05298e8..ff9dd12ac 100644 --- a/api_v3/model_create_personal_access_token_request.go +++ b/api_v3/model_create_personal_access_token_request.go @@ -84,7 +84,7 @@ func (o *CreatePersonalAccessTokenRequest) GetScope() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CreatePersonalAccessTokenRequest) GetScopeOk() ([]string, bool) { - if o == nil || isNil(o.Scope) { + if o == nil || IsNil(o.Scope) { return nil, false } return o.Scope, true @@ -92,7 +92,7 @@ func (o *CreatePersonalAccessTokenRequest) GetScopeOk() ([]string, bool) { // HasScope returns a boolean if a field has been set. func (o *CreatePersonalAccessTokenRequest) HasScope() bool { - if o != nil && isNil(o.Scope) { + if o != nil && !IsNil(o.Scope) { return true } @@ -126,8 +126,8 @@ func (o CreatePersonalAccessTokenRequest) ToMap() (map[string]interface{}, error return toSerialize, nil } -func (o *CreatePersonalAccessTokenRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *CreatePersonalAccessTokenRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -136,7 +136,7 @@ func (o *CreatePersonalAccessTokenRequest) UnmarshalJSON(bytes []byte) (err erro allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -150,13 +150,17 @@ func (o *CreatePersonalAccessTokenRequest) UnmarshalJSON(bytes []byte) (err erro varCreatePersonalAccessTokenRequest := _CreatePersonalAccessTokenRequest{} - if err = json.Unmarshal(bytes, &varCreatePersonalAccessTokenRequest); err == nil { + err = json.Unmarshal(data, &varCreatePersonalAccessTokenRequest) + + if err != nil { + return err + } + *o = CreatePersonalAccessTokenRequest(varCreatePersonalAccessTokenRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "scope") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_create_personal_access_token_response.go b/api_v3/model_create_personal_access_token_response.go index 6a005557b..a8971a40c 100644 --- a/api_v3/model_create_personal_access_token_response.go +++ b/api_v3/model_create_personal_access_token_response.go @@ -123,7 +123,7 @@ func (o *CreatePersonalAccessTokenResponse) GetScope() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CreatePersonalAccessTokenResponse) GetScopeOk() ([]string, bool) { - if o == nil || isNil(o.Scope) { + if o == nil || IsNil(o.Scope) { return nil, false } return o.Scope, true @@ -232,8 +232,8 @@ func (o CreatePersonalAccessTokenResponse) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *CreatePersonalAccessTokenResponse) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *CreatePersonalAccessTokenResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -247,7 +247,7 @@ func (o *CreatePersonalAccessTokenResponse) UnmarshalJSON(bytes []byte) (err err allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -261,13 +261,17 @@ func (o *CreatePersonalAccessTokenResponse) UnmarshalJSON(bytes []byte) (err err varCreatePersonalAccessTokenResponse := _CreatePersonalAccessTokenResponse{} - if err = json.Unmarshal(bytes, &varCreatePersonalAccessTokenResponse); err == nil { + err = json.Unmarshal(data, &varCreatePersonalAccessTokenResponse) + + if err != nil { + return err + } + *o = CreatePersonalAccessTokenResponse(varCreatePersonalAccessTokenResponse) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "secret") delete(additionalProperties, "scope") diff --git a/api_v3/model_create_saved_search_request.go b/api_v3/model_create_saved_search_request.go index bc33493d5..cffbc22cb 100644 --- a/api_v3/model_create_saved_search_request.go +++ b/api_v3/model_create_saved_search_request.go @@ -68,7 +68,7 @@ func NewCreateSavedSearchRequestWithDefaults() *CreateSavedSearchRequest { // GetName returns the Name field value if set, zero value otherwise. func (o *CreateSavedSearchRequest) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -78,7 +78,7 @@ func (o *CreateSavedSearchRequest) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateSavedSearchRequest) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -86,7 +86,7 @@ func (o *CreateSavedSearchRequest) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *CreateSavedSearchRequest) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -100,7 +100,7 @@ func (o *CreateSavedSearchRequest) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CreateSavedSearchRequest) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -142,7 +142,7 @@ func (o *CreateSavedSearchRequest) UnsetDescription() { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CreateSavedSearchRequest) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -184,7 +184,7 @@ func (o *CreateSavedSearchRequest) UnsetCreated() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CreateSavedSearchRequest) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -250,7 +250,7 @@ func (o *CreateSavedSearchRequest) SetIndices(v []Index) { // GetColumns returns the Columns field value if set, zero value otherwise. func (o *CreateSavedSearchRequest) GetColumns() map[string][]Column { - if o == nil || isNil(o.Columns) { + if o == nil || IsNil(o.Columns) { var ret map[string][]Column return ret } @@ -260,7 +260,7 @@ func (o *CreateSavedSearchRequest) GetColumns() map[string][]Column { // GetColumnsOk returns a tuple with the Columns field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateSavedSearchRequest) GetColumnsOk() (*map[string][]Column, bool) { - if o == nil || isNil(o.Columns) { + if o == nil || IsNil(o.Columns) { return nil, false } return o.Columns, true @@ -268,7 +268,7 @@ func (o *CreateSavedSearchRequest) GetColumnsOk() (*map[string][]Column, bool) { // HasColumns returns a boolean if a field has been set. func (o *CreateSavedSearchRequest) HasColumns() bool { - if o != nil && !isNil(o.Columns) { + if o != nil && !IsNil(o.Columns) { return true } @@ -317,7 +317,7 @@ func (o *CreateSavedSearchRequest) GetFields() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CreateSavedSearchRequest) GetFieldsOk() ([]string, bool) { - if o == nil || isNil(o.Fields) { + if o == nil || IsNil(o.Fields) { return nil, false } return o.Fields, true @@ -325,7 +325,7 @@ func (o *CreateSavedSearchRequest) GetFieldsOk() ([]string, bool) { // HasFields returns a boolean if a field has been set. func (o *CreateSavedSearchRequest) HasFields() bool { - if o != nil && isNil(o.Fields) { + if o != nil && !IsNil(o.Fields) { return true } @@ -350,7 +350,7 @@ func (o *CreateSavedSearchRequest) GetOrderBy() map[string][]string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CreateSavedSearchRequest) GetOrderByOk() (*map[string][]string, bool) { - if o == nil || isNil(o.OrderBy) { + if o == nil || IsNil(o.OrderBy) { return nil, false } return &o.OrderBy, true @@ -358,7 +358,7 @@ func (o *CreateSavedSearchRequest) GetOrderByOk() (*map[string][]string, bool) { // HasOrderBy returns a boolean if a field has been set. func (o *CreateSavedSearchRequest) HasOrderBy() bool { - if o != nil && isNil(o.OrderBy) { + if o != nil && !IsNil(o.OrderBy) { return true } @@ -383,7 +383,7 @@ func (o *CreateSavedSearchRequest) GetSort() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CreateSavedSearchRequest) GetSortOk() ([]string, bool) { - if o == nil || isNil(o.Sort) { + if o == nil || IsNil(o.Sort) { return nil, false } return o.Sort, true @@ -391,7 +391,7 @@ func (o *CreateSavedSearchRequest) GetSortOk() ([]string, bool) { // HasSort returns a boolean if a field has been set. func (o *CreateSavedSearchRequest) HasSort() bool { - if o != nil && isNil(o.Sort) { + if o != nil && !IsNil(o.Sort) { return true } @@ -405,7 +405,7 @@ func (o *CreateSavedSearchRequest) SetSort(v []string) { // GetFilters returns the Filters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CreateSavedSearchRequest) GetFilters() SavedSearchDetailFilters { - if o == nil || isNil(o.Filters.Get()) { + if o == nil || IsNil(o.Filters.Get()) { var ret SavedSearchDetailFilters return ret } @@ -455,7 +455,7 @@ func (o CreateSavedSearchRequest) MarshalJSON() ([]byte, error) { func (o CreateSavedSearchRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } if o.Description.IsSet() { @@ -468,7 +468,7 @@ func (o CreateSavedSearchRequest) ToMap() (map[string]interface{}, error) { toSerialize["modified"] = o.Modified.Get() } toSerialize["indices"] = o.Indices - if !isNil(o.Columns) { + if !IsNil(o.Columns) { toSerialize["columns"] = o.Columns } toSerialize["query"] = o.Query @@ -492,8 +492,8 @@ func (o CreateSavedSearchRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CreateSavedSearchRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *CreateSavedSearchRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -503,7 +503,7 @@ func (o *CreateSavedSearchRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -517,13 +517,17 @@ func (o *CreateSavedSearchRequest) UnmarshalJSON(bytes []byte) (err error) { varCreateSavedSearchRequest := _CreateSavedSearchRequest{} - if err = json.Unmarshal(bytes, &varCreateSavedSearchRequest); err == nil { + err = json.Unmarshal(data, &varCreateSavedSearchRequest) + + if err != nil { + return err + } + *o = CreateSavedSearchRequest(varCreateSavedSearchRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "description") delete(additionalProperties, "created") diff --git a/api_v3/model_create_scheduled_search_request.go b/api_v3/model_create_scheduled_search_request.go index 48653d8ea..85ffbc4e0 100644 --- a/api_v3/model_create_scheduled_search_request.go +++ b/api_v3/model_create_scheduled_search_request.go @@ -27,9 +27,9 @@ type CreateScheduledSearchRequest struct { Description NullableString `json:"description,omitempty"` // The ID of the saved search that will be executed. SavedSearchId string `json:"savedSearchId"` - // A date-time in ISO-8601 format + // The date the scheduled search was initially created. Created NullableTime `json:"created,omitempty"` - // A date-time in ISO-8601 format + // The last date the scheduled search was modified. Modified NullableTime `json:"modified,omitempty"` Schedule Schedule1 `json:"schedule"` // A list of identities that should receive the scheduled search report via email. @@ -79,7 +79,7 @@ func NewCreateScheduledSearchRequestWithDefaults() *CreateScheduledSearchRequest // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CreateScheduledSearchRequest) GetName() string { - if o == nil || isNil(o.Name.Get()) { + if o == nil || IsNil(o.Name.Get()) { var ret string return ret } @@ -121,7 +121,7 @@ func (o *CreateScheduledSearchRequest) UnsetName() { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CreateScheduledSearchRequest) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -187,7 +187,7 @@ func (o *CreateScheduledSearchRequest) SetSavedSearchId(v string) { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CreateScheduledSearchRequest) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -229,7 +229,7 @@ func (o *CreateScheduledSearchRequest) UnsetCreated() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CreateScheduledSearchRequest) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -319,7 +319,7 @@ func (o *CreateScheduledSearchRequest) SetRecipients(v []SearchScheduleRecipient // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *CreateScheduledSearchRequest) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -329,7 +329,7 @@ func (o *CreateScheduledSearchRequest) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateScheduledSearchRequest) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -337,7 +337,7 @@ func (o *CreateScheduledSearchRequest) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *CreateScheduledSearchRequest) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -351,7 +351,7 @@ func (o *CreateScheduledSearchRequest) SetEnabled(v bool) { // GetEmailEmptyResults returns the EmailEmptyResults field value if set, zero value otherwise. func (o *CreateScheduledSearchRequest) GetEmailEmptyResults() bool { - if o == nil || isNil(o.EmailEmptyResults) { + if o == nil || IsNil(o.EmailEmptyResults) { var ret bool return ret } @@ -361,7 +361,7 @@ func (o *CreateScheduledSearchRequest) GetEmailEmptyResults() bool { // GetEmailEmptyResultsOk returns a tuple with the EmailEmptyResults field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateScheduledSearchRequest) GetEmailEmptyResultsOk() (*bool, bool) { - if o == nil || isNil(o.EmailEmptyResults) { + if o == nil || IsNil(o.EmailEmptyResults) { return nil, false } return o.EmailEmptyResults, true @@ -369,7 +369,7 @@ func (o *CreateScheduledSearchRequest) GetEmailEmptyResultsOk() (*bool, bool) { // HasEmailEmptyResults returns a boolean if a field has been set. func (o *CreateScheduledSearchRequest) HasEmailEmptyResults() bool { - if o != nil && !isNil(o.EmailEmptyResults) { + if o != nil && !IsNil(o.EmailEmptyResults) { return true } @@ -383,7 +383,7 @@ func (o *CreateScheduledSearchRequest) SetEmailEmptyResults(v bool) { // GetDisplayQueryDetails returns the DisplayQueryDetails field value if set, zero value otherwise. func (o *CreateScheduledSearchRequest) GetDisplayQueryDetails() bool { - if o == nil || isNil(o.DisplayQueryDetails) { + if o == nil || IsNil(o.DisplayQueryDetails) { var ret bool return ret } @@ -393,7 +393,7 @@ func (o *CreateScheduledSearchRequest) GetDisplayQueryDetails() bool { // GetDisplayQueryDetailsOk returns a tuple with the DisplayQueryDetails field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateScheduledSearchRequest) GetDisplayQueryDetailsOk() (*bool, bool) { - if o == nil || isNil(o.DisplayQueryDetails) { + if o == nil || IsNil(o.DisplayQueryDetails) { return nil, false } return o.DisplayQueryDetails, true @@ -401,7 +401,7 @@ func (o *CreateScheduledSearchRequest) GetDisplayQueryDetailsOk() (*bool, bool) // HasDisplayQueryDetails returns a boolean if a field has been set. func (o *CreateScheduledSearchRequest) HasDisplayQueryDetails() bool { - if o != nil && !isNil(o.DisplayQueryDetails) { + if o != nil && !IsNil(o.DisplayQueryDetails) { return true } @@ -438,13 +438,13 @@ func (o CreateScheduledSearchRequest) ToMap() (map[string]interface{}, error) { } toSerialize["schedule"] = o.Schedule toSerialize["recipients"] = o.Recipients - if !isNil(o.Enabled) { + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - if !isNil(o.EmailEmptyResults) { + if !IsNil(o.EmailEmptyResults) { toSerialize["emailEmptyResults"] = o.EmailEmptyResults } - if !isNil(o.DisplayQueryDetails) { + if !IsNil(o.DisplayQueryDetails) { toSerialize["displayQueryDetails"] = o.DisplayQueryDetails } @@ -455,8 +455,8 @@ func (o CreateScheduledSearchRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CreateScheduledSearchRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *CreateScheduledSearchRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -467,7 +467,7 @@ func (o *CreateScheduledSearchRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -481,13 +481,17 @@ func (o *CreateScheduledSearchRequest) UnmarshalJSON(bytes []byte) (err error) { varCreateScheduledSearchRequest := _CreateScheduledSearchRequest{} - if err = json.Unmarshal(bytes, &varCreateScheduledSearchRequest); err == nil { + err = json.Unmarshal(data, &varCreateScheduledSearchRequest) + + if err != nil { + return err + } + *o = CreateScheduledSearchRequest(varCreateScheduledSearchRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "description") delete(additionalProperties, "savedSearchId") diff --git a/api_v3/model_create_workflow_request.go b/api_v3/model_create_workflow_request.go index 50a1b7606..e571dd184 100644 --- a/api_v3/model_create_workflow_request.go +++ b/api_v3/model_create_workflow_request.go @@ -107,7 +107,7 @@ func (o *CreateWorkflowRequest) SetOwner(v WorkflowBodyOwner) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *CreateWorkflowRequest) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -117,7 +117,7 @@ func (o *CreateWorkflowRequest) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateWorkflowRequest) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -125,7 +125,7 @@ func (o *CreateWorkflowRequest) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *CreateWorkflowRequest) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -139,7 +139,7 @@ func (o *CreateWorkflowRequest) SetDescription(v string) { // GetDefinition returns the Definition field value if set, zero value otherwise. func (o *CreateWorkflowRequest) GetDefinition() WorkflowDefinition { - if o == nil || isNil(o.Definition) { + if o == nil || IsNil(o.Definition) { var ret WorkflowDefinition return ret } @@ -149,7 +149,7 @@ func (o *CreateWorkflowRequest) GetDefinition() WorkflowDefinition { // GetDefinitionOk returns a tuple with the Definition field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateWorkflowRequest) GetDefinitionOk() (*WorkflowDefinition, bool) { - if o == nil || isNil(o.Definition) { + if o == nil || IsNil(o.Definition) { return nil, false } return o.Definition, true @@ -157,7 +157,7 @@ func (o *CreateWorkflowRequest) GetDefinitionOk() (*WorkflowDefinition, bool) { // HasDefinition returns a boolean if a field has been set. func (o *CreateWorkflowRequest) HasDefinition() bool { - if o != nil && !isNil(o.Definition) { + if o != nil && !IsNil(o.Definition) { return true } @@ -171,7 +171,7 @@ func (o *CreateWorkflowRequest) SetDefinition(v WorkflowDefinition) { // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *CreateWorkflowRequest) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -181,7 +181,7 @@ func (o *CreateWorkflowRequest) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateWorkflowRequest) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -189,7 +189,7 @@ func (o *CreateWorkflowRequest) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *CreateWorkflowRequest) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -203,7 +203,7 @@ func (o *CreateWorkflowRequest) SetEnabled(v bool) { // GetTrigger returns the Trigger field value if set, zero value otherwise. func (o *CreateWorkflowRequest) GetTrigger() WorkflowTrigger { - if o == nil || isNil(o.Trigger) { + if o == nil || IsNil(o.Trigger) { var ret WorkflowTrigger return ret } @@ -213,7 +213,7 @@ func (o *CreateWorkflowRequest) GetTrigger() WorkflowTrigger { // GetTriggerOk returns a tuple with the Trigger field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateWorkflowRequest) GetTriggerOk() (*WorkflowTrigger, bool) { - if o == nil || isNil(o.Trigger) { + if o == nil || IsNil(o.Trigger) { return nil, false } return o.Trigger, true @@ -221,7 +221,7 @@ func (o *CreateWorkflowRequest) GetTriggerOk() (*WorkflowTrigger, bool) { // HasTrigger returns a boolean if a field has been set. func (o *CreateWorkflowRequest) HasTrigger() bool { - if o != nil && !isNil(o.Trigger) { + if o != nil && !IsNil(o.Trigger) { return true } @@ -245,16 +245,16 @@ func (o CreateWorkflowRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["owner"] = o.Owner - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.Definition) { + if !IsNil(o.Definition) { toSerialize["definition"] = o.Definition } - if !isNil(o.Enabled) { + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - if !isNil(o.Trigger) { + if !IsNil(o.Trigger) { toSerialize["trigger"] = o.Trigger } @@ -265,8 +265,8 @@ func (o CreateWorkflowRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *CreateWorkflowRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *CreateWorkflowRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -276,7 +276,7 @@ func (o *CreateWorkflowRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -290,13 +290,17 @@ func (o *CreateWorkflowRequest) UnmarshalJSON(bytes []byte) (err error) { varCreateWorkflowRequest := _CreateWorkflowRequest{} - if err = json.Unmarshal(bytes, &varCreateWorkflowRequest); err == nil { + err = json.Unmarshal(data, &varCreateWorkflowRequest) + + if err != nil { + return err + } + *o = CreateWorkflowRequest(varCreateWorkflowRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "owner") delete(additionalProperties, "description") diff --git a/api_v3/model_data_access.go b/api_v3/model_data_access.go index 6bd3e10be..1cfd2f8a8 100644 --- a/api_v3/model_data_access.go +++ b/api_v3/model_data_access.go @@ -48,7 +48,7 @@ func NewDataAccessWithDefaults() *DataAccess { // GetPolicies returns the Policies field value if set, zero value otherwise. func (o *DataAccess) GetPolicies() []DataAccessPoliciesInner { - if o == nil || isNil(o.Policies) { + if o == nil || IsNil(o.Policies) { var ret []DataAccessPoliciesInner return ret } @@ -58,7 +58,7 @@ func (o *DataAccess) GetPolicies() []DataAccessPoliciesInner { // GetPoliciesOk returns a tuple with the Policies field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DataAccess) GetPoliciesOk() ([]DataAccessPoliciesInner, bool) { - if o == nil || isNil(o.Policies) { + if o == nil || IsNil(o.Policies) { return nil, false } return o.Policies, true @@ -66,7 +66,7 @@ func (o *DataAccess) GetPoliciesOk() ([]DataAccessPoliciesInner, bool) { // HasPolicies returns a boolean if a field has been set. func (o *DataAccess) HasPolicies() bool { - if o != nil && !isNil(o.Policies) { + if o != nil && !IsNil(o.Policies) { return true } @@ -80,7 +80,7 @@ func (o *DataAccess) SetPolicies(v []DataAccessPoliciesInner) { // GetCategories returns the Categories field value if set, zero value otherwise. func (o *DataAccess) GetCategories() []DataAccessCategoriesInner { - if o == nil || isNil(o.Categories) { + if o == nil || IsNil(o.Categories) { var ret []DataAccessCategoriesInner return ret } @@ -90,7 +90,7 @@ func (o *DataAccess) GetCategories() []DataAccessCategoriesInner { // GetCategoriesOk returns a tuple with the Categories field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DataAccess) GetCategoriesOk() ([]DataAccessCategoriesInner, bool) { - if o == nil || isNil(o.Categories) { + if o == nil || IsNil(o.Categories) { return nil, false } return o.Categories, true @@ -98,7 +98,7 @@ func (o *DataAccess) GetCategoriesOk() ([]DataAccessCategoriesInner, bool) { // HasCategories returns a boolean if a field has been set. func (o *DataAccess) HasCategories() bool { - if o != nil && !isNil(o.Categories) { + if o != nil && !IsNil(o.Categories) { return true } @@ -112,7 +112,7 @@ func (o *DataAccess) SetCategories(v []DataAccessCategoriesInner) { // GetImpactScore returns the ImpactScore field value if set, zero value otherwise. func (o *DataAccess) GetImpactScore() DataAccessImpactScore { - if o == nil || isNil(o.ImpactScore) { + if o == nil || IsNil(o.ImpactScore) { var ret DataAccessImpactScore return ret } @@ -122,7 +122,7 @@ func (o *DataAccess) GetImpactScore() DataAccessImpactScore { // GetImpactScoreOk returns a tuple with the ImpactScore field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DataAccess) GetImpactScoreOk() (*DataAccessImpactScore, bool) { - if o == nil || isNil(o.ImpactScore) { + if o == nil || IsNil(o.ImpactScore) { return nil, false } return o.ImpactScore, true @@ -130,7 +130,7 @@ func (o *DataAccess) GetImpactScoreOk() (*DataAccessImpactScore, bool) { // HasImpactScore returns a boolean if a field has been set. func (o *DataAccess) HasImpactScore() bool { - if o != nil && !isNil(o.ImpactScore) { + if o != nil && !IsNil(o.ImpactScore) { return true } @@ -152,13 +152,13 @@ func (o DataAccess) MarshalJSON() ([]byte, error) { func (o DataAccess) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Policies) { + if !IsNil(o.Policies) { toSerialize["policies"] = o.Policies } - if !isNil(o.Categories) { + if !IsNil(o.Categories) { toSerialize["categories"] = o.Categories } - if !isNil(o.ImpactScore) { + if !IsNil(o.ImpactScore) { toSerialize["impactScore"] = o.ImpactScore } @@ -169,16 +169,20 @@ func (o DataAccess) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *DataAccess) UnmarshalJSON(bytes []byte) (err error) { +func (o *DataAccess) UnmarshalJSON(data []byte) (err error) { varDataAccess := _DataAccess{} - if err = json.Unmarshal(bytes, &varDataAccess); err == nil { + err = json.Unmarshal(data, &varDataAccess) + + if err != nil { + return err + } + *o = DataAccess(varDataAccess) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "policies") delete(additionalProperties, "categories") delete(additionalProperties, "impactScore") diff --git a/api_v3/model_data_access_categories_inner.go b/api_v3/model_data_access_categories_inner.go index fab3b7dcc..e640bbb1e 100644 --- a/api_v3/model_data_access_categories_inner.go +++ b/api_v3/model_data_access_categories_inner.go @@ -47,7 +47,7 @@ func NewDataAccessCategoriesInnerWithDefaults() *DataAccessCategoriesInner { // GetValue returns the Value field value if set, zero value otherwise. func (o *DataAccessCategoriesInner) GetValue() string { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *DataAccessCategoriesInner) GetValue() string { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DataAccessCategoriesInner) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { return nil, false } return o.Value, true @@ -65,7 +65,7 @@ func (o *DataAccessCategoriesInner) GetValueOk() (*string, bool) { // HasValue returns a boolean if a field has been set. func (o *DataAccessCategoriesInner) HasValue() bool { - if o != nil && !isNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -79,7 +79,7 @@ func (o *DataAccessCategoriesInner) SetValue(v string) { // GetMatchCount returns the MatchCount field value if set, zero value otherwise. func (o *DataAccessCategoriesInner) GetMatchCount() int32 { - if o == nil || isNil(o.MatchCount) { + if o == nil || IsNil(o.MatchCount) { var ret int32 return ret } @@ -89,7 +89,7 @@ func (o *DataAccessCategoriesInner) GetMatchCount() int32 { // GetMatchCountOk returns a tuple with the MatchCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DataAccessCategoriesInner) GetMatchCountOk() (*int32, bool) { - if o == nil || isNil(o.MatchCount) { + if o == nil || IsNil(o.MatchCount) { return nil, false } return o.MatchCount, true @@ -97,7 +97,7 @@ func (o *DataAccessCategoriesInner) GetMatchCountOk() (*int32, bool) { // HasMatchCount returns a boolean if a field has been set. func (o *DataAccessCategoriesInner) HasMatchCount() bool { - if o != nil && !isNil(o.MatchCount) { + if o != nil && !IsNil(o.MatchCount) { return true } @@ -119,10 +119,10 @@ func (o DataAccessCategoriesInner) MarshalJSON() ([]byte, error) { func (o DataAccessCategoriesInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Value) { + if !IsNil(o.Value) { toSerialize["value"] = o.Value } - if !isNil(o.MatchCount) { + if !IsNil(o.MatchCount) { toSerialize["matchCount"] = o.MatchCount } @@ -133,16 +133,20 @@ func (o DataAccessCategoriesInner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *DataAccessCategoriesInner) UnmarshalJSON(bytes []byte) (err error) { +func (o *DataAccessCategoriesInner) UnmarshalJSON(data []byte) (err error) { varDataAccessCategoriesInner := _DataAccessCategoriesInner{} - if err = json.Unmarshal(bytes, &varDataAccessCategoriesInner); err == nil { + err = json.Unmarshal(data, &varDataAccessCategoriesInner) + + if err != nil { + return err + } + *o = DataAccessCategoriesInner(varDataAccessCategoriesInner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "value") delete(additionalProperties, "matchCount") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_data_access_impact_score.go b/api_v3/model_data_access_impact_score.go index cdfc6245b..358819316 100644 --- a/api_v3/model_data_access_impact_score.go +++ b/api_v3/model_data_access_impact_score.go @@ -45,7 +45,7 @@ func NewDataAccessImpactScoreWithDefaults() *DataAccessImpactScore { // GetValue returns the Value field value if set, zero value otherwise. func (o *DataAccessImpactScore) GetValue() string { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { var ret string return ret } @@ -55,7 +55,7 @@ func (o *DataAccessImpactScore) GetValue() string { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DataAccessImpactScore) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { return nil, false } return o.Value, true @@ -63,7 +63,7 @@ func (o *DataAccessImpactScore) GetValueOk() (*string, bool) { // HasValue returns a boolean if a field has been set. func (o *DataAccessImpactScore) HasValue() bool { - if o != nil && !isNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -85,7 +85,7 @@ func (o DataAccessImpactScore) MarshalJSON() ([]byte, error) { func (o DataAccessImpactScore) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Value) { + if !IsNil(o.Value) { toSerialize["value"] = o.Value } @@ -96,16 +96,20 @@ func (o DataAccessImpactScore) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *DataAccessImpactScore) UnmarshalJSON(bytes []byte) (err error) { +func (o *DataAccessImpactScore) UnmarshalJSON(data []byte) (err error) { varDataAccessImpactScore := _DataAccessImpactScore{} - if err = json.Unmarshal(bytes, &varDataAccessImpactScore); err == nil { + err = json.Unmarshal(data, &varDataAccessImpactScore) + + if err != nil { + return err + } + *o = DataAccessImpactScore(varDataAccessImpactScore) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "value") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_data_access_policies_inner.go b/api_v3/model_data_access_policies_inner.go index 2b68a6a52..3f96982bd 100644 --- a/api_v3/model_data_access_policies_inner.go +++ b/api_v3/model_data_access_policies_inner.go @@ -45,7 +45,7 @@ func NewDataAccessPoliciesInnerWithDefaults() *DataAccessPoliciesInner { // GetValue returns the Value field value if set, zero value otherwise. func (o *DataAccessPoliciesInner) GetValue() string { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { var ret string return ret } @@ -55,7 +55,7 @@ func (o *DataAccessPoliciesInner) GetValue() string { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DataAccessPoliciesInner) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { return nil, false } return o.Value, true @@ -63,7 +63,7 @@ func (o *DataAccessPoliciesInner) GetValueOk() (*string, bool) { // HasValue returns a boolean if a field has been set. func (o *DataAccessPoliciesInner) HasValue() bool { - if o != nil && !isNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -85,7 +85,7 @@ func (o DataAccessPoliciesInner) MarshalJSON() ([]byte, error) { func (o DataAccessPoliciesInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Value) { + if !IsNil(o.Value) { toSerialize["value"] = o.Value } @@ -96,16 +96,20 @@ func (o DataAccessPoliciesInner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *DataAccessPoliciesInner) UnmarshalJSON(bytes []byte) (err error) { +func (o *DataAccessPoliciesInner) UnmarshalJSON(data []byte) (err error) { varDataAccessPoliciesInner := _DataAccessPoliciesInner{} - if err = json.Unmarshal(bytes, &varDataAccessPoliciesInner); err == nil { + err = json.Unmarshal(data, &varDataAccessPoliciesInner) + + if err != nil { + return err + } + *o = DataAccessPoliciesInner(varDataAccessPoliciesInner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "value") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_delete_non_employee_records_in_bulk_request.go b/api_v3/model_delete_non_employee_records_in_bulk_request.go index 0bb781393..0c5b25750 100644 --- a/api_v3/model_delete_non_employee_records_in_bulk_request.go +++ b/api_v3/model_delete_non_employee_records_in_bulk_request.go @@ -88,8 +88,8 @@ func (o DeleteNonEmployeeRecordsInBulkRequest) ToMap() (map[string]interface{}, return toSerialize, nil } -func (o *DeleteNonEmployeeRecordsInBulkRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *DeleteNonEmployeeRecordsInBulkRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -98,7 +98,7 @@ func (o *DeleteNonEmployeeRecordsInBulkRequest) UnmarshalJSON(bytes []byte) (err allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -112,13 +112,17 @@ func (o *DeleteNonEmployeeRecordsInBulkRequest) UnmarshalJSON(bytes []byte) (err varDeleteNonEmployeeRecordsInBulkRequest := _DeleteNonEmployeeRecordsInBulkRequest{} - if err = json.Unmarshal(bytes, &varDeleteNonEmployeeRecordsInBulkRequest); err == nil { + err = json.Unmarshal(data, &varDeleteNonEmployeeRecordsInBulkRequest) + + if err != nil { + return err + } + *o = DeleteNonEmployeeRecordsInBulkRequest(varDeleteNonEmployeeRecordsInBulkRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "ids") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_delete_source_202_response.go b/api_v3/model_delete_source_202_response.go index e241cba05..d9b9da608 100644 --- a/api_v3/model_delete_source_202_response.go +++ b/api_v3/model_delete_source_202_response.go @@ -49,7 +49,7 @@ func NewDeleteSource202ResponseWithDefaults() *DeleteSource202Response { // GetType returns the Type field value if set, zero value otherwise. func (o *DeleteSource202Response) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *DeleteSource202Response) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DeleteSource202Response) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *DeleteSource202Response) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *DeleteSource202Response) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *DeleteSource202Response) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *DeleteSource202Response) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *DeleteSource202Response) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DeleteSource202Response) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *DeleteSource202Response) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *DeleteSource202Response) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *DeleteSource202Response) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *DeleteSource202Response) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *DeleteSource202Response) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DeleteSource202Response) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *DeleteSource202Response) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *DeleteSource202Response) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o DeleteSource202Response) MarshalJSON() ([]byte, error) { func (o DeleteSource202Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o DeleteSource202Response) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *DeleteSource202Response) UnmarshalJSON(bytes []byte) (err error) { +func (o *DeleteSource202Response) UnmarshalJSON(data []byte) (err error) { varDeleteSource202Response := _DeleteSource202Response{} - if err = json.Unmarshal(bytes, &varDeleteSource202Response); err == nil { + err = json.Unmarshal(data, &varDeleteSource202Response) + + if err != nil { + return err + } + *o = DeleteSource202Response(varDeleteSource202Response) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_delete_vendor_connector_mapping_200_response.go b/api_v3/model_delete_vendor_connector_mapping_200_response.go index 08f4deebc..7afcf15d7 100644 --- a/api_v3/model_delete_vendor_connector_mapping_200_response.go +++ b/api_v3/model_delete_vendor_connector_mapping_200_response.go @@ -45,7 +45,7 @@ func NewDeleteVendorConnectorMapping200ResponseWithDefaults() *DeleteVendorConne // GetCount returns the Count field value if set, zero value otherwise. func (o *DeleteVendorConnectorMapping200Response) GetCount() int32 { - if o == nil || isNil(o.Count) { + if o == nil || IsNil(o.Count) { var ret int32 return ret } @@ -55,7 +55,7 @@ func (o *DeleteVendorConnectorMapping200Response) GetCount() int32 { // GetCountOk returns a tuple with the Count field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DeleteVendorConnectorMapping200Response) GetCountOk() (*int32, bool) { - if o == nil || isNil(o.Count) { + if o == nil || IsNil(o.Count) { return nil, false } return o.Count, true @@ -63,7 +63,7 @@ func (o *DeleteVendorConnectorMapping200Response) GetCountOk() (*int32, bool) { // HasCount returns a boolean if a field has been set. func (o *DeleteVendorConnectorMapping200Response) HasCount() bool { - if o != nil && !isNil(o.Count) { + if o != nil && !IsNil(o.Count) { return true } @@ -85,7 +85,7 @@ func (o DeleteVendorConnectorMapping200Response) MarshalJSON() ([]byte, error) { func (o DeleteVendorConnectorMapping200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Count) { + if !IsNil(o.Count) { toSerialize["count"] = o.Count } @@ -96,16 +96,20 @@ func (o DeleteVendorConnectorMapping200Response) ToMap() (map[string]interface{} return toSerialize, nil } -func (o *DeleteVendorConnectorMapping200Response) UnmarshalJSON(bytes []byte) (err error) { +func (o *DeleteVendorConnectorMapping200Response) UnmarshalJSON(data []byte) (err error) { varDeleteVendorConnectorMapping200Response := _DeleteVendorConnectorMapping200Response{} - if err = json.Unmarshal(bytes, &varDeleteVendorConnectorMapping200Response); err == nil { + err = json.Unmarshal(data, &varDeleteVendorConnectorMapping200Response) + + if err != nil { + return err + } + *o = DeleteVendorConnectorMapping200Response(varDeleteVendorConnectorMapping200Response) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "count") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_display_reference.go b/api_v3/model_display_reference.go index ccf748d20..954fac015 100644 --- a/api_v3/model_display_reference.go +++ b/api_v3/model_display_reference.go @@ -48,7 +48,7 @@ func NewDisplayReferenceWithDefaults() *DisplayReference { // GetId returns the Id field value if set, zero value otherwise. func (o *DisplayReference) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -58,7 +58,7 @@ func (o *DisplayReference) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DisplayReference) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -66,7 +66,7 @@ func (o *DisplayReference) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *DisplayReference) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -80,7 +80,7 @@ func (o *DisplayReference) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *DisplayReference) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -90,7 +90,7 @@ func (o *DisplayReference) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DisplayReference) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -98,7 +98,7 @@ func (o *DisplayReference) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *DisplayReference) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -112,7 +112,7 @@ func (o *DisplayReference) SetName(v string) { // GetDisplayName returns the DisplayName field value if set, zero value otherwise. func (o *DisplayReference) GetDisplayName() string { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { var ret string return ret } @@ -122,7 +122,7 @@ func (o *DisplayReference) GetDisplayName() string { // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DisplayReference) GetDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { return nil, false } return o.DisplayName, true @@ -130,7 +130,7 @@ func (o *DisplayReference) GetDisplayNameOk() (*string, bool) { // HasDisplayName returns a boolean if a field has been set. func (o *DisplayReference) HasDisplayName() bool { - if o != nil && !isNil(o.DisplayName) { + if o != nil && !IsNil(o.DisplayName) { return true } @@ -152,13 +152,13 @@ func (o DisplayReference) MarshalJSON() ([]byte, error) { func (o DisplayReference) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.DisplayName) { + if !IsNil(o.DisplayName) { toSerialize["displayName"] = o.DisplayName } @@ -169,16 +169,20 @@ func (o DisplayReference) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *DisplayReference) UnmarshalJSON(bytes []byte) (err error) { +func (o *DisplayReference) UnmarshalJSON(data []byte) (err error) { varDisplayReference := _DisplayReference{} - if err = json.Unmarshal(bytes, &varDisplayReference); err == nil { + err = json.Unmarshal(data, &varDisplayReference) + + if err != nil { + return err + } + *o = DisplayReference(varDisplayReference) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "displayName") diff --git a/api_v3/model_duo_verification_request.go b/api_v3/model_duo_verification_request.go index eaa3fbf29..99a36f87d 100644 --- a/api_v3/model_duo_verification_request.go +++ b/api_v3/model_duo_verification_request.go @@ -116,8 +116,8 @@ func (o DuoVerificationRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *DuoVerificationRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *DuoVerificationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -127,7 +127,7 @@ func (o *DuoVerificationRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -141,13 +141,17 @@ func (o *DuoVerificationRequest) UnmarshalJSON(bytes []byte) (err error) { varDuoVerificationRequest := _DuoVerificationRequest{} - if err = json.Unmarshal(bytes, &varDuoVerificationRequest); err == nil { + err = json.Unmarshal(data, &varDuoVerificationRequest) + + if err != nil { + return err + } + *o = DuoVerificationRequest(varDuoVerificationRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "userId") delete(additionalProperties, "signedResponse") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_email_notification_option.go b/api_v3/model_email_notification_option.go index 64dd5f6ca..22c2b2887 100644 --- a/api_v3/model_email_notification_option.go +++ b/api_v3/model_email_notification_option.go @@ -63,7 +63,7 @@ func NewEmailNotificationOptionWithDefaults() *EmailNotificationOption { // GetNotifyManagers returns the NotifyManagers field value if set, zero value otherwise. func (o *EmailNotificationOption) GetNotifyManagers() bool { - if o == nil || isNil(o.NotifyManagers) { + if o == nil || IsNil(o.NotifyManagers) { var ret bool return ret } @@ -73,7 +73,7 @@ func (o *EmailNotificationOption) GetNotifyManagers() bool { // GetNotifyManagersOk returns a tuple with the NotifyManagers field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EmailNotificationOption) GetNotifyManagersOk() (*bool, bool) { - if o == nil || isNil(o.NotifyManagers) { + if o == nil || IsNil(o.NotifyManagers) { return nil, false } return o.NotifyManagers, true @@ -81,7 +81,7 @@ func (o *EmailNotificationOption) GetNotifyManagersOk() (*bool, bool) { // HasNotifyManagers returns a boolean if a field has been set. func (o *EmailNotificationOption) HasNotifyManagers() bool { - if o != nil && !isNil(o.NotifyManagers) { + if o != nil && !IsNil(o.NotifyManagers) { return true } @@ -95,7 +95,7 @@ func (o *EmailNotificationOption) SetNotifyManagers(v bool) { // GetNotifyAllAdmins returns the NotifyAllAdmins field value if set, zero value otherwise. func (o *EmailNotificationOption) GetNotifyAllAdmins() bool { - if o == nil || isNil(o.NotifyAllAdmins) { + if o == nil || IsNil(o.NotifyAllAdmins) { var ret bool return ret } @@ -105,7 +105,7 @@ func (o *EmailNotificationOption) GetNotifyAllAdmins() bool { // GetNotifyAllAdminsOk returns a tuple with the NotifyAllAdmins field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EmailNotificationOption) GetNotifyAllAdminsOk() (*bool, bool) { - if o == nil || isNil(o.NotifyAllAdmins) { + if o == nil || IsNil(o.NotifyAllAdmins) { return nil, false } return o.NotifyAllAdmins, true @@ -113,7 +113,7 @@ func (o *EmailNotificationOption) GetNotifyAllAdminsOk() (*bool, bool) { // HasNotifyAllAdmins returns a boolean if a field has been set. func (o *EmailNotificationOption) HasNotifyAllAdmins() bool { - if o != nil && !isNil(o.NotifyAllAdmins) { + if o != nil && !IsNil(o.NotifyAllAdmins) { return true } @@ -127,7 +127,7 @@ func (o *EmailNotificationOption) SetNotifyAllAdmins(v bool) { // GetNotifySpecificUsers returns the NotifySpecificUsers field value if set, zero value otherwise. func (o *EmailNotificationOption) GetNotifySpecificUsers() bool { - if o == nil || isNil(o.NotifySpecificUsers) { + if o == nil || IsNil(o.NotifySpecificUsers) { var ret bool return ret } @@ -137,7 +137,7 @@ func (o *EmailNotificationOption) GetNotifySpecificUsers() bool { // GetNotifySpecificUsersOk returns a tuple with the NotifySpecificUsers field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EmailNotificationOption) GetNotifySpecificUsersOk() (*bool, bool) { - if o == nil || isNil(o.NotifySpecificUsers) { + if o == nil || IsNil(o.NotifySpecificUsers) { return nil, false } return o.NotifySpecificUsers, true @@ -145,7 +145,7 @@ func (o *EmailNotificationOption) GetNotifySpecificUsersOk() (*bool, bool) { // HasNotifySpecificUsers returns a boolean if a field has been set. func (o *EmailNotificationOption) HasNotifySpecificUsers() bool { - if o != nil && !isNil(o.NotifySpecificUsers) { + if o != nil && !IsNil(o.NotifySpecificUsers) { return true } @@ -159,7 +159,7 @@ func (o *EmailNotificationOption) SetNotifySpecificUsers(v bool) { // GetEmailAddressList returns the EmailAddressList field value if set, zero value otherwise. func (o *EmailNotificationOption) GetEmailAddressList() []string { - if o == nil || isNil(o.EmailAddressList) { + if o == nil || IsNil(o.EmailAddressList) { var ret []string return ret } @@ -169,7 +169,7 @@ func (o *EmailNotificationOption) GetEmailAddressList() []string { // GetEmailAddressListOk returns a tuple with the EmailAddressList field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EmailNotificationOption) GetEmailAddressListOk() ([]string, bool) { - if o == nil || isNil(o.EmailAddressList) { + if o == nil || IsNil(o.EmailAddressList) { return nil, false } return o.EmailAddressList, true @@ -177,7 +177,7 @@ func (o *EmailNotificationOption) GetEmailAddressListOk() ([]string, bool) { // HasEmailAddressList returns a boolean if a field has been set. func (o *EmailNotificationOption) HasEmailAddressList() bool { - if o != nil && !isNil(o.EmailAddressList) { + if o != nil && !IsNil(o.EmailAddressList) { return true } @@ -199,16 +199,16 @@ func (o EmailNotificationOption) MarshalJSON() ([]byte, error) { func (o EmailNotificationOption) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.NotifyManagers) { + if !IsNil(o.NotifyManagers) { toSerialize["notifyManagers"] = o.NotifyManagers } - if !isNil(o.NotifyAllAdmins) { + if !IsNil(o.NotifyAllAdmins) { toSerialize["notifyAllAdmins"] = o.NotifyAllAdmins } - if !isNil(o.NotifySpecificUsers) { + if !IsNil(o.NotifySpecificUsers) { toSerialize["notifySpecificUsers"] = o.NotifySpecificUsers } - if !isNil(o.EmailAddressList) { + if !IsNil(o.EmailAddressList) { toSerialize["emailAddressList"] = o.EmailAddressList } @@ -219,16 +219,20 @@ func (o EmailNotificationOption) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *EmailNotificationOption) UnmarshalJSON(bytes []byte) (err error) { +func (o *EmailNotificationOption) UnmarshalJSON(data []byte) (err error) { varEmailNotificationOption := _EmailNotificationOption{} - if err = json.Unmarshal(bytes, &varEmailNotificationOption); err == nil { + err = json.Unmarshal(data, &varEmailNotificationOption) + + if err != nil { + return err + } + *o = EmailNotificationOption(varEmailNotificationOption) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "notifyManagers") delete(additionalProperties, "notifyAllAdmins") delete(additionalProperties, "notifySpecificUsers") diff --git a/api_v3/model_entitlement.go b/api_v3/model_entitlement.go index 99866b4a8..c9c51666b 100644 --- a/api_v3/model_entitlement.go +++ b/api_v3/model_entitlement.go @@ -70,7 +70,7 @@ func NewEntitlementWithDefaults() *Entitlement { // GetId returns the Id field value if set, zero value otherwise. func (o *Entitlement) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -80,7 +80,7 @@ func (o *Entitlement) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Entitlement) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -88,7 +88,7 @@ func (o *Entitlement) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Entitlement) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -102,7 +102,7 @@ func (o *Entitlement) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *Entitlement) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -112,7 +112,7 @@ func (o *Entitlement) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Entitlement) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -120,7 +120,7 @@ func (o *Entitlement) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *Entitlement) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -134,7 +134,7 @@ func (o *Entitlement) SetName(v string) { // GetAttribute returns the Attribute field value if set, zero value otherwise. func (o *Entitlement) GetAttribute() string { - if o == nil || isNil(o.Attribute) { + if o == nil || IsNil(o.Attribute) { var ret string return ret } @@ -144,7 +144,7 @@ func (o *Entitlement) GetAttribute() string { // GetAttributeOk returns a tuple with the Attribute field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Entitlement) GetAttributeOk() (*string, bool) { - if o == nil || isNil(o.Attribute) { + if o == nil || IsNil(o.Attribute) { return nil, false } return o.Attribute, true @@ -152,7 +152,7 @@ func (o *Entitlement) GetAttributeOk() (*string, bool) { // HasAttribute returns a boolean if a field has been set. func (o *Entitlement) HasAttribute() bool { - if o != nil && !isNil(o.Attribute) { + if o != nil && !IsNil(o.Attribute) { return true } @@ -166,7 +166,7 @@ func (o *Entitlement) SetAttribute(v string) { // GetValue returns the Value field value if set, zero value otherwise. func (o *Entitlement) GetValue() string { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { var ret string return ret } @@ -176,7 +176,7 @@ func (o *Entitlement) GetValue() string { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Entitlement) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { return nil, false } return o.Value, true @@ -184,7 +184,7 @@ func (o *Entitlement) GetValueOk() (*string, bool) { // HasValue returns a boolean if a field has been set. func (o *Entitlement) HasValue() bool { - if o != nil && !isNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -198,7 +198,7 @@ func (o *Entitlement) SetValue(v string) { // GetSourceSchemaObjectType returns the SourceSchemaObjectType field value if set, zero value otherwise. func (o *Entitlement) GetSourceSchemaObjectType() string { - if o == nil || isNil(o.SourceSchemaObjectType) { + if o == nil || IsNil(o.SourceSchemaObjectType) { var ret string return ret } @@ -208,7 +208,7 @@ func (o *Entitlement) GetSourceSchemaObjectType() string { // GetSourceSchemaObjectTypeOk returns a tuple with the SourceSchemaObjectType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Entitlement) GetSourceSchemaObjectTypeOk() (*string, bool) { - if o == nil || isNil(o.SourceSchemaObjectType) { + if o == nil || IsNil(o.SourceSchemaObjectType) { return nil, false } return o.SourceSchemaObjectType, true @@ -216,7 +216,7 @@ func (o *Entitlement) GetSourceSchemaObjectTypeOk() (*string, bool) { // HasSourceSchemaObjectType returns a boolean if a field has been set. func (o *Entitlement) HasSourceSchemaObjectType() bool { - if o != nil && !isNil(o.SourceSchemaObjectType) { + if o != nil && !IsNil(o.SourceSchemaObjectType) { return true } @@ -230,7 +230,7 @@ func (o *Entitlement) SetSourceSchemaObjectType(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *Entitlement) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -240,7 +240,7 @@ func (o *Entitlement) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Entitlement) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -248,7 +248,7 @@ func (o *Entitlement) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *Entitlement) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -262,7 +262,7 @@ func (o *Entitlement) SetDescription(v string) { // GetPrivileged returns the Privileged field value if set, zero value otherwise. func (o *Entitlement) GetPrivileged() bool { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { var ret bool return ret } @@ -272,7 +272,7 @@ func (o *Entitlement) GetPrivileged() bool { // GetPrivilegedOk returns a tuple with the Privileged field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Entitlement) GetPrivilegedOk() (*bool, bool) { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { return nil, false } return o.Privileged, true @@ -280,7 +280,7 @@ func (o *Entitlement) GetPrivilegedOk() (*bool, bool) { // HasPrivileged returns a boolean if a field has been set. func (o *Entitlement) HasPrivileged() bool { - if o != nil && !isNil(o.Privileged) { + if o != nil && !IsNil(o.Privileged) { return true } @@ -294,7 +294,7 @@ func (o *Entitlement) SetPrivileged(v bool) { // GetCloudGoverned returns the CloudGoverned field value if set, zero value otherwise. func (o *Entitlement) GetCloudGoverned() bool { - if o == nil || isNil(o.CloudGoverned) { + if o == nil || IsNil(o.CloudGoverned) { var ret bool return ret } @@ -304,7 +304,7 @@ func (o *Entitlement) GetCloudGoverned() bool { // GetCloudGovernedOk returns a tuple with the CloudGoverned field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Entitlement) GetCloudGovernedOk() (*bool, bool) { - if o == nil || isNil(o.CloudGoverned) { + if o == nil || IsNil(o.CloudGoverned) { return nil, false } return o.CloudGoverned, true @@ -312,7 +312,7 @@ func (o *Entitlement) GetCloudGovernedOk() (*bool, bool) { // HasCloudGoverned returns a boolean if a field has been set. func (o *Entitlement) HasCloudGoverned() bool { - if o != nil && !isNil(o.CloudGoverned) { + if o != nil && !IsNil(o.CloudGoverned) { return true } @@ -326,7 +326,7 @@ func (o *Entitlement) SetCloudGoverned(v bool) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *Entitlement) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -336,7 +336,7 @@ func (o *Entitlement) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Entitlement) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -344,7 +344,7 @@ func (o *Entitlement) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *Entitlement) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -358,7 +358,7 @@ func (o *Entitlement) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *Entitlement) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -368,7 +368,7 @@ func (o *Entitlement) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Entitlement) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -376,7 +376,7 @@ func (o *Entitlement) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *Entitlement) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -390,7 +390,7 @@ func (o *Entitlement) SetModified(v time.Time) { // GetSource returns the Source field value if set, zero value otherwise. func (o *Entitlement) GetSource() EntitlementSource { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { var ret EntitlementSource return ret } @@ -400,7 +400,7 @@ func (o *Entitlement) GetSource() EntitlementSource { // GetSourceOk returns a tuple with the Source field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Entitlement) GetSourceOk() (*EntitlementSource, bool) { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { return nil, false } return o.Source, true @@ -408,7 +408,7 @@ func (o *Entitlement) GetSourceOk() (*EntitlementSource, bool) { // HasSource returns a boolean if a field has been set. func (o *Entitlement) HasSource() bool { - if o != nil && !isNil(o.Source) { + if o != nil && !IsNil(o.Source) { return true } @@ -422,7 +422,7 @@ func (o *Entitlement) SetSource(v EntitlementSource) { // GetAttributes returns the Attributes field value if set, zero value otherwise. func (o *Entitlement) GetAttributes() map[string]interface{} { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { var ret map[string]interface{} return ret } @@ -432,7 +432,7 @@ func (o *Entitlement) GetAttributes() map[string]interface{} { // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Entitlement) GetAttributesOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { return map[string]interface{}{}, false } return o.Attributes, true @@ -440,7 +440,7 @@ func (o *Entitlement) GetAttributesOk() (map[string]interface{}, bool) { // HasAttributes returns a boolean if a field has been set. func (o *Entitlement) HasAttributes() bool { - if o != nil && !isNil(o.Attributes) { + if o != nil && !IsNil(o.Attributes) { return true } @@ -465,7 +465,7 @@ func (o *Entitlement) GetSegments() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Entitlement) GetSegmentsOk() ([]string, bool) { - if o == nil || isNil(o.Segments) { + if o == nil || IsNil(o.Segments) { return nil, false } return o.Segments, true @@ -473,7 +473,7 @@ func (o *Entitlement) GetSegmentsOk() ([]string, bool) { // HasSegments returns a boolean if a field has been set. func (o *Entitlement) HasSegments() bool { - if o != nil && isNil(o.Segments) { + if o != nil && !IsNil(o.Segments) { return true } @@ -487,7 +487,7 @@ func (o *Entitlement) SetSegments(v []string) { // GetDirectPermissions returns the DirectPermissions field value if set, zero value otherwise. func (o *Entitlement) GetDirectPermissions() []PermissionDto { - if o == nil || isNil(o.DirectPermissions) { + if o == nil || IsNil(o.DirectPermissions) { var ret []PermissionDto return ret } @@ -497,7 +497,7 @@ func (o *Entitlement) GetDirectPermissions() []PermissionDto { // GetDirectPermissionsOk returns a tuple with the DirectPermissions field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Entitlement) GetDirectPermissionsOk() ([]PermissionDto, bool) { - if o == nil || isNil(o.DirectPermissions) { + if o == nil || IsNil(o.DirectPermissions) { return nil, false } return o.DirectPermissions, true @@ -505,7 +505,7 @@ func (o *Entitlement) GetDirectPermissionsOk() ([]PermissionDto, bool) { // HasDirectPermissions returns a boolean if a field has been set. func (o *Entitlement) HasDirectPermissions() bool { - if o != nil && !isNil(o.DirectPermissions) { + if o != nil && !IsNil(o.DirectPermissions) { return true } @@ -527,46 +527,46 @@ func (o Entitlement) MarshalJSON() ([]byte, error) { func (o Entitlement) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Attribute) { + if !IsNil(o.Attribute) { toSerialize["attribute"] = o.Attribute } - if !isNil(o.Value) { + if !IsNil(o.Value) { toSerialize["value"] = o.Value } - if !isNil(o.SourceSchemaObjectType) { + if !IsNil(o.SourceSchemaObjectType) { toSerialize["sourceSchemaObjectType"] = o.SourceSchemaObjectType } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.Privileged) { + if !IsNil(o.Privileged) { toSerialize["privileged"] = o.Privileged } - if !isNil(o.CloudGoverned) { + if !IsNil(o.CloudGoverned) { toSerialize["cloudGoverned"] = o.CloudGoverned } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.Source) { + if !IsNil(o.Source) { toSerialize["source"] = o.Source } - if !isNil(o.Attributes) { + if !IsNil(o.Attributes) { toSerialize["attributes"] = o.Attributes } if o.Segments != nil { toSerialize["segments"] = o.Segments } - if !isNil(o.DirectPermissions) { + if !IsNil(o.DirectPermissions) { toSerialize["directPermissions"] = o.DirectPermissions } @@ -577,16 +577,20 @@ func (o Entitlement) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Entitlement) UnmarshalJSON(bytes []byte) (err error) { +func (o *Entitlement) UnmarshalJSON(data []byte) (err error) { varEntitlement := _Entitlement{} - if err = json.Unmarshal(bytes, &varEntitlement); err == nil { + err = json.Unmarshal(data, &varEntitlement) + + if err != nil { + return err + } + *o = Entitlement(varEntitlement) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "attribute") diff --git a/api_v3/model_entitlement_document.go b/api_v3/model_entitlement_document.go index 8b4d40a64..6d59388d4 100644 --- a/api_v3/model_entitlement_document.go +++ b/api_v3/model_entitlement_document.go @@ -158,7 +158,7 @@ func (o *EntitlementDocument) SetType(v DocumentType) { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EntitlementDocument) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -200,7 +200,7 @@ func (o *EntitlementDocument) UnsetModified() { // GetSynced returns the Synced field value if set, zero value otherwise. func (o *EntitlementDocument) GetSynced() string { - if o == nil || isNil(o.Synced) { + if o == nil || IsNil(o.Synced) { var ret string return ret } @@ -210,7 +210,7 @@ func (o *EntitlementDocument) GetSynced() string { // GetSyncedOk returns a tuple with the Synced field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDocument) GetSyncedOk() (*string, bool) { - if o == nil || isNil(o.Synced) { + if o == nil || IsNil(o.Synced) { return nil, false } return o.Synced, true @@ -218,7 +218,7 @@ func (o *EntitlementDocument) GetSyncedOk() (*string, bool) { // HasSynced returns a boolean if a field has been set. func (o *EntitlementDocument) HasSynced() bool { - if o != nil && !isNil(o.Synced) { + if o != nil && !IsNil(o.Synced) { return true } @@ -232,7 +232,7 @@ func (o *EntitlementDocument) SetSynced(v string) { // GetDisplayName returns the DisplayName field value if set, zero value otherwise. func (o *EntitlementDocument) GetDisplayName() string { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { var ret string return ret } @@ -242,7 +242,7 @@ func (o *EntitlementDocument) GetDisplayName() string { // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDocument) GetDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { return nil, false } return o.DisplayName, true @@ -250,7 +250,7 @@ func (o *EntitlementDocument) GetDisplayNameOk() (*string, bool) { // HasDisplayName returns a boolean if a field has been set. func (o *EntitlementDocument) HasDisplayName() bool { - if o != nil && !isNil(o.DisplayName) { + if o != nil && !IsNil(o.DisplayName) { return true } @@ -264,7 +264,7 @@ func (o *EntitlementDocument) SetDisplayName(v string) { // GetSource returns the Source field value if set, zero value otherwise. func (o *EntitlementDocument) GetSource() EntitlementDocumentAllOfSource { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { var ret EntitlementDocumentAllOfSource return ret } @@ -274,7 +274,7 @@ func (o *EntitlementDocument) GetSource() EntitlementDocumentAllOfSource { // GetSourceOk returns a tuple with the Source field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDocument) GetSourceOk() (*EntitlementDocumentAllOfSource, bool) { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { return nil, false } return o.Source, true @@ -282,7 +282,7 @@ func (o *EntitlementDocument) GetSourceOk() (*EntitlementDocumentAllOfSource, bo // HasSource returns a boolean if a field has been set. func (o *EntitlementDocument) HasSource() bool { - if o != nil && !isNil(o.Source) { + if o != nil && !IsNil(o.Source) { return true } @@ -296,7 +296,7 @@ func (o *EntitlementDocument) SetSource(v EntitlementDocumentAllOfSource) { // GetSegments returns the Segments field value if set, zero value otherwise. func (o *EntitlementDocument) GetSegments() []BaseSegment { - if o == nil || isNil(o.Segments) { + if o == nil || IsNil(o.Segments) { var ret []BaseSegment return ret } @@ -306,7 +306,7 @@ func (o *EntitlementDocument) GetSegments() []BaseSegment { // GetSegmentsOk returns a tuple with the Segments field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDocument) GetSegmentsOk() ([]BaseSegment, bool) { - if o == nil || isNil(o.Segments) { + if o == nil || IsNil(o.Segments) { return nil, false } return o.Segments, true @@ -314,7 +314,7 @@ func (o *EntitlementDocument) GetSegmentsOk() ([]BaseSegment, bool) { // HasSegments returns a boolean if a field has been set. func (o *EntitlementDocument) HasSegments() bool { - if o != nil && !isNil(o.Segments) { + if o != nil && !IsNil(o.Segments) { return true } @@ -328,7 +328,7 @@ func (o *EntitlementDocument) SetSegments(v []BaseSegment) { // GetSegmentCount returns the SegmentCount field value if set, zero value otherwise. func (o *EntitlementDocument) GetSegmentCount() int32 { - if o == nil || isNil(o.SegmentCount) { + if o == nil || IsNil(o.SegmentCount) { var ret int32 return ret } @@ -338,7 +338,7 @@ func (o *EntitlementDocument) GetSegmentCount() int32 { // GetSegmentCountOk returns a tuple with the SegmentCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDocument) GetSegmentCountOk() (*int32, bool) { - if o == nil || isNil(o.SegmentCount) { + if o == nil || IsNil(o.SegmentCount) { return nil, false } return o.SegmentCount, true @@ -346,7 +346,7 @@ func (o *EntitlementDocument) GetSegmentCountOk() (*int32, bool) { // HasSegmentCount returns a boolean if a field has been set. func (o *EntitlementDocument) HasSegmentCount() bool { - if o != nil && !isNil(o.SegmentCount) { + if o != nil && !IsNil(o.SegmentCount) { return true } @@ -360,7 +360,7 @@ func (o *EntitlementDocument) SetSegmentCount(v int32) { // GetRequestable returns the Requestable field value if set, zero value otherwise. func (o *EntitlementDocument) GetRequestable() bool { - if o == nil || isNil(o.Requestable) { + if o == nil || IsNil(o.Requestable) { var ret bool return ret } @@ -370,7 +370,7 @@ func (o *EntitlementDocument) GetRequestable() bool { // GetRequestableOk returns a tuple with the Requestable field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDocument) GetRequestableOk() (*bool, bool) { - if o == nil || isNil(o.Requestable) { + if o == nil || IsNil(o.Requestable) { return nil, false } return o.Requestable, true @@ -378,7 +378,7 @@ func (o *EntitlementDocument) GetRequestableOk() (*bool, bool) { // HasRequestable returns a boolean if a field has been set. func (o *EntitlementDocument) HasRequestable() bool { - if o != nil && !isNil(o.Requestable) { + if o != nil && !IsNil(o.Requestable) { return true } @@ -392,7 +392,7 @@ func (o *EntitlementDocument) SetRequestable(v bool) { // GetCloudGoverned returns the CloudGoverned field value if set, zero value otherwise. func (o *EntitlementDocument) GetCloudGoverned() bool { - if o == nil || isNil(o.CloudGoverned) { + if o == nil || IsNil(o.CloudGoverned) { var ret bool return ret } @@ -402,7 +402,7 @@ func (o *EntitlementDocument) GetCloudGoverned() bool { // GetCloudGovernedOk returns a tuple with the CloudGoverned field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDocument) GetCloudGovernedOk() (*bool, bool) { - if o == nil || isNil(o.CloudGoverned) { + if o == nil || IsNil(o.CloudGoverned) { return nil, false } return o.CloudGoverned, true @@ -410,7 +410,7 @@ func (o *EntitlementDocument) GetCloudGovernedOk() (*bool, bool) { // HasCloudGoverned returns a boolean if a field has been set. func (o *EntitlementDocument) HasCloudGoverned() bool { - if o != nil && !isNil(o.CloudGoverned) { + if o != nil && !IsNil(o.CloudGoverned) { return true } @@ -424,7 +424,7 @@ func (o *EntitlementDocument) SetCloudGoverned(v bool) { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EntitlementDocument) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -466,7 +466,7 @@ func (o *EntitlementDocument) UnsetCreated() { // GetPrivileged returns the Privileged field value if set, zero value otherwise. func (o *EntitlementDocument) GetPrivileged() bool { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { var ret bool return ret } @@ -476,7 +476,7 @@ func (o *EntitlementDocument) GetPrivileged() bool { // GetPrivilegedOk returns a tuple with the Privileged field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDocument) GetPrivilegedOk() (*bool, bool) { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { return nil, false } return o.Privileged, true @@ -484,7 +484,7 @@ func (o *EntitlementDocument) GetPrivilegedOk() (*bool, bool) { // HasPrivileged returns a boolean if a field has been set. func (o *EntitlementDocument) HasPrivileged() bool { - if o != nil && !isNil(o.Privileged) { + if o != nil && !IsNil(o.Privileged) { return true } @@ -498,7 +498,7 @@ func (o *EntitlementDocument) SetPrivileged(v bool) { // GetIdentityCount returns the IdentityCount field value if set, zero value otherwise. func (o *EntitlementDocument) GetIdentityCount() int32 { - if o == nil || isNil(o.IdentityCount) { + if o == nil || IsNil(o.IdentityCount) { var ret int32 return ret } @@ -508,7 +508,7 @@ func (o *EntitlementDocument) GetIdentityCount() int32 { // GetIdentityCountOk returns a tuple with the IdentityCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDocument) GetIdentityCountOk() (*int32, bool) { - if o == nil || isNil(o.IdentityCount) { + if o == nil || IsNil(o.IdentityCount) { return nil, false } return o.IdentityCount, true @@ -516,7 +516,7 @@ func (o *EntitlementDocument) GetIdentityCountOk() (*int32, bool) { // HasIdentityCount returns a boolean if a field has been set. func (o *EntitlementDocument) HasIdentityCount() bool { - if o != nil && !isNil(o.IdentityCount) { + if o != nil && !IsNil(o.IdentityCount) { return true } @@ -530,7 +530,7 @@ func (o *EntitlementDocument) SetIdentityCount(v int32) { // GetTags returns the Tags field value if set, zero value otherwise. func (o *EntitlementDocument) GetTags() []string { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { var ret []string return ret } @@ -540,7 +540,7 @@ func (o *EntitlementDocument) GetTags() []string { // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDocument) GetTagsOk() ([]string, bool) { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { return nil, false } return o.Tags, true @@ -548,7 +548,7 @@ func (o *EntitlementDocument) GetTagsOk() ([]string, bool) { // HasTags returns a boolean if a field has been set. func (o *EntitlementDocument) HasTags() bool { - if o != nil && !isNil(o.Tags) { + if o != nil && !IsNil(o.Tags) { return true } @@ -576,37 +576,37 @@ func (o EntitlementDocument) ToMap() (map[string]interface{}, error) { if o.Modified.IsSet() { toSerialize["modified"] = o.Modified.Get() } - if !isNil(o.Synced) { + if !IsNil(o.Synced) { toSerialize["synced"] = o.Synced } - if !isNil(o.DisplayName) { + if !IsNil(o.DisplayName) { toSerialize["displayName"] = o.DisplayName } - if !isNil(o.Source) { + if !IsNil(o.Source) { toSerialize["source"] = o.Source } - if !isNil(o.Segments) { + if !IsNil(o.Segments) { toSerialize["segments"] = o.Segments } - if !isNil(o.SegmentCount) { + if !IsNil(o.SegmentCount) { toSerialize["segmentCount"] = o.SegmentCount } - if !isNil(o.Requestable) { + if !IsNil(o.Requestable) { toSerialize["requestable"] = o.Requestable } - if !isNil(o.CloudGoverned) { + if !IsNil(o.CloudGoverned) { toSerialize["cloudGoverned"] = o.CloudGoverned } if o.Created.IsSet() { toSerialize["created"] = o.Created.Get() } - if !isNil(o.Privileged) { + if !IsNil(o.Privileged) { toSerialize["privileged"] = o.Privileged } - if !isNil(o.IdentityCount) { + if !IsNil(o.IdentityCount) { toSerialize["identityCount"] = o.IdentityCount } - if !isNil(o.Tags) { + if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -617,8 +617,8 @@ func (o EntitlementDocument) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *EntitlementDocument) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *EntitlementDocument) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -629,7 +629,7 @@ func (o *EntitlementDocument) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -643,13 +643,17 @@ func (o *EntitlementDocument) UnmarshalJSON(bytes []byte) (err error) { varEntitlementDocument := _EntitlementDocument{} - if err = json.Unmarshal(bytes, &varEntitlementDocument); err == nil { + err = json.Unmarshal(data, &varEntitlementDocument) + + if err != nil { + return err + } + *o = EntitlementDocument(varEntitlementDocument) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "_type") diff --git a/api_v3/model_entitlement_document_all_of_source.go b/api_v3/model_entitlement_document_all_of_source.go index 29e3be80e..c5f45487d 100644 --- a/api_v3/model_entitlement_document_all_of_source.go +++ b/api_v3/model_entitlement_document_all_of_source.go @@ -47,7 +47,7 @@ func NewEntitlementDocumentAllOfSourceWithDefaults() *EntitlementDocumentAllOfSo // GetId returns the Id field value if set, zero value otherwise. func (o *EntitlementDocumentAllOfSource) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *EntitlementDocumentAllOfSource) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDocumentAllOfSource) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -65,7 +65,7 @@ func (o *EntitlementDocumentAllOfSource) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *EntitlementDocumentAllOfSource) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -79,7 +79,7 @@ func (o *EntitlementDocumentAllOfSource) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *EntitlementDocumentAllOfSource) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *EntitlementDocumentAllOfSource) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDocumentAllOfSource) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -97,7 +97,7 @@ func (o *EntitlementDocumentAllOfSource) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *EntitlementDocumentAllOfSource) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -119,10 +119,10 @@ func (o EntitlementDocumentAllOfSource) MarshalJSON() ([]byte, error) { func (o EntitlementDocumentAllOfSource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -133,16 +133,20 @@ func (o EntitlementDocumentAllOfSource) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *EntitlementDocumentAllOfSource) UnmarshalJSON(bytes []byte) (err error) { +func (o *EntitlementDocumentAllOfSource) UnmarshalJSON(data []byte) (err error) { varEntitlementDocumentAllOfSource := _EntitlementDocumentAllOfSource{} - if err = json.Unmarshal(bytes, &varEntitlementDocumentAllOfSource); err == nil { + err = json.Unmarshal(data, &varEntitlementDocumentAllOfSource) + + if err != nil { + return err + } + *o = EntitlementDocumentAllOfSource(varEntitlementDocumentAllOfSource) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_entitlement_dto.go b/api_v3/model_entitlement_dto.go index 7f70cb3fe..0c29c2f91 100644 --- a/api_v3/model_entitlement_dto.go +++ b/api_v3/model_entitlement_dto.go @@ -69,7 +69,7 @@ func NewEntitlementDtoWithDefaults() *EntitlementDto { // GetId returns the Id field value if set, zero value otherwise. func (o *EntitlementDto) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -79,7 +79,7 @@ func (o *EntitlementDto) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDto) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -87,7 +87,7 @@ func (o *EntitlementDto) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *EntitlementDto) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -125,7 +125,7 @@ func (o *EntitlementDto) SetName(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *EntitlementDto) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -135,7 +135,7 @@ func (o *EntitlementDto) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDto) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -143,7 +143,7 @@ func (o *EntitlementDto) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *EntitlementDto) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -157,7 +157,7 @@ func (o *EntitlementDto) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *EntitlementDto) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -167,7 +167,7 @@ func (o *EntitlementDto) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDto) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -175,7 +175,7 @@ func (o *EntitlementDto) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *EntitlementDto) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -189,7 +189,7 @@ func (o *EntitlementDto) SetModified(v time.Time) { // GetAttribute returns the Attribute field value if set, zero value otherwise. func (o *EntitlementDto) GetAttribute() string { - if o == nil || isNil(o.Attribute) { + if o == nil || IsNil(o.Attribute) { var ret string return ret } @@ -199,7 +199,7 @@ func (o *EntitlementDto) GetAttribute() string { // GetAttributeOk returns a tuple with the Attribute field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDto) GetAttributeOk() (*string, bool) { - if o == nil || isNil(o.Attribute) { + if o == nil || IsNil(o.Attribute) { return nil, false } return o.Attribute, true @@ -207,7 +207,7 @@ func (o *EntitlementDto) GetAttributeOk() (*string, bool) { // HasAttribute returns a boolean if a field has been set. func (o *EntitlementDto) HasAttribute() bool { - if o != nil && !isNil(o.Attribute) { + if o != nil && !IsNil(o.Attribute) { return true } @@ -221,7 +221,7 @@ func (o *EntitlementDto) SetAttribute(v string) { // GetValue returns the Value field value if set, zero value otherwise. func (o *EntitlementDto) GetValue() string { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { var ret string return ret } @@ -231,7 +231,7 @@ func (o *EntitlementDto) GetValue() string { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDto) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { return nil, false } return o.Value, true @@ -239,7 +239,7 @@ func (o *EntitlementDto) GetValueOk() (*string, bool) { // HasValue returns a boolean if a field has been set. func (o *EntitlementDto) HasValue() bool { - if o != nil && !isNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -253,7 +253,7 @@ func (o *EntitlementDto) SetValue(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *EntitlementDto) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -263,7 +263,7 @@ func (o *EntitlementDto) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDto) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -271,7 +271,7 @@ func (o *EntitlementDto) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *EntitlementDto) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -285,7 +285,7 @@ func (o *EntitlementDto) SetDescription(v string) { // GetAttributes returns the Attributes field value if set, zero value otherwise. func (o *EntitlementDto) GetAttributes() map[string]interface{} { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { var ret map[string]interface{} return ret } @@ -295,7 +295,7 @@ func (o *EntitlementDto) GetAttributes() map[string]interface{} { // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDto) GetAttributesOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { return map[string]interface{}{}, false } return o.Attributes, true @@ -303,7 +303,7 @@ func (o *EntitlementDto) GetAttributesOk() (map[string]interface{}, bool) { // HasAttributes returns a boolean if a field has been set. func (o *EntitlementDto) HasAttributes() bool { - if o != nil && !isNil(o.Attributes) { + if o != nil && !IsNil(o.Attributes) { return true } @@ -317,7 +317,7 @@ func (o *EntitlementDto) SetAttributes(v map[string]interface{}) { // GetSourceSchemaObjectType returns the SourceSchemaObjectType field value if set, zero value otherwise. func (o *EntitlementDto) GetSourceSchemaObjectType() string { - if o == nil || isNil(o.SourceSchemaObjectType) { + if o == nil || IsNil(o.SourceSchemaObjectType) { var ret string return ret } @@ -327,7 +327,7 @@ func (o *EntitlementDto) GetSourceSchemaObjectType() string { // GetSourceSchemaObjectTypeOk returns a tuple with the SourceSchemaObjectType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDto) GetSourceSchemaObjectTypeOk() (*string, bool) { - if o == nil || isNil(o.SourceSchemaObjectType) { + if o == nil || IsNil(o.SourceSchemaObjectType) { return nil, false } return o.SourceSchemaObjectType, true @@ -335,7 +335,7 @@ func (o *EntitlementDto) GetSourceSchemaObjectTypeOk() (*string, bool) { // HasSourceSchemaObjectType returns a boolean if a field has been set. func (o *EntitlementDto) HasSourceSchemaObjectType() bool { - if o != nil && !isNil(o.SourceSchemaObjectType) { + if o != nil && !IsNil(o.SourceSchemaObjectType) { return true } @@ -349,7 +349,7 @@ func (o *EntitlementDto) SetSourceSchemaObjectType(v string) { // GetPrivileged returns the Privileged field value if set, zero value otherwise. func (o *EntitlementDto) GetPrivileged() bool { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { var ret bool return ret } @@ -359,7 +359,7 @@ func (o *EntitlementDto) GetPrivileged() bool { // GetPrivilegedOk returns a tuple with the Privileged field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDto) GetPrivilegedOk() (*bool, bool) { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { return nil, false } return o.Privileged, true @@ -367,7 +367,7 @@ func (o *EntitlementDto) GetPrivilegedOk() (*bool, bool) { // HasPrivileged returns a boolean if a field has been set. func (o *EntitlementDto) HasPrivileged() bool { - if o != nil && !isNil(o.Privileged) { + if o != nil && !IsNil(o.Privileged) { return true } @@ -381,7 +381,7 @@ func (o *EntitlementDto) SetPrivileged(v bool) { // GetCloudGoverned returns the CloudGoverned field value if set, zero value otherwise. func (o *EntitlementDto) GetCloudGoverned() bool { - if o == nil || isNil(o.CloudGoverned) { + if o == nil || IsNil(o.CloudGoverned) { var ret bool return ret } @@ -391,7 +391,7 @@ func (o *EntitlementDto) GetCloudGoverned() bool { // GetCloudGovernedOk returns a tuple with the CloudGoverned field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDto) GetCloudGovernedOk() (*bool, bool) { - if o == nil || isNil(o.CloudGoverned) { + if o == nil || IsNil(o.CloudGoverned) { return nil, false } return o.CloudGoverned, true @@ -399,7 +399,7 @@ func (o *EntitlementDto) GetCloudGovernedOk() (*bool, bool) { // HasCloudGoverned returns a boolean if a field has been set. func (o *EntitlementDto) HasCloudGoverned() bool { - if o != nil && !isNil(o.CloudGoverned) { + if o != nil && !IsNil(o.CloudGoverned) { return true } @@ -413,7 +413,7 @@ func (o *EntitlementDto) SetCloudGoverned(v bool) { // GetSource returns the Source field value if set, zero value otherwise. func (o *EntitlementDto) GetSource() EntitlementSource { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { var ret EntitlementSource return ret } @@ -423,7 +423,7 @@ func (o *EntitlementDto) GetSource() EntitlementSource { // GetSourceOk returns a tuple with the Source field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementDto) GetSourceOk() (*EntitlementSource, bool) { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { return nil, false } return o.Source, true @@ -431,7 +431,7 @@ func (o *EntitlementDto) GetSourceOk() (*EntitlementSource, bool) { // HasSource returns a boolean if a field has been set. func (o *EntitlementDto) HasSource() bool { - if o != nil && !isNil(o.Source) { + if o != nil && !IsNil(o.Source) { return true } @@ -453,32 +453,38 @@ func (o EntitlementDto) MarshalJSON() ([]byte, error) { func (o EntitlementDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } toSerialize["name"] = o.Name - // skip: created is readOnly - // skip: modified is readOnly - if !isNil(o.Attribute) { + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } + if !IsNil(o.Modified) { + toSerialize["modified"] = o.Modified + } + if !IsNil(o.Attribute) { toSerialize["attribute"] = o.Attribute } - if !isNil(o.Value) { + if !IsNil(o.Value) { toSerialize["value"] = o.Value } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.Attributes) { + if !IsNil(o.Attributes) { toSerialize["attributes"] = o.Attributes } - if !isNil(o.SourceSchemaObjectType) { + if !IsNil(o.SourceSchemaObjectType) { toSerialize["sourceSchemaObjectType"] = o.SourceSchemaObjectType } - if !isNil(o.Privileged) { + if !IsNil(o.Privileged) { toSerialize["privileged"] = o.Privileged } - if !isNil(o.CloudGoverned) { + if !IsNil(o.CloudGoverned) { toSerialize["cloudGoverned"] = o.CloudGoverned } - if !isNil(o.Source) { + if !IsNil(o.Source) { toSerialize["source"] = o.Source } @@ -489,8 +495,8 @@ func (o EntitlementDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *EntitlementDto) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *EntitlementDto) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -499,7 +505,7 @@ func (o *EntitlementDto) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -513,13 +519,17 @@ func (o *EntitlementDto) UnmarshalJSON(bytes []byte) (err error) { varEntitlementDto := _EntitlementDto{} - if err = json.Unmarshal(bytes, &varEntitlementDto); err == nil { + err = json.Unmarshal(data, &varEntitlementDto) + + if err != nil { + return err + } + *o = EntitlementDto(varEntitlementDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "created") diff --git a/api_v3/model_entitlement_ref.go b/api_v3/model_entitlement_ref.go index ed0928c10..5e8bb3339 100644 --- a/api_v3/model_entitlement_ref.go +++ b/api_v3/model_entitlement_ref.go @@ -49,7 +49,7 @@ func NewEntitlementRefWithDefaults() *EntitlementRef { // GetType returns the Type field value if set, zero value otherwise. func (o *EntitlementRef) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *EntitlementRef) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementRef) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *EntitlementRef) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *EntitlementRef) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *EntitlementRef) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *EntitlementRef) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *EntitlementRef) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementRef) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *EntitlementRef) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *EntitlementRef) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *EntitlementRef) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EntitlementRef) GetName() string { - if o == nil || isNil(o.Name.Get()) { + if o == nil || IsNil(o.Name.Get()) { var ret string return ret } @@ -163,10 +163,10 @@ func (o EntitlementRef) MarshalJSON() ([]byte, error) { func (o EntitlementRef) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } if o.Name.IsSet() { @@ -180,16 +180,20 @@ func (o EntitlementRef) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *EntitlementRef) UnmarshalJSON(bytes []byte) (err error) { +func (o *EntitlementRef) UnmarshalJSON(data []byte) (err error) { varEntitlementRef := _EntitlementRef{} - if err = json.Unmarshal(bytes, &varEntitlementRef); err == nil { + err = json.Unmarshal(data, &varEntitlementRef) + + if err != nil { + return err + } + *o = EntitlementRef(varEntitlementRef) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_entitlement_ref_1.go b/api_v3/model_entitlement_ref_1.go index e9b74e3b2..533c6f21b 100644 --- a/api_v3/model_entitlement_ref_1.go +++ b/api_v3/model_entitlement_ref_1.go @@ -49,7 +49,7 @@ func NewEntitlementRef1WithDefaults() *EntitlementRef1 { // GetType returns the Type field value if set, zero value otherwise. func (o *EntitlementRef1) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *EntitlementRef1) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementRef1) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *EntitlementRef1) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *EntitlementRef1) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *EntitlementRef1) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *EntitlementRef1) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *EntitlementRef1) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementRef1) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *EntitlementRef1) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *EntitlementRef1) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *EntitlementRef1) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *EntitlementRef1) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *EntitlementRef1) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementRef1) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *EntitlementRef1) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *EntitlementRef1) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o EntitlementRef1) MarshalJSON() ([]byte, error) { func (o EntitlementRef1) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o EntitlementRef1) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *EntitlementRef1) UnmarshalJSON(bytes []byte) (err error) { +func (o *EntitlementRef1) UnmarshalJSON(data []byte) (err error) { varEntitlementRef1 := _EntitlementRef1{} - if err = json.Unmarshal(bytes, &varEntitlementRef1); err == nil { + err = json.Unmarshal(data, &varEntitlementRef1) + + if err != nil { + return err + } + *o = EntitlementRef1(varEntitlementRef1) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_entitlement_request_config.go b/api_v3/model_entitlement_request_config.go index 122fa98a2..73d2c1d1b 100644 --- a/api_v3/model_entitlement_request_config.go +++ b/api_v3/model_entitlement_request_config.go @@ -67,7 +67,7 @@ func NewEntitlementRequestConfigWithDefaults() *EntitlementRequestConfig { // GetAllowEntitlementRequest returns the AllowEntitlementRequest field value if set, zero value otherwise. func (o *EntitlementRequestConfig) GetAllowEntitlementRequest() bool { - if o == nil || isNil(o.AllowEntitlementRequest) { + if o == nil || IsNil(o.AllowEntitlementRequest) { var ret bool return ret } @@ -77,7 +77,7 @@ func (o *EntitlementRequestConfig) GetAllowEntitlementRequest() bool { // GetAllowEntitlementRequestOk returns a tuple with the AllowEntitlementRequest field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementRequestConfig) GetAllowEntitlementRequestOk() (*bool, bool) { - if o == nil || isNil(o.AllowEntitlementRequest) { + if o == nil || IsNil(o.AllowEntitlementRequest) { return nil, false } return o.AllowEntitlementRequest, true @@ -85,7 +85,7 @@ func (o *EntitlementRequestConfig) GetAllowEntitlementRequestOk() (*bool, bool) // HasAllowEntitlementRequest returns a boolean if a field has been set. func (o *EntitlementRequestConfig) HasAllowEntitlementRequest() bool { - if o != nil && !isNil(o.AllowEntitlementRequest) { + if o != nil && !IsNil(o.AllowEntitlementRequest) { return true } @@ -99,7 +99,7 @@ func (o *EntitlementRequestConfig) SetAllowEntitlementRequest(v bool) { // GetRequestCommentsRequired returns the RequestCommentsRequired field value if set, zero value otherwise. func (o *EntitlementRequestConfig) GetRequestCommentsRequired() bool { - if o == nil || isNil(o.RequestCommentsRequired) { + if o == nil || IsNil(o.RequestCommentsRequired) { var ret bool return ret } @@ -109,7 +109,7 @@ func (o *EntitlementRequestConfig) GetRequestCommentsRequired() bool { // GetRequestCommentsRequiredOk returns a tuple with the RequestCommentsRequired field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementRequestConfig) GetRequestCommentsRequiredOk() (*bool, bool) { - if o == nil || isNil(o.RequestCommentsRequired) { + if o == nil || IsNil(o.RequestCommentsRequired) { return nil, false } return o.RequestCommentsRequired, true @@ -117,7 +117,7 @@ func (o *EntitlementRequestConfig) GetRequestCommentsRequiredOk() (*bool, bool) // HasRequestCommentsRequired returns a boolean if a field has been set. func (o *EntitlementRequestConfig) HasRequestCommentsRequired() bool { - if o != nil && !isNil(o.RequestCommentsRequired) { + if o != nil && !IsNil(o.RequestCommentsRequired) { return true } @@ -131,7 +131,7 @@ func (o *EntitlementRequestConfig) SetRequestCommentsRequired(v bool) { // GetDeniedCommentsRequired returns the DeniedCommentsRequired field value if set, zero value otherwise. func (o *EntitlementRequestConfig) GetDeniedCommentsRequired() bool { - if o == nil || isNil(o.DeniedCommentsRequired) { + if o == nil || IsNil(o.DeniedCommentsRequired) { var ret bool return ret } @@ -141,7 +141,7 @@ func (o *EntitlementRequestConfig) GetDeniedCommentsRequired() bool { // GetDeniedCommentsRequiredOk returns a tuple with the DeniedCommentsRequired field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementRequestConfig) GetDeniedCommentsRequiredOk() (*bool, bool) { - if o == nil || isNil(o.DeniedCommentsRequired) { + if o == nil || IsNil(o.DeniedCommentsRequired) { return nil, false } return o.DeniedCommentsRequired, true @@ -149,7 +149,7 @@ func (o *EntitlementRequestConfig) GetDeniedCommentsRequiredOk() (*bool, bool) { // HasDeniedCommentsRequired returns a boolean if a field has been set. func (o *EntitlementRequestConfig) HasDeniedCommentsRequired() bool { - if o != nil && !isNil(o.DeniedCommentsRequired) { + if o != nil && !IsNil(o.DeniedCommentsRequired) { return true } @@ -163,7 +163,7 @@ func (o *EntitlementRequestConfig) SetDeniedCommentsRequired(v bool) { // GetGrantRequestApprovalSchemes returns the GrantRequestApprovalSchemes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EntitlementRequestConfig) GetGrantRequestApprovalSchemes() string { - if o == nil || isNil(o.GrantRequestApprovalSchemes.Get()) { + if o == nil || IsNil(o.GrantRequestApprovalSchemes.Get()) { var ret string return ret } @@ -213,13 +213,13 @@ func (o EntitlementRequestConfig) MarshalJSON() ([]byte, error) { func (o EntitlementRequestConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.AllowEntitlementRequest) { + if !IsNil(o.AllowEntitlementRequest) { toSerialize["allowEntitlementRequest"] = o.AllowEntitlementRequest } - if !isNil(o.RequestCommentsRequired) { + if !IsNil(o.RequestCommentsRequired) { toSerialize["requestCommentsRequired"] = o.RequestCommentsRequired } - if !isNil(o.DeniedCommentsRequired) { + if !IsNil(o.DeniedCommentsRequired) { toSerialize["deniedCommentsRequired"] = o.DeniedCommentsRequired } if o.GrantRequestApprovalSchemes.IsSet() { @@ -233,16 +233,20 @@ func (o EntitlementRequestConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *EntitlementRequestConfig) UnmarshalJSON(bytes []byte) (err error) { +func (o *EntitlementRequestConfig) UnmarshalJSON(data []byte) (err error) { varEntitlementRequestConfig := _EntitlementRequestConfig{} - if err = json.Unmarshal(bytes, &varEntitlementRequestConfig); err == nil { + err = json.Unmarshal(data, &varEntitlementRequestConfig) + + if err != nil { + return err + } + *o = EntitlementRequestConfig(varEntitlementRequestConfig) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "allowEntitlementRequest") delete(additionalProperties, "requestCommentsRequired") delete(additionalProperties, "deniedCommentsRequired") diff --git a/api_v3/model_entitlement_source.go b/api_v3/model_entitlement_source.go index a9aee6f65..90dd918b5 100644 --- a/api_v3/model_entitlement_source.go +++ b/api_v3/model_entitlement_source.go @@ -49,7 +49,7 @@ func NewEntitlementSourceWithDefaults() *EntitlementSource { // GetId returns the Id field value if set, zero value otherwise. func (o *EntitlementSource) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *EntitlementSource) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementSource) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -67,7 +67,7 @@ func (o *EntitlementSource) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *EntitlementSource) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -81,7 +81,7 @@ func (o *EntitlementSource) SetId(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *EntitlementSource) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *EntitlementSource) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementSource) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -99,7 +99,7 @@ func (o *EntitlementSource) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *EntitlementSource) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -113,7 +113,7 @@ func (o *EntitlementSource) SetType(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *EntitlementSource) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *EntitlementSource) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementSource) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *EntitlementSource) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *EntitlementSource) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o EntitlementSource) MarshalJSON() ([]byte, error) { func (o EntitlementSource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o EntitlementSource) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *EntitlementSource) UnmarshalJSON(bytes []byte) (err error) { +func (o *EntitlementSource) UnmarshalJSON(data []byte) (err error) { varEntitlementSource := _EntitlementSource{} - if err = json.Unmarshal(bytes, &varEntitlementSource); err == nil { + err = json.Unmarshal(data, &varEntitlementSource) + + if err != nil { + return err + } + *o = EntitlementSource(varEntitlementSource) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "type") delete(additionalProperties, "name") diff --git a/api_v3/model_entitlement_summary.go b/api_v3/model_entitlement_summary.go index 55ca507fc..9dc79874c 100644 --- a/api_v3/model_entitlement_summary.go +++ b/api_v3/model_entitlement_summary.go @@ -55,7 +55,7 @@ func NewEntitlementSummaryWithDefaults() *EntitlementSummary { // GetId returns the Id field value if set, zero value otherwise. func (o *EntitlementSummary) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -65,7 +65,7 @@ func (o *EntitlementSummary) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementSummary) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -73,7 +73,7 @@ func (o *EntitlementSummary) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *EntitlementSummary) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -87,7 +87,7 @@ func (o *EntitlementSummary) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *EntitlementSummary) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -97,7 +97,7 @@ func (o *EntitlementSummary) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementSummary) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -105,7 +105,7 @@ func (o *EntitlementSummary) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *EntitlementSummary) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -119,7 +119,7 @@ func (o *EntitlementSummary) SetName(v string) { // GetDisplayName returns the DisplayName field value if set, zero value otherwise. func (o *EntitlementSummary) GetDisplayName() string { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { var ret string return ret } @@ -129,7 +129,7 @@ func (o *EntitlementSummary) GetDisplayName() string { // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementSummary) GetDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { return nil, false } return o.DisplayName, true @@ -137,7 +137,7 @@ func (o *EntitlementSummary) GetDisplayNameOk() (*string, bool) { // HasDisplayName returns a boolean if a field has been set. func (o *EntitlementSummary) HasDisplayName() bool { - if o != nil && !isNil(o.DisplayName) { + if o != nil && !IsNil(o.DisplayName) { return true } @@ -151,7 +151,7 @@ func (o *EntitlementSummary) SetDisplayName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *EntitlementSummary) GetType() DtoType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret DtoType return ret } @@ -161,7 +161,7 @@ func (o *EntitlementSummary) GetType() DtoType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementSummary) GetTypeOk() (*DtoType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -169,7 +169,7 @@ func (o *EntitlementSummary) GetTypeOk() (*DtoType, bool) { // HasType returns a boolean if a field has been set. func (o *EntitlementSummary) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -183,7 +183,7 @@ func (o *EntitlementSummary) SetType(v DtoType) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EntitlementSummary) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -225,7 +225,7 @@ func (o *EntitlementSummary) UnsetDescription() { // GetSource returns the Source field value if set, zero value otherwise. func (o *EntitlementSummary) GetSource() Reference { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { var ret Reference return ret } @@ -235,7 +235,7 @@ func (o *EntitlementSummary) GetSource() Reference { // GetSourceOk returns a tuple with the Source field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementSummary) GetSourceOk() (*Reference, bool) { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { return nil, false } return o.Source, true @@ -243,7 +243,7 @@ func (o *EntitlementSummary) GetSourceOk() (*Reference, bool) { // HasSource returns a boolean if a field has been set. func (o *EntitlementSummary) HasSource() bool { - if o != nil && !isNil(o.Source) { + if o != nil && !IsNil(o.Source) { return true } @@ -257,7 +257,7 @@ func (o *EntitlementSummary) SetSource(v Reference) { // GetPrivileged returns the Privileged field value if set, zero value otherwise. func (o *EntitlementSummary) GetPrivileged() bool { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { var ret bool return ret } @@ -267,7 +267,7 @@ func (o *EntitlementSummary) GetPrivileged() bool { // GetPrivilegedOk returns a tuple with the Privileged field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementSummary) GetPrivilegedOk() (*bool, bool) { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { return nil, false } return o.Privileged, true @@ -275,7 +275,7 @@ func (o *EntitlementSummary) GetPrivilegedOk() (*bool, bool) { // HasPrivileged returns a boolean if a field has been set. func (o *EntitlementSummary) HasPrivileged() bool { - if o != nil && !isNil(o.Privileged) { + if o != nil && !IsNil(o.Privileged) { return true } @@ -289,7 +289,7 @@ func (o *EntitlementSummary) SetPrivileged(v bool) { // GetAttribute returns the Attribute field value if set, zero value otherwise. func (o *EntitlementSummary) GetAttribute() string { - if o == nil || isNil(o.Attribute) { + if o == nil || IsNil(o.Attribute) { var ret string return ret } @@ -299,7 +299,7 @@ func (o *EntitlementSummary) GetAttribute() string { // GetAttributeOk returns a tuple with the Attribute field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementSummary) GetAttributeOk() (*string, bool) { - if o == nil || isNil(o.Attribute) { + if o == nil || IsNil(o.Attribute) { return nil, false } return o.Attribute, true @@ -307,7 +307,7 @@ func (o *EntitlementSummary) GetAttributeOk() (*string, bool) { // HasAttribute returns a boolean if a field has been set. func (o *EntitlementSummary) HasAttribute() bool { - if o != nil && !isNil(o.Attribute) { + if o != nil && !IsNil(o.Attribute) { return true } @@ -321,7 +321,7 @@ func (o *EntitlementSummary) SetAttribute(v string) { // GetValue returns the Value field value if set, zero value otherwise. func (o *EntitlementSummary) GetValue() string { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { var ret string return ret } @@ -331,7 +331,7 @@ func (o *EntitlementSummary) GetValue() string { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementSummary) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { return nil, false } return o.Value, true @@ -339,7 +339,7 @@ func (o *EntitlementSummary) GetValueOk() (*string, bool) { // HasValue returns a boolean if a field has been set. func (o *EntitlementSummary) HasValue() bool { - if o != nil && !isNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -353,7 +353,7 @@ func (o *EntitlementSummary) SetValue(v string) { // GetStandalone returns the Standalone field value if set, zero value otherwise. func (o *EntitlementSummary) GetStandalone() bool { - if o == nil || isNil(o.Standalone) { + if o == nil || IsNil(o.Standalone) { var ret bool return ret } @@ -363,7 +363,7 @@ func (o *EntitlementSummary) GetStandalone() bool { // GetStandaloneOk returns a tuple with the Standalone field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EntitlementSummary) GetStandaloneOk() (*bool, bool) { - if o == nil || isNil(o.Standalone) { + if o == nil || IsNil(o.Standalone) { return nil, false } return o.Standalone, true @@ -371,7 +371,7 @@ func (o *EntitlementSummary) GetStandaloneOk() (*bool, bool) { // HasStandalone returns a boolean if a field has been set. func (o *EntitlementSummary) HasStandalone() bool { - if o != nil && !isNil(o.Standalone) { + if o != nil && !IsNil(o.Standalone) { return true } @@ -393,34 +393,34 @@ func (o EntitlementSummary) MarshalJSON() ([]byte, error) { func (o EntitlementSummary) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.DisplayName) { + if !IsNil(o.DisplayName) { toSerialize["displayName"] = o.DisplayName } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } if o.Description.IsSet() { toSerialize["description"] = o.Description.Get() } - if !isNil(o.Source) { + if !IsNil(o.Source) { toSerialize["source"] = o.Source } - if !isNil(o.Privileged) { + if !IsNil(o.Privileged) { toSerialize["privileged"] = o.Privileged } - if !isNil(o.Attribute) { + if !IsNil(o.Attribute) { toSerialize["attribute"] = o.Attribute } - if !isNil(o.Value) { + if !IsNil(o.Value) { toSerialize["value"] = o.Value } - if !isNil(o.Standalone) { + if !IsNil(o.Standalone) { toSerialize["standalone"] = o.Standalone } @@ -431,16 +431,20 @@ func (o EntitlementSummary) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *EntitlementSummary) UnmarshalJSON(bytes []byte) (err error) { +func (o *EntitlementSummary) UnmarshalJSON(data []byte) (err error) { varEntitlementSummary := _EntitlementSummary{} - if err = json.Unmarshal(bytes, &varEntitlementSummary); err == nil { + err = json.Unmarshal(data, &varEntitlementSummary) + + if err != nil { + return err + } + *o = EntitlementSummary(varEntitlementSummary) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "displayName") diff --git a/api_v3/model_error_message_dto.go b/api_v3/model_error_message_dto.go index f731dea7b..06a3aa4d1 100644 --- a/api_v3/model_error_message_dto.go +++ b/api_v3/model_error_message_dto.go @@ -48,7 +48,7 @@ func NewErrorMessageDtoWithDefaults() *ErrorMessageDto { // GetLocale returns the Locale field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ErrorMessageDto) GetLocale() string { - if o == nil || isNil(o.Locale.Get()) { + if o == nil || IsNil(o.Locale.Get()) { var ret string return ret } @@ -90,7 +90,7 @@ func (o *ErrorMessageDto) UnsetLocale() { // GetLocaleOrigin returns the LocaleOrigin field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ErrorMessageDto) GetLocaleOrigin() LocaleOrigin { - if o == nil || isNil(o.LocaleOrigin.Get()) { + if o == nil || IsNil(o.LocaleOrigin.Get()) { var ret LocaleOrigin return ret } @@ -132,7 +132,7 @@ func (o *ErrorMessageDto) UnsetLocaleOrigin() { // GetText returns the Text field value if set, zero value otherwise. func (o *ErrorMessageDto) GetText() string { - if o == nil || isNil(o.Text) { + if o == nil || IsNil(o.Text) { var ret string return ret } @@ -142,7 +142,7 @@ func (o *ErrorMessageDto) GetText() string { // GetTextOk returns a tuple with the Text field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ErrorMessageDto) GetTextOk() (*string, bool) { - if o == nil || isNil(o.Text) { + if o == nil || IsNil(o.Text) { return nil, false } return o.Text, true @@ -150,7 +150,7 @@ func (o *ErrorMessageDto) GetTextOk() (*string, bool) { // HasText returns a boolean if a field has been set. func (o *ErrorMessageDto) HasText() bool { - if o != nil && !isNil(o.Text) { + if o != nil && !IsNil(o.Text) { return true } @@ -178,7 +178,7 @@ func (o ErrorMessageDto) ToMap() (map[string]interface{}, error) { if o.LocaleOrigin.IsSet() { toSerialize["localeOrigin"] = o.LocaleOrigin.Get() } - if !isNil(o.Text) { + if !IsNil(o.Text) { toSerialize["text"] = o.Text } @@ -189,16 +189,20 @@ func (o ErrorMessageDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ErrorMessageDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *ErrorMessageDto) UnmarshalJSON(data []byte) (err error) { varErrorMessageDto := _ErrorMessageDto{} - if err = json.Unmarshal(bytes, &varErrorMessageDto); err == nil { + err = json.Unmarshal(data, &varErrorMessageDto) + + if err != nil { + return err + } + *o = ErrorMessageDto(varErrorMessageDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "locale") delete(additionalProperties, "localeOrigin") delete(additionalProperties, "text") diff --git a/api_v3/model_error_response_dto.go b/api_v3/model_error_response_dto.go index 8903426b3..3b24bf446 100644 --- a/api_v3/model_error_response_dto.go +++ b/api_v3/model_error_response_dto.go @@ -51,7 +51,7 @@ func NewErrorResponseDtoWithDefaults() *ErrorResponseDto { // GetDetailCode returns the DetailCode field value if set, zero value otherwise. func (o *ErrorResponseDto) GetDetailCode() string { - if o == nil || isNil(o.DetailCode) { + if o == nil || IsNil(o.DetailCode) { var ret string return ret } @@ -61,7 +61,7 @@ func (o *ErrorResponseDto) GetDetailCode() string { // GetDetailCodeOk returns a tuple with the DetailCode field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ErrorResponseDto) GetDetailCodeOk() (*string, bool) { - if o == nil || isNil(o.DetailCode) { + if o == nil || IsNil(o.DetailCode) { return nil, false } return o.DetailCode, true @@ -69,7 +69,7 @@ func (o *ErrorResponseDto) GetDetailCodeOk() (*string, bool) { // HasDetailCode returns a boolean if a field has been set. func (o *ErrorResponseDto) HasDetailCode() bool { - if o != nil && !isNil(o.DetailCode) { + if o != nil && !IsNil(o.DetailCode) { return true } @@ -83,7 +83,7 @@ func (o *ErrorResponseDto) SetDetailCode(v string) { // GetTrackingId returns the TrackingId field value if set, zero value otherwise. func (o *ErrorResponseDto) GetTrackingId() string { - if o == nil || isNil(o.TrackingId) { + if o == nil || IsNil(o.TrackingId) { var ret string return ret } @@ -93,7 +93,7 @@ func (o *ErrorResponseDto) GetTrackingId() string { // GetTrackingIdOk returns a tuple with the TrackingId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ErrorResponseDto) GetTrackingIdOk() (*string, bool) { - if o == nil || isNil(o.TrackingId) { + if o == nil || IsNil(o.TrackingId) { return nil, false } return o.TrackingId, true @@ -101,7 +101,7 @@ func (o *ErrorResponseDto) GetTrackingIdOk() (*string, bool) { // HasTrackingId returns a boolean if a field has been set. func (o *ErrorResponseDto) HasTrackingId() bool { - if o != nil && !isNil(o.TrackingId) { + if o != nil && !IsNil(o.TrackingId) { return true } @@ -115,7 +115,7 @@ func (o *ErrorResponseDto) SetTrackingId(v string) { // GetMessages returns the Messages field value if set, zero value otherwise. func (o *ErrorResponseDto) GetMessages() []ErrorMessageDto { - if o == nil || isNil(o.Messages) { + if o == nil || IsNil(o.Messages) { var ret []ErrorMessageDto return ret } @@ -125,7 +125,7 @@ func (o *ErrorResponseDto) GetMessages() []ErrorMessageDto { // GetMessagesOk returns a tuple with the Messages field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ErrorResponseDto) GetMessagesOk() ([]ErrorMessageDto, bool) { - if o == nil || isNil(o.Messages) { + if o == nil || IsNil(o.Messages) { return nil, false } return o.Messages, true @@ -133,7 +133,7 @@ func (o *ErrorResponseDto) GetMessagesOk() ([]ErrorMessageDto, bool) { // HasMessages returns a boolean if a field has been set. func (o *ErrorResponseDto) HasMessages() bool { - if o != nil && !isNil(o.Messages) { + if o != nil && !IsNil(o.Messages) { return true } @@ -147,7 +147,7 @@ func (o *ErrorResponseDto) SetMessages(v []ErrorMessageDto) { // GetCauses returns the Causes field value if set, zero value otherwise. func (o *ErrorResponseDto) GetCauses() []ErrorMessageDto { - if o == nil || isNil(o.Causes) { + if o == nil || IsNil(o.Causes) { var ret []ErrorMessageDto return ret } @@ -157,7 +157,7 @@ func (o *ErrorResponseDto) GetCauses() []ErrorMessageDto { // GetCausesOk returns a tuple with the Causes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ErrorResponseDto) GetCausesOk() ([]ErrorMessageDto, bool) { - if o == nil || isNil(o.Causes) { + if o == nil || IsNil(o.Causes) { return nil, false } return o.Causes, true @@ -165,7 +165,7 @@ func (o *ErrorResponseDto) GetCausesOk() ([]ErrorMessageDto, bool) { // HasCauses returns a boolean if a field has been set. func (o *ErrorResponseDto) HasCauses() bool { - if o != nil && !isNil(o.Causes) { + if o != nil && !IsNil(o.Causes) { return true } @@ -187,16 +187,16 @@ func (o ErrorResponseDto) MarshalJSON() ([]byte, error) { func (o ErrorResponseDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.DetailCode) { + if !IsNil(o.DetailCode) { toSerialize["detailCode"] = o.DetailCode } - if !isNil(o.TrackingId) { + if !IsNil(o.TrackingId) { toSerialize["trackingId"] = o.TrackingId } - if !isNil(o.Messages) { + if !IsNil(o.Messages) { toSerialize["messages"] = o.Messages } - if !isNil(o.Causes) { + if !IsNil(o.Causes) { toSerialize["causes"] = o.Causes } @@ -207,16 +207,20 @@ func (o ErrorResponseDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ErrorResponseDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *ErrorResponseDto) UnmarshalJSON(data []byte) (err error) { varErrorResponseDto := _ErrorResponseDto{} - if err = json.Unmarshal(bytes, &varErrorResponseDto); err == nil { + err = json.Unmarshal(data, &varErrorResponseDto) + + if err != nil { + return err + } + *o = ErrorResponseDto(varErrorResponseDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "detailCode") delete(additionalProperties, "trackingId") delete(additionalProperties, "messages") diff --git a/api_v3/model_event.go b/api_v3/model_event.go index 40a0bf6e8..b343d4f5b 100644 --- a/api_v3/model_event.go +++ b/api_v3/model_event.go @@ -153,7 +153,7 @@ func (o *Event) SetDocumentType(v DocumentType) { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Event) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -195,7 +195,7 @@ func (o *Event) UnsetCreated() { // GetSynced returns the Synced field value if set, zero value otherwise. func (o *Event) GetSynced() string { - if o == nil || isNil(o.Synced) { + if o == nil || IsNil(o.Synced) { var ret string return ret } @@ -205,7 +205,7 @@ func (o *Event) GetSynced() string { // GetSyncedOk returns a tuple with the Synced field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Event) GetSyncedOk() (*string, bool) { - if o == nil || isNil(o.Synced) { + if o == nil || IsNil(o.Synced) { return nil, false } return o.Synced, true @@ -213,7 +213,7 @@ func (o *Event) GetSyncedOk() (*string, bool) { // HasSynced returns a boolean if a field has been set. func (o *Event) HasSynced() bool { - if o != nil && !isNil(o.Synced) { + if o != nil && !IsNil(o.Synced) { return true } @@ -227,7 +227,7 @@ func (o *Event) SetSynced(v string) { // GetAction returns the Action field value if set, zero value otherwise. func (o *Event) GetAction() string { - if o == nil || isNil(o.Action) { + if o == nil || IsNil(o.Action) { var ret string return ret } @@ -237,7 +237,7 @@ func (o *Event) GetAction() string { // GetActionOk returns a tuple with the Action field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Event) GetActionOk() (*string, bool) { - if o == nil || isNil(o.Action) { + if o == nil || IsNil(o.Action) { return nil, false } return o.Action, true @@ -245,7 +245,7 @@ func (o *Event) GetActionOk() (*string, bool) { // HasAction returns a boolean if a field has been set. func (o *Event) HasAction() bool { - if o != nil && !isNil(o.Action) { + if o != nil && !IsNil(o.Action) { return true } @@ -259,7 +259,7 @@ func (o *Event) SetAction(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *Event) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -269,7 +269,7 @@ func (o *Event) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Event) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -277,7 +277,7 @@ func (o *Event) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *Event) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -291,7 +291,7 @@ func (o *Event) SetType(v string) { // GetActor returns the Actor field value if set, zero value otherwise. func (o *Event) GetActor() string { - if o == nil || isNil(o.Actor) { + if o == nil || IsNil(o.Actor) { var ret string return ret } @@ -301,7 +301,7 @@ func (o *Event) GetActor() string { // GetActorOk returns a tuple with the Actor field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Event) GetActorOk() (*string, bool) { - if o == nil || isNil(o.Actor) { + if o == nil || IsNil(o.Actor) { return nil, false } return o.Actor, true @@ -309,7 +309,7 @@ func (o *Event) GetActorOk() (*string, bool) { // HasActor returns a boolean if a field has been set. func (o *Event) HasActor() bool { - if o != nil && !isNil(o.Actor) { + if o != nil && !IsNil(o.Actor) { return true } @@ -323,7 +323,7 @@ func (o *Event) SetActor(v string) { // GetTarget returns the Target field value if set, zero value otherwise. func (o *Event) GetTarget() string { - if o == nil || isNil(o.Target) { + if o == nil || IsNil(o.Target) { var ret string return ret } @@ -333,7 +333,7 @@ func (o *Event) GetTarget() string { // GetTargetOk returns a tuple with the Target field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Event) GetTargetOk() (*string, bool) { - if o == nil || isNil(o.Target) { + if o == nil || IsNil(o.Target) { return nil, false } return o.Target, true @@ -341,7 +341,7 @@ func (o *Event) GetTargetOk() (*string, bool) { // HasTarget returns a boolean if a field has been set. func (o *Event) HasTarget() bool { - if o != nil && !isNil(o.Target) { + if o != nil && !IsNil(o.Target) { return true } @@ -355,7 +355,7 @@ func (o *Event) SetTarget(v string) { // GetStack returns the Stack field value if set, zero value otherwise. func (o *Event) GetStack() string { - if o == nil || isNil(o.Stack) { + if o == nil || IsNil(o.Stack) { var ret string return ret } @@ -365,7 +365,7 @@ func (o *Event) GetStack() string { // GetStackOk returns a tuple with the Stack field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Event) GetStackOk() (*string, bool) { - if o == nil || isNil(o.Stack) { + if o == nil || IsNil(o.Stack) { return nil, false } return o.Stack, true @@ -373,7 +373,7 @@ func (o *Event) GetStackOk() (*string, bool) { // HasStack returns a boolean if a field has been set. func (o *Event) HasStack() bool { - if o != nil && !isNil(o.Stack) { + if o != nil && !IsNil(o.Stack) { return true } @@ -387,7 +387,7 @@ func (o *Event) SetStack(v string) { // GetTrackingNumber returns the TrackingNumber field value if set, zero value otherwise. func (o *Event) GetTrackingNumber() string { - if o == nil || isNil(o.TrackingNumber) { + if o == nil || IsNil(o.TrackingNumber) { var ret string return ret } @@ -397,7 +397,7 @@ func (o *Event) GetTrackingNumber() string { // GetTrackingNumberOk returns a tuple with the TrackingNumber field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Event) GetTrackingNumberOk() (*string, bool) { - if o == nil || isNil(o.TrackingNumber) { + if o == nil || IsNil(o.TrackingNumber) { return nil, false } return o.TrackingNumber, true @@ -405,7 +405,7 @@ func (o *Event) GetTrackingNumberOk() (*string, bool) { // HasTrackingNumber returns a boolean if a field has been set. func (o *Event) HasTrackingNumber() bool { - if o != nil && !isNil(o.TrackingNumber) { + if o != nil && !IsNil(o.TrackingNumber) { return true } @@ -419,7 +419,7 @@ func (o *Event) SetTrackingNumber(v string) { // GetIpAddress returns the IpAddress field value if set, zero value otherwise. func (o *Event) GetIpAddress() string { - if o == nil || isNil(o.IpAddress) { + if o == nil || IsNil(o.IpAddress) { var ret string return ret } @@ -429,7 +429,7 @@ func (o *Event) GetIpAddress() string { // GetIpAddressOk returns a tuple with the IpAddress field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Event) GetIpAddressOk() (*string, bool) { - if o == nil || isNil(o.IpAddress) { + if o == nil || IsNil(o.IpAddress) { return nil, false } return o.IpAddress, true @@ -437,7 +437,7 @@ func (o *Event) GetIpAddressOk() (*string, bool) { // HasIpAddress returns a boolean if a field has been set. func (o *Event) HasIpAddress() bool { - if o != nil && !isNil(o.IpAddress) { + if o != nil && !IsNil(o.IpAddress) { return true } @@ -451,7 +451,7 @@ func (o *Event) SetIpAddress(v string) { // GetDetails returns the Details field value if set, zero value otherwise. func (o *Event) GetDetails() string { - if o == nil || isNil(o.Details) { + if o == nil || IsNil(o.Details) { var ret string return ret } @@ -461,7 +461,7 @@ func (o *Event) GetDetails() string { // GetDetailsOk returns a tuple with the Details field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Event) GetDetailsOk() (*string, bool) { - if o == nil || isNil(o.Details) { + if o == nil || IsNil(o.Details) { return nil, false } return o.Details, true @@ -469,7 +469,7 @@ func (o *Event) GetDetailsOk() (*string, bool) { // HasDetails returns a boolean if a field has been set. func (o *Event) HasDetails() bool { - if o != nil && !isNil(o.Details) { + if o != nil && !IsNil(o.Details) { return true } @@ -483,7 +483,7 @@ func (o *Event) SetDetails(v string) { // GetAttributes returns the Attributes field value if set, zero value otherwise. func (o *Event) GetAttributes() map[string]interface{} { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { var ret map[string]interface{} return ret } @@ -493,7 +493,7 @@ func (o *Event) GetAttributes() map[string]interface{} { // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Event) GetAttributesOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { return map[string]interface{}{}, false } return o.Attributes, true @@ -501,7 +501,7 @@ func (o *Event) GetAttributesOk() (map[string]interface{}, bool) { // HasAttributes returns a boolean if a field has been set. func (o *Event) HasAttributes() bool { - if o != nil && !isNil(o.Attributes) { + if o != nil && !IsNil(o.Attributes) { return true } @@ -515,7 +515,7 @@ func (o *Event) SetAttributes(v map[string]interface{}) { // GetObjects returns the Objects field value if set, zero value otherwise. func (o *Event) GetObjects() []string { - if o == nil || isNil(o.Objects) { + if o == nil || IsNil(o.Objects) { var ret []string return ret } @@ -525,7 +525,7 @@ func (o *Event) GetObjects() []string { // GetObjectsOk returns a tuple with the Objects field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Event) GetObjectsOk() ([]string, bool) { - if o == nil || isNil(o.Objects) { + if o == nil || IsNil(o.Objects) { return nil, false } return o.Objects, true @@ -533,7 +533,7 @@ func (o *Event) GetObjectsOk() ([]string, bool) { // HasObjects returns a boolean if a field has been set. func (o *Event) HasObjects() bool { - if o != nil && !isNil(o.Objects) { + if o != nil && !IsNil(o.Objects) { return true } @@ -547,7 +547,7 @@ func (o *Event) SetObjects(v []string) { // GetOperation returns the Operation field value if set, zero value otherwise. func (o *Event) GetOperation() string { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { var ret string return ret } @@ -557,7 +557,7 @@ func (o *Event) GetOperation() string { // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Event) GetOperationOk() (*string, bool) { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { return nil, false } return o.Operation, true @@ -565,7 +565,7 @@ func (o *Event) GetOperationOk() (*string, bool) { // HasOperation returns a boolean if a field has been set. func (o *Event) HasOperation() bool { - if o != nil && !isNil(o.Operation) { + if o != nil && !IsNil(o.Operation) { return true } @@ -579,7 +579,7 @@ func (o *Event) SetOperation(v string) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *Event) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -589,7 +589,7 @@ func (o *Event) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Event) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -597,7 +597,7 @@ func (o *Event) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *Event) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -611,7 +611,7 @@ func (o *Event) SetStatus(v string) { // GetTechnicalName returns the TechnicalName field value if set, zero value otherwise. func (o *Event) GetTechnicalName() string { - if o == nil || isNil(o.TechnicalName) { + if o == nil || IsNil(o.TechnicalName) { var ret string return ret } @@ -621,7 +621,7 @@ func (o *Event) GetTechnicalName() string { // GetTechnicalNameOk returns a tuple with the TechnicalName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Event) GetTechnicalNameOk() (*string, bool) { - if o == nil || isNil(o.TechnicalName) { + if o == nil || IsNil(o.TechnicalName) { return nil, false } return o.TechnicalName, true @@ -629,7 +629,7 @@ func (o *Event) GetTechnicalNameOk() (*string, bool) { // HasTechnicalName returns a boolean if a field has been set. func (o *Event) HasTechnicalName() bool { - if o != nil && !isNil(o.TechnicalName) { + if o != nil && !IsNil(o.TechnicalName) { return true } @@ -657,46 +657,46 @@ func (o Event) ToMap() (map[string]interface{}, error) { if o.Created.IsSet() { toSerialize["created"] = o.Created.Get() } - if !isNil(o.Synced) { + if !IsNil(o.Synced) { toSerialize["synced"] = o.Synced } - if !isNil(o.Action) { + if !IsNil(o.Action) { toSerialize["action"] = o.Action } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Actor) { + if !IsNil(o.Actor) { toSerialize["actor"] = o.Actor } - if !isNil(o.Target) { + if !IsNil(o.Target) { toSerialize["target"] = o.Target } - if !isNil(o.Stack) { + if !IsNil(o.Stack) { toSerialize["stack"] = o.Stack } - if !isNil(o.TrackingNumber) { + if !IsNil(o.TrackingNumber) { toSerialize["trackingNumber"] = o.TrackingNumber } - if !isNil(o.IpAddress) { + if !IsNil(o.IpAddress) { toSerialize["ipAddress"] = o.IpAddress } - if !isNil(o.Details) { + if !IsNil(o.Details) { toSerialize["details"] = o.Details } - if !isNil(o.Attributes) { + if !IsNil(o.Attributes) { toSerialize["attributes"] = o.Attributes } - if !isNil(o.Objects) { + if !IsNil(o.Objects) { toSerialize["objects"] = o.Objects } - if !isNil(o.Operation) { + if !IsNil(o.Operation) { toSerialize["operation"] = o.Operation } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } - if !isNil(o.TechnicalName) { + if !IsNil(o.TechnicalName) { toSerialize["technicalName"] = o.TechnicalName } @@ -707,8 +707,8 @@ func (o Event) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Event) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *Event) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -719,7 +719,7 @@ func (o *Event) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -733,13 +733,17 @@ func (o *Event) UnmarshalJSON(bytes []byte) (err error) { varEvent := _Event{} - if err = json.Unmarshal(bytes, &varEvent); err == nil { + err = json.Unmarshal(data, &varEvent) + + if err != nil { + return err + } + *o = Event(varEvent) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "_type") diff --git a/api_v3/model_event_document.go b/api_v3/model_event_document.go index 5fba961e3..49dc753db 100644 --- a/api_v3/model_event_document.go +++ b/api_v3/model_event_document.go @@ -153,7 +153,7 @@ func (o *EventDocument) SetDocumentType(v DocumentType) { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EventDocument) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -195,7 +195,7 @@ func (o *EventDocument) UnsetCreated() { // GetSynced returns the Synced field value if set, zero value otherwise. func (o *EventDocument) GetSynced() string { - if o == nil || isNil(o.Synced) { + if o == nil || IsNil(o.Synced) { var ret string return ret } @@ -205,7 +205,7 @@ func (o *EventDocument) GetSynced() string { // GetSyncedOk returns a tuple with the Synced field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EventDocument) GetSyncedOk() (*string, bool) { - if o == nil || isNil(o.Synced) { + if o == nil || IsNil(o.Synced) { return nil, false } return o.Synced, true @@ -213,7 +213,7 @@ func (o *EventDocument) GetSyncedOk() (*string, bool) { // HasSynced returns a boolean if a field has been set. func (o *EventDocument) HasSynced() bool { - if o != nil && !isNil(o.Synced) { + if o != nil && !IsNil(o.Synced) { return true } @@ -227,7 +227,7 @@ func (o *EventDocument) SetSynced(v string) { // GetAction returns the Action field value if set, zero value otherwise. func (o *EventDocument) GetAction() string { - if o == nil || isNil(o.Action) { + if o == nil || IsNil(o.Action) { var ret string return ret } @@ -237,7 +237,7 @@ func (o *EventDocument) GetAction() string { // GetActionOk returns a tuple with the Action field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EventDocument) GetActionOk() (*string, bool) { - if o == nil || isNil(o.Action) { + if o == nil || IsNil(o.Action) { return nil, false } return o.Action, true @@ -245,7 +245,7 @@ func (o *EventDocument) GetActionOk() (*string, bool) { // HasAction returns a boolean if a field has been set. func (o *EventDocument) HasAction() bool { - if o != nil && !isNil(o.Action) { + if o != nil && !IsNil(o.Action) { return true } @@ -259,7 +259,7 @@ func (o *EventDocument) SetAction(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *EventDocument) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -269,7 +269,7 @@ func (o *EventDocument) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EventDocument) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -277,7 +277,7 @@ func (o *EventDocument) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *EventDocument) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -291,7 +291,7 @@ func (o *EventDocument) SetType(v string) { // GetActor returns the Actor field value if set, zero value otherwise. func (o *EventDocument) GetActor() string { - if o == nil || isNil(o.Actor) { + if o == nil || IsNil(o.Actor) { var ret string return ret } @@ -301,7 +301,7 @@ func (o *EventDocument) GetActor() string { // GetActorOk returns a tuple with the Actor field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EventDocument) GetActorOk() (*string, bool) { - if o == nil || isNil(o.Actor) { + if o == nil || IsNil(o.Actor) { return nil, false } return o.Actor, true @@ -309,7 +309,7 @@ func (o *EventDocument) GetActorOk() (*string, bool) { // HasActor returns a boolean if a field has been set. func (o *EventDocument) HasActor() bool { - if o != nil && !isNil(o.Actor) { + if o != nil && !IsNil(o.Actor) { return true } @@ -323,7 +323,7 @@ func (o *EventDocument) SetActor(v string) { // GetTarget returns the Target field value if set, zero value otherwise. func (o *EventDocument) GetTarget() string { - if o == nil || isNil(o.Target) { + if o == nil || IsNil(o.Target) { var ret string return ret } @@ -333,7 +333,7 @@ func (o *EventDocument) GetTarget() string { // GetTargetOk returns a tuple with the Target field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EventDocument) GetTargetOk() (*string, bool) { - if o == nil || isNil(o.Target) { + if o == nil || IsNil(o.Target) { return nil, false } return o.Target, true @@ -341,7 +341,7 @@ func (o *EventDocument) GetTargetOk() (*string, bool) { // HasTarget returns a boolean if a field has been set. func (o *EventDocument) HasTarget() bool { - if o != nil && !isNil(o.Target) { + if o != nil && !IsNil(o.Target) { return true } @@ -355,7 +355,7 @@ func (o *EventDocument) SetTarget(v string) { // GetStack returns the Stack field value if set, zero value otherwise. func (o *EventDocument) GetStack() string { - if o == nil || isNil(o.Stack) { + if o == nil || IsNil(o.Stack) { var ret string return ret } @@ -365,7 +365,7 @@ func (o *EventDocument) GetStack() string { // GetStackOk returns a tuple with the Stack field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EventDocument) GetStackOk() (*string, bool) { - if o == nil || isNil(o.Stack) { + if o == nil || IsNil(o.Stack) { return nil, false } return o.Stack, true @@ -373,7 +373,7 @@ func (o *EventDocument) GetStackOk() (*string, bool) { // HasStack returns a boolean if a field has been set. func (o *EventDocument) HasStack() bool { - if o != nil && !isNil(o.Stack) { + if o != nil && !IsNil(o.Stack) { return true } @@ -387,7 +387,7 @@ func (o *EventDocument) SetStack(v string) { // GetTrackingNumber returns the TrackingNumber field value if set, zero value otherwise. func (o *EventDocument) GetTrackingNumber() string { - if o == nil || isNil(o.TrackingNumber) { + if o == nil || IsNil(o.TrackingNumber) { var ret string return ret } @@ -397,7 +397,7 @@ func (o *EventDocument) GetTrackingNumber() string { // GetTrackingNumberOk returns a tuple with the TrackingNumber field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EventDocument) GetTrackingNumberOk() (*string, bool) { - if o == nil || isNil(o.TrackingNumber) { + if o == nil || IsNil(o.TrackingNumber) { return nil, false } return o.TrackingNumber, true @@ -405,7 +405,7 @@ func (o *EventDocument) GetTrackingNumberOk() (*string, bool) { // HasTrackingNumber returns a boolean if a field has been set. func (o *EventDocument) HasTrackingNumber() bool { - if o != nil && !isNil(o.TrackingNumber) { + if o != nil && !IsNil(o.TrackingNumber) { return true } @@ -419,7 +419,7 @@ func (o *EventDocument) SetTrackingNumber(v string) { // GetIpAddress returns the IpAddress field value if set, zero value otherwise. func (o *EventDocument) GetIpAddress() string { - if o == nil || isNil(o.IpAddress) { + if o == nil || IsNil(o.IpAddress) { var ret string return ret } @@ -429,7 +429,7 @@ func (o *EventDocument) GetIpAddress() string { // GetIpAddressOk returns a tuple with the IpAddress field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EventDocument) GetIpAddressOk() (*string, bool) { - if o == nil || isNil(o.IpAddress) { + if o == nil || IsNil(o.IpAddress) { return nil, false } return o.IpAddress, true @@ -437,7 +437,7 @@ func (o *EventDocument) GetIpAddressOk() (*string, bool) { // HasIpAddress returns a boolean if a field has been set. func (o *EventDocument) HasIpAddress() bool { - if o != nil && !isNil(o.IpAddress) { + if o != nil && !IsNil(o.IpAddress) { return true } @@ -451,7 +451,7 @@ func (o *EventDocument) SetIpAddress(v string) { // GetDetails returns the Details field value if set, zero value otherwise. func (o *EventDocument) GetDetails() string { - if o == nil || isNil(o.Details) { + if o == nil || IsNil(o.Details) { var ret string return ret } @@ -461,7 +461,7 @@ func (o *EventDocument) GetDetails() string { // GetDetailsOk returns a tuple with the Details field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EventDocument) GetDetailsOk() (*string, bool) { - if o == nil || isNil(o.Details) { + if o == nil || IsNil(o.Details) { return nil, false } return o.Details, true @@ -469,7 +469,7 @@ func (o *EventDocument) GetDetailsOk() (*string, bool) { // HasDetails returns a boolean if a field has been set. func (o *EventDocument) HasDetails() bool { - if o != nil && !isNil(o.Details) { + if o != nil && !IsNil(o.Details) { return true } @@ -483,7 +483,7 @@ func (o *EventDocument) SetDetails(v string) { // GetAttributes returns the Attributes field value if set, zero value otherwise. func (o *EventDocument) GetAttributes() map[string]interface{} { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { var ret map[string]interface{} return ret } @@ -493,7 +493,7 @@ func (o *EventDocument) GetAttributes() map[string]interface{} { // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EventDocument) GetAttributesOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { return map[string]interface{}{}, false } return o.Attributes, true @@ -501,7 +501,7 @@ func (o *EventDocument) GetAttributesOk() (map[string]interface{}, bool) { // HasAttributes returns a boolean if a field has been set. func (o *EventDocument) HasAttributes() bool { - if o != nil && !isNil(o.Attributes) { + if o != nil && !IsNil(o.Attributes) { return true } @@ -515,7 +515,7 @@ func (o *EventDocument) SetAttributes(v map[string]interface{}) { // GetObjects returns the Objects field value if set, zero value otherwise. func (o *EventDocument) GetObjects() []string { - if o == nil || isNil(o.Objects) { + if o == nil || IsNil(o.Objects) { var ret []string return ret } @@ -525,7 +525,7 @@ func (o *EventDocument) GetObjects() []string { // GetObjectsOk returns a tuple with the Objects field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EventDocument) GetObjectsOk() ([]string, bool) { - if o == nil || isNil(o.Objects) { + if o == nil || IsNil(o.Objects) { return nil, false } return o.Objects, true @@ -533,7 +533,7 @@ func (o *EventDocument) GetObjectsOk() ([]string, bool) { // HasObjects returns a boolean if a field has been set. func (o *EventDocument) HasObjects() bool { - if o != nil && !isNil(o.Objects) { + if o != nil && !IsNil(o.Objects) { return true } @@ -547,7 +547,7 @@ func (o *EventDocument) SetObjects(v []string) { // GetOperation returns the Operation field value if set, zero value otherwise. func (o *EventDocument) GetOperation() string { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { var ret string return ret } @@ -557,7 +557,7 @@ func (o *EventDocument) GetOperation() string { // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EventDocument) GetOperationOk() (*string, bool) { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { return nil, false } return o.Operation, true @@ -565,7 +565,7 @@ func (o *EventDocument) GetOperationOk() (*string, bool) { // HasOperation returns a boolean if a field has been set. func (o *EventDocument) HasOperation() bool { - if o != nil && !isNil(o.Operation) { + if o != nil && !IsNil(o.Operation) { return true } @@ -579,7 +579,7 @@ func (o *EventDocument) SetOperation(v string) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *EventDocument) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -589,7 +589,7 @@ func (o *EventDocument) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EventDocument) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -597,7 +597,7 @@ func (o *EventDocument) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *EventDocument) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -611,7 +611,7 @@ func (o *EventDocument) SetStatus(v string) { // GetTechnicalName returns the TechnicalName field value if set, zero value otherwise. func (o *EventDocument) GetTechnicalName() string { - if o == nil || isNil(o.TechnicalName) { + if o == nil || IsNil(o.TechnicalName) { var ret string return ret } @@ -621,7 +621,7 @@ func (o *EventDocument) GetTechnicalName() string { // GetTechnicalNameOk returns a tuple with the TechnicalName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *EventDocument) GetTechnicalNameOk() (*string, bool) { - if o == nil || isNil(o.TechnicalName) { + if o == nil || IsNil(o.TechnicalName) { return nil, false } return o.TechnicalName, true @@ -629,7 +629,7 @@ func (o *EventDocument) GetTechnicalNameOk() (*string, bool) { // HasTechnicalName returns a boolean if a field has been set. func (o *EventDocument) HasTechnicalName() bool { - if o != nil && !isNil(o.TechnicalName) { + if o != nil && !IsNil(o.TechnicalName) { return true } @@ -657,46 +657,46 @@ func (o EventDocument) ToMap() (map[string]interface{}, error) { if o.Created.IsSet() { toSerialize["created"] = o.Created.Get() } - if !isNil(o.Synced) { + if !IsNil(o.Synced) { toSerialize["synced"] = o.Synced } - if !isNil(o.Action) { + if !IsNil(o.Action) { toSerialize["action"] = o.Action } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Actor) { + if !IsNil(o.Actor) { toSerialize["actor"] = o.Actor } - if !isNil(o.Target) { + if !IsNil(o.Target) { toSerialize["target"] = o.Target } - if !isNil(o.Stack) { + if !IsNil(o.Stack) { toSerialize["stack"] = o.Stack } - if !isNil(o.TrackingNumber) { + if !IsNil(o.TrackingNumber) { toSerialize["trackingNumber"] = o.TrackingNumber } - if !isNil(o.IpAddress) { + if !IsNil(o.IpAddress) { toSerialize["ipAddress"] = o.IpAddress } - if !isNil(o.Details) { + if !IsNil(o.Details) { toSerialize["details"] = o.Details } - if !isNil(o.Attributes) { + if !IsNil(o.Attributes) { toSerialize["attributes"] = o.Attributes } - if !isNil(o.Objects) { + if !IsNil(o.Objects) { toSerialize["objects"] = o.Objects } - if !isNil(o.Operation) { + if !IsNil(o.Operation) { toSerialize["operation"] = o.Operation } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } - if !isNil(o.TechnicalName) { + if !IsNil(o.TechnicalName) { toSerialize["technicalName"] = o.TechnicalName } @@ -707,8 +707,8 @@ func (o EventDocument) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *EventDocument) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *EventDocument) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -719,7 +719,7 @@ func (o *EventDocument) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -733,13 +733,17 @@ func (o *EventDocument) UnmarshalJSON(bytes []byte) (err error) { varEventDocument := _EventDocument{} - if err = json.Unmarshal(bytes, &varEventDocument); err == nil { + err = json.Unmarshal(data, &varEventDocument) + + if err != nil { + return err + } + *o = EventDocument(varEventDocument) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "_type") diff --git a/api_v3/model_exception_access_criteria.go b/api_v3/model_exception_access_criteria.go index abf92a1e1..b80fd643a 100644 --- a/api_v3/model_exception_access_criteria.go +++ b/api_v3/model_exception_access_criteria.go @@ -45,7 +45,7 @@ func NewExceptionAccessCriteriaWithDefaults() *ExceptionAccessCriteria { // GetLeftCriteria returns the LeftCriteria field value if set, zero value otherwise. func (o *ExceptionAccessCriteria) GetLeftCriteria() ExceptionCriteria { - if o == nil || isNil(o.LeftCriteria) { + if o == nil || IsNil(o.LeftCriteria) { var ret ExceptionCriteria return ret } @@ -55,7 +55,7 @@ func (o *ExceptionAccessCriteria) GetLeftCriteria() ExceptionCriteria { // GetLeftCriteriaOk returns a tuple with the LeftCriteria field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ExceptionAccessCriteria) GetLeftCriteriaOk() (*ExceptionCriteria, bool) { - if o == nil || isNil(o.LeftCriteria) { + if o == nil || IsNil(o.LeftCriteria) { return nil, false } return o.LeftCriteria, true @@ -63,7 +63,7 @@ func (o *ExceptionAccessCriteria) GetLeftCriteriaOk() (*ExceptionCriteria, bool) // HasLeftCriteria returns a boolean if a field has been set. func (o *ExceptionAccessCriteria) HasLeftCriteria() bool { - if o != nil && !isNil(o.LeftCriteria) { + if o != nil && !IsNil(o.LeftCriteria) { return true } @@ -77,7 +77,7 @@ func (o *ExceptionAccessCriteria) SetLeftCriteria(v ExceptionCriteria) { // GetRightCriteria returns the RightCriteria field value if set, zero value otherwise. func (o *ExceptionAccessCriteria) GetRightCriteria() ExceptionCriteria { - if o == nil || isNil(o.RightCriteria) { + if o == nil || IsNil(o.RightCriteria) { var ret ExceptionCriteria return ret } @@ -87,7 +87,7 @@ func (o *ExceptionAccessCriteria) GetRightCriteria() ExceptionCriteria { // GetRightCriteriaOk returns a tuple with the RightCriteria field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ExceptionAccessCriteria) GetRightCriteriaOk() (*ExceptionCriteria, bool) { - if o == nil || isNil(o.RightCriteria) { + if o == nil || IsNil(o.RightCriteria) { return nil, false } return o.RightCriteria, true @@ -95,7 +95,7 @@ func (o *ExceptionAccessCriteria) GetRightCriteriaOk() (*ExceptionCriteria, bool // HasRightCriteria returns a boolean if a field has been set. func (o *ExceptionAccessCriteria) HasRightCriteria() bool { - if o != nil && !isNil(o.RightCriteria) { + if o != nil && !IsNil(o.RightCriteria) { return true } @@ -117,10 +117,10 @@ func (o ExceptionAccessCriteria) MarshalJSON() ([]byte, error) { func (o ExceptionAccessCriteria) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.LeftCriteria) { + if !IsNil(o.LeftCriteria) { toSerialize["leftCriteria"] = o.LeftCriteria } - if !isNil(o.RightCriteria) { + if !IsNil(o.RightCriteria) { toSerialize["rightCriteria"] = o.RightCriteria } @@ -131,16 +131,20 @@ func (o ExceptionAccessCriteria) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ExceptionAccessCriteria) UnmarshalJSON(bytes []byte) (err error) { +func (o *ExceptionAccessCriteria) UnmarshalJSON(data []byte) (err error) { varExceptionAccessCriteria := _ExceptionAccessCriteria{} - if err = json.Unmarshal(bytes, &varExceptionAccessCriteria); err == nil { + err = json.Unmarshal(data, &varExceptionAccessCriteria) + + if err != nil { + return err + } + *o = ExceptionAccessCriteria(varExceptionAccessCriteria) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "leftCriteria") delete(additionalProperties, "rightCriteria") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_exception_criteria.go b/api_v3/model_exception_criteria.go index bbfda687f..3fa8e34a3 100644 --- a/api_v3/model_exception_criteria.go +++ b/api_v3/model_exception_criteria.go @@ -45,7 +45,7 @@ func NewExceptionCriteriaWithDefaults() *ExceptionCriteria { // GetCriteriaList returns the CriteriaList field value if set, zero value otherwise. func (o *ExceptionCriteria) GetCriteriaList() []ExceptionCriteriaCriteriaListInner { - if o == nil || isNil(o.CriteriaList) { + if o == nil || IsNil(o.CriteriaList) { var ret []ExceptionCriteriaCriteriaListInner return ret } @@ -55,7 +55,7 @@ func (o *ExceptionCriteria) GetCriteriaList() []ExceptionCriteriaCriteriaListInn // GetCriteriaListOk returns a tuple with the CriteriaList field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ExceptionCriteria) GetCriteriaListOk() ([]ExceptionCriteriaCriteriaListInner, bool) { - if o == nil || isNil(o.CriteriaList) { + if o == nil || IsNil(o.CriteriaList) { return nil, false } return o.CriteriaList, true @@ -63,7 +63,7 @@ func (o *ExceptionCriteria) GetCriteriaListOk() ([]ExceptionCriteriaCriteriaList // HasCriteriaList returns a boolean if a field has been set. func (o *ExceptionCriteria) HasCriteriaList() bool { - if o != nil && !isNil(o.CriteriaList) { + if o != nil && !IsNil(o.CriteriaList) { return true } @@ -85,7 +85,7 @@ func (o ExceptionCriteria) MarshalJSON() ([]byte, error) { func (o ExceptionCriteria) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.CriteriaList) { + if !IsNil(o.CriteriaList) { toSerialize["criteriaList"] = o.CriteriaList } @@ -96,16 +96,20 @@ func (o ExceptionCriteria) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ExceptionCriteria) UnmarshalJSON(bytes []byte) (err error) { +func (o *ExceptionCriteria) UnmarshalJSON(data []byte) (err error) { varExceptionCriteria := _ExceptionCriteria{} - if err = json.Unmarshal(bytes, &varExceptionCriteria); err == nil { + err = json.Unmarshal(data, &varExceptionCriteria) + + if err != nil { + return err + } + *o = ExceptionCriteria(varExceptionCriteria) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "criteriaList") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_exception_criteria_access.go b/api_v3/model_exception_criteria_access.go index 408f7aa7d..3bfb88514 100644 --- a/api_v3/model_exception_criteria_access.go +++ b/api_v3/model_exception_criteria_access.go @@ -54,7 +54,7 @@ func NewExceptionCriteriaAccessWithDefaults() *ExceptionCriteriaAccess { // GetType returns the Type field value if set, zero value otherwise. func (o *ExceptionCriteriaAccess) GetType() DtoType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret DtoType return ret } @@ -64,7 +64,7 @@ func (o *ExceptionCriteriaAccess) GetType() DtoType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ExceptionCriteriaAccess) GetTypeOk() (*DtoType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -72,7 +72,7 @@ func (o *ExceptionCriteriaAccess) GetTypeOk() (*DtoType, bool) { // HasType returns a boolean if a field has been set. func (o *ExceptionCriteriaAccess) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -86,7 +86,7 @@ func (o *ExceptionCriteriaAccess) SetType(v DtoType) { // GetId returns the Id field value if set, zero value otherwise. func (o *ExceptionCriteriaAccess) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -96,7 +96,7 @@ func (o *ExceptionCriteriaAccess) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ExceptionCriteriaAccess) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -104,7 +104,7 @@ func (o *ExceptionCriteriaAccess) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ExceptionCriteriaAccess) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -118,7 +118,7 @@ func (o *ExceptionCriteriaAccess) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *ExceptionCriteriaAccess) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -128,7 +128,7 @@ func (o *ExceptionCriteriaAccess) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ExceptionCriteriaAccess) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -136,7 +136,7 @@ func (o *ExceptionCriteriaAccess) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ExceptionCriteriaAccess) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -150,7 +150,7 @@ func (o *ExceptionCriteriaAccess) SetName(v string) { // GetExisting returns the Existing field value if set, zero value otherwise. func (o *ExceptionCriteriaAccess) GetExisting() bool { - if o == nil || isNil(o.Existing) { + if o == nil || IsNil(o.Existing) { var ret bool return ret } @@ -160,7 +160,7 @@ func (o *ExceptionCriteriaAccess) GetExisting() bool { // GetExistingOk returns a tuple with the Existing field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ExceptionCriteriaAccess) GetExistingOk() (*bool, bool) { - if o == nil || isNil(o.Existing) { + if o == nil || IsNil(o.Existing) { return nil, false } return o.Existing, true @@ -168,7 +168,7 @@ func (o *ExceptionCriteriaAccess) GetExistingOk() (*bool, bool) { // HasExisting returns a boolean if a field has been set. func (o *ExceptionCriteriaAccess) HasExisting() bool { - if o != nil && !isNil(o.Existing) { + if o != nil && !IsNil(o.Existing) { return true } @@ -190,16 +190,16 @@ func (o ExceptionCriteriaAccess) MarshalJSON() ([]byte, error) { func (o ExceptionCriteriaAccess) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Existing) { + if !IsNil(o.Existing) { toSerialize["existing"] = o.Existing } @@ -210,16 +210,20 @@ func (o ExceptionCriteriaAccess) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ExceptionCriteriaAccess) UnmarshalJSON(bytes []byte) (err error) { +func (o *ExceptionCriteriaAccess) UnmarshalJSON(data []byte) (err error) { varExceptionCriteriaAccess := _ExceptionCriteriaAccess{} - if err = json.Unmarshal(bytes, &varExceptionCriteriaAccess); err == nil { + err = json.Unmarshal(data, &varExceptionCriteriaAccess) + + if err != nil { + return err + } + *o = ExceptionCriteriaAccess(varExceptionCriteriaAccess) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_exception_criteria_criteria_list_inner.go b/api_v3/model_exception_criteria_criteria_list_inner.go index d6c8a1efc..338c29cc1 100644 --- a/api_v3/model_exception_criteria_criteria_list_inner.go +++ b/api_v3/model_exception_criteria_criteria_list_inner.go @@ -55,7 +55,7 @@ func NewExceptionCriteriaCriteriaListInnerWithDefaults() *ExceptionCriteriaCrite // GetType returns the Type field value if set, zero value otherwise. func (o *ExceptionCriteriaCriteriaListInner) GetType() map[string]interface{} { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret map[string]interface{} return ret } @@ -65,7 +65,7 @@ func (o *ExceptionCriteriaCriteriaListInner) GetType() map[string]interface{} { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ExceptionCriteriaCriteriaListInner) GetTypeOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return map[string]interface{}{}, false } return o.Type, true @@ -73,7 +73,7 @@ func (o *ExceptionCriteriaCriteriaListInner) GetTypeOk() (map[string]interface{} // HasType returns a boolean if a field has been set. func (o *ExceptionCriteriaCriteriaListInner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -87,7 +87,7 @@ func (o *ExceptionCriteriaCriteriaListInner) SetType(v map[string]interface{}) { // GetId returns the Id field value if set, zero value otherwise. func (o *ExceptionCriteriaCriteriaListInner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -97,7 +97,7 @@ func (o *ExceptionCriteriaCriteriaListInner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ExceptionCriteriaCriteriaListInner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -105,7 +105,7 @@ func (o *ExceptionCriteriaCriteriaListInner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ExceptionCriteriaCriteriaListInner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -119,7 +119,7 @@ func (o *ExceptionCriteriaCriteriaListInner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *ExceptionCriteriaCriteriaListInner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -129,7 +129,7 @@ func (o *ExceptionCriteriaCriteriaListInner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ExceptionCriteriaCriteriaListInner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -137,7 +137,7 @@ func (o *ExceptionCriteriaCriteriaListInner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ExceptionCriteriaCriteriaListInner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -151,7 +151,7 @@ func (o *ExceptionCriteriaCriteriaListInner) SetName(v string) { // GetExisting returns the Existing field value if set, zero value otherwise. func (o *ExceptionCriteriaCriteriaListInner) GetExisting() bool { - if o == nil || isNil(o.Existing) { + if o == nil || IsNil(o.Existing) { var ret bool return ret } @@ -161,7 +161,7 @@ func (o *ExceptionCriteriaCriteriaListInner) GetExisting() bool { // GetExistingOk returns a tuple with the Existing field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ExceptionCriteriaCriteriaListInner) GetExistingOk() (*bool, bool) { - if o == nil || isNil(o.Existing) { + if o == nil || IsNil(o.Existing) { return nil, false } return o.Existing, true @@ -169,7 +169,7 @@ func (o *ExceptionCriteriaCriteriaListInner) GetExistingOk() (*bool, bool) { // HasExisting returns a boolean if a field has been set. func (o *ExceptionCriteriaCriteriaListInner) HasExisting() bool { - if o != nil && !isNil(o.Existing) { + if o != nil && !IsNil(o.Existing) { return true } @@ -191,16 +191,16 @@ func (o ExceptionCriteriaCriteriaListInner) MarshalJSON() ([]byte, error) { func (o ExceptionCriteriaCriteriaListInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Existing) { + if !IsNil(o.Existing) { toSerialize["existing"] = o.Existing } @@ -211,16 +211,20 @@ func (o ExceptionCriteriaCriteriaListInner) ToMap() (map[string]interface{}, err return toSerialize, nil } -func (o *ExceptionCriteriaCriteriaListInner) UnmarshalJSON(bytes []byte) (err error) { +func (o *ExceptionCriteriaCriteriaListInner) UnmarshalJSON(data []byte) (err error) { varExceptionCriteriaCriteriaListInner := _ExceptionCriteriaCriteriaListInner{} - if err = json.Unmarshal(bytes, &varExceptionCriteriaCriteriaListInner); err == nil { + err = json.Unmarshal(data, &varExceptionCriteriaCriteriaListInner) + + if err != nil { + return err + } + *o = ExceptionCriteriaCriteriaListInner(varExceptionCriteriaCriteriaListInner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_expansion_item.go b/api_v3/model_expansion_item.go index 001df6062..56f70bdc4 100644 --- a/api_v3/model_expansion_item.go +++ b/api_v3/model_expansion_item.go @@ -50,7 +50,7 @@ func NewExpansionItemWithDefaults() *ExpansionItem { // GetAccountId returns the AccountId field value if set, zero value otherwise. func (o *ExpansionItem) GetAccountId() string { - if o == nil || isNil(o.AccountId) { + if o == nil || IsNil(o.AccountId) { var ret string return ret } @@ -60,7 +60,7 @@ func (o *ExpansionItem) GetAccountId() string { // GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ExpansionItem) GetAccountIdOk() (*string, bool) { - if o == nil || isNil(o.AccountId) { + if o == nil || IsNil(o.AccountId) { return nil, false } return o.AccountId, true @@ -68,7 +68,7 @@ func (o *ExpansionItem) GetAccountIdOk() (*string, bool) { // HasAccountId returns a boolean if a field has been set. func (o *ExpansionItem) HasAccountId() bool { - if o != nil && !isNil(o.AccountId) { + if o != nil && !IsNil(o.AccountId) { return true } @@ -82,7 +82,7 @@ func (o *ExpansionItem) SetAccountId(v string) { // GetCause returns the Cause field value if set, zero value otherwise. func (o *ExpansionItem) GetCause() string { - if o == nil || isNil(o.Cause) { + if o == nil || IsNil(o.Cause) { var ret string return ret } @@ -92,7 +92,7 @@ func (o *ExpansionItem) GetCause() string { // GetCauseOk returns a tuple with the Cause field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ExpansionItem) GetCauseOk() (*string, bool) { - if o == nil || isNil(o.Cause) { + if o == nil || IsNil(o.Cause) { return nil, false } return o.Cause, true @@ -100,7 +100,7 @@ func (o *ExpansionItem) GetCauseOk() (*string, bool) { // HasCause returns a boolean if a field has been set. func (o *ExpansionItem) HasCause() bool { - if o != nil && !isNil(o.Cause) { + if o != nil && !IsNil(o.Cause) { return true } @@ -114,7 +114,7 @@ func (o *ExpansionItem) SetCause(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *ExpansionItem) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -124,7 +124,7 @@ func (o *ExpansionItem) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ExpansionItem) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -132,7 +132,7 @@ func (o *ExpansionItem) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ExpansionItem) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -146,7 +146,7 @@ func (o *ExpansionItem) SetName(v string) { // GetAttributeRequests returns the AttributeRequests field value if set, zero value otherwise. func (o *ExpansionItem) GetAttributeRequests() []AttributeRequest { - if o == nil || isNil(o.AttributeRequests) { + if o == nil || IsNil(o.AttributeRequests) { var ret []AttributeRequest return ret } @@ -156,7 +156,7 @@ func (o *ExpansionItem) GetAttributeRequests() []AttributeRequest { // GetAttributeRequestsOk returns a tuple with the AttributeRequests field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ExpansionItem) GetAttributeRequestsOk() ([]AttributeRequest, bool) { - if o == nil || isNil(o.AttributeRequests) { + if o == nil || IsNil(o.AttributeRequests) { return nil, false } return o.AttributeRequests, true @@ -164,7 +164,7 @@ func (o *ExpansionItem) GetAttributeRequestsOk() ([]AttributeRequest, bool) { // HasAttributeRequests returns a boolean if a field has been set. func (o *ExpansionItem) HasAttributeRequests() bool { - if o != nil && !isNil(o.AttributeRequests) { + if o != nil && !IsNil(o.AttributeRequests) { return true } @@ -178,7 +178,7 @@ func (o *ExpansionItem) SetAttributeRequests(v []AttributeRequest) { // GetSource returns the Source field value if set, zero value otherwise. func (o *ExpansionItem) GetSource() AccountSource { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { var ret AccountSource return ret } @@ -188,7 +188,7 @@ func (o *ExpansionItem) GetSource() AccountSource { // GetSourceOk returns a tuple with the Source field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ExpansionItem) GetSourceOk() (*AccountSource, bool) { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { return nil, false } return o.Source, true @@ -196,7 +196,7 @@ func (o *ExpansionItem) GetSourceOk() (*AccountSource, bool) { // HasSource returns a boolean if a field has been set. func (o *ExpansionItem) HasSource() bool { - if o != nil && !isNil(o.Source) { + if o != nil && !IsNil(o.Source) { return true } @@ -218,19 +218,19 @@ func (o ExpansionItem) MarshalJSON() ([]byte, error) { func (o ExpansionItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.AccountId) { + if !IsNil(o.AccountId) { toSerialize["accountId"] = o.AccountId } - if !isNil(o.Cause) { + if !IsNil(o.Cause) { toSerialize["cause"] = o.Cause } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.AttributeRequests) { + if !IsNil(o.AttributeRequests) { toSerialize["attributeRequests"] = o.AttributeRequests } - if !isNil(o.Source) { + if !IsNil(o.Source) { toSerialize["source"] = o.Source } @@ -241,16 +241,20 @@ func (o ExpansionItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ExpansionItem) UnmarshalJSON(bytes []byte) (err error) { +func (o *ExpansionItem) UnmarshalJSON(data []byte) (err error) { varExpansionItem := _ExpansionItem{} - if err = json.Unmarshal(bytes, &varExpansionItem); err == nil { + err = json.Unmarshal(data, &varExpansionItem) + + if err != nil { + return err + } + *o = ExpansionItem(varExpansionItem) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "accountId") delete(additionalProperties, "cause") delete(additionalProperties, "name") diff --git a/api_v3/model_expression.go b/api_v3/model_expression.go index e63063c4e..cab9b4f88 100644 --- a/api_v3/model_expression.go +++ b/api_v3/model_expression.go @@ -50,7 +50,7 @@ func NewExpressionWithDefaults() *Expression { // GetOperator returns the Operator field value if set, zero value otherwise. func (o *Expression) GetOperator() string { - if o == nil || isNil(o.Operator) { + if o == nil || IsNil(o.Operator) { var ret string return ret } @@ -60,7 +60,7 @@ func (o *Expression) GetOperator() string { // GetOperatorOk returns a tuple with the Operator field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Expression) GetOperatorOk() (*string, bool) { - if o == nil || isNil(o.Operator) { + if o == nil || IsNil(o.Operator) { return nil, false } return o.Operator, true @@ -68,7 +68,7 @@ func (o *Expression) GetOperatorOk() (*string, bool) { // HasOperator returns a boolean if a field has been set. func (o *Expression) HasOperator() bool { - if o != nil && !isNil(o.Operator) { + if o != nil && !IsNil(o.Operator) { return true } @@ -82,7 +82,7 @@ func (o *Expression) SetOperator(v string) { // GetAttribute returns the Attribute field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Expression) GetAttribute() string { - if o == nil || isNil(o.Attribute.Get()) { + if o == nil || IsNil(o.Attribute.Get()) { var ret string return ret } @@ -124,7 +124,7 @@ func (o *Expression) UnsetAttribute() { // GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Expression) GetValue() Value { - if o == nil || isNil(o.Value.Get()) { + if o == nil || IsNil(o.Value.Get()) { var ret Value return ret } @@ -177,7 +177,7 @@ func (o *Expression) GetChildren() []ExpressionChildrenInner { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Expression) GetChildrenOk() ([]ExpressionChildrenInner, bool) { - if o == nil || isNil(o.Children) { + if o == nil || IsNil(o.Children) { return nil, false } return o.Children, true @@ -185,7 +185,7 @@ func (o *Expression) GetChildrenOk() ([]ExpressionChildrenInner, bool) { // HasChildren returns a boolean if a field has been set. func (o *Expression) HasChildren() bool { - if o != nil && isNil(o.Children) { + if o != nil && !IsNil(o.Children) { return true } @@ -207,7 +207,7 @@ func (o Expression) MarshalJSON() ([]byte, error) { func (o Expression) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Operator) { + if !IsNil(o.Operator) { toSerialize["operator"] = o.Operator } if o.Attribute.IsSet() { @@ -227,16 +227,20 @@ func (o Expression) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Expression) UnmarshalJSON(bytes []byte) (err error) { +func (o *Expression) UnmarshalJSON(data []byte) (err error) { varExpression := _Expression{} - if err = json.Unmarshal(bytes, &varExpression); err == nil { + err = json.Unmarshal(data, &varExpression) + + if err != nil { + return err + } + *o = Expression(varExpression) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "operator") delete(additionalProperties, "attribute") delete(additionalProperties, "value") diff --git a/api_v3/model_expression_children_inner.go b/api_v3/model_expression_children_inner.go index 67edcecdd..da9d75ddd 100644 --- a/api_v3/model_expression_children_inner.go +++ b/api_v3/model_expression_children_inner.go @@ -50,7 +50,7 @@ func NewExpressionChildrenInnerWithDefaults() *ExpressionChildrenInner { // GetOperator returns the Operator field value if set, zero value otherwise. func (o *ExpressionChildrenInner) GetOperator() string { - if o == nil || isNil(o.Operator) { + if o == nil || IsNil(o.Operator) { var ret string return ret } @@ -60,7 +60,7 @@ func (o *ExpressionChildrenInner) GetOperator() string { // GetOperatorOk returns a tuple with the Operator field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ExpressionChildrenInner) GetOperatorOk() (*string, bool) { - if o == nil || isNil(o.Operator) { + if o == nil || IsNil(o.Operator) { return nil, false } return o.Operator, true @@ -68,7 +68,7 @@ func (o *ExpressionChildrenInner) GetOperatorOk() (*string, bool) { // HasOperator returns a boolean if a field has been set. func (o *ExpressionChildrenInner) HasOperator() bool { - if o != nil && !isNil(o.Operator) { + if o != nil && !IsNil(o.Operator) { return true } @@ -82,7 +82,7 @@ func (o *ExpressionChildrenInner) SetOperator(v string) { // GetAttribute returns the Attribute field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ExpressionChildrenInner) GetAttribute() string { - if o == nil || isNil(o.Attribute.Get()) { + if o == nil || IsNil(o.Attribute.Get()) { var ret string return ret } @@ -124,7 +124,7 @@ func (o *ExpressionChildrenInner) UnsetAttribute() { // GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ExpressionChildrenInner) GetValue() Value { - if o == nil || isNil(o.Value.Get()) { + if o == nil || IsNil(o.Value.Get()) { var ret Value return ret } @@ -166,7 +166,7 @@ func (o *ExpressionChildrenInner) UnsetValue() { // GetChildren returns the Children field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ExpressionChildrenInner) GetChildren() string { - if o == nil || isNil(o.Children.Get()) { + if o == nil || IsNil(o.Children.Get()) { var ret string return ret } @@ -216,7 +216,7 @@ func (o ExpressionChildrenInner) MarshalJSON() ([]byte, error) { func (o ExpressionChildrenInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Operator) { + if !IsNil(o.Operator) { toSerialize["operator"] = o.Operator } if o.Attribute.IsSet() { @@ -236,16 +236,20 @@ func (o ExpressionChildrenInner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ExpressionChildrenInner) UnmarshalJSON(bytes []byte) (err error) { +func (o *ExpressionChildrenInner) UnmarshalJSON(data []byte) (err error) { varExpressionChildrenInner := _ExpressionChildrenInner{} - if err = json.Unmarshal(bytes, &varExpressionChildrenInner); err == nil { + err = json.Unmarshal(data, &varExpressionChildrenInner) + + if err != nil { + return err + } + *o = ExpressionChildrenInner(varExpressionChildrenInner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "operator") delete(additionalProperties, "attribute") delete(additionalProperties, "value") diff --git a/api_v3/model_federation_protocol_details.go b/api_v3/model_federation_protocol_details.go index 51e20d5ef..e1de86fca 100644 --- a/api_v3/model_federation_protocol_details.go +++ b/api_v3/model_federation_protocol_details.go @@ -47,7 +47,7 @@ func NewFederationProtocolDetailsWithDefaults() *FederationProtocolDetails { // GetRole returns the Role field value if set, zero value otherwise. func (o *FederationProtocolDetails) GetRole() string { - if o == nil || isNil(o.Role) { + if o == nil || IsNil(o.Role) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *FederationProtocolDetails) GetRole() string { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FederationProtocolDetails) GetRoleOk() (*string, bool) { - if o == nil || isNil(o.Role) { + if o == nil || IsNil(o.Role) { return nil, false } return o.Role, true @@ -65,7 +65,7 @@ func (o *FederationProtocolDetails) GetRoleOk() (*string, bool) { // HasRole returns a boolean if a field has been set. func (o *FederationProtocolDetails) HasRole() bool { - if o != nil && !isNil(o.Role) { + if o != nil && !IsNil(o.Role) { return true } @@ -79,7 +79,7 @@ func (o *FederationProtocolDetails) SetRole(v string) { // GetEntityId returns the EntityId field value if set, zero value otherwise. func (o *FederationProtocolDetails) GetEntityId() string { - if o == nil || isNil(o.EntityId) { + if o == nil || IsNil(o.EntityId) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *FederationProtocolDetails) GetEntityId() string { // GetEntityIdOk returns a tuple with the EntityId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FederationProtocolDetails) GetEntityIdOk() (*string, bool) { - if o == nil || isNil(o.EntityId) { + if o == nil || IsNil(o.EntityId) { return nil, false } return o.EntityId, true @@ -97,7 +97,7 @@ func (o *FederationProtocolDetails) GetEntityIdOk() (*string, bool) { // HasEntityId returns a boolean if a field has been set. func (o *FederationProtocolDetails) HasEntityId() bool { - if o != nil && !isNil(o.EntityId) { + if o != nil && !IsNil(o.EntityId) { return true } @@ -119,10 +119,10 @@ func (o FederationProtocolDetails) MarshalJSON() ([]byte, error) { func (o FederationProtocolDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Role) { + if !IsNil(o.Role) { toSerialize["role"] = o.Role } - if !isNil(o.EntityId) { + if !IsNil(o.EntityId) { toSerialize["entityId"] = o.EntityId } @@ -133,16 +133,20 @@ func (o FederationProtocolDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FederationProtocolDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *FederationProtocolDetails) UnmarshalJSON(data []byte) (err error) { varFederationProtocolDetails := _FederationProtocolDetails{} - if err = json.Unmarshal(bytes, &varFederationProtocolDetails); err == nil { + err = json.Unmarshal(data, &varFederationProtocolDetails) + + if err != nil { + return err + } + *o = FederationProtocolDetails(varFederationProtocolDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "role") delete(additionalProperties, "entityId") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_field_details_dto.go b/api_v3/model_field_details_dto.go index 4a1ae5e2e..9508e6cfb 100644 --- a/api_v3/model_field_details_dto.go +++ b/api_v3/model_field_details_dto.go @@ -59,7 +59,7 @@ func NewFieldDetailsDtoWithDefaults() *FieldDetailsDto { // GetName returns the Name field value if set, zero value otherwise. func (o *FieldDetailsDto) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -69,7 +69,7 @@ func (o *FieldDetailsDto) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FieldDetailsDto) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -77,7 +77,7 @@ func (o *FieldDetailsDto) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *FieldDetailsDto) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -91,7 +91,7 @@ func (o *FieldDetailsDto) SetName(v string) { // GetTransform returns the Transform field value if set, zero value otherwise. func (o *FieldDetailsDto) GetTransform() map[string]interface{} { - if o == nil || isNil(o.Transform) { + if o == nil || IsNil(o.Transform) { var ret map[string]interface{} return ret } @@ -101,7 +101,7 @@ func (o *FieldDetailsDto) GetTransform() map[string]interface{} { // GetTransformOk returns a tuple with the Transform field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FieldDetailsDto) GetTransformOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Transform) { + if o == nil || IsNil(o.Transform) { return map[string]interface{}{}, false } return o.Transform, true @@ -109,7 +109,7 @@ func (o *FieldDetailsDto) GetTransformOk() (map[string]interface{}, bool) { // HasTransform returns a boolean if a field has been set. func (o *FieldDetailsDto) HasTransform() bool { - if o != nil && !isNil(o.Transform) { + if o != nil && !IsNil(o.Transform) { return true } @@ -123,7 +123,7 @@ func (o *FieldDetailsDto) SetTransform(v map[string]interface{}) { // GetAttributes returns the Attributes field value if set, zero value otherwise. func (o *FieldDetailsDto) GetAttributes() map[string]interface{} { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { var ret map[string]interface{} return ret } @@ -133,7 +133,7 @@ func (o *FieldDetailsDto) GetAttributes() map[string]interface{} { // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FieldDetailsDto) GetAttributesOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { return map[string]interface{}{}, false } return o.Attributes, true @@ -141,7 +141,7 @@ func (o *FieldDetailsDto) GetAttributesOk() (map[string]interface{}, bool) { // HasAttributes returns a boolean if a field has been set. func (o *FieldDetailsDto) HasAttributes() bool { - if o != nil && !isNil(o.Attributes) { + if o != nil && !IsNil(o.Attributes) { return true } @@ -155,7 +155,7 @@ func (o *FieldDetailsDto) SetAttributes(v map[string]interface{}) { // GetIsRequired returns the IsRequired field value if set, zero value otherwise. func (o *FieldDetailsDto) GetIsRequired() bool { - if o == nil || isNil(o.IsRequired) { + if o == nil || IsNil(o.IsRequired) { var ret bool return ret } @@ -165,7 +165,7 @@ func (o *FieldDetailsDto) GetIsRequired() bool { // GetIsRequiredOk returns a tuple with the IsRequired field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FieldDetailsDto) GetIsRequiredOk() (*bool, bool) { - if o == nil || isNil(o.IsRequired) { + if o == nil || IsNil(o.IsRequired) { return nil, false } return o.IsRequired, true @@ -173,7 +173,7 @@ func (o *FieldDetailsDto) GetIsRequiredOk() (*bool, bool) { // HasIsRequired returns a boolean if a field has been set. func (o *FieldDetailsDto) HasIsRequired() bool { - if o != nil && !isNil(o.IsRequired) { + if o != nil && !IsNil(o.IsRequired) { return true } @@ -187,7 +187,7 @@ func (o *FieldDetailsDto) SetIsRequired(v bool) { // GetType returns the Type field value if set, zero value otherwise. func (o *FieldDetailsDto) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -197,7 +197,7 @@ func (o *FieldDetailsDto) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FieldDetailsDto) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -205,7 +205,7 @@ func (o *FieldDetailsDto) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *FieldDetailsDto) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -219,7 +219,7 @@ func (o *FieldDetailsDto) SetType(v string) { // GetIsMultiValued returns the IsMultiValued field value if set, zero value otherwise. func (o *FieldDetailsDto) GetIsMultiValued() bool { - if o == nil || isNil(o.IsMultiValued) { + if o == nil || IsNil(o.IsMultiValued) { var ret bool return ret } @@ -229,7 +229,7 @@ func (o *FieldDetailsDto) GetIsMultiValued() bool { // GetIsMultiValuedOk returns a tuple with the IsMultiValued field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FieldDetailsDto) GetIsMultiValuedOk() (*bool, bool) { - if o == nil || isNil(o.IsMultiValued) { + if o == nil || IsNil(o.IsMultiValued) { return nil, false } return o.IsMultiValued, true @@ -237,7 +237,7 @@ func (o *FieldDetailsDto) GetIsMultiValuedOk() (*bool, bool) { // HasIsMultiValued returns a boolean if a field has been set. func (o *FieldDetailsDto) HasIsMultiValued() bool { - if o != nil && !isNil(o.IsMultiValued) { + if o != nil && !IsNil(o.IsMultiValued) { return true } @@ -259,20 +259,22 @@ func (o FieldDetailsDto) MarshalJSON() ([]byte, error) { func (o FieldDetailsDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Transform) { + if !IsNil(o.Transform) { toSerialize["transform"] = o.Transform } - if !isNil(o.Attributes) { + if !IsNil(o.Attributes) { toSerialize["attributes"] = o.Attributes } - // skip: isRequired is readOnly - if !isNil(o.Type) { + if !IsNil(o.IsRequired) { + toSerialize["isRequired"] = o.IsRequired + } + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.IsMultiValued) { + if !IsNil(o.IsMultiValued) { toSerialize["isMultiValued"] = o.IsMultiValued } @@ -283,16 +285,20 @@ func (o FieldDetailsDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FieldDetailsDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *FieldDetailsDto) UnmarshalJSON(data []byte) (err error) { varFieldDetailsDto := _FieldDetailsDto{} - if err = json.Unmarshal(bytes, &varFieldDetailsDto); err == nil { + err = json.Unmarshal(data, &varFieldDetailsDto) + + if err != nil { + return err + } + *o = FieldDetailsDto(varFieldDetailsDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "transform") delete(additionalProperties, "attributes") diff --git a/api_v3/model_filter.go b/api_v3/model_filter.go index 9e19e393d..e9602960d 100644 --- a/api_v3/model_filter.go +++ b/api_v3/model_filter.go @@ -53,7 +53,7 @@ func NewFilterWithDefaults() *Filter { // GetType returns the Type field value if set, zero value otherwise. func (o *Filter) GetType() FilterType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret FilterType return ret } @@ -63,7 +63,7 @@ func (o *Filter) GetType() FilterType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Filter) GetTypeOk() (*FilterType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -71,7 +71,7 @@ func (o *Filter) GetTypeOk() (*FilterType, bool) { // HasType returns a boolean if a field has been set. func (o *Filter) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -85,7 +85,7 @@ func (o *Filter) SetType(v FilterType) { // GetRange returns the Range field value if set, zero value otherwise. func (o *Filter) GetRange() Range { - if o == nil || isNil(o.Range) { + if o == nil || IsNil(o.Range) { var ret Range return ret } @@ -95,7 +95,7 @@ func (o *Filter) GetRange() Range { // GetRangeOk returns a tuple with the Range field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Filter) GetRangeOk() (*Range, bool) { - if o == nil || isNil(o.Range) { + if o == nil || IsNil(o.Range) { return nil, false } return o.Range, true @@ -103,7 +103,7 @@ func (o *Filter) GetRangeOk() (*Range, bool) { // HasRange returns a boolean if a field has been set. func (o *Filter) HasRange() bool { - if o != nil && !isNil(o.Range) { + if o != nil && !IsNil(o.Range) { return true } @@ -117,7 +117,7 @@ func (o *Filter) SetRange(v Range) { // GetTerms returns the Terms field value if set, zero value otherwise. func (o *Filter) GetTerms() []string { - if o == nil || isNil(o.Terms) { + if o == nil || IsNil(o.Terms) { var ret []string return ret } @@ -127,7 +127,7 @@ func (o *Filter) GetTerms() []string { // GetTermsOk returns a tuple with the Terms field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Filter) GetTermsOk() ([]string, bool) { - if o == nil || isNil(o.Terms) { + if o == nil || IsNil(o.Terms) { return nil, false } return o.Terms, true @@ -135,7 +135,7 @@ func (o *Filter) GetTermsOk() ([]string, bool) { // HasTerms returns a boolean if a field has been set. func (o *Filter) HasTerms() bool { - if o != nil && !isNil(o.Terms) { + if o != nil && !IsNil(o.Terms) { return true } @@ -149,7 +149,7 @@ func (o *Filter) SetTerms(v []string) { // GetExclude returns the Exclude field value if set, zero value otherwise. func (o *Filter) GetExclude() bool { - if o == nil || isNil(o.Exclude) { + if o == nil || IsNil(o.Exclude) { var ret bool return ret } @@ -159,7 +159,7 @@ func (o *Filter) GetExclude() bool { // GetExcludeOk returns a tuple with the Exclude field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Filter) GetExcludeOk() (*bool, bool) { - if o == nil || isNil(o.Exclude) { + if o == nil || IsNil(o.Exclude) { return nil, false } return o.Exclude, true @@ -167,7 +167,7 @@ func (o *Filter) GetExcludeOk() (*bool, bool) { // HasExclude returns a boolean if a field has been set. func (o *Filter) HasExclude() bool { - if o != nil && !isNil(o.Exclude) { + if o != nil && !IsNil(o.Exclude) { return true } @@ -189,16 +189,16 @@ func (o Filter) MarshalJSON() ([]byte, error) { func (o Filter) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Range) { + if !IsNil(o.Range) { toSerialize["range"] = o.Range } - if !isNil(o.Terms) { + if !IsNil(o.Terms) { toSerialize["terms"] = o.Terms } - if !isNil(o.Exclude) { + if !IsNil(o.Exclude) { toSerialize["exclude"] = o.Exclude } @@ -209,16 +209,20 @@ func (o Filter) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Filter) UnmarshalJSON(bytes []byte) (err error) { +func (o *Filter) UnmarshalJSON(data []byte) (err error) { varFilter := _Filter{} - if err = json.Unmarshal(bytes, &varFilter); err == nil { + err = json.Unmarshal(data, &varFilter) + + if err != nil { + return err + } + *o = Filter(varFilter) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "range") delete(additionalProperties, "terms") diff --git a/api_v3/model_filter_aggregation.go b/api_v3/model_filter_aggregation.go index ac34fe7e2..7b1dba4d6 100644 --- a/api_v3/model_filter_aggregation.go +++ b/api_v3/model_filter_aggregation.go @@ -82,7 +82,7 @@ func (o *FilterAggregation) SetName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *FilterAggregation) GetType() SearchFilterType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret SearchFilterType return ret } @@ -92,7 +92,7 @@ func (o *FilterAggregation) GetType() SearchFilterType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FilterAggregation) GetTypeOk() (*SearchFilterType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -100,7 +100,7 @@ func (o *FilterAggregation) GetTypeOk() (*SearchFilterType, bool) { // HasType returns a boolean if a field has been set. func (o *FilterAggregation) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -171,7 +171,7 @@ func (o FilterAggregation) MarshalJSON() ([]byte, error) { func (o FilterAggregation) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } toSerialize["field"] = o.Field @@ -184,8 +184,8 @@ func (o FilterAggregation) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FilterAggregation) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *FilterAggregation) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -196,7 +196,7 @@ func (o *FilterAggregation) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -210,13 +210,17 @@ func (o *FilterAggregation) UnmarshalJSON(bytes []byte) (err error) { varFilterAggregation := _FilterAggregation{} - if err = json.Unmarshal(bytes, &varFilterAggregation); err == nil { + err = json.Unmarshal(data, &varFilterAggregation) + + if err != nil { + return err + } + *o = FilterAggregation(varFilterAggregation) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "type") delete(additionalProperties, "field") diff --git a/api_v3/model_form_details.go b/api_v3/model_form_details.go index 78dd60096..674a95196 100644 --- a/api_v3/model_form_details.go +++ b/api_v3/model_form_details.go @@ -55,7 +55,7 @@ func NewFormDetailsWithDefaults() *FormDetails { // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FormDetails) GetId() string { - if o == nil || isNil(o.Id.Get()) { + if o == nil || IsNil(o.Id.Get()) { var ret string return ret } @@ -97,7 +97,7 @@ func (o *FormDetails) UnsetId() { // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FormDetails) GetName() string { - if o == nil || isNil(o.Name.Get()) { + if o == nil || IsNil(o.Name.Get()) { var ret string return ret } @@ -139,7 +139,7 @@ func (o *FormDetails) UnsetName() { // GetTitle returns the Title field value if set, zero value otherwise. func (o *FormDetails) GetTitle() string { - if o == nil || isNil(o.Title) { + if o == nil || IsNil(o.Title) { var ret string return ret } @@ -149,7 +149,7 @@ func (o *FormDetails) GetTitle() string { // GetTitleOk returns a tuple with the Title field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FormDetails) GetTitleOk() (*string, bool) { - if o == nil || isNil(o.Title) { + if o == nil || IsNil(o.Title) { return nil, false } return o.Title, true @@ -157,7 +157,7 @@ func (o *FormDetails) GetTitleOk() (*string, bool) { // HasTitle returns a boolean if a field has been set. func (o *FormDetails) HasTitle() bool { - if o != nil && !isNil(o.Title) { + if o != nil && !IsNil(o.Title) { return true } @@ -171,7 +171,7 @@ func (o *FormDetails) SetTitle(v string) { // GetSubtitle returns the Subtitle field value if set, zero value otherwise. func (o *FormDetails) GetSubtitle() string { - if o == nil || isNil(o.Subtitle) { + if o == nil || IsNil(o.Subtitle) { var ret string return ret } @@ -181,7 +181,7 @@ func (o *FormDetails) GetSubtitle() string { // GetSubtitleOk returns a tuple with the Subtitle field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FormDetails) GetSubtitleOk() (*string, bool) { - if o == nil || isNil(o.Subtitle) { + if o == nil || IsNil(o.Subtitle) { return nil, false } return o.Subtitle, true @@ -189,7 +189,7 @@ func (o *FormDetails) GetSubtitleOk() (*string, bool) { // HasSubtitle returns a boolean if a field has been set. func (o *FormDetails) HasSubtitle() bool { - if o != nil && !isNil(o.Subtitle) { + if o != nil && !IsNil(o.Subtitle) { return true } @@ -203,7 +203,7 @@ func (o *FormDetails) SetSubtitle(v string) { // GetTargetUser returns the TargetUser field value if set, zero value otherwise. func (o *FormDetails) GetTargetUser() string { - if o == nil || isNil(o.TargetUser) { + if o == nil || IsNil(o.TargetUser) { var ret string return ret } @@ -213,7 +213,7 @@ func (o *FormDetails) GetTargetUser() string { // GetTargetUserOk returns a tuple with the TargetUser field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FormDetails) GetTargetUserOk() (*string, bool) { - if o == nil || isNil(o.TargetUser) { + if o == nil || IsNil(o.TargetUser) { return nil, false } return o.TargetUser, true @@ -221,7 +221,7 @@ func (o *FormDetails) GetTargetUserOk() (*string, bool) { // HasTargetUser returns a boolean if a field has been set. func (o *FormDetails) HasTargetUser() bool { - if o != nil && !isNil(o.TargetUser) { + if o != nil && !IsNil(o.TargetUser) { return true } @@ -235,7 +235,7 @@ func (o *FormDetails) SetTargetUser(v string) { // GetSections returns the Sections field value if set, zero value otherwise. func (o *FormDetails) GetSections() []SectionDetails { - if o == nil || isNil(o.Sections) { + if o == nil || IsNil(o.Sections) { var ret []SectionDetails return ret } @@ -245,7 +245,7 @@ func (o *FormDetails) GetSections() []SectionDetails { // GetSectionsOk returns a tuple with the Sections field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FormDetails) GetSectionsOk() ([]SectionDetails, bool) { - if o == nil || isNil(o.Sections) { + if o == nil || IsNil(o.Sections) { return nil, false } return o.Sections, true @@ -253,7 +253,7 @@ func (o *FormDetails) GetSectionsOk() ([]SectionDetails, bool) { // HasSections returns a boolean if a field has been set. func (o *FormDetails) HasSections() bool { - if o != nil && !isNil(o.Sections) { + if o != nil && !IsNil(o.Sections) { return true } @@ -281,16 +281,16 @@ func (o FormDetails) ToMap() (map[string]interface{}, error) { if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() } - if !isNil(o.Title) { + if !IsNil(o.Title) { toSerialize["title"] = o.Title } - if !isNil(o.Subtitle) { + if !IsNil(o.Subtitle) { toSerialize["subtitle"] = o.Subtitle } - if !isNil(o.TargetUser) { + if !IsNil(o.TargetUser) { toSerialize["targetUser"] = o.TargetUser } - if !isNil(o.Sections) { + if !IsNil(o.Sections) { toSerialize["sections"] = o.Sections } @@ -301,16 +301,20 @@ func (o FormDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *FormDetails) UnmarshalJSON(data []byte) (err error) { varFormDetails := _FormDetails{} - if err = json.Unmarshal(bytes, &varFormDetails); err == nil { + err = json.Unmarshal(data, &varFormDetails) + + if err != nil { + return err + } + *o = FormDetails(varFormDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "title") diff --git a/api_v3/model_form_item_details.go b/api_v3/model_form_item_details.go index f3353897f..3dcf8f0a6 100644 --- a/api_v3/model_form_item_details.go +++ b/api_v3/model_form_item_details.go @@ -45,7 +45,7 @@ func NewFormItemDetailsWithDefaults() *FormItemDetails { // GetName returns the Name field value if set, zero value otherwise. func (o *FormItemDetails) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -55,7 +55,7 @@ func (o *FormItemDetails) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FormItemDetails) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -63,7 +63,7 @@ func (o *FormItemDetails) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *FormItemDetails) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -85,7 +85,7 @@ func (o FormItemDetails) MarshalJSON() ([]byte, error) { func (o FormItemDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -96,16 +96,20 @@ func (o FormItemDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FormItemDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *FormItemDetails) UnmarshalJSON(data []byte) (err error) { varFormItemDetails := _FormItemDetails{} - if err = json.Unmarshal(bytes, &varFormItemDetails); err == nil { + err = json.Unmarshal(data, &varFormItemDetails) + + if err != nil { + return err + } + *o = FormItemDetails(varFormItemDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_forward_approval_dto.go b/api_v3/model_forward_approval_dto.go index bbb68716a..9ee17d99b 100644 --- a/api_v3/model_forward_approval_dto.go +++ b/api_v3/model_forward_approval_dto.go @@ -116,8 +116,8 @@ func (o ForwardApprovalDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ForwardApprovalDto) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ForwardApprovalDto) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -127,7 +127,7 @@ func (o *ForwardApprovalDto) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -141,13 +141,17 @@ func (o *ForwardApprovalDto) UnmarshalJSON(bytes []byte) (err error) { varForwardApprovalDto := _ForwardApprovalDto{} - if err = json.Unmarshal(bytes, &varForwardApprovalDto); err == nil { + err = json.Unmarshal(data, &varForwardApprovalDto) + + if err != nil { + return err + } + *o = ForwardApprovalDto(varForwardApprovalDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "newOwnerId") delete(additionalProperties, "comment") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_full_discovered_applications.go b/api_v3/model_full_discovered_applications.go index 202c5c359..d581474f2 100644 --- a/api_v3/model_full_discovered_applications.go +++ b/api_v3/model_full_discovered_applications.go @@ -64,7 +64,7 @@ func NewFullDiscoveredApplicationsWithDefaults() *FullDiscoveredApplications { // GetId returns the Id field value if set, zero value otherwise. func (o *FullDiscoveredApplications) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -74,7 +74,7 @@ func (o *FullDiscoveredApplications) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FullDiscoveredApplications) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -82,7 +82,7 @@ func (o *FullDiscoveredApplications) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *FullDiscoveredApplications) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -96,7 +96,7 @@ func (o *FullDiscoveredApplications) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *FullDiscoveredApplications) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -106,7 +106,7 @@ func (o *FullDiscoveredApplications) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FullDiscoveredApplications) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -114,7 +114,7 @@ func (o *FullDiscoveredApplications) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *FullDiscoveredApplications) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -128,7 +128,7 @@ func (o *FullDiscoveredApplications) SetName(v string) { // GetDiscoverySource returns the DiscoverySource field value if set, zero value otherwise. func (o *FullDiscoveredApplications) GetDiscoverySource() string { - if o == nil || isNil(o.DiscoverySource) { + if o == nil || IsNil(o.DiscoverySource) { var ret string return ret } @@ -138,7 +138,7 @@ func (o *FullDiscoveredApplications) GetDiscoverySource() string { // GetDiscoverySourceOk returns a tuple with the DiscoverySource field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FullDiscoveredApplications) GetDiscoverySourceOk() (*string, bool) { - if o == nil || isNil(o.DiscoverySource) { + if o == nil || IsNil(o.DiscoverySource) { return nil, false } return o.DiscoverySource, true @@ -146,7 +146,7 @@ func (o *FullDiscoveredApplications) GetDiscoverySourceOk() (*string, bool) { // HasDiscoverySource returns a boolean if a field has been set. func (o *FullDiscoveredApplications) HasDiscoverySource() bool { - if o != nil && !isNil(o.DiscoverySource) { + if o != nil && !IsNil(o.DiscoverySource) { return true } @@ -160,7 +160,7 @@ func (o *FullDiscoveredApplications) SetDiscoverySource(v string) { // GetDiscoveredVendor returns the DiscoveredVendor field value if set, zero value otherwise. func (o *FullDiscoveredApplications) GetDiscoveredVendor() string { - if o == nil || isNil(o.DiscoveredVendor) { + if o == nil || IsNil(o.DiscoveredVendor) { var ret string return ret } @@ -170,7 +170,7 @@ func (o *FullDiscoveredApplications) GetDiscoveredVendor() string { // GetDiscoveredVendorOk returns a tuple with the DiscoveredVendor field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FullDiscoveredApplications) GetDiscoveredVendorOk() (*string, bool) { - if o == nil || isNil(o.DiscoveredVendor) { + if o == nil || IsNil(o.DiscoveredVendor) { return nil, false } return o.DiscoveredVendor, true @@ -178,7 +178,7 @@ func (o *FullDiscoveredApplications) GetDiscoveredVendorOk() (*string, bool) { // HasDiscoveredVendor returns a boolean if a field has been set. func (o *FullDiscoveredApplications) HasDiscoveredVendor() bool { - if o != nil && !isNil(o.DiscoveredVendor) { + if o != nil && !IsNil(o.DiscoveredVendor) { return true } @@ -192,7 +192,7 @@ func (o *FullDiscoveredApplications) SetDiscoveredVendor(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *FullDiscoveredApplications) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -202,7 +202,7 @@ func (o *FullDiscoveredApplications) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FullDiscoveredApplications) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -210,7 +210,7 @@ func (o *FullDiscoveredApplications) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *FullDiscoveredApplications) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -224,7 +224,7 @@ func (o *FullDiscoveredApplications) SetDescription(v string) { // GetRecommendedConnectors returns the RecommendedConnectors field value if set, zero value otherwise. func (o *FullDiscoveredApplications) GetRecommendedConnectors() []string { - if o == nil || isNil(o.RecommendedConnectors) { + if o == nil || IsNil(o.RecommendedConnectors) { var ret []string return ret } @@ -234,7 +234,7 @@ func (o *FullDiscoveredApplications) GetRecommendedConnectors() []string { // GetRecommendedConnectorsOk returns a tuple with the RecommendedConnectors field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FullDiscoveredApplications) GetRecommendedConnectorsOk() ([]string, bool) { - if o == nil || isNil(o.RecommendedConnectors) { + if o == nil || IsNil(o.RecommendedConnectors) { return nil, false } return o.RecommendedConnectors, true @@ -242,7 +242,7 @@ func (o *FullDiscoveredApplications) GetRecommendedConnectorsOk() ([]string, boo // HasRecommendedConnectors returns a boolean if a field has been set. func (o *FullDiscoveredApplications) HasRecommendedConnectors() bool { - if o != nil && !isNil(o.RecommendedConnectors) { + if o != nil && !IsNil(o.RecommendedConnectors) { return true } @@ -256,7 +256,7 @@ func (o *FullDiscoveredApplications) SetRecommendedConnectors(v []string) { // GetDiscoveredAt returns the DiscoveredAt field value if set, zero value otherwise. func (o *FullDiscoveredApplications) GetDiscoveredAt() time.Time { - if o == nil || isNil(o.DiscoveredAt) { + if o == nil || IsNil(o.DiscoveredAt) { var ret time.Time return ret } @@ -266,7 +266,7 @@ func (o *FullDiscoveredApplications) GetDiscoveredAt() time.Time { // GetDiscoveredAtOk returns a tuple with the DiscoveredAt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FullDiscoveredApplications) GetDiscoveredAtOk() (*time.Time, bool) { - if o == nil || isNil(o.DiscoveredAt) { + if o == nil || IsNil(o.DiscoveredAt) { return nil, false } return o.DiscoveredAt, true @@ -274,7 +274,7 @@ func (o *FullDiscoveredApplications) GetDiscoveredAtOk() (*time.Time, bool) { // HasDiscoveredAt returns a boolean if a field has been set. func (o *FullDiscoveredApplications) HasDiscoveredAt() bool { - if o != nil && !isNil(o.DiscoveredAt) { + if o != nil && !IsNil(o.DiscoveredAt) { return true } @@ -288,7 +288,7 @@ func (o *FullDiscoveredApplications) SetDiscoveredAt(v time.Time) { // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. func (o *FullDiscoveredApplications) GetCreatedAt() time.Time { - if o == nil || isNil(o.CreatedAt) { + if o == nil || IsNil(o.CreatedAt) { var ret time.Time return ret } @@ -298,7 +298,7 @@ func (o *FullDiscoveredApplications) GetCreatedAt() time.Time { // GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FullDiscoveredApplications) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || isNil(o.CreatedAt) { + if o == nil || IsNil(o.CreatedAt) { return nil, false } return o.CreatedAt, true @@ -306,7 +306,7 @@ func (o *FullDiscoveredApplications) GetCreatedAtOk() (*time.Time, bool) { // HasCreatedAt returns a boolean if a field has been set. func (o *FullDiscoveredApplications) HasCreatedAt() bool { - if o != nil && !isNil(o.CreatedAt) { + if o != nil && !IsNil(o.CreatedAt) { return true } @@ -320,7 +320,7 @@ func (o *FullDiscoveredApplications) SetCreatedAt(v time.Time) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *FullDiscoveredApplications) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -330,7 +330,7 @@ func (o *FullDiscoveredApplications) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FullDiscoveredApplications) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -338,7 +338,7 @@ func (o *FullDiscoveredApplications) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *FullDiscoveredApplications) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -352,7 +352,7 @@ func (o *FullDiscoveredApplications) SetStatus(v string) { // GetAssociatedSources returns the AssociatedSources field value if set, zero value otherwise. func (o *FullDiscoveredApplications) GetAssociatedSources() []string { - if o == nil || isNil(o.AssociatedSources) { + if o == nil || IsNil(o.AssociatedSources) { var ret []string return ret } @@ -362,7 +362,7 @@ func (o *FullDiscoveredApplications) GetAssociatedSources() []string { // GetAssociatedSourcesOk returns a tuple with the AssociatedSources field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *FullDiscoveredApplications) GetAssociatedSourcesOk() ([]string, bool) { - if o == nil || isNil(o.AssociatedSources) { + if o == nil || IsNil(o.AssociatedSources) { return nil, false } return o.AssociatedSources, true @@ -370,7 +370,7 @@ func (o *FullDiscoveredApplications) GetAssociatedSourcesOk() ([]string, bool) { // HasAssociatedSources returns a boolean if a field has been set. func (o *FullDiscoveredApplications) HasAssociatedSources() bool { - if o != nil && !isNil(o.AssociatedSources) { + if o != nil && !IsNil(o.AssociatedSources) { return true } @@ -392,34 +392,34 @@ func (o FullDiscoveredApplications) MarshalJSON() ([]byte, error) { func (o FullDiscoveredApplications) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.DiscoverySource) { + if !IsNil(o.DiscoverySource) { toSerialize["discoverySource"] = o.DiscoverySource } - if !isNil(o.DiscoveredVendor) { + if !IsNil(o.DiscoveredVendor) { toSerialize["discoveredVendor"] = o.DiscoveredVendor } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.RecommendedConnectors) { + if !IsNil(o.RecommendedConnectors) { toSerialize["recommendedConnectors"] = o.RecommendedConnectors } - if !isNil(o.DiscoveredAt) { + if !IsNil(o.DiscoveredAt) { toSerialize["discoveredAt"] = o.DiscoveredAt } - if !isNil(o.CreatedAt) { + if !IsNil(o.CreatedAt) { toSerialize["createdAt"] = o.CreatedAt } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } - if !isNil(o.AssociatedSources) { + if !IsNil(o.AssociatedSources) { toSerialize["associatedSources"] = o.AssociatedSources } @@ -430,16 +430,20 @@ func (o FullDiscoveredApplications) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FullDiscoveredApplications) UnmarshalJSON(bytes []byte) (err error) { +func (o *FullDiscoveredApplications) UnmarshalJSON(data []byte) (err error) { varFullDiscoveredApplications := _FullDiscoveredApplications{} - if err = json.Unmarshal(bytes, &varFullDiscoveredApplications); err == nil { + err = json.Unmarshal(data, &varFullDiscoveredApplications) + + if err != nil { + return err + } + *o = FullDiscoveredApplications(varFullDiscoveredApplications) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "discoverySource") diff --git a/api_v3/model_get_active_campaigns_200_response_inner.go b/api_v3/model_get_active_campaigns_200_response_inner.go index bc3244c61..f6299870b 100644 --- a/api_v3/model_get_active_campaigns_200_response_inner.go +++ b/api_v3/model_get_active_campaigns_200_response_inner.go @@ -12,6 +12,7 @@ package api_v3 import ( "encoding/json" + "gopkg.in/validator.v2" "fmt" ) @@ -47,7 +48,11 @@ func (dst *GetActiveCampaigns200ResponseInner) UnmarshalJSON(data []byte) error if string(jsonCampaign) == "{}" { // empty struct dst.Campaign = nil } else { - match++ + if err = validator.Validate(dst.Campaign); err != nil { + dst.Campaign = nil + } else { + match++ + } } } else { dst.Campaign = nil @@ -60,7 +65,11 @@ func (dst *GetActiveCampaigns200ResponseInner) UnmarshalJSON(data []byte) error if string(jsonSlimCampaign) == "{}" { // empty struct dst.SlimCampaign = nil } else { - match++ + if err = validator.Validate(dst.SlimCampaign); err != nil { + dst.SlimCampaign = nil + } else { + match++ + } } } else { dst.SlimCampaign = nil diff --git a/api_v3/model_get_discovered_applications_200_response_inner.go b/api_v3/model_get_discovered_applications_200_response_inner.go index 12c792bf1..87668471c 100644 --- a/api_v3/model_get_discovered_applications_200_response_inner.go +++ b/api_v3/model_get_discovered_applications_200_response_inner.go @@ -12,6 +12,7 @@ package api_v3 import ( "encoding/json" + "gopkg.in/validator.v2" "fmt" ) @@ -47,7 +48,11 @@ func (dst *GetDiscoveredApplications200ResponseInner) UnmarshalJSON(data []byte) if string(jsonFullDiscoveredApplications) == "{}" { // empty struct dst.FullDiscoveredApplications = nil } else { - match++ + if err = validator.Validate(dst.FullDiscoveredApplications); err != nil { + dst.FullDiscoveredApplications = nil + } else { + match++ + } } } else { dst.FullDiscoveredApplications = nil @@ -60,7 +65,11 @@ func (dst *GetDiscoveredApplications200ResponseInner) UnmarshalJSON(data []byte) if string(jsonSlimDiscoveredApplications) == "{}" { // empty struct dst.SlimDiscoveredApplications = nil } else { - match++ + if err = validator.Validate(dst.SlimDiscoveredApplications); err != nil { + dst.SlimDiscoveredApplications = nil + } else { + match++ + } } } else { dst.SlimDiscoveredApplications = nil diff --git a/api_v3/model_get_o_auth_client_response.go b/api_v3/model_get_o_auth_client_response.go index 4c9f89323..0209fca8e 100644 --- a/api_v3/model_get_o_auth_client_response.go +++ b/api_v3/model_get_o_auth_client_response.go @@ -288,7 +288,7 @@ func (o *GetOAuthClientResponse) GetRedirectUris() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *GetOAuthClientResponse) GetRedirectUrisOk() ([]string, bool) { - if o == nil || isNil(o.RedirectUris) { + if o == nil || IsNil(o.RedirectUris) { return nil, false } return o.RedirectUris, true @@ -517,7 +517,7 @@ func (o *GetOAuthClientResponse) SetModified(v time.Time) { // GetSecret returns the Secret field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GetOAuthClientResponse) GetSecret() string { - if o == nil || isNil(o.Secret.Get()) { + if o == nil || IsNil(o.Secret.Get()) { var ret string return ret } @@ -559,7 +559,7 @@ func (o *GetOAuthClientResponse) UnsetSecret() { // GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GetOAuthClientResponse) GetMetadata() string { - if o == nil || isNil(o.Metadata.Get()) { + if o == nil || IsNil(o.Metadata.Get()) { var ret string return ret } @@ -601,7 +601,7 @@ func (o *GetOAuthClientResponse) UnsetMetadata() { // GetLastUsed returns the LastUsed field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GetOAuthClientResponse) GetLastUsed() time.Time { - if o == nil || isNil(o.LastUsed.Get()) { + if o == nil || IsNil(o.LastUsed.Get()) { var ret time.Time return ret } @@ -656,7 +656,7 @@ func (o *GetOAuthClientResponse) GetScope() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *GetOAuthClientResponse) GetScopeOk() ([]string, bool) { - if o == nil || isNil(o.Scope) { + if o == nil || IsNil(o.Scope) { return nil, false } return o.Scope, true @@ -716,8 +716,8 @@ func (o GetOAuthClientResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *GetOAuthClientResponse) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *GetOAuthClientResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -743,7 +743,7 @@ func (o *GetOAuthClientResponse) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -757,13 +757,17 @@ func (o *GetOAuthClientResponse) UnmarshalJSON(bytes []byte) (err error) { varGetOAuthClientResponse := _GetOAuthClientResponse{} - if err = json.Unmarshal(bytes, &varGetOAuthClientResponse); err == nil { + err = json.Unmarshal(data, &varGetOAuthClientResponse) + + if err != nil { + return err + } + *o = GetOAuthClientResponse(varGetOAuthClientResponse) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "businessName") delete(additionalProperties, "homepageUrl") diff --git a/api_v3/model_get_personal_access_token_response.go b/api_v3/model_get_personal_access_token_response.go index eb76c97c8..a6418de5e 100644 --- a/api_v3/model_get_personal_access_token_response.go +++ b/api_v3/model_get_personal_access_token_response.go @@ -128,7 +128,7 @@ func (o *GetPersonalAccessTokenResponse) GetScope() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *GetPersonalAccessTokenResponse) GetScopeOk() ([]string, bool) { - if o == nil || isNil(o.Scope) { + if o == nil || IsNil(o.Scope) { return nil, false } return o.Scope, true @@ -189,7 +189,7 @@ func (o *GetPersonalAccessTokenResponse) SetCreated(v time.Time) { // GetLastUsed returns the LastUsed field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GetPersonalAccessTokenResponse) GetLastUsed() time.Time { - if o == nil || isNil(o.LastUsed.Get()) { + if o == nil || IsNil(o.LastUsed.Get()) { var ret time.Time return ret } @@ -231,7 +231,7 @@ func (o *GetPersonalAccessTokenResponse) UnsetLastUsed() { // GetManaged returns the Managed field value if set, zero value otherwise. func (o *GetPersonalAccessTokenResponse) GetManaged() bool { - if o == nil || isNil(o.Managed) { + if o == nil || IsNil(o.Managed) { var ret bool return ret } @@ -241,7 +241,7 @@ func (o *GetPersonalAccessTokenResponse) GetManaged() bool { // GetManagedOk returns a tuple with the Managed field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *GetPersonalAccessTokenResponse) GetManagedOk() (*bool, bool) { - if o == nil || isNil(o.Managed) { + if o == nil || IsNil(o.Managed) { return nil, false } return o.Managed, true @@ -249,7 +249,7 @@ func (o *GetPersonalAccessTokenResponse) GetManagedOk() (*bool, bool) { // HasManaged returns a boolean if a field has been set. func (o *GetPersonalAccessTokenResponse) HasManaged() bool { - if o != nil && !isNil(o.Managed) { + if o != nil && !IsNil(o.Managed) { return true } @@ -281,7 +281,7 @@ func (o GetPersonalAccessTokenResponse) ToMap() (map[string]interface{}, error) if o.LastUsed.IsSet() { toSerialize["lastUsed"] = o.LastUsed.Get() } - if !isNil(o.Managed) { + if !IsNil(o.Managed) { toSerialize["managed"] = o.Managed } @@ -292,8 +292,8 @@ func (o GetPersonalAccessTokenResponse) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *GetPersonalAccessTokenResponse) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *GetPersonalAccessTokenResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -306,7 +306,7 @@ func (o *GetPersonalAccessTokenResponse) UnmarshalJSON(bytes []byte) (err error) allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -320,13 +320,17 @@ func (o *GetPersonalAccessTokenResponse) UnmarshalJSON(bytes []byte) (err error) varGetPersonalAccessTokenResponse := _GetPersonalAccessTokenResponse{} - if err = json.Unmarshal(bytes, &varGetPersonalAccessTokenResponse); err == nil { + err = json.Unmarshal(data, &varGetPersonalAccessTokenResponse) + + if err != nil { + return err + } + *o = GetPersonalAccessTokenResponse(varGetPersonalAccessTokenResponse) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "scope") diff --git a/api_v3/model_get_vendor_connector_mappings_405_response.go b/api_v3/model_get_vendor_connector_mappings_405_response.go index 44db7c969..bfeb10246 100644 --- a/api_v3/model_get_vendor_connector_mappings_405_response.go +++ b/api_v3/model_get_vendor_connector_mappings_405_response.go @@ -49,7 +49,7 @@ func NewGetVendorConnectorMappings405ResponseWithDefaults() *GetVendorConnectorM // GetErrorName returns the ErrorName field value if set, zero value otherwise. func (o *GetVendorConnectorMappings405Response) GetErrorName() map[string]interface{} { - if o == nil || isNil(o.ErrorName) { + if o == nil || IsNil(o.ErrorName) { var ret map[string]interface{} return ret } @@ -59,7 +59,7 @@ func (o *GetVendorConnectorMappings405Response) GetErrorName() map[string]interf // GetErrorNameOk returns a tuple with the ErrorName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *GetVendorConnectorMappings405Response) GetErrorNameOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.ErrorName) { + if o == nil || IsNil(o.ErrorName) { return map[string]interface{}{}, false } return o.ErrorName, true @@ -67,7 +67,7 @@ func (o *GetVendorConnectorMappings405Response) GetErrorNameOk() (map[string]int // HasErrorName returns a boolean if a field has been set. func (o *GetVendorConnectorMappings405Response) HasErrorName() bool { - if o != nil && !isNil(o.ErrorName) { + if o != nil && !IsNil(o.ErrorName) { return true } @@ -81,7 +81,7 @@ func (o *GetVendorConnectorMappings405Response) SetErrorName(v map[string]interf // GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. func (o *GetVendorConnectorMappings405Response) GetErrorMessage() map[string]interface{} { - if o == nil || isNil(o.ErrorMessage) { + if o == nil || IsNil(o.ErrorMessage) { var ret map[string]interface{} return ret } @@ -91,7 +91,7 @@ func (o *GetVendorConnectorMappings405Response) GetErrorMessage() map[string]int // GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *GetVendorConnectorMappings405Response) GetErrorMessageOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.ErrorMessage) { + if o == nil || IsNil(o.ErrorMessage) { return map[string]interface{}{}, false } return o.ErrorMessage, true @@ -99,7 +99,7 @@ func (o *GetVendorConnectorMappings405Response) GetErrorMessageOk() (map[string] // HasErrorMessage returns a boolean if a field has been set. func (o *GetVendorConnectorMappings405Response) HasErrorMessage() bool { - if o != nil && !isNil(o.ErrorMessage) { + if o != nil && !IsNil(o.ErrorMessage) { return true } @@ -113,7 +113,7 @@ func (o *GetVendorConnectorMappings405Response) SetErrorMessage(v map[string]int // GetTrackingId returns the TrackingId field value if set, zero value otherwise. func (o *GetVendorConnectorMappings405Response) GetTrackingId() string { - if o == nil || isNil(o.TrackingId) { + if o == nil || IsNil(o.TrackingId) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *GetVendorConnectorMappings405Response) GetTrackingId() string { // GetTrackingIdOk returns a tuple with the TrackingId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *GetVendorConnectorMappings405Response) GetTrackingIdOk() (*string, bool) { - if o == nil || isNil(o.TrackingId) { + if o == nil || IsNil(o.TrackingId) { return nil, false } return o.TrackingId, true @@ -131,7 +131,7 @@ func (o *GetVendorConnectorMappings405Response) GetTrackingIdOk() (*string, bool // HasTrackingId returns a boolean if a field has been set. func (o *GetVendorConnectorMappings405Response) HasTrackingId() bool { - if o != nil && !isNil(o.TrackingId) { + if o != nil && !IsNil(o.TrackingId) { return true } @@ -153,13 +153,13 @@ func (o GetVendorConnectorMappings405Response) MarshalJSON() ([]byte, error) { func (o GetVendorConnectorMappings405Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.ErrorName) { + if !IsNil(o.ErrorName) { toSerialize["errorName"] = o.ErrorName } - if !isNil(o.ErrorMessage) { + if !IsNil(o.ErrorMessage) { toSerialize["errorMessage"] = o.ErrorMessage } - if !isNil(o.TrackingId) { + if !IsNil(o.TrackingId) { toSerialize["trackingId"] = o.TrackingId } @@ -170,16 +170,20 @@ func (o GetVendorConnectorMappings405Response) ToMap() (map[string]interface{}, return toSerialize, nil } -func (o *GetVendorConnectorMappings405Response) UnmarshalJSON(bytes []byte) (err error) { +func (o *GetVendorConnectorMappings405Response) UnmarshalJSON(data []byte) (err error) { varGetVendorConnectorMappings405Response := _GetVendorConnectorMappings405Response{} - if err = json.Unmarshal(bytes, &varGetVendorConnectorMappings405Response); err == nil { + err = json.Unmarshal(data, &varGetVendorConnectorMappings405Response) + + if err != nil { + return err + } + *o = GetVendorConnectorMappings405Response(varGetVendorConnectorMappings405Response) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "errorName") delete(additionalProperties, "errorMessage") delete(additionalProperties, "trackingId") diff --git a/api_v3/model_identities_details_report_arguments.go b/api_v3/model_identities_details_report_arguments.go index cb9a15c26..21e09ddca 100644 --- a/api_v3/model_identities_details_report_arguments.go +++ b/api_v3/model_identities_details_report_arguments.go @@ -90,8 +90,8 @@ func (o IdentitiesDetailsReportArguments) ToMap() (map[string]interface{}, error return toSerialize, nil } -func (o *IdentitiesDetailsReportArguments) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *IdentitiesDetailsReportArguments) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -100,7 +100,7 @@ func (o *IdentitiesDetailsReportArguments) UnmarshalJSON(bytes []byte) (err erro allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -114,13 +114,17 @@ func (o *IdentitiesDetailsReportArguments) UnmarshalJSON(bytes []byte) (err erro varIdentitiesDetailsReportArguments := _IdentitiesDetailsReportArguments{} - if err = json.Unmarshal(bytes, &varIdentitiesDetailsReportArguments); err == nil { + err = json.Unmarshal(data, &varIdentitiesDetailsReportArguments) + + if err != nil { + return err + } + *o = IdentitiesDetailsReportArguments(varIdentitiesDetailsReportArguments) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "correlatedOnly") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_identities_report_arguments.go b/api_v3/model_identities_report_arguments.go index 283e44334..8a29a579e 100644 --- a/api_v3/model_identities_report_arguments.go +++ b/api_v3/model_identities_report_arguments.go @@ -49,7 +49,7 @@ func NewIdentitiesReportArgumentsWithDefaults() *IdentitiesReportArguments { // GetCorrelatedOnly returns the CorrelatedOnly field value if set, zero value otherwise. func (o *IdentitiesReportArguments) GetCorrelatedOnly() bool { - if o == nil || isNil(o.CorrelatedOnly) { + if o == nil || IsNil(o.CorrelatedOnly) { var ret bool return ret } @@ -59,7 +59,7 @@ func (o *IdentitiesReportArguments) GetCorrelatedOnly() bool { // GetCorrelatedOnlyOk returns a tuple with the CorrelatedOnly field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentitiesReportArguments) GetCorrelatedOnlyOk() (*bool, bool) { - if o == nil || isNil(o.CorrelatedOnly) { + if o == nil || IsNil(o.CorrelatedOnly) { return nil, false } return o.CorrelatedOnly, true @@ -67,7 +67,7 @@ func (o *IdentitiesReportArguments) GetCorrelatedOnlyOk() (*bool, bool) { // HasCorrelatedOnly returns a boolean if a field has been set. func (o *IdentitiesReportArguments) HasCorrelatedOnly() bool { - if o != nil && !isNil(o.CorrelatedOnly) { + if o != nil && !IsNil(o.CorrelatedOnly) { return true } @@ -89,7 +89,7 @@ func (o IdentitiesReportArguments) MarshalJSON() ([]byte, error) { func (o IdentitiesReportArguments) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.CorrelatedOnly) { + if !IsNil(o.CorrelatedOnly) { toSerialize["correlatedOnly"] = o.CorrelatedOnly } @@ -100,16 +100,20 @@ func (o IdentitiesReportArguments) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentitiesReportArguments) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentitiesReportArguments) UnmarshalJSON(data []byte) (err error) { varIdentitiesReportArguments := _IdentitiesReportArguments{} - if err = json.Unmarshal(bytes, &varIdentitiesReportArguments); err == nil { + err = json.Unmarshal(data, &varIdentitiesReportArguments) + + if err != nil { + return err + } + *o = IdentitiesReportArguments(varIdentitiesReportArguments) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "correlatedOnly") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_identity_access.go b/api_v3/model_identity_access.go index cc4fb3a23..8905d6e44 100644 --- a/api_v3/model_identity_access.go +++ b/api_v3/model_identity_access.go @@ -12,6 +12,7 @@ package api_v3 import ( "encoding/json" + "gopkg.in/validator.v2" "fmt" ) @@ -55,7 +56,11 @@ func (dst *IdentityAccess) UnmarshalJSON(data []byte) error { if string(jsonAccessProfileEntitlement) == "{}" { // empty struct dst.AccessProfileEntitlement = nil } else { - match++ + if err = validator.Validate(dst.AccessProfileEntitlement); err != nil { + dst.AccessProfileEntitlement = nil + } else { + match++ + } } } else { dst.AccessProfileEntitlement = nil @@ -68,7 +73,11 @@ func (dst *IdentityAccess) UnmarshalJSON(data []byte) error { if string(jsonAccessProfileRole) == "{}" { // empty struct dst.AccessProfileRole = nil } else { - match++ + if err = validator.Validate(dst.AccessProfileRole); err != nil { + dst.AccessProfileRole = nil + } else { + match++ + } } } else { dst.AccessProfileRole = nil @@ -81,7 +90,11 @@ func (dst *IdentityAccess) UnmarshalJSON(data []byte) error { if string(jsonAccessProfileSummary) == "{}" { // empty struct dst.AccessProfileSummary = nil } else { - match++ + if err = validator.Validate(dst.AccessProfileSummary); err != nil { + dst.AccessProfileSummary = nil + } else { + match++ + } } } else { dst.AccessProfileSummary = nil diff --git a/api_v3/model_identity_attribute.go b/api_v3/model_identity_attribute.go index f0c2cf3fc..812114d9a 100644 --- a/api_v3/model_identity_attribute.go +++ b/api_v3/model_identity_attribute.go @@ -49,7 +49,7 @@ func NewIdentityAttributeWithDefaults() *IdentityAttribute { // GetKey returns the Key field value if set, zero value otherwise. func (o *IdentityAttribute) GetKey() string { - if o == nil || isNil(o.Key) { + if o == nil || IsNil(o.Key) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *IdentityAttribute) GetKey() string { // GetKeyOk returns a tuple with the Key field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityAttribute) GetKeyOk() (*string, bool) { - if o == nil || isNil(o.Key) { + if o == nil || IsNil(o.Key) { return nil, false } return o.Key, true @@ -67,7 +67,7 @@ func (o *IdentityAttribute) GetKeyOk() (*string, bool) { // HasKey returns a boolean if a field has been set. func (o *IdentityAttribute) HasKey() bool { - if o != nil && !isNil(o.Key) { + if o != nil && !IsNil(o.Key) { return true } @@ -81,7 +81,7 @@ func (o *IdentityAttribute) SetKey(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *IdentityAttribute) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *IdentityAttribute) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityAttribute) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -99,7 +99,7 @@ func (o *IdentityAttribute) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *IdentityAttribute) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -113,7 +113,7 @@ func (o *IdentityAttribute) SetName(v string) { // GetValue returns the Value field value if set, zero value otherwise. func (o *IdentityAttribute) GetValue() string { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *IdentityAttribute) GetValue() string { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityAttribute) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { return nil, false } return o.Value, true @@ -131,7 +131,7 @@ func (o *IdentityAttribute) GetValueOk() (*string, bool) { // HasValue returns a boolean if a field has been set. func (o *IdentityAttribute) HasValue() bool { - if o != nil && !isNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -153,13 +153,13 @@ func (o IdentityAttribute) MarshalJSON() ([]byte, error) { func (o IdentityAttribute) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Key) { + if !IsNil(o.Key) { toSerialize["key"] = o.Key } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Value) { + if !IsNil(o.Value) { toSerialize["value"] = o.Value } @@ -170,16 +170,20 @@ func (o IdentityAttribute) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityAttribute) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityAttribute) UnmarshalJSON(data []byte) (err error) { varIdentityAttribute := _IdentityAttribute{} - if err = json.Unmarshal(bytes, &varIdentityAttribute); err == nil { + err = json.Unmarshal(data, &varIdentityAttribute) + + if err != nil { + return err + } + *o = IdentityAttribute(varIdentityAttribute) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "key") delete(additionalProperties, "name") delete(additionalProperties, "value") diff --git a/api_v3/model_identity_attribute_config.go b/api_v3/model_identity_attribute_config.go index 96021e547..6aa0e8817 100644 --- a/api_v3/model_identity_attribute_config.go +++ b/api_v3/model_identity_attribute_config.go @@ -50,7 +50,7 @@ func NewIdentityAttributeConfigWithDefaults() *IdentityAttributeConfig { // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *IdentityAttributeConfig) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -60,7 +60,7 @@ func (o *IdentityAttributeConfig) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityAttributeConfig) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -68,7 +68,7 @@ func (o *IdentityAttributeConfig) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *IdentityAttributeConfig) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -82,7 +82,7 @@ func (o *IdentityAttributeConfig) SetEnabled(v bool) { // GetAttributeTransforms returns the AttributeTransforms field value if set, zero value otherwise. func (o *IdentityAttributeConfig) GetAttributeTransforms() []IdentityAttributeTransform { - if o == nil || isNil(o.AttributeTransforms) { + if o == nil || IsNil(o.AttributeTransforms) { var ret []IdentityAttributeTransform return ret } @@ -92,7 +92,7 @@ func (o *IdentityAttributeConfig) GetAttributeTransforms() []IdentityAttributeTr // GetAttributeTransformsOk returns a tuple with the AttributeTransforms field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityAttributeConfig) GetAttributeTransformsOk() ([]IdentityAttributeTransform, bool) { - if o == nil || isNil(o.AttributeTransforms) { + if o == nil || IsNil(o.AttributeTransforms) { return nil, false } return o.AttributeTransforms, true @@ -100,7 +100,7 @@ func (o *IdentityAttributeConfig) GetAttributeTransformsOk() ([]IdentityAttribut // HasAttributeTransforms returns a boolean if a field has been set. func (o *IdentityAttributeConfig) HasAttributeTransforms() bool { - if o != nil && !isNil(o.AttributeTransforms) { + if o != nil && !IsNil(o.AttributeTransforms) { return true } @@ -122,10 +122,10 @@ func (o IdentityAttributeConfig) MarshalJSON() ([]byte, error) { func (o IdentityAttributeConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Enabled) { + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - if !isNil(o.AttributeTransforms) { + if !IsNil(o.AttributeTransforms) { toSerialize["attributeTransforms"] = o.AttributeTransforms } @@ -136,16 +136,20 @@ func (o IdentityAttributeConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityAttributeConfig) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityAttributeConfig) UnmarshalJSON(data []byte) (err error) { varIdentityAttributeConfig := _IdentityAttributeConfig{} - if err = json.Unmarshal(bytes, &varIdentityAttributeConfig); err == nil { + err = json.Unmarshal(data, &varIdentityAttributeConfig) + + if err != nil { + return err + } + *o = IdentityAttributeConfig(varIdentityAttributeConfig) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "enabled") delete(additionalProperties, "attributeTransforms") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_identity_attribute_preview.go b/api_v3/model_identity_attribute_preview.go index ce419bf8b..075347903 100644 --- a/api_v3/model_identity_attribute_preview.go +++ b/api_v3/model_identity_attribute_preview.go @@ -50,7 +50,7 @@ func NewIdentityAttributePreviewWithDefaults() *IdentityAttributePreview { // GetName returns the Name field value if set, zero value otherwise. func (o *IdentityAttributePreview) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -60,7 +60,7 @@ func (o *IdentityAttributePreview) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityAttributePreview) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -68,7 +68,7 @@ func (o *IdentityAttributePreview) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *IdentityAttributePreview) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -82,7 +82,7 @@ func (o *IdentityAttributePreview) SetName(v string) { // GetValue returns the Value field value if set, zero value otherwise. func (o *IdentityAttributePreview) GetValue() map[string]interface{} { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { var ret map[string]interface{} return ret } @@ -92,7 +92,7 @@ func (o *IdentityAttributePreview) GetValue() map[string]interface{} { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityAttributePreview) GetValueOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { return map[string]interface{}{}, false } return o.Value, true @@ -100,7 +100,7 @@ func (o *IdentityAttributePreview) GetValueOk() (map[string]interface{}, bool) { // HasValue returns a boolean if a field has been set. func (o *IdentityAttributePreview) HasValue() bool { - if o != nil && !isNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -114,7 +114,7 @@ func (o *IdentityAttributePreview) SetValue(v map[string]interface{}) { // GetPreviousValue returns the PreviousValue field value if set, zero value otherwise. func (o *IdentityAttributePreview) GetPreviousValue() map[string]interface{} { - if o == nil || isNil(o.PreviousValue) { + if o == nil || IsNil(o.PreviousValue) { var ret map[string]interface{} return ret } @@ -124,7 +124,7 @@ func (o *IdentityAttributePreview) GetPreviousValue() map[string]interface{} { // GetPreviousValueOk returns a tuple with the PreviousValue field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityAttributePreview) GetPreviousValueOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.PreviousValue) { + if o == nil || IsNil(o.PreviousValue) { return map[string]interface{}{}, false } return o.PreviousValue, true @@ -132,7 +132,7 @@ func (o *IdentityAttributePreview) GetPreviousValueOk() (map[string]interface{}, // HasPreviousValue returns a boolean if a field has been set. func (o *IdentityAttributePreview) HasPreviousValue() bool { - if o != nil && !isNil(o.PreviousValue) { + if o != nil && !IsNil(o.PreviousValue) { return true } @@ -146,7 +146,7 @@ func (o *IdentityAttributePreview) SetPreviousValue(v map[string]interface{}) { // GetErrorMessages returns the ErrorMessages field value if set, zero value otherwise. func (o *IdentityAttributePreview) GetErrorMessages() []ErrorMessageDto { - if o == nil || isNil(o.ErrorMessages) { + if o == nil || IsNil(o.ErrorMessages) { var ret []ErrorMessageDto return ret } @@ -156,7 +156,7 @@ func (o *IdentityAttributePreview) GetErrorMessages() []ErrorMessageDto { // GetErrorMessagesOk returns a tuple with the ErrorMessages field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityAttributePreview) GetErrorMessagesOk() ([]ErrorMessageDto, bool) { - if o == nil || isNil(o.ErrorMessages) { + if o == nil || IsNil(o.ErrorMessages) { return nil, false } return o.ErrorMessages, true @@ -164,7 +164,7 @@ func (o *IdentityAttributePreview) GetErrorMessagesOk() ([]ErrorMessageDto, bool // HasErrorMessages returns a boolean if a field has been set. func (o *IdentityAttributePreview) HasErrorMessages() bool { - if o != nil && !isNil(o.ErrorMessages) { + if o != nil && !IsNil(o.ErrorMessages) { return true } @@ -186,16 +186,16 @@ func (o IdentityAttributePreview) MarshalJSON() ([]byte, error) { func (o IdentityAttributePreview) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Value) { + if !IsNil(o.Value) { toSerialize["value"] = o.Value } - if !isNil(o.PreviousValue) { + if !IsNil(o.PreviousValue) { toSerialize["previousValue"] = o.PreviousValue } - if !isNil(o.ErrorMessages) { + if !IsNil(o.ErrorMessages) { toSerialize["errorMessages"] = o.ErrorMessages } @@ -206,16 +206,20 @@ func (o IdentityAttributePreview) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityAttributePreview) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityAttributePreview) UnmarshalJSON(data []byte) (err error) { varIdentityAttributePreview := _IdentityAttributePreview{} - if err = json.Unmarshal(bytes, &varIdentityAttributePreview); err == nil { + err = json.Unmarshal(data, &varIdentityAttributePreview) + + if err != nil { + return err + } + *o = IdentityAttributePreview(varIdentityAttributePreview) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "value") delete(additionalProperties, "previousValue") diff --git a/api_v3/model_identity_attribute_transform.go b/api_v3/model_identity_attribute_transform.go index 237bfef7c..36783148a 100644 --- a/api_v3/model_identity_attribute_transform.go +++ b/api_v3/model_identity_attribute_transform.go @@ -46,7 +46,7 @@ func NewIdentityAttributeTransformWithDefaults() *IdentityAttributeTransform { // GetIdentityAttributeName returns the IdentityAttributeName field value if set, zero value otherwise. func (o *IdentityAttributeTransform) GetIdentityAttributeName() string { - if o == nil || isNil(o.IdentityAttributeName) { + if o == nil || IsNil(o.IdentityAttributeName) { var ret string return ret } @@ -56,7 +56,7 @@ func (o *IdentityAttributeTransform) GetIdentityAttributeName() string { // GetIdentityAttributeNameOk returns a tuple with the IdentityAttributeName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityAttributeTransform) GetIdentityAttributeNameOk() (*string, bool) { - if o == nil || isNil(o.IdentityAttributeName) { + if o == nil || IsNil(o.IdentityAttributeName) { return nil, false } return o.IdentityAttributeName, true @@ -64,7 +64,7 @@ func (o *IdentityAttributeTransform) GetIdentityAttributeNameOk() (*string, bool // HasIdentityAttributeName returns a boolean if a field has been set. func (o *IdentityAttributeTransform) HasIdentityAttributeName() bool { - if o != nil && !isNil(o.IdentityAttributeName) { + if o != nil && !IsNil(o.IdentityAttributeName) { return true } @@ -78,7 +78,7 @@ func (o *IdentityAttributeTransform) SetIdentityAttributeName(v string) { // GetTransformDefinition returns the TransformDefinition field value if set, zero value otherwise. func (o *IdentityAttributeTransform) GetTransformDefinition() TransformDefinition { - if o == nil || isNil(o.TransformDefinition) { + if o == nil || IsNil(o.TransformDefinition) { var ret TransformDefinition return ret } @@ -88,7 +88,7 @@ func (o *IdentityAttributeTransform) GetTransformDefinition() TransformDefinitio // GetTransformDefinitionOk returns a tuple with the TransformDefinition field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityAttributeTransform) GetTransformDefinitionOk() (*TransformDefinition, bool) { - if o == nil || isNil(o.TransformDefinition) { + if o == nil || IsNil(o.TransformDefinition) { return nil, false } return o.TransformDefinition, true @@ -96,7 +96,7 @@ func (o *IdentityAttributeTransform) GetTransformDefinitionOk() (*TransformDefin // HasTransformDefinition returns a boolean if a field has been set. func (o *IdentityAttributeTransform) HasTransformDefinition() bool { - if o != nil && !isNil(o.TransformDefinition) { + if o != nil && !IsNil(o.TransformDefinition) { return true } @@ -118,10 +118,10 @@ func (o IdentityAttributeTransform) MarshalJSON() ([]byte, error) { func (o IdentityAttributeTransform) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.IdentityAttributeName) { + if !IsNil(o.IdentityAttributeName) { toSerialize["identityAttributeName"] = o.IdentityAttributeName } - if !isNil(o.TransformDefinition) { + if !IsNil(o.TransformDefinition) { toSerialize["transformDefinition"] = o.TransformDefinition } @@ -132,16 +132,20 @@ func (o IdentityAttributeTransform) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityAttributeTransform) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityAttributeTransform) UnmarshalJSON(data []byte) (err error) { varIdentityAttributeTransform := _IdentityAttributeTransform{} - if err = json.Unmarshal(bytes, &varIdentityAttributeTransform); err == nil { + err = json.Unmarshal(data, &varIdentityAttributeTransform) + + if err != nil { + return err + } + *o = IdentityAttributeTransform(varIdentityAttributeTransform) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "identityAttributeName") delete(additionalProperties, "transformDefinition") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_identity_cert_decision_summary.go b/api_v3/model_identity_cert_decision_summary.go index ac758b50e..4062d20c1 100644 --- a/api_v3/model_identity_cert_decision_summary.go +++ b/api_v3/model_identity_cert_decision_summary.go @@ -75,7 +75,7 @@ func NewIdentityCertDecisionSummaryWithDefaults() *IdentityCertDecisionSummary { // GetEntitlementDecisionsMade returns the EntitlementDecisionsMade field value if set, zero value otherwise. func (o *IdentityCertDecisionSummary) GetEntitlementDecisionsMade() int32 { - if o == nil || isNil(o.EntitlementDecisionsMade) { + if o == nil || IsNil(o.EntitlementDecisionsMade) { var ret int32 return ret } @@ -85,7 +85,7 @@ func (o *IdentityCertDecisionSummary) GetEntitlementDecisionsMade() int32 { // GetEntitlementDecisionsMadeOk returns a tuple with the EntitlementDecisionsMade field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertDecisionSummary) GetEntitlementDecisionsMadeOk() (*int32, bool) { - if o == nil || isNil(o.EntitlementDecisionsMade) { + if o == nil || IsNil(o.EntitlementDecisionsMade) { return nil, false } return o.EntitlementDecisionsMade, true @@ -93,7 +93,7 @@ func (o *IdentityCertDecisionSummary) GetEntitlementDecisionsMadeOk() (*int32, b // HasEntitlementDecisionsMade returns a boolean if a field has been set. func (o *IdentityCertDecisionSummary) HasEntitlementDecisionsMade() bool { - if o != nil && !isNil(o.EntitlementDecisionsMade) { + if o != nil && !IsNil(o.EntitlementDecisionsMade) { return true } @@ -107,7 +107,7 @@ func (o *IdentityCertDecisionSummary) SetEntitlementDecisionsMade(v int32) { // GetAccessProfileDecisionsMade returns the AccessProfileDecisionsMade field value if set, zero value otherwise. func (o *IdentityCertDecisionSummary) GetAccessProfileDecisionsMade() int32 { - if o == nil || isNil(o.AccessProfileDecisionsMade) { + if o == nil || IsNil(o.AccessProfileDecisionsMade) { var ret int32 return ret } @@ -117,7 +117,7 @@ func (o *IdentityCertDecisionSummary) GetAccessProfileDecisionsMade() int32 { // GetAccessProfileDecisionsMadeOk returns a tuple with the AccessProfileDecisionsMade field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertDecisionSummary) GetAccessProfileDecisionsMadeOk() (*int32, bool) { - if o == nil || isNil(o.AccessProfileDecisionsMade) { + if o == nil || IsNil(o.AccessProfileDecisionsMade) { return nil, false } return o.AccessProfileDecisionsMade, true @@ -125,7 +125,7 @@ func (o *IdentityCertDecisionSummary) GetAccessProfileDecisionsMadeOk() (*int32, // HasAccessProfileDecisionsMade returns a boolean if a field has been set. func (o *IdentityCertDecisionSummary) HasAccessProfileDecisionsMade() bool { - if o != nil && !isNil(o.AccessProfileDecisionsMade) { + if o != nil && !IsNil(o.AccessProfileDecisionsMade) { return true } @@ -139,7 +139,7 @@ func (o *IdentityCertDecisionSummary) SetAccessProfileDecisionsMade(v int32) { // GetRoleDecisionsMade returns the RoleDecisionsMade field value if set, zero value otherwise. func (o *IdentityCertDecisionSummary) GetRoleDecisionsMade() int32 { - if o == nil || isNil(o.RoleDecisionsMade) { + if o == nil || IsNil(o.RoleDecisionsMade) { var ret int32 return ret } @@ -149,7 +149,7 @@ func (o *IdentityCertDecisionSummary) GetRoleDecisionsMade() int32 { // GetRoleDecisionsMadeOk returns a tuple with the RoleDecisionsMade field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertDecisionSummary) GetRoleDecisionsMadeOk() (*int32, bool) { - if o == nil || isNil(o.RoleDecisionsMade) { + if o == nil || IsNil(o.RoleDecisionsMade) { return nil, false } return o.RoleDecisionsMade, true @@ -157,7 +157,7 @@ func (o *IdentityCertDecisionSummary) GetRoleDecisionsMadeOk() (*int32, bool) { // HasRoleDecisionsMade returns a boolean if a field has been set. func (o *IdentityCertDecisionSummary) HasRoleDecisionsMade() bool { - if o != nil && !isNil(o.RoleDecisionsMade) { + if o != nil && !IsNil(o.RoleDecisionsMade) { return true } @@ -171,7 +171,7 @@ func (o *IdentityCertDecisionSummary) SetRoleDecisionsMade(v int32) { // GetAccountDecisionsMade returns the AccountDecisionsMade field value if set, zero value otherwise. func (o *IdentityCertDecisionSummary) GetAccountDecisionsMade() int32 { - if o == nil || isNil(o.AccountDecisionsMade) { + if o == nil || IsNil(o.AccountDecisionsMade) { var ret int32 return ret } @@ -181,7 +181,7 @@ func (o *IdentityCertDecisionSummary) GetAccountDecisionsMade() int32 { // GetAccountDecisionsMadeOk returns a tuple with the AccountDecisionsMade field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertDecisionSummary) GetAccountDecisionsMadeOk() (*int32, bool) { - if o == nil || isNil(o.AccountDecisionsMade) { + if o == nil || IsNil(o.AccountDecisionsMade) { return nil, false } return o.AccountDecisionsMade, true @@ -189,7 +189,7 @@ func (o *IdentityCertDecisionSummary) GetAccountDecisionsMadeOk() (*int32, bool) // HasAccountDecisionsMade returns a boolean if a field has been set. func (o *IdentityCertDecisionSummary) HasAccountDecisionsMade() bool { - if o != nil && !isNil(o.AccountDecisionsMade) { + if o != nil && !IsNil(o.AccountDecisionsMade) { return true } @@ -203,7 +203,7 @@ func (o *IdentityCertDecisionSummary) SetAccountDecisionsMade(v int32) { // GetEntitlementDecisionsTotal returns the EntitlementDecisionsTotal field value if set, zero value otherwise. func (o *IdentityCertDecisionSummary) GetEntitlementDecisionsTotal() int32 { - if o == nil || isNil(o.EntitlementDecisionsTotal) { + if o == nil || IsNil(o.EntitlementDecisionsTotal) { var ret int32 return ret } @@ -213,7 +213,7 @@ func (o *IdentityCertDecisionSummary) GetEntitlementDecisionsTotal() int32 { // GetEntitlementDecisionsTotalOk returns a tuple with the EntitlementDecisionsTotal field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertDecisionSummary) GetEntitlementDecisionsTotalOk() (*int32, bool) { - if o == nil || isNil(o.EntitlementDecisionsTotal) { + if o == nil || IsNil(o.EntitlementDecisionsTotal) { return nil, false } return o.EntitlementDecisionsTotal, true @@ -221,7 +221,7 @@ func (o *IdentityCertDecisionSummary) GetEntitlementDecisionsTotalOk() (*int32, // HasEntitlementDecisionsTotal returns a boolean if a field has been set. func (o *IdentityCertDecisionSummary) HasEntitlementDecisionsTotal() bool { - if o != nil && !isNil(o.EntitlementDecisionsTotal) { + if o != nil && !IsNil(o.EntitlementDecisionsTotal) { return true } @@ -235,7 +235,7 @@ func (o *IdentityCertDecisionSummary) SetEntitlementDecisionsTotal(v int32) { // GetAccessProfileDecisionsTotal returns the AccessProfileDecisionsTotal field value if set, zero value otherwise. func (o *IdentityCertDecisionSummary) GetAccessProfileDecisionsTotal() int32 { - if o == nil || isNil(o.AccessProfileDecisionsTotal) { + if o == nil || IsNil(o.AccessProfileDecisionsTotal) { var ret int32 return ret } @@ -245,7 +245,7 @@ func (o *IdentityCertDecisionSummary) GetAccessProfileDecisionsTotal() int32 { // GetAccessProfileDecisionsTotalOk returns a tuple with the AccessProfileDecisionsTotal field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertDecisionSummary) GetAccessProfileDecisionsTotalOk() (*int32, bool) { - if o == nil || isNil(o.AccessProfileDecisionsTotal) { + if o == nil || IsNil(o.AccessProfileDecisionsTotal) { return nil, false } return o.AccessProfileDecisionsTotal, true @@ -253,7 +253,7 @@ func (o *IdentityCertDecisionSummary) GetAccessProfileDecisionsTotalOk() (*int32 // HasAccessProfileDecisionsTotal returns a boolean if a field has been set. func (o *IdentityCertDecisionSummary) HasAccessProfileDecisionsTotal() bool { - if o != nil && !isNil(o.AccessProfileDecisionsTotal) { + if o != nil && !IsNil(o.AccessProfileDecisionsTotal) { return true } @@ -267,7 +267,7 @@ func (o *IdentityCertDecisionSummary) SetAccessProfileDecisionsTotal(v int32) { // GetRoleDecisionsTotal returns the RoleDecisionsTotal field value if set, zero value otherwise. func (o *IdentityCertDecisionSummary) GetRoleDecisionsTotal() int32 { - if o == nil || isNil(o.RoleDecisionsTotal) { + if o == nil || IsNil(o.RoleDecisionsTotal) { var ret int32 return ret } @@ -277,7 +277,7 @@ func (o *IdentityCertDecisionSummary) GetRoleDecisionsTotal() int32 { // GetRoleDecisionsTotalOk returns a tuple with the RoleDecisionsTotal field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertDecisionSummary) GetRoleDecisionsTotalOk() (*int32, bool) { - if o == nil || isNil(o.RoleDecisionsTotal) { + if o == nil || IsNil(o.RoleDecisionsTotal) { return nil, false } return o.RoleDecisionsTotal, true @@ -285,7 +285,7 @@ func (o *IdentityCertDecisionSummary) GetRoleDecisionsTotalOk() (*int32, bool) { // HasRoleDecisionsTotal returns a boolean if a field has been set. func (o *IdentityCertDecisionSummary) HasRoleDecisionsTotal() bool { - if o != nil && !isNil(o.RoleDecisionsTotal) { + if o != nil && !IsNil(o.RoleDecisionsTotal) { return true } @@ -299,7 +299,7 @@ func (o *IdentityCertDecisionSummary) SetRoleDecisionsTotal(v int32) { // GetAccountDecisionsTotal returns the AccountDecisionsTotal field value if set, zero value otherwise. func (o *IdentityCertDecisionSummary) GetAccountDecisionsTotal() int32 { - if o == nil || isNil(o.AccountDecisionsTotal) { + if o == nil || IsNil(o.AccountDecisionsTotal) { var ret int32 return ret } @@ -309,7 +309,7 @@ func (o *IdentityCertDecisionSummary) GetAccountDecisionsTotal() int32 { // GetAccountDecisionsTotalOk returns a tuple with the AccountDecisionsTotal field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertDecisionSummary) GetAccountDecisionsTotalOk() (*int32, bool) { - if o == nil || isNil(o.AccountDecisionsTotal) { + if o == nil || IsNil(o.AccountDecisionsTotal) { return nil, false } return o.AccountDecisionsTotal, true @@ -317,7 +317,7 @@ func (o *IdentityCertDecisionSummary) GetAccountDecisionsTotalOk() (*int32, bool // HasAccountDecisionsTotal returns a boolean if a field has been set. func (o *IdentityCertDecisionSummary) HasAccountDecisionsTotal() bool { - if o != nil && !isNil(o.AccountDecisionsTotal) { + if o != nil && !IsNil(o.AccountDecisionsTotal) { return true } @@ -331,7 +331,7 @@ func (o *IdentityCertDecisionSummary) SetAccountDecisionsTotal(v int32) { // GetEntitlementsApproved returns the EntitlementsApproved field value if set, zero value otherwise. func (o *IdentityCertDecisionSummary) GetEntitlementsApproved() int32 { - if o == nil || isNil(o.EntitlementsApproved) { + if o == nil || IsNil(o.EntitlementsApproved) { var ret int32 return ret } @@ -341,7 +341,7 @@ func (o *IdentityCertDecisionSummary) GetEntitlementsApproved() int32 { // GetEntitlementsApprovedOk returns a tuple with the EntitlementsApproved field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertDecisionSummary) GetEntitlementsApprovedOk() (*int32, bool) { - if o == nil || isNil(o.EntitlementsApproved) { + if o == nil || IsNil(o.EntitlementsApproved) { return nil, false } return o.EntitlementsApproved, true @@ -349,7 +349,7 @@ func (o *IdentityCertDecisionSummary) GetEntitlementsApprovedOk() (*int32, bool) // HasEntitlementsApproved returns a boolean if a field has been set. func (o *IdentityCertDecisionSummary) HasEntitlementsApproved() bool { - if o != nil && !isNil(o.EntitlementsApproved) { + if o != nil && !IsNil(o.EntitlementsApproved) { return true } @@ -363,7 +363,7 @@ func (o *IdentityCertDecisionSummary) SetEntitlementsApproved(v int32) { // GetEntitlementsRevoked returns the EntitlementsRevoked field value if set, zero value otherwise. func (o *IdentityCertDecisionSummary) GetEntitlementsRevoked() int32 { - if o == nil || isNil(o.EntitlementsRevoked) { + if o == nil || IsNil(o.EntitlementsRevoked) { var ret int32 return ret } @@ -373,7 +373,7 @@ func (o *IdentityCertDecisionSummary) GetEntitlementsRevoked() int32 { // GetEntitlementsRevokedOk returns a tuple with the EntitlementsRevoked field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertDecisionSummary) GetEntitlementsRevokedOk() (*int32, bool) { - if o == nil || isNil(o.EntitlementsRevoked) { + if o == nil || IsNil(o.EntitlementsRevoked) { return nil, false } return o.EntitlementsRevoked, true @@ -381,7 +381,7 @@ func (o *IdentityCertDecisionSummary) GetEntitlementsRevokedOk() (*int32, bool) // HasEntitlementsRevoked returns a boolean if a field has been set. func (o *IdentityCertDecisionSummary) HasEntitlementsRevoked() bool { - if o != nil && !isNil(o.EntitlementsRevoked) { + if o != nil && !IsNil(o.EntitlementsRevoked) { return true } @@ -395,7 +395,7 @@ func (o *IdentityCertDecisionSummary) SetEntitlementsRevoked(v int32) { // GetAccessProfilesApproved returns the AccessProfilesApproved field value if set, zero value otherwise. func (o *IdentityCertDecisionSummary) GetAccessProfilesApproved() int32 { - if o == nil || isNil(o.AccessProfilesApproved) { + if o == nil || IsNil(o.AccessProfilesApproved) { var ret int32 return ret } @@ -405,7 +405,7 @@ func (o *IdentityCertDecisionSummary) GetAccessProfilesApproved() int32 { // GetAccessProfilesApprovedOk returns a tuple with the AccessProfilesApproved field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertDecisionSummary) GetAccessProfilesApprovedOk() (*int32, bool) { - if o == nil || isNil(o.AccessProfilesApproved) { + if o == nil || IsNil(o.AccessProfilesApproved) { return nil, false } return o.AccessProfilesApproved, true @@ -413,7 +413,7 @@ func (o *IdentityCertDecisionSummary) GetAccessProfilesApprovedOk() (*int32, boo // HasAccessProfilesApproved returns a boolean if a field has been set. func (o *IdentityCertDecisionSummary) HasAccessProfilesApproved() bool { - if o != nil && !isNil(o.AccessProfilesApproved) { + if o != nil && !IsNil(o.AccessProfilesApproved) { return true } @@ -427,7 +427,7 @@ func (o *IdentityCertDecisionSummary) SetAccessProfilesApproved(v int32) { // GetAccessProfilesRevoked returns the AccessProfilesRevoked field value if set, zero value otherwise. func (o *IdentityCertDecisionSummary) GetAccessProfilesRevoked() int32 { - if o == nil || isNil(o.AccessProfilesRevoked) { + if o == nil || IsNil(o.AccessProfilesRevoked) { var ret int32 return ret } @@ -437,7 +437,7 @@ func (o *IdentityCertDecisionSummary) GetAccessProfilesRevoked() int32 { // GetAccessProfilesRevokedOk returns a tuple with the AccessProfilesRevoked field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertDecisionSummary) GetAccessProfilesRevokedOk() (*int32, bool) { - if o == nil || isNil(o.AccessProfilesRevoked) { + if o == nil || IsNil(o.AccessProfilesRevoked) { return nil, false } return o.AccessProfilesRevoked, true @@ -445,7 +445,7 @@ func (o *IdentityCertDecisionSummary) GetAccessProfilesRevokedOk() (*int32, bool // HasAccessProfilesRevoked returns a boolean if a field has been set. func (o *IdentityCertDecisionSummary) HasAccessProfilesRevoked() bool { - if o != nil && !isNil(o.AccessProfilesRevoked) { + if o != nil && !IsNil(o.AccessProfilesRevoked) { return true } @@ -459,7 +459,7 @@ func (o *IdentityCertDecisionSummary) SetAccessProfilesRevoked(v int32) { // GetRolesApproved returns the RolesApproved field value if set, zero value otherwise. func (o *IdentityCertDecisionSummary) GetRolesApproved() int32 { - if o == nil || isNil(o.RolesApproved) { + if o == nil || IsNil(o.RolesApproved) { var ret int32 return ret } @@ -469,7 +469,7 @@ func (o *IdentityCertDecisionSummary) GetRolesApproved() int32 { // GetRolesApprovedOk returns a tuple with the RolesApproved field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertDecisionSummary) GetRolesApprovedOk() (*int32, bool) { - if o == nil || isNil(o.RolesApproved) { + if o == nil || IsNil(o.RolesApproved) { return nil, false } return o.RolesApproved, true @@ -477,7 +477,7 @@ func (o *IdentityCertDecisionSummary) GetRolesApprovedOk() (*int32, bool) { // HasRolesApproved returns a boolean if a field has been set. func (o *IdentityCertDecisionSummary) HasRolesApproved() bool { - if o != nil && !isNil(o.RolesApproved) { + if o != nil && !IsNil(o.RolesApproved) { return true } @@ -491,7 +491,7 @@ func (o *IdentityCertDecisionSummary) SetRolesApproved(v int32) { // GetRolesRevoked returns the RolesRevoked field value if set, zero value otherwise. func (o *IdentityCertDecisionSummary) GetRolesRevoked() int32 { - if o == nil || isNil(o.RolesRevoked) { + if o == nil || IsNil(o.RolesRevoked) { var ret int32 return ret } @@ -501,7 +501,7 @@ func (o *IdentityCertDecisionSummary) GetRolesRevoked() int32 { // GetRolesRevokedOk returns a tuple with the RolesRevoked field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertDecisionSummary) GetRolesRevokedOk() (*int32, bool) { - if o == nil || isNil(o.RolesRevoked) { + if o == nil || IsNil(o.RolesRevoked) { return nil, false } return o.RolesRevoked, true @@ -509,7 +509,7 @@ func (o *IdentityCertDecisionSummary) GetRolesRevokedOk() (*int32, bool) { // HasRolesRevoked returns a boolean if a field has been set. func (o *IdentityCertDecisionSummary) HasRolesRevoked() bool { - if o != nil && !isNil(o.RolesRevoked) { + if o != nil && !IsNil(o.RolesRevoked) { return true } @@ -523,7 +523,7 @@ func (o *IdentityCertDecisionSummary) SetRolesRevoked(v int32) { // GetAccountsApproved returns the AccountsApproved field value if set, zero value otherwise. func (o *IdentityCertDecisionSummary) GetAccountsApproved() int32 { - if o == nil || isNil(o.AccountsApproved) { + if o == nil || IsNil(o.AccountsApproved) { var ret int32 return ret } @@ -533,7 +533,7 @@ func (o *IdentityCertDecisionSummary) GetAccountsApproved() int32 { // GetAccountsApprovedOk returns a tuple with the AccountsApproved field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertDecisionSummary) GetAccountsApprovedOk() (*int32, bool) { - if o == nil || isNil(o.AccountsApproved) { + if o == nil || IsNil(o.AccountsApproved) { return nil, false } return o.AccountsApproved, true @@ -541,7 +541,7 @@ func (o *IdentityCertDecisionSummary) GetAccountsApprovedOk() (*int32, bool) { // HasAccountsApproved returns a boolean if a field has been set. func (o *IdentityCertDecisionSummary) HasAccountsApproved() bool { - if o != nil && !isNil(o.AccountsApproved) { + if o != nil && !IsNil(o.AccountsApproved) { return true } @@ -555,7 +555,7 @@ func (o *IdentityCertDecisionSummary) SetAccountsApproved(v int32) { // GetAccountsRevoked returns the AccountsRevoked field value if set, zero value otherwise. func (o *IdentityCertDecisionSummary) GetAccountsRevoked() int32 { - if o == nil || isNil(o.AccountsRevoked) { + if o == nil || IsNil(o.AccountsRevoked) { var ret int32 return ret } @@ -565,7 +565,7 @@ func (o *IdentityCertDecisionSummary) GetAccountsRevoked() int32 { // GetAccountsRevokedOk returns a tuple with the AccountsRevoked field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertDecisionSummary) GetAccountsRevokedOk() (*int32, bool) { - if o == nil || isNil(o.AccountsRevoked) { + if o == nil || IsNil(o.AccountsRevoked) { return nil, false } return o.AccountsRevoked, true @@ -573,7 +573,7 @@ func (o *IdentityCertDecisionSummary) GetAccountsRevokedOk() (*int32, bool) { // HasAccountsRevoked returns a boolean if a field has been set. func (o *IdentityCertDecisionSummary) HasAccountsRevoked() bool { - if o != nil && !isNil(o.AccountsRevoked) { + if o != nil && !IsNil(o.AccountsRevoked) { return true } @@ -595,52 +595,52 @@ func (o IdentityCertDecisionSummary) MarshalJSON() ([]byte, error) { func (o IdentityCertDecisionSummary) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.EntitlementDecisionsMade) { + if !IsNil(o.EntitlementDecisionsMade) { toSerialize["entitlementDecisionsMade"] = o.EntitlementDecisionsMade } - if !isNil(o.AccessProfileDecisionsMade) { + if !IsNil(o.AccessProfileDecisionsMade) { toSerialize["accessProfileDecisionsMade"] = o.AccessProfileDecisionsMade } - if !isNil(o.RoleDecisionsMade) { + if !IsNil(o.RoleDecisionsMade) { toSerialize["roleDecisionsMade"] = o.RoleDecisionsMade } - if !isNil(o.AccountDecisionsMade) { + if !IsNil(o.AccountDecisionsMade) { toSerialize["accountDecisionsMade"] = o.AccountDecisionsMade } - if !isNil(o.EntitlementDecisionsTotal) { + if !IsNil(o.EntitlementDecisionsTotal) { toSerialize["entitlementDecisionsTotal"] = o.EntitlementDecisionsTotal } - if !isNil(o.AccessProfileDecisionsTotal) { + if !IsNil(o.AccessProfileDecisionsTotal) { toSerialize["accessProfileDecisionsTotal"] = o.AccessProfileDecisionsTotal } - if !isNil(o.RoleDecisionsTotal) { + if !IsNil(o.RoleDecisionsTotal) { toSerialize["roleDecisionsTotal"] = o.RoleDecisionsTotal } - if !isNil(o.AccountDecisionsTotal) { + if !IsNil(o.AccountDecisionsTotal) { toSerialize["accountDecisionsTotal"] = o.AccountDecisionsTotal } - if !isNil(o.EntitlementsApproved) { + if !IsNil(o.EntitlementsApproved) { toSerialize["entitlementsApproved"] = o.EntitlementsApproved } - if !isNil(o.EntitlementsRevoked) { + if !IsNil(o.EntitlementsRevoked) { toSerialize["entitlementsRevoked"] = o.EntitlementsRevoked } - if !isNil(o.AccessProfilesApproved) { + if !IsNil(o.AccessProfilesApproved) { toSerialize["accessProfilesApproved"] = o.AccessProfilesApproved } - if !isNil(o.AccessProfilesRevoked) { + if !IsNil(o.AccessProfilesRevoked) { toSerialize["accessProfilesRevoked"] = o.AccessProfilesRevoked } - if !isNil(o.RolesApproved) { + if !IsNil(o.RolesApproved) { toSerialize["rolesApproved"] = o.RolesApproved } - if !isNil(o.RolesRevoked) { + if !IsNil(o.RolesRevoked) { toSerialize["rolesRevoked"] = o.RolesRevoked } - if !isNil(o.AccountsApproved) { + if !IsNil(o.AccountsApproved) { toSerialize["accountsApproved"] = o.AccountsApproved } - if !isNil(o.AccountsRevoked) { + if !IsNil(o.AccountsRevoked) { toSerialize["accountsRevoked"] = o.AccountsRevoked } @@ -651,16 +651,20 @@ func (o IdentityCertDecisionSummary) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityCertDecisionSummary) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityCertDecisionSummary) UnmarshalJSON(data []byte) (err error) { varIdentityCertDecisionSummary := _IdentityCertDecisionSummary{} - if err = json.Unmarshal(bytes, &varIdentityCertDecisionSummary); err == nil { + err = json.Unmarshal(data, &varIdentityCertDecisionSummary) + + if err != nil { + return err + } + *o = IdentityCertDecisionSummary(varIdentityCertDecisionSummary) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "entitlementDecisionsMade") delete(additionalProperties, "accessProfileDecisionsMade") delete(additionalProperties, "roleDecisionsMade") diff --git a/api_v3/model_identity_certification_dto.go b/api_v3/model_identity_certification_dto.go index 8de278dea..60946ecc5 100644 --- a/api_v3/model_identity_certification_dto.go +++ b/api_v3/model_identity_certification_dto.go @@ -74,7 +74,7 @@ func NewIdentityCertificationDtoWithDefaults() *IdentityCertificationDto { // GetId returns the Id field value if set, zero value otherwise. func (o *IdentityCertificationDto) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -84,7 +84,7 @@ func (o *IdentityCertificationDto) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertificationDto) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -92,7 +92,7 @@ func (o *IdentityCertificationDto) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *IdentityCertificationDto) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -106,7 +106,7 @@ func (o *IdentityCertificationDto) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *IdentityCertificationDto) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -116,7 +116,7 @@ func (o *IdentityCertificationDto) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertificationDto) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -124,7 +124,7 @@ func (o *IdentityCertificationDto) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *IdentityCertificationDto) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -138,7 +138,7 @@ func (o *IdentityCertificationDto) SetName(v string) { // GetCampaign returns the Campaign field value if set, zero value otherwise. func (o *IdentityCertificationDto) GetCampaign() CampaignReference { - if o == nil || isNil(o.Campaign) { + if o == nil || IsNil(o.Campaign) { var ret CampaignReference return ret } @@ -148,7 +148,7 @@ func (o *IdentityCertificationDto) GetCampaign() CampaignReference { // GetCampaignOk returns a tuple with the Campaign field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertificationDto) GetCampaignOk() (*CampaignReference, bool) { - if o == nil || isNil(o.Campaign) { + if o == nil || IsNil(o.Campaign) { return nil, false } return o.Campaign, true @@ -156,7 +156,7 @@ func (o *IdentityCertificationDto) GetCampaignOk() (*CampaignReference, bool) { // HasCampaign returns a boolean if a field has been set. func (o *IdentityCertificationDto) HasCampaign() bool { - if o != nil && !isNil(o.Campaign) { + if o != nil && !IsNil(o.Campaign) { return true } @@ -170,7 +170,7 @@ func (o *IdentityCertificationDto) SetCampaign(v CampaignReference) { // GetCompleted returns the Completed field value if set, zero value otherwise. func (o *IdentityCertificationDto) GetCompleted() bool { - if o == nil || isNil(o.Completed) { + if o == nil || IsNil(o.Completed) { var ret bool return ret } @@ -180,7 +180,7 @@ func (o *IdentityCertificationDto) GetCompleted() bool { // GetCompletedOk returns a tuple with the Completed field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertificationDto) GetCompletedOk() (*bool, bool) { - if o == nil || isNil(o.Completed) { + if o == nil || IsNil(o.Completed) { return nil, false } return o.Completed, true @@ -188,7 +188,7 @@ func (o *IdentityCertificationDto) GetCompletedOk() (*bool, bool) { // HasCompleted returns a boolean if a field has been set. func (o *IdentityCertificationDto) HasCompleted() bool { - if o != nil && !isNil(o.Completed) { + if o != nil && !IsNil(o.Completed) { return true } @@ -202,7 +202,7 @@ func (o *IdentityCertificationDto) SetCompleted(v bool) { // GetIdentitiesCompleted returns the IdentitiesCompleted field value if set, zero value otherwise. func (o *IdentityCertificationDto) GetIdentitiesCompleted() int32 { - if o == nil || isNil(o.IdentitiesCompleted) { + if o == nil || IsNil(o.IdentitiesCompleted) { var ret int32 return ret } @@ -212,7 +212,7 @@ func (o *IdentityCertificationDto) GetIdentitiesCompleted() int32 { // GetIdentitiesCompletedOk returns a tuple with the IdentitiesCompleted field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertificationDto) GetIdentitiesCompletedOk() (*int32, bool) { - if o == nil || isNil(o.IdentitiesCompleted) { + if o == nil || IsNil(o.IdentitiesCompleted) { return nil, false } return o.IdentitiesCompleted, true @@ -220,7 +220,7 @@ func (o *IdentityCertificationDto) GetIdentitiesCompletedOk() (*int32, bool) { // HasIdentitiesCompleted returns a boolean if a field has been set. func (o *IdentityCertificationDto) HasIdentitiesCompleted() bool { - if o != nil && !isNil(o.IdentitiesCompleted) { + if o != nil && !IsNil(o.IdentitiesCompleted) { return true } @@ -234,7 +234,7 @@ func (o *IdentityCertificationDto) SetIdentitiesCompleted(v int32) { // GetIdentitiesTotal returns the IdentitiesTotal field value if set, zero value otherwise. func (o *IdentityCertificationDto) GetIdentitiesTotal() int32 { - if o == nil || isNil(o.IdentitiesTotal) { + if o == nil || IsNil(o.IdentitiesTotal) { var ret int32 return ret } @@ -244,7 +244,7 @@ func (o *IdentityCertificationDto) GetIdentitiesTotal() int32 { // GetIdentitiesTotalOk returns a tuple with the IdentitiesTotal field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertificationDto) GetIdentitiesTotalOk() (*int32, bool) { - if o == nil || isNil(o.IdentitiesTotal) { + if o == nil || IsNil(o.IdentitiesTotal) { return nil, false } return o.IdentitiesTotal, true @@ -252,7 +252,7 @@ func (o *IdentityCertificationDto) GetIdentitiesTotalOk() (*int32, bool) { // HasIdentitiesTotal returns a boolean if a field has been set. func (o *IdentityCertificationDto) HasIdentitiesTotal() bool { - if o != nil && !isNil(o.IdentitiesTotal) { + if o != nil && !IsNil(o.IdentitiesTotal) { return true } @@ -266,7 +266,7 @@ func (o *IdentityCertificationDto) SetIdentitiesTotal(v int32) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *IdentityCertificationDto) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -276,7 +276,7 @@ func (o *IdentityCertificationDto) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertificationDto) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -284,7 +284,7 @@ func (o *IdentityCertificationDto) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *IdentityCertificationDto) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -298,7 +298,7 @@ func (o *IdentityCertificationDto) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *IdentityCertificationDto) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -308,7 +308,7 @@ func (o *IdentityCertificationDto) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertificationDto) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -316,7 +316,7 @@ func (o *IdentityCertificationDto) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *IdentityCertificationDto) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -330,7 +330,7 @@ func (o *IdentityCertificationDto) SetModified(v time.Time) { // GetDecisionsMade returns the DecisionsMade field value if set, zero value otherwise. func (o *IdentityCertificationDto) GetDecisionsMade() int32 { - if o == nil || isNil(o.DecisionsMade) { + if o == nil || IsNil(o.DecisionsMade) { var ret int32 return ret } @@ -340,7 +340,7 @@ func (o *IdentityCertificationDto) GetDecisionsMade() int32 { // GetDecisionsMadeOk returns a tuple with the DecisionsMade field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertificationDto) GetDecisionsMadeOk() (*int32, bool) { - if o == nil || isNil(o.DecisionsMade) { + if o == nil || IsNil(o.DecisionsMade) { return nil, false } return o.DecisionsMade, true @@ -348,7 +348,7 @@ func (o *IdentityCertificationDto) GetDecisionsMadeOk() (*int32, bool) { // HasDecisionsMade returns a boolean if a field has been set. func (o *IdentityCertificationDto) HasDecisionsMade() bool { - if o != nil && !isNil(o.DecisionsMade) { + if o != nil && !IsNil(o.DecisionsMade) { return true } @@ -362,7 +362,7 @@ func (o *IdentityCertificationDto) SetDecisionsMade(v int32) { // GetDecisionsTotal returns the DecisionsTotal field value if set, zero value otherwise. func (o *IdentityCertificationDto) GetDecisionsTotal() int32 { - if o == nil || isNil(o.DecisionsTotal) { + if o == nil || IsNil(o.DecisionsTotal) { var ret int32 return ret } @@ -372,7 +372,7 @@ func (o *IdentityCertificationDto) GetDecisionsTotal() int32 { // GetDecisionsTotalOk returns a tuple with the DecisionsTotal field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertificationDto) GetDecisionsTotalOk() (*int32, bool) { - if o == nil || isNil(o.DecisionsTotal) { + if o == nil || IsNil(o.DecisionsTotal) { return nil, false } return o.DecisionsTotal, true @@ -380,7 +380,7 @@ func (o *IdentityCertificationDto) GetDecisionsTotalOk() (*int32, bool) { // HasDecisionsTotal returns a boolean if a field has been set. func (o *IdentityCertificationDto) HasDecisionsTotal() bool { - if o != nil && !isNil(o.DecisionsTotal) { + if o != nil && !IsNil(o.DecisionsTotal) { return true } @@ -394,7 +394,7 @@ func (o *IdentityCertificationDto) SetDecisionsTotal(v int32) { // GetDue returns the Due field value if set, zero value otherwise. func (o *IdentityCertificationDto) GetDue() time.Time { - if o == nil || isNil(o.Due) { + if o == nil || IsNil(o.Due) { var ret time.Time return ret } @@ -404,7 +404,7 @@ func (o *IdentityCertificationDto) GetDue() time.Time { // GetDueOk returns a tuple with the Due field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertificationDto) GetDueOk() (*time.Time, bool) { - if o == nil || isNil(o.Due) { + if o == nil || IsNil(o.Due) { return nil, false } return o.Due, true @@ -412,7 +412,7 @@ func (o *IdentityCertificationDto) GetDueOk() (*time.Time, bool) { // HasDue returns a boolean if a field has been set. func (o *IdentityCertificationDto) HasDue() bool { - if o != nil && !isNil(o.Due) { + if o != nil && !IsNil(o.Due) { return true } @@ -426,7 +426,7 @@ func (o *IdentityCertificationDto) SetDue(v time.Time) { // GetSigned returns the Signed field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IdentityCertificationDto) GetSigned() time.Time { - if o == nil || isNil(o.Signed.Get()) { + if o == nil || IsNil(o.Signed.Get()) { var ret time.Time return ret } @@ -468,7 +468,7 @@ func (o *IdentityCertificationDto) UnsetSigned() { // GetReviewer returns the Reviewer field value if set, zero value otherwise. func (o *IdentityCertificationDto) GetReviewer() Reviewer { - if o == nil || isNil(o.Reviewer) { + if o == nil || IsNil(o.Reviewer) { var ret Reviewer return ret } @@ -478,7 +478,7 @@ func (o *IdentityCertificationDto) GetReviewer() Reviewer { // GetReviewerOk returns a tuple with the Reviewer field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertificationDto) GetReviewerOk() (*Reviewer, bool) { - if o == nil || isNil(o.Reviewer) { + if o == nil || IsNil(o.Reviewer) { return nil, false } return o.Reviewer, true @@ -486,7 +486,7 @@ func (o *IdentityCertificationDto) GetReviewerOk() (*Reviewer, bool) { // HasReviewer returns a boolean if a field has been set. func (o *IdentityCertificationDto) HasReviewer() bool { - if o != nil && !isNil(o.Reviewer) { + if o != nil && !IsNil(o.Reviewer) { return true } @@ -500,7 +500,7 @@ func (o *IdentityCertificationDto) SetReviewer(v Reviewer) { // GetReassignment returns the Reassignment field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IdentityCertificationDto) GetReassignment() Reassignment { - if o == nil || isNil(o.Reassignment.Get()) { + if o == nil || IsNil(o.Reassignment.Get()) { var ret Reassignment return ret } @@ -542,7 +542,7 @@ func (o *IdentityCertificationDto) UnsetReassignment() { // GetHasErrors returns the HasErrors field value if set, zero value otherwise. func (o *IdentityCertificationDto) GetHasErrors() bool { - if o == nil || isNil(o.HasErrors) { + if o == nil || IsNil(o.HasErrors) { var ret bool return ret } @@ -552,7 +552,7 @@ func (o *IdentityCertificationDto) GetHasErrors() bool { // GetHasErrorsOk returns a tuple with the HasErrors field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertificationDto) GetHasErrorsOk() (*bool, bool) { - if o == nil || isNil(o.HasErrors) { + if o == nil || IsNil(o.HasErrors) { return nil, false } return o.HasErrors, true @@ -560,7 +560,7 @@ func (o *IdentityCertificationDto) GetHasErrorsOk() (*bool, bool) { // HasHasErrors returns a boolean if a field has been set. func (o *IdentityCertificationDto) HasHasErrors() bool { - if o != nil && !isNil(o.HasErrors) { + if o != nil && !IsNil(o.HasErrors) { return true } @@ -574,7 +574,7 @@ func (o *IdentityCertificationDto) SetHasErrors(v bool) { // GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IdentityCertificationDto) GetErrorMessage() string { - if o == nil || isNil(o.ErrorMessage.Get()) { + if o == nil || IsNil(o.ErrorMessage.Get()) { var ret string return ret } @@ -616,7 +616,7 @@ func (o *IdentityCertificationDto) UnsetErrorMessage() { // GetPhase returns the Phase field value if set, zero value otherwise. func (o *IdentityCertificationDto) GetPhase() CertificationPhase { - if o == nil || isNil(o.Phase) { + if o == nil || IsNil(o.Phase) { var ret CertificationPhase return ret } @@ -626,7 +626,7 @@ func (o *IdentityCertificationDto) GetPhase() CertificationPhase { // GetPhaseOk returns a tuple with the Phase field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityCertificationDto) GetPhaseOk() (*CertificationPhase, bool) { - if o == nil || isNil(o.Phase) { + if o == nil || IsNil(o.Phase) { return nil, false } return o.Phase, true @@ -634,7 +634,7 @@ func (o *IdentityCertificationDto) GetPhaseOk() (*CertificationPhase, bool) { // HasPhase returns a boolean if a field has been set. func (o *IdentityCertificationDto) HasPhase() bool { - if o != nil && !isNil(o.Phase) { + if o != nil && !IsNil(o.Phase) { return true } @@ -656,55 +656,55 @@ func (o IdentityCertificationDto) MarshalJSON() ([]byte, error) { func (o IdentityCertificationDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Campaign) { + if !IsNil(o.Campaign) { toSerialize["campaign"] = o.Campaign } - if !isNil(o.Completed) { + if !IsNil(o.Completed) { toSerialize["completed"] = o.Completed } - if !isNil(o.IdentitiesCompleted) { + if !IsNil(o.IdentitiesCompleted) { toSerialize["identitiesCompleted"] = o.IdentitiesCompleted } - if !isNil(o.IdentitiesTotal) { + if !IsNil(o.IdentitiesTotal) { toSerialize["identitiesTotal"] = o.IdentitiesTotal } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.DecisionsMade) { + if !IsNil(o.DecisionsMade) { toSerialize["decisionsMade"] = o.DecisionsMade } - if !isNil(o.DecisionsTotal) { + if !IsNil(o.DecisionsTotal) { toSerialize["decisionsTotal"] = o.DecisionsTotal } - if !isNil(o.Due) { + if !IsNil(o.Due) { toSerialize["due"] = o.Due } if o.Signed.IsSet() { toSerialize["signed"] = o.Signed.Get() } - if !isNil(o.Reviewer) { + if !IsNil(o.Reviewer) { toSerialize["reviewer"] = o.Reviewer } if o.Reassignment.IsSet() { toSerialize["reassignment"] = o.Reassignment.Get() } - if !isNil(o.HasErrors) { + if !IsNil(o.HasErrors) { toSerialize["hasErrors"] = o.HasErrors } if o.ErrorMessage.IsSet() { toSerialize["errorMessage"] = o.ErrorMessage.Get() } - if !isNil(o.Phase) { + if !IsNil(o.Phase) { toSerialize["phase"] = o.Phase } @@ -715,16 +715,20 @@ func (o IdentityCertificationDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityCertificationDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityCertificationDto) UnmarshalJSON(data []byte) (err error) { varIdentityCertificationDto := _IdentityCertificationDto{} - if err = json.Unmarshal(bytes, &varIdentityCertificationDto); err == nil { + err = json.Unmarshal(data, &varIdentityCertificationDto) + + if err != nil { + return err + } + *o = IdentityCertificationDto(varIdentityCertificationDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "campaign") diff --git a/api_v3/model_identity_document.go b/api_v3/model_identity_document.go index 5f4bb5a24..e3e09075d 100644 --- a/api_v3/model_identity_document.go +++ b/api_v3/model_identity_document.go @@ -191,7 +191,7 @@ func (o *IdentityDocument) SetType(v DocumentType) { // GetDisplayName returns the DisplayName field value if set, zero value otherwise. func (o *IdentityDocument) GetDisplayName() string { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { var ret string return ret } @@ -201,7 +201,7 @@ func (o *IdentityDocument) GetDisplayName() string { // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { return nil, false } return o.DisplayName, true @@ -209,7 +209,7 @@ func (o *IdentityDocument) GetDisplayNameOk() (*string, bool) { // HasDisplayName returns a boolean if a field has been set. func (o *IdentityDocument) HasDisplayName() bool { - if o != nil && !isNil(o.DisplayName) { + if o != nil && !IsNil(o.DisplayName) { return true } @@ -223,7 +223,7 @@ func (o *IdentityDocument) SetDisplayName(v string) { // GetFirstName returns the FirstName field value if set, zero value otherwise. func (o *IdentityDocument) GetFirstName() string { - if o == nil || isNil(o.FirstName) { + if o == nil || IsNil(o.FirstName) { var ret string return ret } @@ -233,7 +233,7 @@ func (o *IdentityDocument) GetFirstName() string { // GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetFirstNameOk() (*string, bool) { - if o == nil || isNil(o.FirstName) { + if o == nil || IsNil(o.FirstName) { return nil, false } return o.FirstName, true @@ -241,7 +241,7 @@ func (o *IdentityDocument) GetFirstNameOk() (*string, bool) { // HasFirstName returns a boolean if a field has been set. func (o *IdentityDocument) HasFirstName() bool { - if o != nil && !isNil(o.FirstName) { + if o != nil && !IsNil(o.FirstName) { return true } @@ -255,7 +255,7 @@ func (o *IdentityDocument) SetFirstName(v string) { // GetLastName returns the LastName field value if set, zero value otherwise. func (o *IdentityDocument) GetLastName() string { - if o == nil || isNil(o.LastName) { + if o == nil || IsNil(o.LastName) { var ret string return ret } @@ -265,7 +265,7 @@ func (o *IdentityDocument) GetLastName() string { // GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetLastNameOk() (*string, bool) { - if o == nil || isNil(o.LastName) { + if o == nil || IsNil(o.LastName) { return nil, false } return o.LastName, true @@ -273,7 +273,7 @@ func (o *IdentityDocument) GetLastNameOk() (*string, bool) { // HasLastName returns a boolean if a field has been set. func (o *IdentityDocument) HasLastName() bool { - if o != nil && !isNil(o.LastName) { + if o != nil && !IsNil(o.LastName) { return true } @@ -287,7 +287,7 @@ func (o *IdentityDocument) SetLastName(v string) { // GetEmail returns the Email field value if set, zero value otherwise. func (o *IdentityDocument) GetEmail() string { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { var ret string return ret } @@ -297,7 +297,7 @@ func (o *IdentityDocument) GetEmail() string { // GetEmailOk returns a tuple with the Email field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetEmailOk() (*string, bool) { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { return nil, false } return o.Email, true @@ -305,7 +305,7 @@ func (o *IdentityDocument) GetEmailOk() (*string, bool) { // HasEmail returns a boolean if a field has been set. func (o *IdentityDocument) HasEmail() bool { - if o != nil && !isNil(o.Email) { + if o != nil && !IsNil(o.Email) { return true } @@ -319,7 +319,7 @@ func (o *IdentityDocument) SetEmail(v string) { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IdentityDocument) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -361,7 +361,7 @@ func (o *IdentityDocument) UnsetCreated() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IdentityDocument) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -403,7 +403,7 @@ func (o *IdentityDocument) UnsetModified() { // GetPhone returns the Phone field value if set, zero value otherwise. func (o *IdentityDocument) GetPhone() string { - if o == nil || isNil(o.Phone) { + if o == nil || IsNil(o.Phone) { var ret string return ret } @@ -413,7 +413,7 @@ func (o *IdentityDocument) GetPhone() string { // GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetPhoneOk() (*string, bool) { - if o == nil || isNil(o.Phone) { + if o == nil || IsNil(o.Phone) { return nil, false } return o.Phone, true @@ -421,7 +421,7 @@ func (o *IdentityDocument) GetPhoneOk() (*string, bool) { // HasPhone returns a boolean if a field has been set. func (o *IdentityDocument) HasPhone() bool { - if o != nil && !isNil(o.Phone) { + if o != nil && !IsNil(o.Phone) { return true } @@ -435,7 +435,7 @@ func (o *IdentityDocument) SetPhone(v string) { // GetSynced returns the Synced field value if set, zero value otherwise. func (o *IdentityDocument) GetSynced() string { - if o == nil || isNil(o.Synced) { + if o == nil || IsNil(o.Synced) { var ret string return ret } @@ -445,7 +445,7 @@ func (o *IdentityDocument) GetSynced() string { // GetSyncedOk returns a tuple with the Synced field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetSyncedOk() (*string, bool) { - if o == nil || isNil(o.Synced) { + if o == nil || IsNil(o.Synced) { return nil, false } return o.Synced, true @@ -453,7 +453,7 @@ func (o *IdentityDocument) GetSyncedOk() (*string, bool) { // HasSynced returns a boolean if a field has been set. func (o *IdentityDocument) HasSynced() bool { - if o != nil && !isNil(o.Synced) { + if o != nil && !IsNil(o.Synced) { return true } @@ -467,7 +467,7 @@ func (o *IdentityDocument) SetSynced(v string) { // GetInactive returns the Inactive field value if set, zero value otherwise. func (o *IdentityDocument) GetInactive() bool { - if o == nil || isNil(o.Inactive) { + if o == nil || IsNil(o.Inactive) { var ret bool return ret } @@ -477,7 +477,7 @@ func (o *IdentityDocument) GetInactive() bool { // GetInactiveOk returns a tuple with the Inactive field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetInactiveOk() (*bool, bool) { - if o == nil || isNil(o.Inactive) { + if o == nil || IsNil(o.Inactive) { return nil, false } return o.Inactive, true @@ -485,7 +485,7 @@ func (o *IdentityDocument) GetInactiveOk() (*bool, bool) { // HasInactive returns a boolean if a field has been set. func (o *IdentityDocument) HasInactive() bool { - if o != nil && !isNil(o.Inactive) { + if o != nil && !IsNil(o.Inactive) { return true } @@ -499,7 +499,7 @@ func (o *IdentityDocument) SetInactive(v bool) { // GetProtected returns the Protected field value if set, zero value otherwise. func (o *IdentityDocument) GetProtected() bool { - if o == nil || isNil(o.Protected) { + if o == nil || IsNil(o.Protected) { var ret bool return ret } @@ -509,7 +509,7 @@ func (o *IdentityDocument) GetProtected() bool { // GetProtectedOk returns a tuple with the Protected field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetProtectedOk() (*bool, bool) { - if o == nil || isNil(o.Protected) { + if o == nil || IsNil(o.Protected) { return nil, false } return o.Protected, true @@ -517,7 +517,7 @@ func (o *IdentityDocument) GetProtectedOk() (*bool, bool) { // HasProtected returns a boolean if a field has been set. func (o *IdentityDocument) HasProtected() bool { - if o != nil && !isNil(o.Protected) { + if o != nil && !IsNil(o.Protected) { return true } @@ -531,7 +531,7 @@ func (o *IdentityDocument) SetProtected(v bool) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *IdentityDocument) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -541,7 +541,7 @@ func (o *IdentityDocument) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -549,7 +549,7 @@ func (o *IdentityDocument) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *IdentityDocument) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -563,7 +563,7 @@ func (o *IdentityDocument) SetStatus(v string) { // GetEmployeeNumber returns the EmployeeNumber field value if set, zero value otherwise. func (o *IdentityDocument) GetEmployeeNumber() string { - if o == nil || isNil(o.EmployeeNumber) { + if o == nil || IsNil(o.EmployeeNumber) { var ret string return ret } @@ -573,7 +573,7 @@ func (o *IdentityDocument) GetEmployeeNumber() string { // GetEmployeeNumberOk returns a tuple with the EmployeeNumber field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetEmployeeNumberOk() (*string, bool) { - if o == nil || isNil(o.EmployeeNumber) { + if o == nil || IsNil(o.EmployeeNumber) { return nil, false } return o.EmployeeNumber, true @@ -581,7 +581,7 @@ func (o *IdentityDocument) GetEmployeeNumberOk() (*string, bool) { // HasEmployeeNumber returns a boolean if a field has been set. func (o *IdentityDocument) HasEmployeeNumber() bool { - if o != nil && !isNil(o.EmployeeNumber) { + if o != nil && !IsNil(o.EmployeeNumber) { return true } @@ -595,7 +595,7 @@ func (o *IdentityDocument) SetEmployeeNumber(v string) { // GetManager returns the Manager field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IdentityDocument) GetManager() IdentityDocumentAllOfManager { - if o == nil || isNil(o.Manager.Get()) { + if o == nil || IsNil(o.Manager.Get()) { var ret IdentityDocumentAllOfManager return ret } @@ -637,7 +637,7 @@ func (o *IdentityDocument) UnsetManager() { // GetIsManager returns the IsManager field value if set, zero value otherwise. func (o *IdentityDocument) GetIsManager() bool { - if o == nil || isNil(o.IsManager) { + if o == nil || IsNil(o.IsManager) { var ret bool return ret } @@ -647,7 +647,7 @@ func (o *IdentityDocument) GetIsManager() bool { // GetIsManagerOk returns a tuple with the IsManager field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetIsManagerOk() (*bool, bool) { - if o == nil || isNil(o.IsManager) { + if o == nil || IsNil(o.IsManager) { return nil, false } return o.IsManager, true @@ -655,7 +655,7 @@ func (o *IdentityDocument) GetIsManagerOk() (*bool, bool) { // HasIsManager returns a boolean if a field has been set. func (o *IdentityDocument) HasIsManager() bool { - if o != nil && !isNil(o.IsManager) { + if o != nil && !IsNil(o.IsManager) { return true } @@ -669,7 +669,7 @@ func (o *IdentityDocument) SetIsManager(v bool) { // GetIdentityProfile returns the IdentityProfile field value if set, zero value otherwise. func (o *IdentityDocument) GetIdentityProfile() IdentityDocumentAllOfIdentityProfile { - if o == nil || isNil(o.IdentityProfile) { + if o == nil || IsNil(o.IdentityProfile) { var ret IdentityDocumentAllOfIdentityProfile return ret } @@ -679,7 +679,7 @@ func (o *IdentityDocument) GetIdentityProfile() IdentityDocumentAllOfIdentityPro // GetIdentityProfileOk returns a tuple with the IdentityProfile field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetIdentityProfileOk() (*IdentityDocumentAllOfIdentityProfile, bool) { - if o == nil || isNil(o.IdentityProfile) { + if o == nil || IsNil(o.IdentityProfile) { return nil, false } return o.IdentityProfile, true @@ -687,7 +687,7 @@ func (o *IdentityDocument) GetIdentityProfileOk() (*IdentityDocumentAllOfIdentit // HasIdentityProfile returns a boolean if a field has been set. func (o *IdentityDocument) HasIdentityProfile() bool { - if o != nil && !isNil(o.IdentityProfile) { + if o != nil && !IsNil(o.IdentityProfile) { return true } @@ -701,7 +701,7 @@ func (o *IdentityDocument) SetIdentityProfile(v IdentityDocumentAllOfIdentityPro // GetSource returns the Source field value if set, zero value otherwise. func (o *IdentityDocument) GetSource() IdentityDocumentAllOfSource { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { var ret IdentityDocumentAllOfSource return ret } @@ -711,7 +711,7 @@ func (o *IdentityDocument) GetSource() IdentityDocumentAllOfSource { // GetSourceOk returns a tuple with the Source field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetSourceOk() (*IdentityDocumentAllOfSource, bool) { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { return nil, false } return o.Source, true @@ -719,7 +719,7 @@ func (o *IdentityDocument) GetSourceOk() (*IdentityDocumentAllOfSource, bool) { // HasSource returns a boolean if a field has been set. func (o *IdentityDocument) HasSource() bool { - if o != nil && !isNil(o.Source) { + if o != nil && !IsNil(o.Source) { return true } @@ -733,7 +733,7 @@ func (o *IdentityDocument) SetSource(v IdentityDocumentAllOfSource) { // GetAttributes returns the Attributes field value if set, zero value otherwise. func (o *IdentityDocument) GetAttributes() map[string]interface{} { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { var ret map[string]interface{} return ret } @@ -743,7 +743,7 @@ func (o *IdentityDocument) GetAttributes() map[string]interface{} { // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetAttributesOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { return map[string]interface{}{}, false } return o.Attributes, true @@ -751,7 +751,7 @@ func (o *IdentityDocument) GetAttributesOk() (map[string]interface{}, bool) { // HasAttributes returns a boolean if a field has been set. func (o *IdentityDocument) HasAttributes() bool { - if o != nil && !isNil(o.Attributes) { + if o != nil && !IsNil(o.Attributes) { return true } @@ -765,7 +765,7 @@ func (o *IdentityDocument) SetAttributes(v map[string]interface{}) { // GetProcessingState returns the ProcessingState field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IdentityDocument) GetProcessingState() string { - if o == nil || isNil(o.ProcessingState.Get()) { + if o == nil || IsNil(o.ProcessingState.Get()) { var ret string return ret } @@ -807,7 +807,7 @@ func (o *IdentityDocument) UnsetProcessingState() { // GetProcessingDetails returns the ProcessingDetails field value if set, zero value otherwise. func (o *IdentityDocument) GetProcessingDetails() ProcessingDetails { - if o == nil || isNil(o.ProcessingDetails) { + if o == nil || IsNil(o.ProcessingDetails) { var ret ProcessingDetails return ret } @@ -817,7 +817,7 @@ func (o *IdentityDocument) GetProcessingDetails() ProcessingDetails { // GetProcessingDetailsOk returns a tuple with the ProcessingDetails field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetProcessingDetailsOk() (*ProcessingDetails, bool) { - if o == nil || isNil(o.ProcessingDetails) { + if o == nil || IsNil(o.ProcessingDetails) { return nil, false } return o.ProcessingDetails, true @@ -825,7 +825,7 @@ func (o *IdentityDocument) GetProcessingDetailsOk() (*ProcessingDetails, bool) { // HasProcessingDetails returns a boolean if a field has been set. func (o *IdentityDocument) HasProcessingDetails() bool { - if o != nil && !isNil(o.ProcessingDetails) { + if o != nil && !IsNil(o.ProcessingDetails) { return true } @@ -839,7 +839,7 @@ func (o *IdentityDocument) SetProcessingDetails(v ProcessingDetails) { // GetAccounts returns the Accounts field value if set, zero value otherwise. func (o *IdentityDocument) GetAccounts() []BaseAccount { - if o == nil || isNil(o.Accounts) { + if o == nil || IsNil(o.Accounts) { var ret []BaseAccount return ret } @@ -849,7 +849,7 @@ func (o *IdentityDocument) GetAccounts() []BaseAccount { // GetAccountsOk returns a tuple with the Accounts field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetAccountsOk() ([]BaseAccount, bool) { - if o == nil || isNil(o.Accounts) { + if o == nil || IsNil(o.Accounts) { return nil, false } return o.Accounts, true @@ -857,7 +857,7 @@ func (o *IdentityDocument) GetAccountsOk() ([]BaseAccount, bool) { // HasAccounts returns a boolean if a field has been set. func (o *IdentityDocument) HasAccounts() bool { - if o != nil && !isNil(o.Accounts) { + if o != nil && !IsNil(o.Accounts) { return true } @@ -871,7 +871,7 @@ func (o *IdentityDocument) SetAccounts(v []BaseAccount) { // GetAccountCount returns the AccountCount field value if set, zero value otherwise. func (o *IdentityDocument) GetAccountCount() int32 { - if o == nil || isNil(o.AccountCount) { + if o == nil || IsNil(o.AccountCount) { var ret int32 return ret } @@ -881,7 +881,7 @@ func (o *IdentityDocument) GetAccountCount() int32 { // GetAccountCountOk returns a tuple with the AccountCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetAccountCountOk() (*int32, bool) { - if o == nil || isNil(o.AccountCount) { + if o == nil || IsNil(o.AccountCount) { return nil, false } return o.AccountCount, true @@ -889,7 +889,7 @@ func (o *IdentityDocument) GetAccountCountOk() (*int32, bool) { // HasAccountCount returns a boolean if a field has been set. func (o *IdentityDocument) HasAccountCount() bool { - if o != nil && !isNil(o.AccountCount) { + if o != nil && !IsNil(o.AccountCount) { return true } @@ -903,7 +903,7 @@ func (o *IdentityDocument) SetAccountCount(v int32) { // GetApps returns the Apps field value if set, zero value otherwise. func (o *IdentityDocument) GetApps() []App { - if o == nil || isNil(o.Apps) { + if o == nil || IsNil(o.Apps) { var ret []App return ret } @@ -913,7 +913,7 @@ func (o *IdentityDocument) GetApps() []App { // GetAppsOk returns a tuple with the Apps field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetAppsOk() ([]App, bool) { - if o == nil || isNil(o.Apps) { + if o == nil || IsNil(o.Apps) { return nil, false } return o.Apps, true @@ -921,7 +921,7 @@ func (o *IdentityDocument) GetAppsOk() ([]App, bool) { // HasApps returns a boolean if a field has been set. func (o *IdentityDocument) HasApps() bool { - if o != nil && !isNil(o.Apps) { + if o != nil && !IsNil(o.Apps) { return true } @@ -935,7 +935,7 @@ func (o *IdentityDocument) SetApps(v []App) { // GetAppCount returns the AppCount field value if set, zero value otherwise. func (o *IdentityDocument) GetAppCount() int32 { - if o == nil || isNil(o.AppCount) { + if o == nil || IsNil(o.AppCount) { var ret int32 return ret } @@ -945,7 +945,7 @@ func (o *IdentityDocument) GetAppCount() int32 { // GetAppCountOk returns a tuple with the AppCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetAppCountOk() (*int32, bool) { - if o == nil || isNil(o.AppCount) { + if o == nil || IsNil(o.AppCount) { return nil, false } return o.AppCount, true @@ -953,7 +953,7 @@ func (o *IdentityDocument) GetAppCountOk() (*int32, bool) { // HasAppCount returns a boolean if a field has been set. func (o *IdentityDocument) HasAppCount() bool { - if o != nil && !isNil(o.AppCount) { + if o != nil && !IsNil(o.AppCount) { return true } @@ -967,7 +967,7 @@ func (o *IdentityDocument) SetAppCount(v int32) { // GetAccess returns the Access field value if set, zero value otherwise. func (o *IdentityDocument) GetAccess() []IdentityAccess { - if o == nil || isNil(o.Access) { + if o == nil || IsNil(o.Access) { var ret []IdentityAccess return ret } @@ -977,7 +977,7 @@ func (o *IdentityDocument) GetAccess() []IdentityAccess { // GetAccessOk returns a tuple with the Access field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetAccessOk() ([]IdentityAccess, bool) { - if o == nil || isNil(o.Access) { + if o == nil || IsNil(o.Access) { return nil, false } return o.Access, true @@ -985,7 +985,7 @@ func (o *IdentityDocument) GetAccessOk() ([]IdentityAccess, bool) { // HasAccess returns a boolean if a field has been set. func (o *IdentityDocument) HasAccess() bool { - if o != nil && !isNil(o.Access) { + if o != nil && !IsNil(o.Access) { return true } @@ -999,7 +999,7 @@ func (o *IdentityDocument) SetAccess(v []IdentityAccess) { // GetAccessCount returns the AccessCount field value if set, zero value otherwise. func (o *IdentityDocument) GetAccessCount() int32 { - if o == nil || isNil(o.AccessCount) { + if o == nil || IsNil(o.AccessCount) { var ret int32 return ret } @@ -1009,7 +1009,7 @@ func (o *IdentityDocument) GetAccessCount() int32 { // GetAccessCountOk returns a tuple with the AccessCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetAccessCountOk() (*int32, bool) { - if o == nil || isNil(o.AccessCount) { + if o == nil || IsNil(o.AccessCount) { return nil, false } return o.AccessCount, true @@ -1017,7 +1017,7 @@ func (o *IdentityDocument) GetAccessCountOk() (*int32, bool) { // HasAccessCount returns a boolean if a field has been set. func (o *IdentityDocument) HasAccessCount() bool { - if o != nil && !isNil(o.AccessCount) { + if o != nil && !IsNil(o.AccessCount) { return true } @@ -1031,7 +1031,7 @@ func (o *IdentityDocument) SetAccessCount(v int32) { // GetEntitlementCount returns the EntitlementCount field value if set, zero value otherwise. func (o *IdentityDocument) GetEntitlementCount() int32 { - if o == nil || isNil(o.EntitlementCount) { + if o == nil || IsNil(o.EntitlementCount) { var ret int32 return ret } @@ -1041,7 +1041,7 @@ func (o *IdentityDocument) GetEntitlementCount() int32 { // GetEntitlementCountOk returns a tuple with the EntitlementCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetEntitlementCountOk() (*int32, bool) { - if o == nil || isNil(o.EntitlementCount) { + if o == nil || IsNil(o.EntitlementCount) { return nil, false } return o.EntitlementCount, true @@ -1049,7 +1049,7 @@ func (o *IdentityDocument) GetEntitlementCountOk() (*int32, bool) { // HasEntitlementCount returns a boolean if a field has been set. func (o *IdentityDocument) HasEntitlementCount() bool { - if o != nil && !isNil(o.EntitlementCount) { + if o != nil && !IsNil(o.EntitlementCount) { return true } @@ -1063,7 +1063,7 @@ func (o *IdentityDocument) SetEntitlementCount(v int32) { // GetRoleCount returns the RoleCount field value if set, zero value otherwise. func (o *IdentityDocument) GetRoleCount() int32 { - if o == nil || isNil(o.RoleCount) { + if o == nil || IsNil(o.RoleCount) { var ret int32 return ret } @@ -1073,7 +1073,7 @@ func (o *IdentityDocument) GetRoleCount() int32 { // GetRoleCountOk returns a tuple with the RoleCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetRoleCountOk() (*int32, bool) { - if o == nil || isNil(o.RoleCount) { + if o == nil || IsNil(o.RoleCount) { return nil, false } return o.RoleCount, true @@ -1081,7 +1081,7 @@ func (o *IdentityDocument) GetRoleCountOk() (*int32, bool) { // HasRoleCount returns a boolean if a field has been set. func (o *IdentityDocument) HasRoleCount() bool { - if o != nil && !isNil(o.RoleCount) { + if o != nil && !IsNil(o.RoleCount) { return true } @@ -1095,7 +1095,7 @@ func (o *IdentityDocument) SetRoleCount(v int32) { // GetAccessProfileCount returns the AccessProfileCount field value if set, zero value otherwise. func (o *IdentityDocument) GetAccessProfileCount() int32 { - if o == nil || isNil(o.AccessProfileCount) { + if o == nil || IsNil(o.AccessProfileCount) { var ret int32 return ret } @@ -1105,7 +1105,7 @@ func (o *IdentityDocument) GetAccessProfileCount() int32 { // GetAccessProfileCountOk returns a tuple with the AccessProfileCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetAccessProfileCountOk() (*int32, bool) { - if o == nil || isNil(o.AccessProfileCount) { + if o == nil || IsNil(o.AccessProfileCount) { return nil, false } return o.AccessProfileCount, true @@ -1113,7 +1113,7 @@ func (o *IdentityDocument) GetAccessProfileCountOk() (*int32, bool) { // HasAccessProfileCount returns a boolean if a field has been set. func (o *IdentityDocument) HasAccessProfileCount() bool { - if o != nil && !isNil(o.AccessProfileCount) { + if o != nil && !IsNil(o.AccessProfileCount) { return true } @@ -1127,7 +1127,7 @@ func (o *IdentityDocument) SetAccessProfileCount(v int32) { // GetOwns returns the Owns field value if set, zero value otherwise. func (o *IdentityDocument) GetOwns() []Owns { - if o == nil || isNil(o.Owns) { + if o == nil || IsNil(o.Owns) { var ret []Owns return ret } @@ -1137,7 +1137,7 @@ func (o *IdentityDocument) GetOwns() []Owns { // GetOwnsOk returns a tuple with the Owns field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetOwnsOk() ([]Owns, bool) { - if o == nil || isNil(o.Owns) { + if o == nil || IsNil(o.Owns) { return nil, false } return o.Owns, true @@ -1145,7 +1145,7 @@ func (o *IdentityDocument) GetOwnsOk() ([]Owns, bool) { // HasOwns returns a boolean if a field has been set. func (o *IdentityDocument) HasOwns() bool { - if o != nil && !isNil(o.Owns) { + if o != nil && !IsNil(o.Owns) { return true } @@ -1159,7 +1159,7 @@ func (o *IdentityDocument) SetOwns(v []Owns) { // GetOwnsCount returns the OwnsCount field value if set, zero value otherwise. func (o *IdentityDocument) GetOwnsCount() int32 { - if o == nil || isNil(o.OwnsCount) { + if o == nil || IsNil(o.OwnsCount) { var ret int32 return ret } @@ -1169,7 +1169,7 @@ func (o *IdentityDocument) GetOwnsCount() int32 { // GetOwnsCountOk returns a tuple with the OwnsCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetOwnsCountOk() (*int32, bool) { - if o == nil || isNil(o.OwnsCount) { + if o == nil || IsNil(o.OwnsCount) { return nil, false } return o.OwnsCount, true @@ -1177,7 +1177,7 @@ func (o *IdentityDocument) GetOwnsCountOk() (*int32, bool) { // HasOwnsCount returns a boolean if a field has been set. func (o *IdentityDocument) HasOwnsCount() bool { - if o != nil && !isNil(o.OwnsCount) { + if o != nil && !IsNil(o.OwnsCount) { return true } @@ -1191,7 +1191,7 @@ func (o *IdentityDocument) SetOwnsCount(v int32) { // GetTags returns the Tags field value if set, zero value otherwise. func (o *IdentityDocument) GetTags() []string { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { var ret []string return ret } @@ -1201,7 +1201,7 @@ func (o *IdentityDocument) GetTags() []string { // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocument) GetTagsOk() ([]string, bool) { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { return nil, false } return o.Tags, true @@ -1209,7 +1209,7 @@ func (o *IdentityDocument) GetTagsOk() ([]string, bool) { // HasTags returns a boolean if a field has been set. func (o *IdentityDocument) HasTags() bool { - if o != nil && !isNil(o.Tags) { + if o != nil && !IsNil(o.Tags) { return true } @@ -1234,16 +1234,16 @@ func (o IdentityDocument) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["name"] = o.Name toSerialize["_type"] = o.Type - if !isNil(o.DisplayName) { + if !IsNil(o.DisplayName) { toSerialize["displayName"] = o.DisplayName } - if !isNil(o.FirstName) { + if !IsNil(o.FirstName) { toSerialize["firstName"] = o.FirstName } - if !isNil(o.LastName) { + if !IsNil(o.LastName) { toSerialize["lastName"] = o.LastName } - if !isNil(o.Email) { + if !IsNil(o.Email) { toSerialize["email"] = o.Email } if o.Created.IsSet() { @@ -1252,79 +1252,79 @@ func (o IdentityDocument) ToMap() (map[string]interface{}, error) { if o.Modified.IsSet() { toSerialize["modified"] = o.Modified.Get() } - if !isNil(o.Phone) { + if !IsNil(o.Phone) { toSerialize["phone"] = o.Phone } - if !isNil(o.Synced) { + if !IsNil(o.Synced) { toSerialize["synced"] = o.Synced } - if !isNil(o.Inactive) { + if !IsNil(o.Inactive) { toSerialize["inactive"] = o.Inactive } - if !isNil(o.Protected) { + if !IsNil(o.Protected) { toSerialize["protected"] = o.Protected } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } - if !isNil(o.EmployeeNumber) { + if !IsNil(o.EmployeeNumber) { toSerialize["employeeNumber"] = o.EmployeeNumber } if o.Manager.IsSet() { toSerialize["manager"] = o.Manager.Get() } - if !isNil(o.IsManager) { + if !IsNil(o.IsManager) { toSerialize["isManager"] = o.IsManager } - if !isNil(o.IdentityProfile) { + if !IsNil(o.IdentityProfile) { toSerialize["identityProfile"] = o.IdentityProfile } - if !isNil(o.Source) { + if !IsNil(o.Source) { toSerialize["source"] = o.Source } - if !isNil(o.Attributes) { + if !IsNil(o.Attributes) { toSerialize["attributes"] = o.Attributes } if o.ProcessingState.IsSet() { toSerialize["processingState"] = o.ProcessingState.Get() } - if !isNil(o.ProcessingDetails) { + if !IsNil(o.ProcessingDetails) { toSerialize["processingDetails"] = o.ProcessingDetails } - if !isNil(o.Accounts) { + if !IsNil(o.Accounts) { toSerialize["accounts"] = o.Accounts } - if !isNil(o.AccountCount) { + if !IsNil(o.AccountCount) { toSerialize["accountCount"] = o.AccountCount } - if !isNil(o.Apps) { + if !IsNil(o.Apps) { toSerialize["apps"] = o.Apps } - if !isNil(o.AppCount) { + if !IsNil(o.AppCount) { toSerialize["appCount"] = o.AppCount } - if !isNil(o.Access) { + if !IsNil(o.Access) { toSerialize["access"] = o.Access } - if !isNil(o.AccessCount) { + if !IsNil(o.AccessCount) { toSerialize["accessCount"] = o.AccessCount } - if !isNil(o.EntitlementCount) { + if !IsNil(o.EntitlementCount) { toSerialize["entitlementCount"] = o.EntitlementCount } - if !isNil(o.RoleCount) { + if !IsNil(o.RoleCount) { toSerialize["roleCount"] = o.RoleCount } - if !isNil(o.AccessProfileCount) { + if !IsNil(o.AccessProfileCount) { toSerialize["accessProfileCount"] = o.AccessProfileCount } - if !isNil(o.Owns) { + if !IsNil(o.Owns) { toSerialize["owns"] = o.Owns } - if !isNil(o.OwnsCount) { + if !IsNil(o.OwnsCount) { toSerialize["ownsCount"] = o.OwnsCount } - if !isNil(o.Tags) { + if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -1335,8 +1335,8 @@ func (o IdentityDocument) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityDocument) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *IdentityDocument) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -1347,7 +1347,7 @@ func (o *IdentityDocument) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -1361,13 +1361,17 @@ func (o *IdentityDocument) UnmarshalJSON(bytes []byte) (err error) { varIdentityDocument := _IdentityDocument{} - if err = json.Unmarshal(bytes, &varIdentityDocument); err == nil { + err = json.Unmarshal(data, &varIdentityDocument) + + if err != nil { + return err + } + *o = IdentityDocument(varIdentityDocument) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "_type") diff --git a/api_v3/model_identity_document_all_of_identity_profile.go b/api_v3/model_identity_document_all_of_identity_profile.go index 12b8e183f..c93c9d9ef 100644 --- a/api_v3/model_identity_document_all_of_identity_profile.go +++ b/api_v3/model_identity_document_all_of_identity_profile.go @@ -47,7 +47,7 @@ func NewIdentityDocumentAllOfIdentityProfileWithDefaults() *IdentityDocumentAllO // GetId returns the Id field value if set, zero value otherwise. func (o *IdentityDocumentAllOfIdentityProfile) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *IdentityDocumentAllOfIdentityProfile) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocumentAllOfIdentityProfile) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -65,7 +65,7 @@ func (o *IdentityDocumentAllOfIdentityProfile) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *IdentityDocumentAllOfIdentityProfile) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -79,7 +79,7 @@ func (o *IdentityDocumentAllOfIdentityProfile) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *IdentityDocumentAllOfIdentityProfile) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *IdentityDocumentAllOfIdentityProfile) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocumentAllOfIdentityProfile) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -97,7 +97,7 @@ func (o *IdentityDocumentAllOfIdentityProfile) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *IdentityDocumentAllOfIdentityProfile) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -119,10 +119,10 @@ func (o IdentityDocumentAllOfIdentityProfile) MarshalJSON() ([]byte, error) { func (o IdentityDocumentAllOfIdentityProfile) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -133,16 +133,20 @@ func (o IdentityDocumentAllOfIdentityProfile) ToMap() (map[string]interface{}, e return toSerialize, nil } -func (o *IdentityDocumentAllOfIdentityProfile) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityDocumentAllOfIdentityProfile) UnmarshalJSON(data []byte) (err error) { varIdentityDocumentAllOfIdentityProfile := _IdentityDocumentAllOfIdentityProfile{} - if err = json.Unmarshal(bytes, &varIdentityDocumentAllOfIdentityProfile); err == nil { + err = json.Unmarshal(data, &varIdentityDocumentAllOfIdentityProfile) + + if err != nil { + return err + } + *o = IdentityDocumentAllOfIdentityProfile(varIdentityDocumentAllOfIdentityProfile) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_identity_document_all_of_manager.go b/api_v3/model_identity_document_all_of_manager.go index be75b3e04..88b11e224 100644 --- a/api_v3/model_identity_document_all_of_manager.go +++ b/api_v3/model_identity_document_all_of_manager.go @@ -49,7 +49,7 @@ func NewIdentityDocumentAllOfManagerWithDefaults() *IdentityDocumentAllOfManager // GetId returns the Id field value if set, zero value otherwise. func (o *IdentityDocumentAllOfManager) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *IdentityDocumentAllOfManager) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocumentAllOfManager) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -67,7 +67,7 @@ func (o *IdentityDocumentAllOfManager) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *IdentityDocumentAllOfManager) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -81,7 +81,7 @@ func (o *IdentityDocumentAllOfManager) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *IdentityDocumentAllOfManager) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *IdentityDocumentAllOfManager) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocumentAllOfManager) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -99,7 +99,7 @@ func (o *IdentityDocumentAllOfManager) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *IdentityDocumentAllOfManager) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -113,7 +113,7 @@ func (o *IdentityDocumentAllOfManager) SetName(v string) { // GetDisplayName returns the DisplayName field value if set, zero value otherwise. func (o *IdentityDocumentAllOfManager) GetDisplayName() string { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *IdentityDocumentAllOfManager) GetDisplayName() string { // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocumentAllOfManager) GetDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { return nil, false } return o.DisplayName, true @@ -131,7 +131,7 @@ func (o *IdentityDocumentAllOfManager) GetDisplayNameOk() (*string, bool) { // HasDisplayName returns a boolean if a field has been set. func (o *IdentityDocumentAllOfManager) HasDisplayName() bool { - if o != nil && !isNil(o.DisplayName) { + if o != nil && !IsNil(o.DisplayName) { return true } @@ -153,13 +153,13 @@ func (o IdentityDocumentAllOfManager) MarshalJSON() ([]byte, error) { func (o IdentityDocumentAllOfManager) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.DisplayName) { + if !IsNil(o.DisplayName) { toSerialize["displayName"] = o.DisplayName } @@ -170,16 +170,20 @@ func (o IdentityDocumentAllOfManager) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityDocumentAllOfManager) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityDocumentAllOfManager) UnmarshalJSON(data []byte) (err error) { varIdentityDocumentAllOfManager := _IdentityDocumentAllOfManager{} - if err = json.Unmarshal(bytes, &varIdentityDocumentAllOfManager); err == nil { + err = json.Unmarshal(data, &varIdentityDocumentAllOfManager) + + if err != nil { + return err + } + *o = IdentityDocumentAllOfManager(varIdentityDocumentAllOfManager) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "displayName") diff --git a/api_v3/model_identity_document_all_of_source.go b/api_v3/model_identity_document_all_of_source.go index 90d9e0b81..736396947 100644 --- a/api_v3/model_identity_document_all_of_source.go +++ b/api_v3/model_identity_document_all_of_source.go @@ -47,7 +47,7 @@ func NewIdentityDocumentAllOfSourceWithDefaults() *IdentityDocumentAllOfSource { // GetId returns the Id field value if set, zero value otherwise. func (o *IdentityDocumentAllOfSource) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *IdentityDocumentAllOfSource) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocumentAllOfSource) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -65,7 +65,7 @@ func (o *IdentityDocumentAllOfSource) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *IdentityDocumentAllOfSource) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -79,7 +79,7 @@ func (o *IdentityDocumentAllOfSource) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *IdentityDocumentAllOfSource) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *IdentityDocumentAllOfSource) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityDocumentAllOfSource) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -97,7 +97,7 @@ func (o *IdentityDocumentAllOfSource) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *IdentityDocumentAllOfSource) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -119,10 +119,10 @@ func (o IdentityDocumentAllOfSource) MarshalJSON() ([]byte, error) { func (o IdentityDocumentAllOfSource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -133,16 +133,20 @@ func (o IdentityDocumentAllOfSource) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityDocumentAllOfSource) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityDocumentAllOfSource) UnmarshalJSON(data []byte) (err error) { varIdentityDocumentAllOfSource := _IdentityDocumentAllOfSource{} - if err = json.Unmarshal(bytes, &varIdentityDocumentAllOfSource); err == nil { + err = json.Unmarshal(data, &varIdentityDocumentAllOfSource) + + if err != nil { + return err + } + *o = IdentityDocumentAllOfSource(varIdentityDocumentAllOfSource) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_identity_exception_report_reference.go b/api_v3/model_identity_exception_report_reference.go index 3dcc23b88..751f1a8a4 100644 --- a/api_v3/model_identity_exception_report_reference.go +++ b/api_v3/model_identity_exception_report_reference.go @@ -47,7 +47,7 @@ func NewIdentityExceptionReportReferenceWithDefaults() *IdentityExceptionReportR // GetTaskResultId returns the TaskResultId field value if set, zero value otherwise. func (o *IdentityExceptionReportReference) GetTaskResultId() string { - if o == nil || isNil(o.TaskResultId) { + if o == nil || IsNil(o.TaskResultId) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *IdentityExceptionReportReference) GetTaskResultId() string { // GetTaskResultIdOk returns a tuple with the TaskResultId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityExceptionReportReference) GetTaskResultIdOk() (*string, bool) { - if o == nil || isNil(o.TaskResultId) { + if o == nil || IsNil(o.TaskResultId) { return nil, false } return o.TaskResultId, true @@ -65,7 +65,7 @@ func (o *IdentityExceptionReportReference) GetTaskResultIdOk() (*string, bool) { // HasTaskResultId returns a boolean if a field has been set. func (o *IdentityExceptionReportReference) HasTaskResultId() bool { - if o != nil && !isNil(o.TaskResultId) { + if o != nil && !IsNil(o.TaskResultId) { return true } @@ -79,7 +79,7 @@ func (o *IdentityExceptionReportReference) SetTaskResultId(v string) { // GetReportName returns the ReportName field value if set, zero value otherwise. func (o *IdentityExceptionReportReference) GetReportName() string { - if o == nil || isNil(o.ReportName) { + if o == nil || IsNil(o.ReportName) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *IdentityExceptionReportReference) GetReportName() string { // GetReportNameOk returns a tuple with the ReportName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityExceptionReportReference) GetReportNameOk() (*string, bool) { - if o == nil || isNil(o.ReportName) { + if o == nil || IsNil(o.ReportName) { return nil, false } return o.ReportName, true @@ -97,7 +97,7 @@ func (o *IdentityExceptionReportReference) GetReportNameOk() (*string, bool) { // HasReportName returns a boolean if a field has been set. func (o *IdentityExceptionReportReference) HasReportName() bool { - if o != nil && !isNil(o.ReportName) { + if o != nil && !IsNil(o.ReportName) { return true } @@ -119,10 +119,10 @@ func (o IdentityExceptionReportReference) MarshalJSON() ([]byte, error) { func (o IdentityExceptionReportReference) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.TaskResultId) { + if !IsNil(o.TaskResultId) { toSerialize["taskResultId"] = o.TaskResultId } - if !isNil(o.ReportName) { + if !IsNil(o.ReportName) { toSerialize["reportName"] = o.ReportName } @@ -133,16 +133,20 @@ func (o IdentityExceptionReportReference) ToMap() (map[string]interface{}, error return toSerialize, nil } -func (o *IdentityExceptionReportReference) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityExceptionReportReference) UnmarshalJSON(data []byte) (err error) { varIdentityExceptionReportReference := _IdentityExceptionReportReference{} - if err = json.Unmarshal(bytes, &varIdentityExceptionReportReference); err == nil { + err = json.Unmarshal(data, &varIdentityExceptionReportReference) + + if err != nil { + return err + } + *o = IdentityExceptionReportReference(varIdentityExceptionReportReference) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "taskResultId") delete(additionalProperties, "reportName") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_identity_preview_request.go b/api_v3/model_identity_preview_request.go index 20670b0d9..2df5eec0c 100644 --- a/api_v3/model_identity_preview_request.go +++ b/api_v3/model_identity_preview_request.go @@ -46,7 +46,7 @@ func NewIdentityPreviewRequestWithDefaults() *IdentityPreviewRequest { // GetIdentityId returns the IdentityId field value if set, zero value otherwise. func (o *IdentityPreviewRequest) GetIdentityId() string { - if o == nil || isNil(o.IdentityId) { + if o == nil || IsNil(o.IdentityId) { var ret string return ret } @@ -56,7 +56,7 @@ func (o *IdentityPreviewRequest) GetIdentityId() string { // GetIdentityIdOk returns a tuple with the IdentityId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityPreviewRequest) GetIdentityIdOk() (*string, bool) { - if o == nil || isNil(o.IdentityId) { + if o == nil || IsNil(o.IdentityId) { return nil, false } return o.IdentityId, true @@ -64,7 +64,7 @@ func (o *IdentityPreviewRequest) GetIdentityIdOk() (*string, bool) { // HasIdentityId returns a boolean if a field has been set. func (o *IdentityPreviewRequest) HasIdentityId() bool { - if o != nil && !isNil(o.IdentityId) { + if o != nil && !IsNil(o.IdentityId) { return true } @@ -78,7 +78,7 @@ func (o *IdentityPreviewRequest) SetIdentityId(v string) { // GetIdentityAttributeConfig returns the IdentityAttributeConfig field value if set, zero value otherwise. func (o *IdentityPreviewRequest) GetIdentityAttributeConfig() []IdentityAttributeConfig { - if o == nil || isNil(o.IdentityAttributeConfig) { + if o == nil || IsNil(o.IdentityAttributeConfig) { var ret []IdentityAttributeConfig return ret } @@ -88,7 +88,7 @@ func (o *IdentityPreviewRequest) GetIdentityAttributeConfig() []IdentityAttribut // GetIdentityAttributeConfigOk returns a tuple with the IdentityAttributeConfig field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityPreviewRequest) GetIdentityAttributeConfigOk() ([]IdentityAttributeConfig, bool) { - if o == nil || isNil(o.IdentityAttributeConfig) { + if o == nil || IsNil(o.IdentityAttributeConfig) { return nil, false } return o.IdentityAttributeConfig, true @@ -96,7 +96,7 @@ func (o *IdentityPreviewRequest) GetIdentityAttributeConfigOk() ([]IdentityAttri // HasIdentityAttributeConfig returns a boolean if a field has been set. func (o *IdentityPreviewRequest) HasIdentityAttributeConfig() bool { - if o != nil && !isNil(o.IdentityAttributeConfig) { + if o != nil && !IsNil(o.IdentityAttributeConfig) { return true } @@ -118,10 +118,10 @@ func (o IdentityPreviewRequest) MarshalJSON() ([]byte, error) { func (o IdentityPreviewRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.IdentityId) { + if !IsNil(o.IdentityId) { toSerialize["identityId"] = o.IdentityId } - if !isNil(o.IdentityAttributeConfig) { + if !IsNil(o.IdentityAttributeConfig) { toSerialize["identityAttributeConfig"] = o.IdentityAttributeConfig } @@ -132,16 +132,20 @@ func (o IdentityPreviewRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityPreviewRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityPreviewRequest) UnmarshalJSON(data []byte) (err error) { varIdentityPreviewRequest := _IdentityPreviewRequest{} - if err = json.Unmarshal(bytes, &varIdentityPreviewRequest); err == nil { + err = json.Unmarshal(data, &varIdentityPreviewRequest) + + if err != nil { + return err + } + *o = IdentityPreviewRequest(varIdentityPreviewRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "identityId") delete(additionalProperties, "identityAttributeConfig") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_identity_preview_response.go b/api_v3/model_identity_preview_response.go index d8a93bb89..5bf49bb9a 100644 --- a/api_v3/model_identity_preview_response.go +++ b/api_v3/model_identity_preview_response.go @@ -45,7 +45,7 @@ func NewIdentityPreviewResponseWithDefaults() *IdentityPreviewResponse { // GetIdentity returns the Identity field value if set, zero value otherwise. func (o *IdentityPreviewResponse) GetIdentity() IdentityPreviewResponseIdentity { - if o == nil || isNil(o.Identity) { + if o == nil || IsNil(o.Identity) { var ret IdentityPreviewResponseIdentity return ret } @@ -55,7 +55,7 @@ func (o *IdentityPreviewResponse) GetIdentity() IdentityPreviewResponseIdentity // GetIdentityOk returns a tuple with the Identity field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityPreviewResponse) GetIdentityOk() (*IdentityPreviewResponseIdentity, bool) { - if o == nil || isNil(o.Identity) { + if o == nil || IsNil(o.Identity) { return nil, false } return o.Identity, true @@ -63,7 +63,7 @@ func (o *IdentityPreviewResponse) GetIdentityOk() (*IdentityPreviewResponseIdent // HasIdentity returns a boolean if a field has been set. func (o *IdentityPreviewResponse) HasIdentity() bool { - if o != nil && !isNil(o.Identity) { + if o != nil && !IsNil(o.Identity) { return true } @@ -77,7 +77,7 @@ func (o *IdentityPreviewResponse) SetIdentity(v IdentityPreviewResponseIdentity) // GetPreviewAttributes returns the PreviewAttributes field value if set, zero value otherwise. func (o *IdentityPreviewResponse) GetPreviewAttributes() []IdentityAttributePreview { - if o == nil || isNil(o.PreviewAttributes) { + if o == nil || IsNil(o.PreviewAttributes) { var ret []IdentityAttributePreview return ret } @@ -87,7 +87,7 @@ func (o *IdentityPreviewResponse) GetPreviewAttributes() []IdentityAttributePrev // GetPreviewAttributesOk returns a tuple with the PreviewAttributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityPreviewResponse) GetPreviewAttributesOk() ([]IdentityAttributePreview, bool) { - if o == nil || isNil(o.PreviewAttributes) { + if o == nil || IsNil(o.PreviewAttributes) { return nil, false } return o.PreviewAttributes, true @@ -95,7 +95,7 @@ func (o *IdentityPreviewResponse) GetPreviewAttributesOk() ([]IdentityAttributeP // HasPreviewAttributes returns a boolean if a field has been set. func (o *IdentityPreviewResponse) HasPreviewAttributes() bool { - if o != nil && !isNil(o.PreviewAttributes) { + if o != nil && !IsNil(o.PreviewAttributes) { return true } @@ -117,10 +117,10 @@ func (o IdentityPreviewResponse) MarshalJSON() ([]byte, error) { func (o IdentityPreviewResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Identity) { + if !IsNil(o.Identity) { toSerialize["identity"] = o.Identity } - if !isNil(o.PreviewAttributes) { + if !IsNil(o.PreviewAttributes) { toSerialize["previewAttributes"] = o.PreviewAttributes } @@ -131,16 +131,20 @@ func (o IdentityPreviewResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityPreviewResponse) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityPreviewResponse) UnmarshalJSON(data []byte) (err error) { varIdentityPreviewResponse := _IdentityPreviewResponse{} - if err = json.Unmarshal(bytes, &varIdentityPreviewResponse); err == nil { + err = json.Unmarshal(data, &varIdentityPreviewResponse) + + if err != nil { + return err + } + *o = IdentityPreviewResponse(varIdentityPreviewResponse) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "identity") delete(additionalProperties, "previewAttributes") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_identity_preview_response_identity.go b/api_v3/model_identity_preview_response_identity.go index bac553296..ef30f525d 100644 --- a/api_v3/model_identity_preview_response_identity.go +++ b/api_v3/model_identity_preview_response_identity.go @@ -49,7 +49,7 @@ func NewIdentityPreviewResponseIdentityWithDefaults() *IdentityPreviewResponseId // GetType returns the Type field value if set, zero value otherwise. func (o *IdentityPreviewResponseIdentity) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *IdentityPreviewResponseIdentity) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityPreviewResponseIdentity) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *IdentityPreviewResponseIdentity) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *IdentityPreviewResponseIdentity) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *IdentityPreviewResponseIdentity) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *IdentityPreviewResponseIdentity) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *IdentityPreviewResponseIdentity) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityPreviewResponseIdentity) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *IdentityPreviewResponseIdentity) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *IdentityPreviewResponseIdentity) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *IdentityPreviewResponseIdentity) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *IdentityPreviewResponseIdentity) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *IdentityPreviewResponseIdentity) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityPreviewResponseIdentity) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *IdentityPreviewResponseIdentity) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *IdentityPreviewResponseIdentity) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o IdentityPreviewResponseIdentity) MarshalJSON() ([]byte, error) { func (o IdentityPreviewResponseIdentity) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o IdentityPreviewResponseIdentity) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *IdentityPreviewResponseIdentity) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityPreviewResponseIdentity) UnmarshalJSON(data []byte) (err error) { varIdentityPreviewResponseIdentity := _IdentityPreviewResponseIdentity{} - if err = json.Unmarshal(bytes, &varIdentityPreviewResponseIdentity); err == nil { + err = json.Unmarshal(data, &varIdentityPreviewResponseIdentity) + + if err != nil { + return err + } + *o = IdentityPreviewResponseIdentity(varIdentityPreviewResponseIdentity) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_identity_profile.go b/api_v3/model_identity_profile.go index 6a8d37cd7..374aa8b5f 100644 --- a/api_v3/model_identity_profile.go +++ b/api_v3/model_identity_profile.go @@ -77,7 +77,7 @@ func NewIdentityProfileWithDefaults() *IdentityProfile { // GetId returns the Id field value if set, zero value otherwise. func (o *IdentityProfile) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -87,7 +87,7 @@ func (o *IdentityProfile) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfile) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -95,7 +95,7 @@ func (o *IdentityProfile) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *IdentityProfile) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -133,7 +133,7 @@ func (o *IdentityProfile) SetName(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *IdentityProfile) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -143,7 +143,7 @@ func (o *IdentityProfile) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfile) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -151,7 +151,7 @@ func (o *IdentityProfile) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *IdentityProfile) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -165,7 +165,7 @@ func (o *IdentityProfile) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *IdentityProfile) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -175,7 +175,7 @@ func (o *IdentityProfile) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfile) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -183,7 +183,7 @@ func (o *IdentityProfile) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *IdentityProfile) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -197,7 +197,7 @@ func (o *IdentityProfile) SetModified(v time.Time) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IdentityProfile) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -239,7 +239,7 @@ func (o *IdentityProfile) UnsetDescription() { // GetOwner returns the Owner field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IdentityProfile) GetOwner() IdentityProfileAllOfOwner { - if o == nil || isNil(o.Owner.Get()) { + if o == nil || IsNil(o.Owner.Get()) { var ret IdentityProfileAllOfOwner return ret } @@ -281,7 +281,7 @@ func (o *IdentityProfile) UnsetOwner() { // GetPriority returns the Priority field value if set, zero value otherwise. func (o *IdentityProfile) GetPriority() int64 { - if o == nil || isNil(o.Priority) { + if o == nil || IsNil(o.Priority) { var ret int64 return ret } @@ -291,7 +291,7 @@ func (o *IdentityProfile) GetPriority() int64 { // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfile) GetPriorityOk() (*int64, bool) { - if o == nil || isNil(o.Priority) { + if o == nil || IsNil(o.Priority) { return nil, false } return o.Priority, true @@ -299,7 +299,7 @@ func (o *IdentityProfile) GetPriorityOk() (*int64, bool) { // HasPriority returns a boolean if a field has been set. func (o *IdentityProfile) HasPriority() bool { - if o != nil && !isNil(o.Priority) { + if o != nil && !IsNil(o.Priority) { return true } @@ -337,7 +337,7 @@ func (o *IdentityProfile) SetAuthoritativeSource(v IdentityProfileAllOfAuthorita // GetIdentityRefreshRequired returns the IdentityRefreshRequired field value if set, zero value otherwise. func (o *IdentityProfile) GetIdentityRefreshRequired() bool { - if o == nil || isNil(o.IdentityRefreshRequired) { + if o == nil || IsNil(o.IdentityRefreshRequired) { var ret bool return ret } @@ -347,7 +347,7 @@ func (o *IdentityProfile) GetIdentityRefreshRequired() bool { // GetIdentityRefreshRequiredOk returns a tuple with the IdentityRefreshRequired field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfile) GetIdentityRefreshRequiredOk() (*bool, bool) { - if o == nil || isNil(o.IdentityRefreshRequired) { + if o == nil || IsNil(o.IdentityRefreshRequired) { return nil, false } return o.IdentityRefreshRequired, true @@ -355,7 +355,7 @@ func (o *IdentityProfile) GetIdentityRefreshRequiredOk() (*bool, bool) { // HasIdentityRefreshRequired returns a boolean if a field has been set. func (o *IdentityProfile) HasIdentityRefreshRequired() bool { - if o != nil && !isNil(o.IdentityRefreshRequired) { + if o != nil && !IsNil(o.IdentityRefreshRequired) { return true } @@ -369,7 +369,7 @@ func (o *IdentityProfile) SetIdentityRefreshRequired(v bool) { // GetIdentityCount returns the IdentityCount field value if set, zero value otherwise. func (o *IdentityProfile) GetIdentityCount() int32 { - if o == nil || isNil(o.IdentityCount) { + if o == nil || IsNil(o.IdentityCount) { var ret int32 return ret } @@ -379,7 +379,7 @@ func (o *IdentityProfile) GetIdentityCount() int32 { // GetIdentityCountOk returns a tuple with the IdentityCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfile) GetIdentityCountOk() (*int32, bool) { - if o == nil || isNil(o.IdentityCount) { + if o == nil || IsNil(o.IdentityCount) { return nil, false } return o.IdentityCount, true @@ -387,7 +387,7 @@ func (o *IdentityProfile) GetIdentityCountOk() (*int32, bool) { // HasIdentityCount returns a boolean if a field has been set. func (o *IdentityProfile) HasIdentityCount() bool { - if o != nil && !isNil(o.IdentityCount) { + if o != nil && !IsNil(o.IdentityCount) { return true } @@ -401,7 +401,7 @@ func (o *IdentityProfile) SetIdentityCount(v int32) { // GetIdentityAttributeConfig returns the IdentityAttributeConfig field value if set, zero value otherwise. func (o *IdentityProfile) GetIdentityAttributeConfig() IdentityAttributeConfig { - if o == nil || isNil(o.IdentityAttributeConfig) { + if o == nil || IsNil(o.IdentityAttributeConfig) { var ret IdentityAttributeConfig return ret } @@ -411,7 +411,7 @@ func (o *IdentityProfile) GetIdentityAttributeConfig() IdentityAttributeConfig { // GetIdentityAttributeConfigOk returns a tuple with the IdentityAttributeConfig field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfile) GetIdentityAttributeConfigOk() (*IdentityAttributeConfig, bool) { - if o == nil || isNil(o.IdentityAttributeConfig) { + if o == nil || IsNil(o.IdentityAttributeConfig) { return nil, false } return o.IdentityAttributeConfig, true @@ -419,7 +419,7 @@ func (o *IdentityProfile) GetIdentityAttributeConfigOk() (*IdentityAttributeConf // HasIdentityAttributeConfig returns a boolean if a field has been set. func (o *IdentityProfile) HasIdentityAttributeConfig() bool { - if o != nil && !isNil(o.IdentityAttributeConfig) { + if o != nil && !IsNil(o.IdentityAttributeConfig) { return true } @@ -433,7 +433,7 @@ func (o *IdentityProfile) SetIdentityAttributeConfig(v IdentityAttributeConfig) // GetIdentityExceptionReportReference returns the IdentityExceptionReportReference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IdentityProfile) GetIdentityExceptionReportReference() IdentityExceptionReportReference { - if o == nil || isNil(o.IdentityExceptionReportReference.Get()) { + if o == nil || IsNil(o.IdentityExceptionReportReference.Get()) { var ret IdentityExceptionReportReference return ret } @@ -475,7 +475,7 @@ func (o *IdentityProfile) UnsetIdentityExceptionReportReference() { // GetHasTimeBasedAttr returns the HasTimeBasedAttr field value if set, zero value otherwise. func (o *IdentityProfile) GetHasTimeBasedAttr() bool { - if o == nil || isNil(o.HasTimeBasedAttr) { + if o == nil || IsNil(o.HasTimeBasedAttr) { var ret bool return ret } @@ -485,7 +485,7 @@ func (o *IdentityProfile) GetHasTimeBasedAttr() bool { // GetHasTimeBasedAttrOk returns a tuple with the HasTimeBasedAttr field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfile) GetHasTimeBasedAttrOk() (*bool, bool) { - if o == nil || isNil(o.HasTimeBasedAttr) { + if o == nil || IsNil(o.HasTimeBasedAttr) { return nil, false } return o.HasTimeBasedAttr, true @@ -493,7 +493,7 @@ func (o *IdentityProfile) GetHasTimeBasedAttrOk() (*bool, bool) { // HasHasTimeBasedAttr returns a boolean if a field has been set. func (o *IdentityProfile) HasHasTimeBasedAttr() bool { - if o != nil && !isNil(o.HasTimeBasedAttr) { + if o != nil && !IsNil(o.HasTimeBasedAttr) { return true } @@ -515,33 +515,39 @@ func (o IdentityProfile) MarshalJSON() ([]byte, error) { func (o IdentityProfile) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } toSerialize["name"] = o.Name - // skip: created is readOnly - // skip: modified is readOnly + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } + if !IsNil(o.Modified) { + toSerialize["modified"] = o.Modified + } if o.Description.IsSet() { toSerialize["description"] = o.Description.Get() } if o.Owner.IsSet() { toSerialize["owner"] = o.Owner.Get() } - if !isNil(o.Priority) { + if !IsNil(o.Priority) { toSerialize["priority"] = o.Priority } toSerialize["authoritativeSource"] = o.AuthoritativeSource - if !isNil(o.IdentityRefreshRequired) { + if !IsNil(o.IdentityRefreshRequired) { toSerialize["identityRefreshRequired"] = o.IdentityRefreshRequired } - if !isNil(o.IdentityCount) { + if !IsNil(o.IdentityCount) { toSerialize["identityCount"] = o.IdentityCount } - if !isNil(o.IdentityAttributeConfig) { + if !IsNil(o.IdentityAttributeConfig) { toSerialize["identityAttributeConfig"] = o.IdentityAttributeConfig } if o.IdentityExceptionReportReference.IsSet() { toSerialize["identityExceptionReportReference"] = o.IdentityExceptionReportReference.Get() } - if !isNil(o.HasTimeBasedAttr) { + if !IsNil(o.HasTimeBasedAttr) { toSerialize["hasTimeBasedAttr"] = o.HasTimeBasedAttr } @@ -552,8 +558,8 @@ func (o IdentityProfile) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityProfile) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *IdentityProfile) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -563,7 +569,7 @@ func (o *IdentityProfile) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -577,13 +583,17 @@ func (o *IdentityProfile) UnmarshalJSON(bytes []byte) (err error) { varIdentityProfile := _IdentityProfile{} - if err = json.Unmarshal(bytes, &varIdentityProfile); err == nil { + err = json.Unmarshal(data, &varIdentityProfile) + + if err != nil { + return err + } + *o = IdentityProfile(varIdentityProfile) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "created") diff --git a/api_v3/model_identity_profile_all_of_authoritative_source.go b/api_v3/model_identity_profile_all_of_authoritative_source.go index 60cdb45a7..f5b26723e 100644 --- a/api_v3/model_identity_profile_all_of_authoritative_source.go +++ b/api_v3/model_identity_profile_all_of_authoritative_source.go @@ -49,7 +49,7 @@ func NewIdentityProfileAllOfAuthoritativeSourceWithDefaults() *IdentityProfileAl // GetType returns the Type field value if set, zero value otherwise. func (o *IdentityProfileAllOfAuthoritativeSource) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *IdentityProfileAllOfAuthoritativeSource) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfileAllOfAuthoritativeSource) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *IdentityProfileAllOfAuthoritativeSource) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *IdentityProfileAllOfAuthoritativeSource) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *IdentityProfileAllOfAuthoritativeSource) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *IdentityProfileAllOfAuthoritativeSource) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *IdentityProfileAllOfAuthoritativeSource) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfileAllOfAuthoritativeSource) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *IdentityProfileAllOfAuthoritativeSource) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *IdentityProfileAllOfAuthoritativeSource) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *IdentityProfileAllOfAuthoritativeSource) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *IdentityProfileAllOfAuthoritativeSource) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *IdentityProfileAllOfAuthoritativeSource) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfileAllOfAuthoritativeSource) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *IdentityProfileAllOfAuthoritativeSource) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *IdentityProfileAllOfAuthoritativeSource) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o IdentityProfileAllOfAuthoritativeSource) MarshalJSON() ([]byte, error) { func (o IdentityProfileAllOfAuthoritativeSource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o IdentityProfileAllOfAuthoritativeSource) ToMap() (map[string]interface{} return toSerialize, nil } -func (o *IdentityProfileAllOfAuthoritativeSource) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityProfileAllOfAuthoritativeSource) UnmarshalJSON(data []byte) (err error) { varIdentityProfileAllOfAuthoritativeSource := _IdentityProfileAllOfAuthoritativeSource{} - if err = json.Unmarshal(bytes, &varIdentityProfileAllOfAuthoritativeSource); err == nil { + err = json.Unmarshal(data, &varIdentityProfileAllOfAuthoritativeSource) + + if err != nil { + return err + } + *o = IdentityProfileAllOfAuthoritativeSource(varIdentityProfileAllOfAuthoritativeSource) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_identity_profile_all_of_owner.go b/api_v3/model_identity_profile_all_of_owner.go index 78804430d..d3f45b173 100644 --- a/api_v3/model_identity_profile_all_of_owner.go +++ b/api_v3/model_identity_profile_all_of_owner.go @@ -49,7 +49,7 @@ func NewIdentityProfileAllOfOwnerWithDefaults() *IdentityProfileAllOfOwner { // GetType returns the Type field value if set, zero value otherwise. func (o *IdentityProfileAllOfOwner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *IdentityProfileAllOfOwner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfileAllOfOwner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *IdentityProfileAllOfOwner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *IdentityProfileAllOfOwner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *IdentityProfileAllOfOwner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *IdentityProfileAllOfOwner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *IdentityProfileAllOfOwner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfileAllOfOwner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *IdentityProfileAllOfOwner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *IdentityProfileAllOfOwner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *IdentityProfileAllOfOwner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *IdentityProfileAllOfOwner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *IdentityProfileAllOfOwner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfileAllOfOwner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *IdentityProfileAllOfOwner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *IdentityProfileAllOfOwner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o IdentityProfileAllOfOwner) MarshalJSON() ([]byte, error) { func (o IdentityProfileAllOfOwner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o IdentityProfileAllOfOwner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityProfileAllOfOwner) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityProfileAllOfOwner) UnmarshalJSON(data []byte) (err error) { varIdentityProfileAllOfOwner := _IdentityProfileAllOfOwner{} - if err = json.Unmarshal(bytes, &varIdentityProfileAllOfOwner); err == nil { + err = json.Unmarshal(data, &varIdentityProfileAllOfOwner) + + if err != nil { + return err + } + *o = IdentityProfileAllOfOwner(varIdentityProfileAllOfOwner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_identity_profile_exported_object.go b/api_v3/model_identity_profile_exported_object.go index 3aa089421..2c775f52c 100644 --- a/api_v3/model_identity_profile_exported_object.go +++ b/api_v3/model_identity_profile_exported_object.go @@ -47,7 +47,7 @@ func NewIdentityProfileExportedObjectWithDefaults() *IdentityProfileExportedObje // GetVersion returns the Version field value if set, zero value otherwise. func (o *IdentityProfileExportedObject) GetVersion() int32 { - if o == nil || isNil(o.Version) { + if o == nil || IsNil(o.Version) { var ret int32 return ret } @@ -57,7 +57,7 @@ func (o *IdentityProfileExportedObject) GetVersion() int32 { // GetVersionOk returns a tuple with the Version field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfileExportedObject) GetVersionOk() (*int32, bool) { - if o == nil || isNil(o.Version) { + if o == nil || IsNil(o.Version) { return nil, false } return o.Version, true @@ -65,7 +65,7 @@ func (o *IdentityProfileExportedObject) GetVersionOk() (*int32, bool) { // HasVersion returns a boolean if a field has been set. func (o *IdentityProfileExportedObject) HasVersion() bool { - if o != nil && !isNil(o.Version) { + if o != nil && !IsNil(o.Version) { return true } @@ -79,7 +79,7 @@ func (o *IdentityProfileExportedObject) SetVersion(v int32) { // GetSelf returns the Self field value if set, zero value otherwise. func (o *IdentityProfileExportedObject) GetSelf() IdentityProfileExportedObjectSelf { - if o == nil || isNil(o.Self) { + if o == nil || IsNil(o.Self) { var ret IdentityProfileExportedObjectSelf return ret } @@ -89,7 +89,7 @@ func (o *IdentityProfileExportedObject) GetSelf() IdentityProfileExportedObjectS // GetSelfOk returns a tuple with the Self field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfileExportedObject) GetSelfOk() (*IdentityProfileExportedObjectSelf, bool) { - if o == nil || isNil(o.Self) { + if o == nil || IsNil(o.Self) { return nil, false } return o.Self, true @@ -97,7 +97,7 @@ func (o *IdentityProfileExportedObject) GetSelfOk() (*IdentityProfileExportedObj // HasSelf returns a boolean if a field has been set. func (o *IdentityProfileExportedObject) HasSelf() bool { - if o != nil && !isNil(o.Self) { + if o != nil && !IsNil(o.Self) { return true } @@ -111,7 +111,7 @@ func (o *IdentityProfileExportedObject) SetSelf(v IdentityProfileExportedObjectS // GetObject returns the Object field value if set, zero value otherwise. func (o *IdentityProfileExportedObject) GetObject() IdentityProfile { - if o == nil || isNil(o.Object) { + if o == nil || IsNil(o.Object) { var ret IdentityProfile return ret } @@ -121,7 +121,7 @@ func (o *IdentityProfileExportedObject) GetObject() IdentityProfile { // GetObjectOk returns a tuple with the Object field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfileExportedObject) GetObjectOk() (*IdentityProfile, bool) { - if o == nil || isNil(o.Object) { + if o == nil || IsNil(o.Object) { return nil, false } return o.Object, true @@ -129,7 +129,7 @@ func (o *IdentityProfileExportedObject) GetObjectOk() (*IdentityProfile, bool) { // HasObject returns a boolean if a field has been set. func (o *IdentityProfileExportedObject) HasObject() bool { - if o != nil && !isNil(o.Object) { + if o != nil && !IsNil(o.Object) { return true } @@ -151,13 +151,13 @@ func (o IdentityProfileExportedObject) MarshalJSON() ([]byte, error) { func (o IdentityProfileExportedObject) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Version) { + if !IsNil(o.Version) { toSerialize["version"] = o.Version } - if !isNil(o.Self) { + if !IsNil(o.Self) { toSerialize["self"] = o.Self } - if !isNil(o.Object) { + if !IsNil(o.Object) { toSerialize["object"] = o.Object } @@ -168,16 +168,20 @@ func (o IdentityProfileExportedObject) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityProfileExportedObject) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityProfileExportedObject) UnmarshalJSON(data []byte) (err error) { varIdentityProfileExportedObject := _IdentityProfileExportedObject{} - if err = json.Unmarshal(bytes, &varIdentityProfileExportedObject); err == nil { + err = json.Unmarshal(data, &varIdentityProfileExportedObject) + + if err != nil { + return err + } + *o = IdentityProfileExportedObject(varIdentityProfileExportedObject) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "version") delete(additionalProperties, "self") delete(additionalProperties, "object") diff --git a/api_v3/model_identity_profile_exported_object_self.go b/api_v3/model_identity_profile_exported_object_self.go index 5accd6351..b02675aee 100644 --- a/api_v3/model_identity_profile_exported_object_self.go +++ b/api_v3/model_identity_profile_exported_object_self.go @@ -49,7 +49,7 @@ func NewIdentityProfileExportedObjectSelfWithDefaults() *IdentityProfileExported // GetType returns the Type field value if set, zero value otherwise. func (o *IdentityProfileExportedObjectSelf) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *IdentityProfileExportedObjectSelf) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfileExportedObjectSelf) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *IdentityProfileExportedObjectSelf) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *IdentityProfileExportedObjectSelf) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *IdentityProfileExportedObjectSelf) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *IdentityProfileExportedObjectSelf) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *IdentityProfileExportedObjectSelf) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfileExportedObjectSelf) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *IdentityProfileExportedObjectSelf) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *IdentityProfileExportedObjectSelf) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *IdentityProfileExportedObjectSelf) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *IdentityProfileExportedObjectSelf) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *IdentityProfileExportedObjectSelf) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityProfileExportedObjectSelf) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *IdentityProfileExportedObjectSelf) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *IdentityProfileExportedObjectSelf) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o IdentityProfileExportedObjectSelf) MarshalJSON() ([]byte, error) { func (o IdentityProfileExportedObjectSelf) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o IdentityProfileExportedObjectSelf) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *IdentityProfileExportedObjectSelf) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityProfileExportedObjectSelf) UnmarshalJSON(data []byte) (err error) { varIdentityProfileExportedObjectSelf := _IdentityProfileExportedObjectSelf{} - if err = json.Unmarshal(bytes, &varIdentityProfileExportedObjectSelf); err == nil { + err = json.Unmarshal(data, &varIdentityProfileExportedObjectSelf) + + if err != nil { + return err + } + *o = IdentityProfileExportedObjectSelf(varIdentityProfileExportedObjectSelf) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_identity_profile_identity_error_report_arguments.go b/api_v3/model_identity_profile_identity_error_report_arguments.go index 93488cd5d..1e146d43a 100644 --- a/api_v3/model_identity_profile_identity_error_report_arguments.go +++ b/api_v3/model_identity_profile_identity_error_report_arguments.go @@ -88,8 +88,8 @@ func (o IdentityProfileIdentityErrorReportArguments) ToMap() (map[string]interfa return toSerialize, nil } -func (o *IdentityProfileIdentityErrorReportArguments) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *IdentityProfileIdentityErrorReportArguments) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -98,7 +98,7 @@ func (o *IdentityProfileIdentityErrorReportArguments) UnmarshalJSON(bytes []byte allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -112,13 +112,17 @@ func (o *IdentityProfileIdentityErrorReportArguments) UnmarshalJSON(bytes []byte varIdentityProfileIdentityErrorReportArguments := _IdentityProfileIdentityErrorReportArguments{} - if err = json.Unmarshal(bytes, &varIdentityProfileIdentityErrorReportArguments); err == nil { + err = json.Unmarshal(data, &varIdentityProfileIdentityErrorReportArguments) + + if err != nil { + return err + } + *o = IdentityProfileIdentityErrorReportArguments(varIdentityProfileIdentityErrorReportArguments) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "authoritativeSource") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_identity_reference.go b/api_v3/model_identity_reference.go index e4baaa1d3..4211e0635 100644 --- a/api_v3/model_identity_reference.go +++ b/api_v3/model_identity_reference.go @@ -48,7 +48,7 @@ func NewIdentityReferenceWithDefaults() *IdentityReference { // GetType returns the Type field value if set, zero value otherwise. func (o *IdentityReference) GetType() DtoType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret DtoType return ret } @@ -58,7 +58,7 @@ func (o *IdentityReference) GetType() DtoType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityReference) GetTypeOk() (*DtoType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -66,7 +66,7 @@ func (o *IdentityReference) GetTypeOk() (*DtoType, bool) { // HasType returns a boolean if a field has been set. func (o *IdentityReference) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -80,7 +80,7 @@ func (o *IdentityReference) SetType(v DtoType) { // GetId returns the Id field value if set, zero value otherwise. func (o *IdentityReference) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -90,7 +90,7 @@ func (o *IdentityReference) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityReference) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -98,7 +98,7 @@ func (o *IdentityReference) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *IdentityReference) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -112,7 +112,7 @@ func (o *IdentityReference) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *IdentityReference) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -122,7 +122,7 @@ func (o *IdentityReference) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityReference) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -130,7 +130,7 @@ func (o *IdentityReference) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *IdentityReference) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -152,13 +152,13 @@ func (o IdentityReference) MarshalJSON() ([]byte, error) { func (o IdentityReference) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -169,16 +169,20 @@ func (o IdentityReference) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityReference) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityReference) UnmarshalJSON(data []byte) (err error) { varIdentityReference := _IdentityReference{} - if err = json.Unmarshal(bytes, &varIdentityReference); err == nil { + err = json.Unmarshal(data, &varIdentityReference) + + if err != nil { + return err + } + *o = IdentityReference(varIdentityReference) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_identity_reference_with_name_and_email.go b/api_v3/model_identity_reference_with_name_and_email.go index 1896a3177..a93add86a 100644 --- a/api_v3/model_identity_reference_with_name_and_email.go +++ b/api_v3/model_identity_reference_with_name_and_email.go @@ -51,7 +51,7 @@ func NewIdentityReferenceWithNameAndEmailWithDefaults() *IdentityReferenceWithNa // GetType returns the Type field value if set, zero value otherwise. func (o *IdentityReferenceWithNameAndEmail) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -61,7 +61,7 @@ func (o *IdentityReferenceWithNameAndEmail) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityReferenceWithNameAndEmail) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -69,7 +69,7 @@ func (o *IdentityReferenceWithNameAndEmail) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *IdentityReferenceWithNameAndEmail) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -83,7 +83,7 @@ func (o *IdentityReferenceWithNameAndEmail) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *IdentityReferenceWithNameAndEmail) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -93,7 +93,7 @@ func (o *IdentityReferenceWithNameAndEmail) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityReferenceWithNameAndEmail) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -101,7 +101,7 @@ func (o *IdentityReferenceWithNameAndEmail) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *IdentityReferenceWithNameAndEmail) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -115,7 +115,7 @@ func (o *IdentityReferenceWithNameAndEmail) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *IdentityReferenceWithNameAndEmail) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -125,7 +125,7 @@ func (o *IdentityReferenceWithNameAndEmail) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityReferenceWithNameAndEmail) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -133,7 +133,7 @@ func (o *IdentityReferenceWithNameAndEmail) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *IdentityReferenceWithNameAndEmail) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -147,7 +147,7 @@ func (o *IdentityReferenceWithNameAndEmail) SetName(v string) { // GetEmail returns the Email field value if set, zero value otherwise. func (o *IdentityReferenceWithNameAndEmail) GetEmail() string { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { var ret string return ret } @@ -157,7 +157,7 @@ func (o *IdentityReferenceWithNameAndEmail) GetEmail() string { // GetEmailOk returns a tuple with the Email field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityReferenceWithNameAndEmail) GetEmailOk() (*string, bool) { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { return nil, false } return o.Email, true @@ -165,7 +165,7 @@ func (o *IdentityReferenceWithNameAndEmail) GetEmailOk() (*string, bool) { // HasEmail returns a boolean if a field has been set. func (o *IdentityReferenceWithNameAndEmail) HasEmail() bool { - if o != nil && !isNil(o.Email) { + if o != nil && !IsNil(o.Email) { return true } @@ -187,16 +187,16 @@ func (o IdentityReferenceWithNameAndEmail) MarshalJSON() ([]byte, error) { func (o IdentityReferenceWithNameAndEmail) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Email) { + if !IsNil(o.Email) { toSerialize["email"] = o.Email } @@ -207,16 +207,20 @@ func (o IdentityReferenceWithNameAndEmail) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *IdentityReferenceWithNameAndEmail) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityReferenceWithNameAndEmail) UnmarshalJSON(data []byte) (err error) { varIdentityReferenceWithNameAndEmail := _IdentityReferenceWithNameAndEmail{} - if err = json.Unmarshal(bytes, &varIdentityReferenceWithNameAndEmail); err == nil { + err = json.Unmarshal(data, &varIdentityReferenceWithNameAndEmail) + + if err != nil { + return err + } + *o = IdentityReferenceWithNameAndEmail(varIdentityReferenceWithNameAndEmail) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_identity_summary.go b/api_v3/model_identity_summary.go index fafbfc03b..77f64aea0 100644 --- a/api_v3/model_identity_summary.go +++ b/api_v3/model_identity_summary.go @@ -55,7 +55,7 @@ func NewIdentitySummaryWithDefaults() *IdentitySummary { // GetId returns the Id field value if set, zero value otherwise. func (o *IdentitySummary) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -65,7 +65,7 @@ func (o *IdentitySummary) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentitySummary) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -73,7 +73,7 @@ func (o *IdentitySummary) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *IdentitySummary) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -87,7 +87,7 @@ func (o *IdentitySummary) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *IdentitySummary) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -97,7 +97,7 @@ func (o *IdentitySummary) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentitySummary) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -105,7 +105,7 @@ func (o *IdentitySummary) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *IdentitySummary) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -119,7 +119,7 @@ func (o *IdentitySummary) SetName(v string) { // GetIdentityId returns the IdentityId field value if set, zero value otherwise. func (o *IdentitySummary) GetIdentityId() string { - if o == nil || isNil(o.IdentityId) { + if o == nil || IsNil(o.IdentityId) { var ret string return ret } @@ -129,7 +129,7 @@ func (o *IdentitySummary) GetIdentityId() string { // GetIdentityIdOk returns a tuple with the IdentityId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentitySummary) GetIdentityIdOk() (*string, bool) { - if o == nil || isNil(o.IdentityId) { + if o == nil || IsNil(o.IdentityId) { return nil, false } return o.IdentityId, true @@ -137,7 +137,7 @@ func (o *IdentitySummary) GetIdentityIdOk() (*string, bool) { // HasIdentityId returns a boolean if a field has been set. func (o *IdentitySummary) HasIdentityId() bool { - if o != nil && !isNil(o.IdentityId) { + if o != nil && !IsNil(o.IdentityId) { return true } @@ -151,7 +151,7 @@ func (o *IdentitySummary) SetIdentityId(v string) { // GetCompleted returns the Completed field value if set, zero value otherwise. func (o *IdentitySummary) GetCompleted() bool { - if o == nil || isNil(o.Completed) { + if o == nil || IsNil(o.Completed) { var ret bool return ret } @@ -161,7 +161,7 @@ func (o *IdentitySummary) GetCompleted() bool { // GetCompletedOk returns a tuple with the Completed field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentitySummary) GetCompletedOk() (*bool, bool) { - if o == nil || isNil(o.Completed) { + if o == nil || IsNil(o.Completed) { return nil, false } return o.Completed, true @@ -169,7 +169,7 @@ func (o *IdentitySummary) GetCompletedOk() (*bool, bool) { // HasCompleted returns a boolean if a field has been set. func (o *IdentitySummary) HasCompleted() bool { - if o != nil && !isNil(o.Completed) { + if o != nil && !IsNil(o.Completed) { return true } @@ -191,16 +191,16 @@ func (o IdentitySummary) MarshalJSON() ([]byte, error) { func (o IdentitySummary) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.IdentityId) { + if !IsNil(o.IdentityId) { toSerialize["identityId"] = o.IdentityId } - if !isNil(o.Completed) { + if !IsNil(o.Completed) { toSerialize["completed"] = o.Completed } @@ -211,16 +211,20 @@ func (o IdentitySummary) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentitySummary) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentitySummary) UnmarshalJSON(data []byte) (err error) { varIdentitySummary := _IdentitySummary{} - if err = json.Unmarshal(bytes, &varIdentitySummary); err == nil { + err = json.Unmarshal(data, &varIdentitySummary) + + if err != nil { + return err + } + *o = IdentitySummary(varIdentitySummary) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "identityId") diff --git a/api_v3/model_identity_with_new_access.go b/api_v3/model_identity_with_new_access.go index 4c504d1f4..44f9c7bad 100644 --- a/api_v3/model_identity_with_new_access.go +++ b/api_v3/model_identity_with_new_access.go @@ -116,8 +116,8 @@ func (o IdentityWithNewAccess) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityWithNewAccess) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *IdentityWithNewAccess) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -127,7 +127,7 @@ func (o *IdentityWithNewAccess) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -141,13 +141,17 @@ func (o *IdentityWithNewAccess) UnmarshalJSON(bytes []byte) (err error) { varIdentityWithNewAccess := _IdentityWithNewAccess{} - if err = json.Unmarshal(bytes, &varIdentityWithNewAccess); err == nil { + err = json.Unmarshal(data, &varIdentityWithNewAccess) + + if err != nil { + return err + } + *o = IdentityWithNewAccess(varIdentityWithNewAccess) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "identityId") delete(additionalProperties, "accessRefs") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_identity_with_new_access_1.go b/api_v3/model_identity_with_new_access_1.go index f6a319175..c7ca53ed7 100644 --- a/api_v3/model_identity_with_new_access_1.go +++ b/api_v3/model_identity_with_new_access_1.go @@ -100,7 +100,7 @@ func (o *IdentityWithNewAccess1) SetAccessRefs(v []EntitlementRef1) { // GetClientMetadata returns the ClientMetadata field value if set, zero value otherwise. func (o *IdentityWithNewAccess1) GetClientMetadata() map[string]string { - if o == nil || isNil(o.ClientMetadata) { + if o == nil || IsNil(o.ClientMetadata) { var ret map[string]string return ret } @@ -110,7 +110,7 @@ func (o *IdentityWithNewAccess1) GetClientMetadata() map[string]string { // GetClientMetadataOk returns a tuple with the ClientMetadata field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityWithNewAccess1) GetClientMetadataOk() (*map[string]string, bool) { - if o == nil || isNil(o.ClientMetadata) { + if o == nil || IsNil(o.ClientMetadata) { return nil, false } return o.ClientMetadata, true @@ -118,7 +118,7 @@ func (o *IdentityWithNewAccess1) GetClientMetadataOk() (*map[string]string, bool // HasClientMetadata returns a boolean if a field has been set. func (o *IdentityWithNewAccess1) HasClientMetadata() bool { - if o != nil && !isNil(o.ClientMetadata) { + if o != nil && !IsNil(o.ClientMetadata) { return true } @@ -142,7 +142,7 @@ func (o IdentityWithNewAccess1) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["identityId"] = o.IdentityId toSerialize["accessRefs"] = o.AccessRefs - if !isNil(o.ClientMetadata) { + if !IsNil(o.ClientMetadata) { toSerialize["clientMetadata"] = o.ClientMetadata } @@ -153,8 +153,8 @@ func (o IdentityWithNewAccess1) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdentityWithNewAccess1) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *IdentityWithNewAccess1) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -164,7 +164,7 @@ func (o *IdentityWithNewAccess1) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -178,13 +178,17 @@ func (o *IdentityWithNewAccess1) UnmarshalJSON(bytes []byte) (err error) { varIdentityWithNewAccess1 := _IdentityWithNewAccess1{} - if err = json.Unmarshal(bytes, &varIdentityWithNewAccess1); err == nil { + err = json.Unmarshal(data, &varIdentityWithNewAccess1) + + if err != nil { + return err + } + *o = IdentityWithNewAccess1(varIdentityWithNewAccess1) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "identityId") delete(additionalProperties, "accessRefs") delete(additionalProperties, "clientMetadata") diff --git a/api_v3/model_identity_with_new_access_access_refs_inner.go b/api_v3/model_identity_with_new_access_access_refs_inner.go index a7198d98a..d361ad18a 100644 --- a/api_v3/model_identity_with_new_access_access_refs_inner.go +++ b/api_v3/model_identity_with_new_access_access_refs_inner.go @@ -49,7 +49,7 @@ func NewIdentityWithNewAccessAccessRefsInnerWithDefaults() *IdentityWithNewAcces // GetType returns the Type field value if set, zero value otherwise. func (o *IdentityWithNewAccessAccessRefsInner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *IdentityWithNewAccessAccessRefsInner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityWithNewAccessAccessRefsInner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *IdentityWithNewAccessAccessRefsInner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *IdentityWithNewAccessAccessRefsInner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *IdentityWithNewAccessAccessRefsInner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *IdentityWithNewAccessAccessRefsInner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *IdentityWithNewAccessAccessRefsInner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityWithNewAccessAccessRefsInner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *IdentityWithNewAccessAccessRefsInner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *IdentityWithNewAccessAccessRefsInner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *IdentityWithNewAccessAccessRefsInner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *IdentityWithNewAccessAccessRefsInner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *IdentityWithNewAccessAccessRefsInner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdentityWithNewAccessAccessRefsInner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *IdentityWithNewAccessAccessRefsInner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *IdentityWithNewAccessAccessRefsInner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o IdentityWithNewAccessAccessRefsInner) MarshalJSON() ([]byte, error) { func (o IdentityWithNewAccessAccessRefsInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o IdentityWithNewAccessAccessRefsInner) ToMap() (map[string]interface{}, e return toSerialize, nil } -func (o *IdentityWithNewAccessAccessRefsInner) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdentityWithNewAccessAccessRefsInner) UnmarshalJSON(data []byte) (err error) { varIdentityWithNewAccessAccessRefsInner := _IdentityWithNewAccessAccessRefsInner{} - if err = json.Unmarshal(bytes, &varIdentityWithNewAccessAccessRefsInner); err == nil { + err = json.Unmarshal(data, &varIdentityWithNewAccessAccessRefsInner) + + if err != nil { + return err + } + *o = IdentityWithNewAccessAccessRefsInner(varIdentityWithNewAccessAccessRefsInner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_idp_details.go b/api_v3/model_idp_details.go index 2571eb3eb..dd672c7fe 100644 --- a/api_v3/model_idp_details.go +++ b/api_v3/model_idp_details.go @@ -74,7 +74,7 @@ func NewIdpDetailsWithDefaults() *IdpDetails { // GetRole returns the Role field value if set, zero value otherwise. func (o *IdpDetails) GetRole() string { - if o == nil || isNil(o.Role) { + if o == nil || IsNil(o.Role) { var ret string return ret } @@ -84,7 +84,7 @@ func (o *IdpDetails) GetRole() string { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdpDetails) GetRoleOk() (*string, bool) { - if o == nil || isNil(o.Role) { + if o == nil || IsNil(o.Role) { return nil, false } return o.Role, true @@ -92,7 +92,7 @@ func (o *IdpDetails) GetRoleOk() (*string, bool) { // HasRole returns a boolean if a field has been set. func (o *IdpDetails) HasRole() bool { - if o != nil && !isNil(o.Role) { + if o != nil && !IsNil(o.Role) { return true } @@ -106,7 +106,7 @@ func (o *IdpDetails) SetRole(v string) { // GetEntityId returns the EntityId field value if set, zero value otherwise. func (o *IdpDetails) GetEntityId() string { - if o == nil || isNil(o.EntityId) { + if o == nil || IsNil(o.EntityId) { var ret string return ret } @@ -116,7 +116,7 @@ func (o *IdpDetails) GetEntityId() string { // GetEntityIdOk returns a tuple with the EntityId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdpDetails) GetEntityIdOk() (*string, bool) { - if o == nil || isNil(o.EntityId) { + if o == nil || IsNil(o.EntityId) { return nil, false } return o.EntityId, true @@ -124,7 +124,7 @@ func (o *IdpDetails) GetEntityIdOk() (*string, bool) { // HasEntityId returns a boolean if a field has been set. func (o *IdpDetails) HasEntityId() bool { - if o != nil && !isNil(o.EntityId) { + if o != nil && !IsNil(o.EntityId) { return true } @@ -138,7 +138,7 @@ func (o *IdpDetails) SetEntityId(v string) { // GetBinding returns the Binding field value if set, zero value otherwise. func (o *IdpDetails) GetBinding() string { - if o == nil || isNil(o.Binding) { + if o == nil || IsNil(o.Binding) { var ret string return ret } @@ -148,7 +148,7 @@ func (o *IdpDetails) GetBinding() string { // GetBindingOk returns a tuple with the Binding field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdpDetails) GetBindingOk() (*string, bool) { - if o == nil || isNil(o.Binding) { + if o == nil || IsNil(o.Binding) { return nil, false } return o.Binding, true @@ -156,7 +156,7 @@ func (o *IdpDetails) GetBindingOk() (*string, bool) { // HasBinding returns a boolean if a field has been set. func (o *IdpDetails) HasBinding() bool { - if o != nil && !isNil(o.Binding) { + if o != nil && !IsNil(o.Binding) { return true } @@ -170,7 +170,7 @@ func (o *IdpDetails) SetBinding(v string) { // GetAuthContext returns the AuthContext field value if set, zero value otherwise. func (o *IdpDetails) GetAuthContext() string { - if o == nil || isNil(o.AuthContext) { + if o == nil || IsNil(o.AuthContext) { var ret string return ret } @@ -180,7 +180,7 @@ func (o *IdpDetails) GetAuthContext() string { // GetAuthContextOk returns a tuple with the AuthContext field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdpDetails) GetAuthContextOk() (*string, bool) { - if o == nil || isNil(o.AuthContext) { + if o == nil || IsNil(o.AuthContext) { return nil, false } return o.AuthContext, true @@ -188,7 +188,7 @@ func (o *IdpDetails) GetAuthContextOk() (*string, bool) { // HasAuthContext returns a boolean if a field has been set. func (o *IdpDetails) HasAuthContext() bool { - if o != nil && !isNil(o.AuthContext) { + if o != nil && !IsNil(o.AuthContext) { return true } @@ -202,7 +202,7 @@ func (o *IdpDetails) SetAuthContext(v string) { // GetLogoutUrl returns the LogoutUrl field value if set, zero value otherwise. func (o *IdpDetails) GetLogoutUrl() string { - if o == nil || isNil(o.LogoutUrl) { + if o == nil || IsNil(o.LogoutUrl) { var ret string return ret } @@ -212,7 +212,7 @@ func (o *IdpDetails) GetLogoutUrl() string { // GetLogoutUrlOk returns a tuple with the LogoutUrl field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdpDetails) GetLogoutUrlOk() (*string, bool) { - if o == nil || isNil(o.LogoutUrl) { + if o == nil || IsNil(o.LogoutUrl) { return nil, false } return o.LogoutUrl, true @@ -220,7 +220,7 @@ func (o *IdpDetails) GetLogoutUrlOk() (*string, bool) { // HasLogoutUrl returns a boolean if a field has been set. func (o *IdpDetails) HasLogoutUrl() bool { - if o != nil && !isNil(o.LogoutUrl) { + if o != nil && !IsNil(o.LogoutUrl) { return true } @@ -234,7 +234,7 @@ func (o *IdpDetails) SetLogoutUrl(v string) { // GetIncludeAuthContext returns the IncludeAuthContext field value if set, zero value otherwise. func (o *IdpDetails) GetIncludeAuthContext() bool { - if o == nil || isNil(o.IncludeAuthContext) { + if o == nil || IsNil(o.IncludeAuthContext) { var ret bool return ret } @@ -244,7 +244,7 @@ func (o *IdpDetails) GetIncludeAuthContext() bool { // GetIncludeAuthContextOk returns a tuple with the IncludeAuthContext field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdpDetails) GetIncludeAuthContextOk() (*bool, bool) { - if o == nil || isNil(o.IncludeAuthContext) { + if o == nil || IsNil(o.IncludeAuthContext) { return nil, false } return o.IncludeAuthContext, true @@ -252,7 +252,7 @@ func (o *IdpDetails) GetIncludeAuthContextOk() (*bool, bool) { // HasIncludeAuthContext returns a boolean if a field has been set. func (o *IdpDetails) HasIncludeAuthContext() bool { - if o != nil && !isNil(o.IncludeAuthContext) { + if o != nil && !IsNil(o.IncludeAuthContext) { return true } @@ -266,7 +266,7 @@ func (o *IdpDetails) SetIncludeAuthContext(v bool) { // GetNameId returns the NameId field value if set, zero value otherwise. func (o *IdpDetails) GetNameId() string { - if o == nil || isNil(o.NameId) { + if o == nil || IsNil(o.NameId) { var ret string return ret } @@ -276,7 +276,7 @@ func (o *IdpDetails) GetNameId() string { // GetNameIdOk returns a tuple with the NameId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdpDetails) GetNameIdOk() (*string, bool) { - if o == nil || isNil(o.NameId) { + if o == nil || IsNil(o.NameId) { return nil, false } return o.NameId, true @@ -284,7 +284,7 @@ func (o *IdpDetails) GetNameIdOk() (*string, bool) { // HasNameId returns a boolean if a field has been set. func (o *IdpDetails) HasNameId() bool { - if o != nil && !isNil(o.NameId) { + if o != nil && !IsNil(o.NameId) { return true } @@ -298,7 +298,7 @@ func (o *IdpDetails) SetNameId(v string) { // GetJitConfiguration returns the JitConfiguration field value if set, zero value otherwise. func (o *IdpDetails) GetJitConfiguration() JITConfiguration { - if o == nil || isNil(o.JitConfiguration) { + if o == nil || IsNil(o.JitConfiguration) { var ret JITConfiguration return ret } @@ -308,7 +308,7 @@ func (o *IdpDetails) GetJitConfiguration() JITConfiguration { // GetJitConfigurationOk returns a tuple with the JitConfiguration field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdpDetails) GetJitConfigurationOk() (*JITConfiguration, bool) { - if o == nil || isNil(o.JitConfiguration) { + if o == nil || IsNil(o.JitConfiguration) { return nil, false } return o.JitConfiguration, true @@ -316,7 +316,7 @@ func (o *IdpDetails) GetJitConfigurationOk() (*JITConfiguration, bool) { // HasJitConfiguration returns a boolean if a field has been set. func (o *IdpDetails) HasJitConfiguration() bool { - if o != nil && !isNil(o.JitConfiguration) { + if o != nil && !IsNil(o.JitConfiguration) { return true } @@ -330,7 +330,7 @@ func (o *IdpDetails) SetJitConfiguration(v JITConfiguration) { // GetCert returns the Cert field value if set, zero value otherwise. func (o *IdpDetails) GetCert() string { - if o == nil || isNil(o.Cert) { + if o == nil || IsNil(o.Cert) { var ret string return ret } @@ -340,7 +340,7 @@ func (o *IdpDetails) GetCert() string { // GetCertOk returns a tuple with the Cert field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdpDetails) GetCertOk() (*string, bool) { - if o == nil || isNil(o.Cert) { + if o == nil || IsNil(o.Cert) { return nil, false } return o.Cert, true @@ -348,7 +348,7 @@ func (o *IdpDetails) GetCertOk() (*string, bool) { // HasCert returns a boolean if a field has been set. func (o *IdpDetails) HasCert() bool { - if o != nil && !isNil(o.Cert) { + if o != nil && !IsNil(o.Cert) { return true } @@ -362,7 +362,7 @@ func (o *IdpDetails) SetCert(v string) { // GetLoginUrlPost returns the LoginUrlPost field value if set, zero value otherwise. func (o *IdpDetails) GetLoginUrlPost() string { - if o == nil || isNil(o.LoginUrlPost) { + if o == nil || IsNil(o.LoginUrlPost) { var ret string return ret } @@ -372,7 +372,7 @@ func (o *IdpDetails) GetLoginUrlPost() string { // GetLoginUrlPostOk returns a tuple with the LoginUrlPost field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdpDetails) GetLoginUrlPostOk() (*string, bool) { - if o == nil || isNil(o.LoginUrlPost) { + if o == nil || IsNil(o.LoginUrlPost) { return nil, false } return o.LoginUrlPost, true @@ -380,7 +380,7 @@ func (o *IdpDetails) GetLoginUrlPostOk() (*string, bool) { // HasLoginUrlPost returns a boolean if a field has been set. func (o *IdpDetails) HasLoginUrlPost() bool { - if o != nil && !isNil(o.LoginUrlPost) { + if o != nil && !IsNil(o.LoginUrlPost) { return true } @@ -394,7 +394,7 @@ func (o *IdpDetails) SetLoginUrlPost(v string) { // GetLoginUrlRedirect returns the LoginUrlRedirect field value if set, zero value otherwise. func (o *IdpDetails) GetLoginUrlRedirect() string { - if o == nil || isNil(o.LoginUrlRedirect) { + if o == nil || IsNil(o.LoginUrlRedirect) { var ret string return ret } @@ -404,7 +404,7 @@ func (o *IdpDetails) GetLoginUrlRedirect() string { // GetLoginUrlRedirectOk returns a tuple with the LoginUrlRedirect field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdpDetails) GetLoginUrlRedirectOk() (*string, bool) { - if o == nil || isNil(o.LoginUrlRedirect) { + if o == nil || IsNil(o.LoginUrlRedirect) { return nil, false } return o.LoginUrlRedirect, true @@ -412,7 +412,7 @@ func (o *IdpDetails) GetLoginUrlRedirectOk() (*string, bool) { // HasLoginUrlRedirect returns a boolean if a field has been set. func (o *IdpDetails) HasLoginUrlRedirect() bool { - if o != nil && !isNil(o.LoginUrlRedirect) { + if o != nil && !IsNil(o.LoginUrlRedirect) { return true } @@ -426,7 +426,7 @@ func (o *IdpDetails) SetLoginUrlRedirect(v string) { // GetMappingAttribute returns the MappingAttribute field value if set, zero value otherwise. func (o *IdpDetails) GetMappingAttribute() string { - if o == nil || isNil(o.MappingAttribute) { + if o == nil || IsNil(o.MappingAttribute) { var ret string return ret } @@ -436,7 +436,7 @@ func (o *IdpDetails) GetMappingAttribute() string { // GetMappingAttributeOk returns a tuple with the MappingAttribute field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdpDetails) GetMappingAttributeOk() (*string, bool) { - if o == nil || isNil(o.MappingAttribute) { + if o == nil || IsNil(o.MappingAttribute) { return nil, false } return o.MappingAttribute, true @@ -444,7 +444,7 @@ func (o *IdpDetails) GetMappingAttributeOk() (*string, bool) { // HasMappingAttribute returns a boolean if a field has been set. func (o *IdpDetails) HasMappingAttribute() bool { - if o != nil && !isNil(o.MappingAttribute) { + if o != nil && !IsNil(o.MappingAttribute) { return true } @@ -458,7 +458,7 @@ func (o *IdpDetails) SetMappingAttribute(v string) { // GetCertificateExpirationDate returns the CertificateExpirationDate field value if set, zero value otherwise. func (o *IdpDetails) GetCertificateExpirationDate() string { - if o == nil || isNil(o.CertificateExpirationDate) { + if o == nil || IsNil(o.CertificateExpirationDate) { var ret string return ret } @@ -468,7 +468,7 @@ func (o *IdpDetails) GetCertificateExpirationDate() string { // GetCertificateExpirationDateOk returns a tuple with the CertificateExpirationDate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdpDetails) GetCertificateExpirationDateOk() (*string, bool) { - if o == nil || isNil(o.CertificateExpirationDate) { + if o == nil || IsNil(o.CertificateExpirationDate) { return nil, false } return o.CertificateExpirationDate, true @@ -476,7 +476,7 @@ func (o *IdpDetails) GetCertificateExpirationDateOk() (*string, bool) { // HasCertificateExpirationDate returns a boolean if a field has been set. func (o *IdpDetails) HasCertificateExpirationDate() bool { - if o != nil && !isNil(o.CertificateExpirationDate) { + if o != nil && !IsNil(o.CertificateExpirationDate) { return true } @@ -490,7 +490,7 @@ func (o *IdpDetails) SetCertificateExpirationDate(v string) { // GetCertificateName returns the CertificateName field value if set, zero value otherwise. func (o *IdpDetails) GetCertificateName() string { - if o == nil || isNil(o.CertificateName) { + if o == nil || IsNil(o.CertificateName) { var ret string return ret } @@ -500,7 +500,7 @@ func (o *IdpDetails) GetCertificateName() string { // GetCertificateNameOk returns a tuple with the CertificateName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IdpDetails) GetCertificateNameOk() (*string, bool) { - if o == nil || isNil(o.CertificateName) { + if o == nil || IsNil(o.CertificateName) { return nil, false } return o.CertificateName, true @@ -508,7 +508,7 @@ func (o *IdpDetails) GetCertificateNameOk() (*string, bool) { // HasCertificateName returns a boolean if a field has been set. func (o *IdpDetails) HasCertificateName() bool { - if o != nil && !isNil(o.CertificateName) { + if o != nil && !IsNil(o.CertificateName) { return true } @@ -530,46 +530,46 @@ func (o IdpDetails) MarshalJSON() ([]byte, error) { func (o IdpDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Role) { + if !IsNil(o.Role) { toSerialize["role"] = o.Role } - if !isNil(o.EntityId) { + if !IsNil(o.EntityId) { toSerialize["entityId"] = o.EntityId } - if !isNil(o.Binding) { + if !IsNil(o.Binding) { toSerialize["binding"] = o.Binding } - if !isNil(o.AuthContext) { + if !IsNil(o.AuthContext) { toSerialize["authContext"] = o.AuthContext } - if !isNil(o.LogoutUrl) { + if !IsNil(o.LogoutUrl) { toSerialize["logoutUrl"] = o.LogoutUrl } - if !isNil(o.IncludeAuthContext) { + if !IsNil(o.IncludeAuthContext) { toSerialize["includeAuthContext"] = o.IncludeAuthContext } - if !isNil(o.NameId) { + if !IsNil(o.NameId) { toSerialize["nameId"] = o.NameId } - if !isNil(o.JitConfiguration) { + if !IsNil(o.JitConfiguration) { toSerialize["jitConfiguration"] = o.JitConfiguration } - if !isNil(o.Cert) { + if !IsNil(o.Cert) { toSerialize["cert"] = o.Cert } - if !isNil(o.LoginUrlPost) { + if !IsNil(o.LoginUrlPost) { toSerialize["loginUrlPost"] = o.LoginUrlPost } - if !isNil(o.LoginUrlRedirect) { + if !IsNil(o.LoginUrlRedirect) { toSerialize["loginUrlRedirect"] = o.LoginUrlRedirect } - if !isNil(o.MappingAttribute) { + if !IsNil(o.MappingAttribute) { toSerialize["mappingAttribute"] = o.MappingAttribute } - if !isNil(o.CertificateExpirationDate) { + if !IsNil(o.CertificateExpirationDate) { toSerialize["certificateExpirationDate"] = o.CertificateExpirationDate } - if !isNil(o.CertificateName) { + if !IsNil(o.CertificateName) { toSerialize["certificateName"] = o.CertificateName } @@ -580,16 +580,20 @@ func (o IdpDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *IdpDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *IdpDetails) UnmarshalJSON(data []byte) (err error) { varIdpDetails := _IdpDetails{} - if err = json.Unmarshal(bytes, &varIdpDetails); err == nil { + err = json.Unmarshal(data, &varIdpDetails) + + if err != nil { + return err + } + *o = IdpDetails(varIdpDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "role") delete(additionalProperties, "entityId") delete(additionalProperties, "binding") diff --git a/api_v3/model_import_non_employee_records_in_bulk_request.go b/api_v3/model_import_non_employee_records_in_bulk_request.go index f5771fb66..bcea58988 100644 --- a/api_v3/model_import_non_employee_records_in_bulk_request.go +++ b/api_v3/model_import_non_employee_records_in_bulk_request.go @@ -88,8 +88,8 @@ func (o ImportNonEmployeeRecordsInBulkRequest) ToMap() (map[string]interface{}, return toSerialize, nil } -func (o *ImportNonEmployeeRecordsInBulkRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ImportNonEmployeeRecordsInBulkRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -98,7 +98,7 @@ func (o *ImportNonEmployeeRecordsInBulkRequest) UnmarshalJSON(bytes []byte) (err allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -112,13 +112,17 @@ func (o *ImportNonEmployeeRecordsInBulkRequest) UnmarshalJSON(bytes []byte) (err varImportNonEmployeeRecordsInBulkRequest := _ImportNonEmployeeRecordsInBulkRequest{} - if err = json.Unmarshal(bytes, &varImportNonEmployeeRecordsInBulkRequest); err == nil { + err = json.Unmarshal(data, &varImportNonEmployeeRecordsInBulkRequest) + + if err != nil { + return err + } + *o = ImportNonEmployeeRecordsInBulkRequest(varImportNonEmployeeRecordsInBulkRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "data") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_import_object.go b/api_v3/model_import_object.go index 2c64ded25..4224913b5 100644 --- a/api_v3/model_import_object.go +++ b/api_v3/model_import_object.go @@ -49,7 +49,7 @@ func NewImportObjectWithDefaults() *ImportObject { // GetType returns the Type field value if set, zero value otherwise. func (o *ImportObject) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *ImportObject) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ImportObject) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *ImportObject) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *ImportObject) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *ImportObject) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *ImportObject) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *ImportObject) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ImportObject) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *ImportObject) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ImportObject) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *ImportObject) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *ImportObject) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *ImportObject) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ImportObject) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *ImportObject) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ImportObject) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o ImportObject) MarshalJSON() ([]byte, error) { func (o ImportObject) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o ImportObject) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ImportObject) UnmarshalJSON(bytes []byte) (err error) { +func (o *ImportObject) UnmarshalJSON(data []byte) (err error) { varImportObject := _ImportObject{} - if err = json.Unmarshal(bytes, &varImportObject); err == nil { + err = json.Unmarshal(data, &varImportObject) + + if err != nil { + return err + } + *o = ImportObject(varImportObject) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_import_uploaded_backup_request.go b/api_v3/model_import_uploaded_backup_request.go index d1ac38ebc..14c59a076 100644 --- a/api_v3/model_import_uploaded_backup_request.go +++ b/api_v3/model_import_uploaded_backup_request.go @@ -117,8 +117,8 @@ func (o ImportUploadedBackupRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ImportUploadedBackupRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ImportUploadedBackupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -128,7 +128,7 @@ func (o *ImportUploadedBackupRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -142,13 +142,17 @@ func (o *ImportUploadedBackupRequest) UnmarshalJSON(bytes []byte) (err error) { varImportUploadedBackupRequest := _ImportUploadedBackupRequest{} - if err = json.Unmarshal(bytes, &varImportUploadedBackupRequest); err == nil { + err = json.Unmarshal(data, &varImportUploadedBackupRequest) + + if err != nil { + return err + } + *o = ImportUploadedBackupRequest(varImportUploadedBackupRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "data") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_inner_hit.go b/api_v3/model_inner_hit.go index c3c5f8dff..763c7100d 100644 --- a/api_v3/model_inner_hit.go +++ b/api_v3/model_inner_hit.go @@ -116,8 +116,8 @@ func (o InnerHit) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *InnerHit) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *InnerHit) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -127,7 +127,7 @@ func (o *InnerHit) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -141,13 +141,17 @@ func (o *InnerHit) UnmarshalJSON(bytes []byte) (err error) { varInnerHit := _InnerHit{} - if err = json.Unmarshal(bytes, &varInnerHit); err == nil { + err = json.Unmarshal(data, &varInnerHit) + + if err != nil { + return err + } + *o = InnerHit(varInnerHit) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "query") delete(additionalProperties, "type") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_jit_configuration.go b/api_v3/model_jit_configuration.go index 0ebe05003..c6cd96d76 100644 --- a/api_v3/model_jit_configuration.go +++ b/api_v3/model_jit_configuration.go @@ -53,7 +53,7 @@ func NewJITConfigurationWithDefaults() *JITConfiguration { // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *JITConfiguration) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -63,7 +63,7 @@ func (o *JITConfiguration) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *JITConfiguration) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -71,7 +71,7 @@ func (o *JITConfiguration) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *JITConfiguration) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -85,7 +85,7 @@ func (o *JITConfiguration) SetEnabled(v bool) { // GetSourceId returns the SourceId field value if set, zero value otherwise. func (o *JITConfiguration) GetSourceId() string { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { var ret string return ret } @@ -95,7 +95,7 @@ func (o *JITConfiguration) GetSourceId() string { // GetSourceIdOk returns a tuple with the SourceId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *JITConfiguration) GetSourceIdOk() (*string, bool) { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { return nil, false } return o.SourceId, true @@ -103,7 +103,7 @@ func (o *JITConfiguration) GetSourceIdOk() (*string, bool) { // HasSourceId returns a boolean if a field has been set. func (o *JITConfiguration) HasSourceId() bool { - if o != nil && !isNil(o.SourceId) { + if o != nil && !IsNil(o.SourceId) { return true } @@ -117,7 +117,7 @@ func (o *JITConfiguration) SetSourceId(v string) { // GetSourceAttributeMappings returns the SourceAttributeMappings field value if set, zero value otherwise. func (o *JITConfiguration) GetSourceAttributeMappings() map[string]string { - if o == nil || isNil(o.SourceAttributeMappings) { + if o == nil || IsNil(o.SourceAttributeMappings) { var ret map[string]string return ret } @@ -127,7 +127,7 @@ func (o *JITConfiguration) GetSourceAttributeMappings() map[string]string { // GetSourceAttributeMappingsOk returns a tuple with the SourceAttributeMappings field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *JITConfiguration) GetSourceAttributeMappingsOk() (*map[string]string, bool) { - if o == nil || isNil(o.SourceAttributeMappings) { + if o == nil || IsNil(o.SourceAttributeMappings) { return nil, false } return o.SourceAttributeMappings, true @@ -135,7 +135,7 @@ func (o *JITConfiguration) GetSourceAttributeMappingsOk() (*map[string]string, b // HasSourceAttributeMappings returns a boolean if a field has been set. func (o *JITConfiguration) HasSourceAttributeMappings() bool { - if o != nil && !isNil(o.SourceAttributeMappings) { + if o != nil && !IsNil(o.SourceAttributeMappings) { return true } @@ -157,13 +157,13 @@ func (o JITConfiguration) MarshalJSON() ([]byte, error) { func (o JITConfiguration) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Enabled) { + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - if !isNil(o.SourceId) { + if !IsNil(o.SourceId) { toSerialize["sourceId"] = o.SourceId } - if !isNil(o.SourceAttributeMappings) { + if !IsNil(o.SourceAttributeMappings) { toSerialize["sourceAttributeMappings"] = o.SourceAttributeMappings } @@ -174,16 +174,20 @@ func (o JITConfiguration) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *JITConfiguration) UnmarshalJSON(bytes []byte) (err error) { +func (o *JITConfiguration) UnmarshalJSON(data []byte) (err error) { varJITConfiguration := _JITConfiguration{} - if err = json.Unmarshal(bytes, &varJITConfiguration); err == nil { + err = json.Unmarshal(data, &varJITConfiguration) + + if err != nil { + return err + } + *o = JITConfiguration(varJITConfiguration) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "enabled") delete(additionalProperties, "sourceId") delete(additionalProperties, "sourceAttributeMappings") diff --git a/api_v3/model_json_patch_operation.go b/api_v3/model_json_patch_operation.go index 0a2bdd1e9..9878e99af 100644 --- a/api_v3/model_json_patch_operation.go +++ b/api_v3/model_json_patch_operation.go @@ -99,7 +99,7 @@ func (o *JsonPatchOperation) SetPath(v string) { // GetValue returns the Value field value if set, zero value otherwise. func (o *JsonPatchOperation) GetValue() JsonPatchOperationValue { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { var ret JsonPatchOperationValue return ret } @@ -109,7 +109,7 @@ func (o *JsonPatchOperation) GetValue() JsonPatchOperationValue { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *JsonPatchOperation) GetValueOk() (*JsonPatchOperationValue, bool) { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { return nil, false } return o.Value, true @@ -117,7 +117,7 @@ func (o *JsonPatchOperation) GetValueOk() (*JsonPatchOperationValue, bool) { // HasValue returns a boolean if a field has been set. func (o *JsonPatchOperation) HasValue() bool { - if o != nil && !isNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -141,7 +141,7 @@ func (o JsonPatchOperation) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["op"] = o.Op toSerialize["path"] = o.Path - if !isNil(o.Value) { + if !IsNil(o.Value) { toSerialize["value"] = o.Value } @@ -152,8 +152,8 @@ func (o JsonPatchOperation) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *JsonPatchOperation) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *JsonPatchOperation) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -163,7 +163,7 @@ func (o *JsonPatchOperation) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -177,13 +177,17 @@ func (o *JsonPatchOperation) UnmarshalJSON(bytes []byte) (err error) { varJsonPatchOperation := _JsonPatchOperation{} - if err = json.Unmarshal(bytes, &varJsonPatchOperation); err == nil { + err = json.Unmarshal(data, &varJsonPatchOperation) + + if err != nil { + return err + } + *o = JsonPatchOperation(varJsonPatchOperation) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "op") delete(additionalProperties, "path") delete(additionalProperties, "value") diff --git a/api_v3/model_json_patch_operation_value.go b/api_v3/model_json_patch_operation_value.go index fe107c4d6..7da95d79b 100644 --- a/api_v3/model_json_patch_operation_value.go +++ b/api_v3/model_json_patch_operation_value.go @@ -12,6 +12,7 @@ package api_v3 import ( "encoding/json" + "gopkg.in/validator.v2" "fmt" ) @@ -20,7 +21,7 @@ type JsonPatchOperationValue struct { ArrayOfArrayInner *[]ArrayInner Bool *bool Int32 *int32 - MapmapOfStringinterface *map[string]interface{} + MapmapOfStringAny *map[string]interface{} String *string } @@ -46,9 +47,9 @@ func Int32AsJsonPatchOperationValue(v *int32) JsonPatchOperationValue { } // map[string]interface{}AsJsonPatchOperationValue is a convenience function that returns map[string]interface{} wrapped in JsonPatchOperationValue -func MapmapOfStringinterfaceAsJsonPatchOperationValue(v *map[string]interface{}) JsonPatchOperationValue { +func MapmapOfStringAnyAsJsonPatchOperationValue(v *map[string]interface{}) JsonPatchOperationValue { return JsonPatchOperationValue{ - MapmapOfStringinterface: v, + MapmapOfStringAny: v, } } @@ -71,7 +72,11 @@ func (dst *JsonPatchOperationValue) UnmarshalJSON(data []byte) error { if string(jsonArrayOfArrayInner) == "{}" { // empty struct dst.ArrayOfArrayInner = nil } else { - match++ + if err = validator.Validate(dst.ArrayOfArrayInner); err != nil { + dst.ArrayOfArrayInner = nil + } else { + match++ + } } } else { dst.ArrayOfArrayInner = nil @@ -84,7 +89,11 @@ func (dst *JsonPatchOperationValue) UnmarshalJSON(data []byte) error { if string(jsonBool) == "{}" { // empty struct dst.Bool = nil } else { - match++ + if err = validator.Validate(dst.Bool); err != nil { + dst.Bool = nil + } else { + match++ + } } } else { dst.Bool = nil @@ -97,23 +106,31 @@ func (dst *JsonPatchOperationValue) UnmarshalJSON(data []byte) error { if string(jsonInt32) == "{}" { // empty struct dst.Int32 = nil } else { - match++ + if err = validator.Validate(dst.Int32); err != nil { + dst.Int32 = nil + } else { + match++ + } } } else { dst.Int32 = nil } - // try to unmarshal data into MapmapOfStringinterface - err = newStrictDecoder(data).Decode(&dst.MapmapOfStringinterface) + // try to unmarshal data into MapmapOfStringAny + err = newStrictDecoder(data).Decode(&dst.MapmapOfStringAny) if err == nil { - jsonMapmapOfStringinterface, _ := json.Marshal(dst.MapmapOfStringinterface) - if string(jsonMapmapOfStringinterface) == "{}" { // empty struct - dst.MapmapOfStringinterface = nil + jsonMapmapOfStringAny, _ := json.Marshal(dst.MapmapOfStringAny) + if string(jsonMapmapOfStringAny) == "{}" { // empty struct + dst.MapmapOfStringAny = nil } else { - match++ + if err = validator.Validate(dst.MapmapOfStringAny); err != nil { + dst.MapmapOfStringAny = nil + } else { + match++ + } } } else { - dst.MapmapOfStringinterface = nil + dst.MapmapOfStringAny = nil } // try to unmarshal data into String @@ -123,7 +140,11 @@ func (dst *JsonPatchOperationValue) UnmarshalJSON(data []byte) error { if string(jsonString) == "{}" { // empty struct dst.String = nil } else { - match++ + if err = validator.Validate(dst.String); err != nil { + dst.String = nil + } else { + match++ + } } } else { dst.String = nil @@ -134,7 +155,7 @@ func (dst *JsonPatchOperationValue) UnmarshalJSON(data []byte) error { dst.ArrayOfArrayInner = nil dst.Bool = nil dst.Int32 = nil - dst.MapmapOfStringinterface = nil + dst.MapmapOfStringAny = nil dst.String = nil return fmt.Errorf("data matches more than one schema in oneOf(JsonPatchOperationValue)") @@ -159,8 +180,8 @@ func (src JsonPatchOperationValue) MarshalJSON() ([]byte, error) { return json.Marshal(&src.Int32) } - if src.MapmapOfStringinterface != nil { - return json.Marshal(&src.MapmapOfStringinterface) + if src.MapmapOfStringAny != nil { + return json.Marshal(&src.MapmapOfStringAny) } if src.String != nil { @@ -187,8 +208,8 @@ func (obj *JsonPatchOperationValue) GetActualInstance() (interface{}) { return obj.Int32 } - if obj.MapmapOfStringinterface != nil { - return obj.MapmapOfStringinterface + if obj.MapmapOfStringAny != nil { + return obj.MapmapOfStringAny } if obj.String != nil { diff --git a/api_v3/model_kba_answer_request_item.go b/api_v3/model_kba_answer_request_item.go index 4ffe8f06b..ae0d0de24 100644 --- a/api_v3/model_kba_answer_request_item.go +++ b/api_v3/model_kba_answer_request_item.go @@ -116,8 +116,8 @@ func (o KbaAnswerRequestItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *KbaAnswerRequestItem) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *KbaAnswerRequestItem) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -127,7 +127,7 @@ func (o *KbaAnswerRequestItem) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -141,13 +141,17 @@ func (o *KbaAnswerRequestItem) UnmarshalJSON(bytes []byte) (err error) { varKbaAnswerRequestItem := _KbaAnswerRequestItem{} - if err = json.Unmarshal(bytes, &varKbaAnswerRequestItem); err == nil { + err = json.Unmarshal(data, &varKbaAnswerRequestItem) + + if err != nil { + return err + } + *o = KbaAnswerRequestItem(varKbaAnswerRequestItem) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "answer") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_kba_answer_response_item.go b/api_v3/model_kba_answer_response_item.go index 9e3c915e9..90c633ec8 100644 --- a/api_v3/model_kba_answer_response_item.go +++ b/api_v3/model_kba_answer_response_item.go @@ -144,8 +144,8 @@ func (o KbaAnswerResponseItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *KbaAnswerResponseItem) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *KbaAnswerResponseItem) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -156,7 +156,7 @@ func (o *KbaAnswerResponseItem) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -170,13 +170,17 @@ func (o *KbaAnswerResponseItem) UnmarshalJSON(bytes []byte) (err error) { varKbaAnswerResponseItem := _KbaAnswerResponseItem{} - if err = json.Unmarshal(bytes, &varKbaAnswerResponseItem); err == nil { + err = json.Unmarshal(data, &varKbaAnswerResponseItem) + + if err != nil { + return err + } + *o = KbaAnswerResponseItem(varKbaAnswerResponseItem) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "question") delete(additionalProperties, "hasAnswer") diff --git a/api_v3/model_kba_auth_response.go b/api_v3/model_kba_auth_response.go index 7ec42622b..4e32a06e6 100644 --- a/api_v3/model_kba_auth_response.go +++ b/api_v3/model_kba_auth_response.go @@ -46,7 +46,7 @@ func NewKbaAuthResponseWithDefaults() *KbaAuthResponse { // GetKbaAuthResponseItems returns the KbaAuthResponseItems field value if set, zero value otherwise. func (o *KbaAuthResponse) GetKbaAuthResponseItems() []KbaAuthResponseItem { - if o == nil || isNil(o.KbaAuthResponseItems) { + if o == nil || IsNil(o.KbaAuthResponseItems) { var ret []KbaAuthResponseItem return ret } @@ -56,7 +56,7 @@ func (o *KbaAuthResponse) GetKbaAuthResponseItems() []KbaAuthResponseItem { // GetKbaAuthResponseItemsOk returns a tuple with the KbaAuthResponseItems field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *KbaAuthResponse) GetKbaAuthResponseItemsOk() ([]KbaAuthResponseItem, bool) { - if o == nil || isNil(o.KbaAuthResponseItems) { + if o == nil || IsNil(o.KbaAuthResponseItems) { return nil, false } return o.KbaAuthResponseItems, true @@ -64,7 +64,7 @@ func (o *KbaAuthResponse) GetKbaAuthResponseItemsOk() ([]KbaAuthResponseItem, bo // HasKbaAuthResponseItems returns a boolean if a field has been set. func (o *KbaAuthResponse) HasKbaAuthResponseItems() bool { - if o != nil && !isNil(o.KbaAuthResponseItems) { + if o != nil && !IsNil(o.KbaAuthResponseItems) { return true } @@ -78,7 +78,7 @@ func (o *KbaAuthResponse) SetKbaAuthResponseItems(v []KbaAuthResponseItem) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *KbaAuthResponse) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -88,7 +88,7 @@ func (o *KbaAuthResponse) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *KbaAuthResponse) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -96,7 +96,7 @@ func (o *KbaAuthResponse) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *KbaAuthResponse) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -118,10 +118,10 @@ func (o KbaAuthResponse) MarshalJSON() ([]byte, error) { func (o KbaAuthResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.KbaAuthResponseItems) { + if !IsNil(o.KbaAuthResponseItems) { toSerialize["kbaAuthResponseItems"] = o.KbaAuthResponseItems } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -132,16 +132,20 @@ func (o KbaAuthResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *KbaAuthResponse) UnmarshalJSON(bytes []byte) (err error) { +func (o *KbaAuthResponse) UnmarshalJSON(data []byte) (err error) { varKbaAuthResponse := _KbaAuthResponse{} - if err = json.Unmarshal(bytes, &varKbaAuthResponse); err == nil { + err = json.Unmarshal(data, &varKbaAuthResponse) + + if err != nil { + return err + } + *o = KbaAuthResponse(varKbaAuthResponse) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "kbaAuthResponseItems") delete(additionalProperties, "status") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_kba_auth_response_item.go b/api_v3/model_kba_auth_response_item.go index c4776cb9c..2dd07478b 100644 --- a/api_v3/model_kba_auth_response_item.go +++ b/api_v3/model_kba_auth_response_item.go @@ -47,7 +47,7 @@ func NewKbaAuthResponseItemWithDefaults() *KbaAuthResponseItem { // GetQuestionId returns the QuestionId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KbaAuthResponseItem) GetQuestionId() string { - if o == nil || isNil(o.QuestionId.Get()) { + if o == nil || IsNil(o.QuestionId.Get()) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *KbaAuthResponseItem) UnsetQuestionId() { // GetIsVerified returns the IsVerified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *KbaAuthResponseItem) GetIsVerified() bool { - if o == nil || isNil(o.IsVerified.Get()) { + if o == nil || IsNil(o.IsVerified.Get()) { var ret bool return ret } @@ -153,16 +153,20 @@ func (o KbaAuthResponseItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *KbaAuthResponseItem) UnmarshalJSON(bytes []byte) (err error) { +func (o *KbaAuthResponseItem) UnmarshalJSON(data []byte) (err error) { varKbaAuthResponseItem := _KbaAuthResponseItem{} - if err = json.Unmarshal(bytes, &varKbaAuthResponseItem); err == nil { + err = json.Unmarshal(data, &varKbaAuthResponseItem) + + if err != nil { + return err + } + *o = KbaAuthResponseItem(varKbaAuthResponseItem) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "questionId") delete(additionalProperties, "isVerified") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_kba_question.go b/api_v3/model_kba_question.go index f22d848d6..bb83803a0 100644 --- a/api_v3/model_kba_question.go +++ b/api_v3/model_kba_question.go @@ -172,8 +172,8 @@ func (o KbaQuestion) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *KbaQuestion) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *KbaQuestion) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -185,7 +185,7 @@ func (o *KbaQuestion) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -199,13 +199,17 @@ func (o *KbaQuestion) UnmarshalJSON(bytes []byte) (err error) { varKbaQuestion := _KbaQuestion{} - if err = json.Unmarshal(bytes, &varKbaQuestion); err == nil { + err = json.Unmarshal(data, &varKbaQuestion) + + if err != nil { + return err + } + *o = KbaQuestion(varKbaQuestion) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "text") delete(additionalProperties, "hasAnswer") diff --git a/api_v3/model_lifecycle_state.go b/api_v3/model_lifecycle_state.go index 7ddf7e4ef..f765e4e0b 100644 --- a/api_v3/model_lifecycle_state.go +++ b/api_v3/model_lifecycle_state.go @@ -73,7 +73,7 @@ func NewLifecycleStateWithDefaults() *LifecycleState { // GetId returns the Id field value if set, zero value otherwise. func (o *LifecycleState) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -83,7 +83,7 @@ func (o *LifecycleState) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *LifecycleState) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -91,7 +91,7 @@ func (o *LifecycleState) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *LifecycleState) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -129,7 +129,7 @@ func (o *LifecycleState) SetName(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *LifecycleState) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -139,7 +139,7 @@ func (o *LifecycleState) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *LifecycleState) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -147,7 +147,7 @@ func (o *LifecycleState) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *LifecycleState) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -161,7 +161,7 @@ func (o *LifecycleState) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *LifecycleState) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -171,7 +171,7 @@ func (o *LifecycleState) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *LifecycleState) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -179,7 +179,7 @@ func (o *LifecycleState) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *LifecycleState) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -193,7 +193,7 @@ func (o *LifecycleState) SetModified(v time.Time) { // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *LifecycleState) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -203,7 +203,7 @@ func (o *LifecycleState) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *LifecycleState) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -211,7 +211,7 @@ func (o *LifecycleState) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *LifecycleState) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -249,7 +249,7 @@ func (o *LifecycleState) SetTechnicalName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *LifecycleState) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -259,7 +259,7 @@ func (o *LifecycleState) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *LifecycleState) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -267,7 +267,7 @@ func (o *LifecycleState) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *LifecycleState) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -281,7 +281,7 @@ func (o *LifecycleState) SetDescription(v string) { // GetIdentityCount returns the IdentityCount field value if set, zero value otherwise. func (o *LifecycleState) GetIdentityCount() int32 { - if o == nil || isNil(o.IdentityCount) { + if o == nil || IsNil(o.IdentityCount) { var ret int32 return ret } @@ -291,7 +291,7 @@ func (o *LifecycleState) GetIdentityCount() int32 { // GetIdentityCountOk returns a tuple with the IdentityCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *LifecycleState) GetIdentityCountOk() (*int32, bool) { - if o == nil || isNil(o.IdentityCount) { + if o == nil || IsNil(o.IdentityCount) { return nil, false } return o.IdentityCount, true @@ -299,7 +299,7 @@ func (o *LifecycleState) GetIdentityCountOk() (*int32, bool) { // HasIdentityCount returns a boolean if a field has been set. func (o *LifecycleState) HasIdentityCount() bool { - if o != nil && !isNil(o.IdentityCount) { + if o != nil && !IsNil(o.IdentityCount) { return true } @@ -313,7 +313,7 @@ func (o *LifecycleState) SetIdentityCount(v int32) { // GetEmailNotificationOption returns the EmailNotificationOption field value if set, zero value otherwise. func (o *LifecycleState) GetEmailNotificationOption() EmailNotificationOption { - if o == nil || isNil(o.EmailNotificationOption) { + if o == nil || IsNil(o.EmailNotificationOption) { var ret EmailNotificationOption return ret } @@ -323,7 +323,7 @@ func (o *LifecycleState) GetEmailNotificationOption() EmailNotificationOption { // GetEmailNotificationOptionOk returns a tuple with the EmailNotificationOption field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *LifecycleState) GetEmailNotificationOptionOk() (*EmailNotificationOption, bool) { - if o == nil || isNil(o.EmailNotificationOption) { + if o == nil || IsNil(o.EmailNotificationOption) { return nil, false } return o.EmailNotificationOption, true @@ -331,7 +331,7 @@ func (o *LifecycleState) GetEmailNotificationOptionOk() (*EmailNotificationOptio // HasEmailNotificationOption returns a boolean if a field has been set. func (o *LifecycleState) HasEmailNotificationOption() bool { - if o != nil && !isNil(o.EmailNotificationOption) { + if o != nil && !IsNil(o.EmailNotificationOption) { return true } @@ -345,7 +345,7 @@ func (o *LifecycleState) SetEmailNotificationOption(v EmailNotificationOption) { // GetAccountActions returns the AccountActions field value if set, zero value otherwise. func (o *LifecycleState) GetAccountActions() []AccountAction { - if o == nil || isNil(o.AccountActions) { + if o == nil || IsNil(o.AccountActions) { var ret []AccountAction return ret } @@ -355,7 +355,7 @@ func (o *LifecycleState) GetAccountActions() []AccountAction { // GetAccountActionsOk returns a tuple with the AccountActions field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *LifecycleState) GetAccountActionsOk() ([]AccountAction, bool) { - if o == nil || isNil(o.AccountActions) { + if o == nil || IsNil(o.AccountActions) { return nil, false } return o.AccountActions, true @@ -363,7 +363,7 @@ func (o *LifecycleState) GetAccountActionsOk() ([]AccountAction, bool) { // HasAccountActions returns a boolean if a field has been set. func (o *LifecycleState) HasAccountActions() bool { - if o != nil && !isNil(o.AccountActions) { + if o != nil && !IsNil(o.AccountActions) { return true } @@ -377,7 +377,7 @@ func (o *LifecycleState) SetAccountActions(v []AccountAction) { // GetAccessProfileIds returns the AccessProfileIds field value if set, zero value otherwise. func (o *LifecycleState) GetAccessProfileIds() []string { - if o == nil || isNil(o.AccessProfileIds) { + if o == nil || IsNil(o.AccessProfileIds) { var ret []string return ret } @@ -387,7 +387,7 @@ func (o *LifecycleState) GetAccessProfileIds() []string { // GetAccessProfileIdsOk returns a tuple with the AccessProfileIds field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *LifecycleState) GetAccessProfileIdsOk() ([]string, bool) { - if o == nil || isNil(o.AccessProfileIds) { + if o == nil || IsNil(o.AccessProfileIds) { return nil, false } return o.AccessProfileIds, true @@ -395,7 +395,7 @@ func (o *LifecycleState) GetAccessProfileIdsOk() ([]string, bool) { // HasAccessProfileIds returns a boolean if a field has been set. func (o *LifecycleState) HasAccessProfileIds() bool { - if o != nil && !isNil(o.AccessProfileIds) { + if o != nil && !IsNil(o.AccessProfileIds) { return true } @@ -409,7 +409,7 @@ func (o *LifecycleState) SetAccessProfileIds(v []string) { // GetIdentityState returns the IdentityState field value if set, zero value otherwise (both if not set or set to explicit null). func (o *LifecycleState) GetIdentityState() string { - if o == nil || isNil(o.IdentityState.Get()) { + if o == nil || IsNil(o.IdentityState.Get()) { var ret string return ret } @@ -459,25 +459,33 @@ func (o LifecycleState) MarshalJSON() ([]byte, error) { func (o LifecycleState) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } toSerialize["name"] = o.Name - // skip: created is readOnly - // skip: modified is readOnly - if !isNil(o.Enabled) { + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } + if !IsNil(o.Modified) { + toSerialize["modified"] = o.Modified + } + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } toSerialize["technicalName"] = o.TechnicalName - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - // skip: identityCount is readOnly - if !isNil(o.EmailNotificationOption) { + if !IsNil(o.IdentityCount) { + toSerialize["identityCount"] = o.IdentityCount + } + if !IsNil(o.EmailNotificationOption) { toSerialize["emailNotificationOption"] = o.EmailNotificationOption } - if !isNil(o.AccountActions) { + if !IsNil(o.AccountActions) { toSerialize["accountActions"] = o.AccountActions } - if !isNil(o.AccessProfileIds) { + if !IsNil(o.AccessProfileIds) { toSerialize["accessProfileIds"] = o.AccessProfileIds } if o.IdentityState.IsSet() { @@ -491,8 +499,8 @@ func (o LifecycleState) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *LifecycleState) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *LifecycleState) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -502,7 +510,7 @@ func (o *LifecycleState) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -516,13 +524,17 @@ func (o *LifecycleState) UnmarshalJSON(bytes []byte) (err error) { varLifecycleState := _LifecycleState{} - if err = json.Unmarshal(bytes, &varLifecycleState); err == nil { + err = json.Unmarshal(data, &varLifecycleState) + + if err != nil { + return err + } + *o = LifecycleState(varLifecycleState) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "created") diff --git a/api_v3/model_lifecyclestate_deleted.go b/api_v3/model_lifecyclestate_deleted.go index 7ff653f08..ed97808b4 100644 --- a/api_v3/model_lifecyclestate_deleted.go +++ b/api_v3/model_lifecyclestate_deleted.go @@ -49,7 +49,7 @@ func NewLifecyclestateDeletedWithDefaults() *LifecyclestateDeleted { // GetType returns the Type field value if set, zero value otherwise. func (o *LifecyclestateDeleted) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *LifecyclestateDeleted) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *LifecyclestateDeleted) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *LifecyclestateDeleted) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *LifecyclestateDeleted) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *LifecyclestateDeleted) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *LifecyclestateDeleted) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *LifecyclestateDeleted) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *LifecyclestateDeleted) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *LifecyclestateDeleted) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *LifecyclestateDeleted) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *LifecyclestateDeleted) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *LifecyclestateDeleted) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *LifecyclestateDeleted) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *LifecyclestateDeleted) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *LifecyclestateDeleted) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *LifecyclestateDeleted) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o LifecyclestateDeleted) MarshalJSON() ([]byte, error) { func (o LifecyclestateDeleted) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o LifecyclestateDeleted) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *LifecyclestateDeleted) UnmarshalJSON(bytes []byte) (err error) { +func (o *LifecyclestateDeleted) UnmarshalJSON(data []byte) (err error) { varLifecyclestateDeleted := _LifecyclestateDeleted{} - if err = json.Unmarshal(bytes, &varLifecyclestateDeleted); err == nil { + err = json.Unmarshal(data, &varLifecyclestateDeleted) + + if err != nil { + return err + } + *o = LifecyclestateDeleted(varLifecyclestateDeleted) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_list_access_profiles_401_response.go b/api_v3/model_list_access_profiles_401_response.go index 10a511090..36bf622da 100644 --- a/api_v3/model_list_access_profiles_401_response.go +++ b/api_v3/model_list_access_profiles_401_response.go @@ -45,7 +45,7 @@ func NewListAccessProfiles401ResponseWithDefaults() *ListAccessProfiles401Respon // GetError returns the Error field value if set, zero value otherwise. func (o *ListAccessProfiles401Response) GetError() map[string]interface{} { - if o == nil || isNil(o.Error) { + if o == nil || IsNil(o.Error) { var ret map[string]interface{} return ret } @@ -55,7 +55,7 @@ func (o *ListAccessProfiles401Response) GetError() map[string]interface{} { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ListAccessProfiles401Response) GetErrorOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Error) { + if o == nil || IsNil(o.Error) { return map[string]interface{}{}, false } return o.Error, true @@ -63,7 +63,7 @@ func (o *ListAccessProfiles401Response) GetErrorOk() (map[string]interface{}, bo // HasError returns a boolean if a field has been set. func (o *ListAccessProfiles401Response) HasError() bool { - if o != nil && !isNil(o.Error) { + if o != nil && !IsNil(o.Error) { return true } @@ -85,7 +85,7 @@ func (o ListAccessProfiles401Response) MarshalJSON() ([]byte, error) { func (o ListAccessProfiles401Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Error) { + if !IsNil(o.Error) { toSerialize["error"] = o.Error } @@ -96,16 +96,20 @@ func (o ListAccessProfiles401Response) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ListAccessProfiles401Response) UnmarshalJSON(bytes []byte) (err error) { +func (o *ListAccessProfiles401Response) UnmarshalJSON(data []byte) (err error) { varListAccessProfiles401Response := _ListAccessProfiles401Response{} - if err = json.Unmarshal(bytes, &varListAccessProfiles401Response); err == nil { + err = json.Unmarshal(data, &varListAccessProfiles401Response) + + if err != nil { + return err + } + *o = ListAccessProfiles401Response(varListAccessProfiles401Response) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "error") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_list_access_profiles_429_response.go b/api_v3/model_list_access_profiles_429_response.go index 933312478..1291d11fc 100644 --- a/api_v3/model_list_access_profiles_429_response.go +++ b/api_v3/model_list_access_profiles_429_response.go @@ -45,7 +45,7 @@ func NewListAccessProfiles429ResponseWithDefaults() *ListAccessProfiles429Respon // GetMessage returns the Message field value if set, zero value otherwise. func (o *ListAccessProfiles429Response) GetMessage() map[string]interface{} { - if o == nil || isNil(o.Message) { + if o == nil || IsNil(o.Message) { var ret map[string]interface{} return ret } @@ -55,7 +55,7 @@ func (o *ListAccessProfiles429Response) GetMessage() map[string]interface{} { // GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ListAccessProfiles429Response) GetMessageOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Message) { + if o == nil || IsNil(o.Message) { return map[string]interface{}{}, false } return o.Message, true @@ -63,7 +63,7 @@ func (o *ListAccessProfiles429Response) GetMessageOk() (map[string]interface{}, // HasMessage returns a boolean if a field has been set. func (o *ListAccessProfiles429Response) HasMessage() bool { - if o != nil && !isNil(o.Message) { + if o != nil && !IsNil(o.Message) { return true } @@ -85,7 +85,7 @@ func (o ListAccessProfiles429Response) MarshalJSON() ([]byte, error) { func (o ListAccessProfiles429Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Message) { + if !IsNil(o.Message) { toSerialize["message"] = o.Message } @@ -96,16 +96,20 @@ func (o ListAccessProfiles429Response) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ListAccessProfiles429Response) UnmarshalJSON(bytes []byte) (err error) { +func (o *ListAccessProfiles429Response) UnmarshalJSON(data []byte) (err error) { varListAccessProfiles429Response := _ListAccessProfiles429Response{} - if err = json.Unmarshal(bytes, &varListAccessProfiles429Response); err == nil { + err = json.Unmarshal(data, &varListAccessProfiles429Response) + + if err != nil { + return err + } + *o = ListAccessProfiles429Response(varListAccessProfiles429Response) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "message") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_list_campaign_filters_200_response.go b/api_v3/model_list_campaign_filters_200_response.go index f6f701c77..56d8a2182 100644 --- a/api_v3/model_list_campaign_filters_200_response.go +++ b/api_v3/model_list_campaign_filters_200_response.go @@ -47,7 +47,7 @@ func NewListCampaignFilters200ResponseWithDefaults() *ListCampaignFilters200Resp // GetItems returns the Items field value if set, zero value otherwise. func (o *ListCampaignFilters200Response) GetItems() []CampaignFilterDetails { - if o == nil || isNil(o.Items) { + if o == nil || IsNil(o.Items) { var ret []CampaignFilterDetails return ret } @@ -57,7 +57,7 @@ func (o *ListCampaignFilters200Response) GetItems() []CampaignFilterDetails { // GetItemsOk returns a tuple with the Items field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ListCampaignFilters200Response) GetItemsOk() ([]CampaignFilterDetails, bool) { - if o == nil || isNil(o.Items) { + if o == nil || IsNil(o.Items) { return nil, false } return o.Items, true @@ -65,7 +65,7 @@ func (o *ListCampaignFilters200Response) GetItemsOk() ([]CampaignFilterDetails, // HasItems returns a boolean if a field has been set. func (o *ListCampaignFilters200Response) HasItems() bool { - if o != nil && !isNil(o.Items) { + if o != nil && !IsNil(o.Items) { return true } @@ -79,7 +79,7 @@ func (o *ListCampaignFilters200Response) SetItems(v []CampaignFilterDetails) { // GetCount returns the Count field value if set, zero value otherwise. func (o *ListCampaignFilters200Response) GetCount() int32 { - if o == nil || isNil(o.Count) { + if o == nil || IsNil(o.Count) { var ret int32 return ret } @@ -89,7 +89,7 @@ func (o *ListCampaignFilters200Response) GetCount() int32 { // GetCountOk returns a tuple with the Count field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ListCampaignFilters200Response) GetCountOk() (*int32, bool) { - if o == nil || isNil(o.Count) { + if o == nil || IsNil(o.Count) { return nil, false } return o.Count, true @@ -97,7 +97,7 @@ func (o *ListCampaignFilters200Response) GetCountOk() (*int32, bool) { // HasCount returns a boolean if a field has been set. func (o *ListCampaignFilters200Response) HasCount() bool { - if o != nil && !isNil(o.Count) { + if o != nil && !IsNil(o.Count) { return true } @@ -119,10 +119,10 @@ func (o ListCampaignFilters200Response) MarshalJSON() ([]byte, error) { func (o ListCampaignFilters200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Items) { + if !IsNil(o.Items) { toSerialize["items"] = o.Items } - if !isNil(o.Count) { + if !IsNil(o.Count) { toSerialize["count"] = o.Count } @@ -133,16 +133,20 @@ func (o ListCampaignFilters200Response) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *ListCampaignFilters200Response) UnmarshalJSON(bytes []byte) (err error) { +func (o *ListCampaignFilters200Response) UnmarshalJSON(data []byte) (err error) { varListCampaignFilters200Response := _ListCampaignFilters200Response{} - if err = json.Unmarshal(bytes, &varListCampaignFilters200Response); err == nil { + err = json.Unmarshal(data, &varListCampaignFilters200Response) + + if err != nil { + return err + } + *o = ListCampaignFilters200Response(varListCampaignFilters200Response) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "items") delete(additionalProperties, "count") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_list_complete_workflow_library_200_response_inner.go b/api_v3/model_list_complete_workflow_library_200_response_inner.go index 4f95ed6d5..c20c4e990 100644 --- a/api_v3/model_list_complete_workflow_library_200_response_inner.go +++ b/api_v3/model_list_complete_workflow_library_200_response_inner.go @@ -15,53 +15,54 @@ import ( "fmt" ) + // ListCompleteWorkflowLibrary200ResponseInner struct for ListCompleteWorkflowLibrary200ResponseInner type ListCompleteWorkflowLibrary200ResponseInner struct { - WorkflowLibraryActionvar *WorkflowLibraryAction - WorkflowLibraryOperatorvar *WorkflowLibraryOperator - WorkflowLibraryTriggervar *WorkflowLibraryTrigger + WorkflowLibraryAction *WorkflowLibraryAction + WorkflowLibraryOperator *WorkflowLibraryOperator + WorkflowLibraryTrigger *WorkflowLibraryTrigger } // Unmarshal JSON data into any of the pointers in the struct func (dst *ListCompleteWorkflowLibrary200ResponseInner) UnmarshalJSON(data []byte) error { var err error - // try to unmarshal JSON data into WorkflowLibraryActionvar - err = json.Unmarshal(data, &dst.WorkflowLibraryActionvar); + // try to unmarshal JSON data into WorkflowLibraryAction + err = json.Unmarshal(data, &dst.WorkflowLibraryAction); if err == nil { - jsonWorkflowLibraryActionvar, _ := json.Marshal(dst.WorkflowLibraryActionvar) - if string(jsonWorkflowLibraryActionvar) == "{}" { // empty struct - dst.WorkflowLibraryActionvar = nil + jsonWorkflowLibraryAction, _ := json.Marshal(dst.WorkflowLibraryAction) + if string(jsonWorkflowLibraryAction) == "{}" { // empty struct + dst.WorkflowLibraryAction = nil } else { - return nil // data stored in dst.WorkflowLibraryActionvar, return on the first match + return nil // data stored in dst.WorkflowLibraryAction, return on the first match } } else { - dst.WorkflowLibraryActionvar = nil + dst.WorkflowLibraryAction = nil } - // try to unmarshal JSON data into WorkflowLibraryOperatorvar - err = json.Unmarshal(data, &dst.WorkflowLibraryOperatorvar); + // try to unmarshal JSON data into WorkflowLibraryOperator + err = json.Unmarshal(data, &dst.WorkflowLibraryOperator); if err == nil { - jsonWorkflowLibraryOperatorvar, _ := json.Marshal(dst.WorkflowLibraryOperatorvar) - if string(jsonWorkflowLibraryOperatorvar) == "{}" { // empty struct - dst.WorkflowLibraryOperatorvar = nil + jsonWorkflowLibraryOperator, _ := json.Marshal(dst.WorkflowLibraryOperator) + if string(jsonWorkflowLibraryOperator) == "{}" { // empty struct + dst.WorkflowLibraryOperator = nil } else { - return nil // data stored in dst.WorkflowLibraryOperatorvar, return on the first match + return nil // data stored in dst.WorkflowLibraryOperator, return on the first match } } else { - dst.WorkflowLibraryOperatorvar = nil + dst.WorkflowLibraryOperator = nil } - // try to unmarshal JSON data into WorkflowLibraryTriggervar - err = json.Unmarshal(data, &dst.WorkflowLibraryTriggervar); + // try to unmarshal JSON data into WorkflowLibraryTrigger + err = json.Unmarshal(data, &dst.WorkflowLibraryTrigger); if err == nil { - jsonWorkflowLibraryTriggervar, _ := json.Marshal(dst.WorkflowLibraryTriggervar) - if string(jsonWorkflowLibraryTriggervar) == "{}" { // empty struct - dst.WorkflowLibraryTriggervar = nil + jsonWorkflowLibraryTrigger, _ := json.Marshal(dst.WorkflowLibraryTrigger) + if string(jsonWorkflowLibraryTrigger) == "{}" { // empty struct + dst.WorkflowLibraryTrigger = nil } else { - return nil // data stored in dst.WorkflowLibraryTriggervar, return on the first match + return nil // data stored in dst.WorkflowLibraryTrigger, return on the first match } } else { - dst.WorkflowLibraryTriggervar = nil + dst.WorkflowLibraryTrigger = nil } return fmt.Errorf("data failed to match schemas in anyOf(ListCompleteWorkflowLibrary200ResponseInner)") @@ -69,21 +70,22 @@ func (dst *ListCompleteWorkflowLibrary200ResponseInner) UnmarshalJSON(data []byt // Marshal data from the first non-nil pointers in the struct to JSON func (src *ListCompleteWorkflowLibrary200ResponseInner) MarshalJSON() ([]byte, error) { - if src.WorkflowLibraryActionvar != nil { - return json.Marshal(&src.WorkflowLibraryActionvar) + if src.WorkflowLibraryAction != nil { + return json.Marshal(&src.WorkflowLibraryAction) } - if src.WorkflowLibraryOperatorvar != nil { - return json.Marshal(&src.WorkflowLibraryOperatorvar) + if src.WorkflowLibraryOperator != nil { + return json.Marshal(&src.WorkflowLibraryOperator) } - if src.WorkflowLibraryTriggervar != nil { - return json.Marshal(&src.WorkflowLibraryTriggervar) + if src.WorkflowLibraryTrigger != nil { + return json.Marshal(&src.WorkflowLibraryTrigger) } return nil, nil // no data in anyOf schemas } + type NullableListCompleteWorkflowLibrary200ResponseInner struct { value *ListCompleteWorkflowLibrary200ResponseInner isSet bool diff --git a/api_v3/model_lockout_configuration.go b/api_v3/model_lockout_configuration.go index 59b9ad261..ded32e720 100644 --- a/api_v3/model_lockout_configuration.go +++ b/api_v3/model_lockout_configuration.go @@ -49,7 +49,7 @@ func NewLockoutConfigurationWithDefaults() *LockoutConfiguration { // GetMaximumAttempts returns the MaximumAttempts field value if set, zero value otherwise. func (o *LockoutConfiguration) GetMaximumAttempts() int32 { - if o == nil || isNil(o.MaximumAttempts) { + if o == nil || IsNil(o.MaximumAttempts) { var ret int32 return ret } @@ -59,7 +59,7 @@ func (o *LockoutConfiguration) GetMaximumAttempts() int32 { // GetMaximumAttemptsOk returns a tuple with the MaximumAttempts field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *LockoutConfiguration) GetMaximumAttemptsOk() (*int32, bool) { - if o == nil || isNil(o.MaximumAttempts) { + if o == nil || IsNil(o.MaximumAttempts) { return nil, false } return o.MaximumAttempts, true @@ -67,7 +67,7 @@ func (o *LockoutConfiguration) GetMaximumAttemptsOk() (*int32, bool) { // HasMaximumAttempts returns a boolean if a field has been set. func (o *LockoutConfiguration) HasMaximumAttempts() bool { - if o != nil && !isNil(o.MaximumAttempts) { + if o != nil && !IsNil(o.MaximumAttempts) { return true } @@ -81,7 +81,7 @@ func (o *LockoutConfiguration) SetMaximumAttempts(v int32) { // GetLockoutDuration returns the LockoutDuration field value if set, zero value otherwise. func (o *LockoutConfiguration) GetLockoutDuration() int32 { - if o == nil || isNil(o.LockoutDuration) { + if o == nil || IsNil(o.LockoutDuration) { var ret int32 return ret } @@ -91,7 +91,7 @@ func (o *LockoutConfiguration) GetLockoutDuration() int32 { // GetLockoutDurationOk returns a tuple with the LockoutDuration field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *LockoutConfiguration) GetLockoutDurationOk() (*int32, bool) { - if o == nil || isNil(o.LockoutDuration) { + if o == nil || IsNil(o.LockoutDuration) { return nil, false } return o.LockoutDuration, true @@ -99,7 +99,7 @@ func (o *LockoutConfiguration) GetLockoutDurationOk() (*int32, bool) { // HasLockoutDuration returns a boolean if a field has been set. func (o *LockoutConfiguration) HasLockoutDuration() bool { - if o != nil && !isNil(o.LockoutDuration) { + if o != nil && !IsNil(o.LockoutDuration) { return true } @@ -113,7 +113,7 @@ func (o *LockoutConfiguration) SetLockoutDuration(v int32) { // GetLockoutWindow returns the LockoutWindow field value if set, zero value otherwise. func (o *LockoutConfiguration) GetLockoutWindow() int32 { - if o == nil || isNil(o.LockoutWindow) { + if o == nil || IsNil(o.LockoutWindow) { var ret int32 return ret } @@ -123,7 +123,7 @@ func (o *LockoutConfiguration) GetLockoutWindow() int32 { // GetLockoutWindowOk returns a tuple with the LockoutWindow field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *LockoutConfiguration) GetLockoutWindowOk() (*int32, bool) { - if o == nil || isNil(o.LockoutWindow) { + if o == nil || IsNil(o.LockoutWindow) { return nil, false } return o.LockoutWindow, true @@ -131,7 +131,7 @@ func (o *LockoutConfiguration) GetLockoutWindowOk() (*int32, bool) { // HasLockoutWindow returns a boolean if a field has been set. func (o *LockoutConfiguration) HasLockoutWindow() bool { - if o != nil && !isNil(o.LockoutWindow) { + if o != nil && !IsNil(o.LockoutWindow) { return true } @@ -153,13 +153,13 @@ func (o LockoutConfiguration) MarshalJSON() ([]byte, error) { func (o LockoutConfiguration) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.MaximumAttempts) { + if !IsNil(o.MaximumAttempts) { toSerialize["maximumAttempts"] = o.MaximumAttempts } - if !isNil(o.LockoutDuration) { + if !IsNil(o.LockoutDuration) { toSerialize["lockoutDuration"] = o.LockoutDuration } - if !isNil(o.LockoutWindow) { + if !IsNil(o.LockoutWindow) { toSerialize["lockoutWindow"] = o.LockoutWindow } @@ -170,16 +170,20 @@ func (o LockoutConfiguration) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *LockoutConfiguration) UnmarshalJSON(bytes []byte) (err error) { +func (o *LockoutConfiguration) UnmarshalJSON(data []byte) (err error) { varLockoutConfiguration := _LockoutConfiguration{} - if err = json.Unmarshal(bytes, &varLockoutConfiguration); err == nil { + err = json.Unmarshal(data, &varLockoutConfiguration) + + if err != nil { + return err + } + *o = LockoutConfiguration(varLockoutConfiguration) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "maximumAttempts") delete(additionalProperties, "lockoutDuration") delete(additionalProperties, "lockoutWindow") diff --git a/api_v3/model_managed_client.go b/api_v3/model_managed_client.go index 16c2f9a06..fa3355efa 100644 --- a/api_v3/model_managed_client.go +++ b/api_v3/model_managed_client.go @@ -95,7 +95,7 @@ func NewManagedClientWithDefaults() *ManagedClient { // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClient) GetId() string { - if o == nil || isNil(o.Id.Get()) { + if o == nil || IsNil(o.Id.Get()) { var ret string return ret } @@ -137,7 +137,7 @@ func (o *ManagedClient) UnsetId() { // GetAlertKey returns the AlertKey field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClient) GetAlertKey() string { - if o == nil || isNil(o.AlertKey.Get()) { + if o == nil || IsNil(o.AlertKey.Get()) { var ret string return ret } @@ -179,7 +179,7 @@ func (o *ManagedClient) UnsetAlertKey() { // GetApiGatewayBaseUrl returns the ApiGatewayBaseUrl field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClient) GetApiGatewayBaseUrl() string { - if o == nil || isNil(o.ApiGatewayBaseUrl.Get()) { + if o == nil || IsNil(o.ApiGatewayBaseUrl.Get()) { var ret string return ret } @@ -221,7 +221,7 @@ func (o *ManagedClient) UnsetApiGatewayBaseUrl() { // GetCookbook returns the Cookbook field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClient) GetCookbook() string { - if o == nil || isNil(o.Cookbook.Get()) { + if o == nil || IsNil(o.Cookbook.Get()) { var ret string return ret } @@ -263,7 +263,7 @@ func (o *ManagedClient) UnsetCookbook() { // GetCcId returns the CcId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClient) GetCcId() int64 { - if o == nil || isNil(o.CcId.Get()) { + if o == nil || IsNil(o.CcId.Get()) { var ret int64 return ret } @@ -377,7 +377,7 @@ func (o *ManagedClient) SetDescription(v string) { // GetIpAddress returns the IpAddress field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClient) GetIpAddress() string { - if o == nil || isNil(o.IpAddress.Get()) { + if o == nil || IsNil(o.IpAddress.Get()) { var ret string return ret } @@ -419,7 +419,7 @@ func (o *ManagedClient) UnsetIpAddress() { // GetLastSeen returns the LastSeen field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClient) GetLastSeen() time.Time { - if o == nil || isNil(o.LastSeen.Get()) { + if o == nil || IsNil(o.LastSeen.Get()) { var ret time.Time return ret } @@ -461,7 +461,7 @@ func (o *ManagedClient) UnsetLastSeen() { // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClient) GetName() string { - if o == nil || isNil(o.Name.Get()) { + if o == nil || IsNil(o.Name.Get()) { var ret string return ret } @@ -503,7 +503,7 @@ func (o *ManagedClient) UnsetName() { // GetSinceLastSeen returns the SinceLastSeen field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClient) GetSinceLastSeen() string { - if o == nil || isNil(o.SinceLastSeen.Get()) { + if o == nil || IsNil(o.SinceLastSeen.Get()) { var ret string return ret } @@ -545,7 +545,7 @@ func (o *ManagedClient) UnsetSinceLastSeen() { // GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClient) GetStatus() string { - if o == nil || isNil(o.Status.Get()) { + if o == nil || IsNil(o.Status.Get()) { var ret string return ret } @@ -611,7 +611,7 @@ func (o *ManagedClient) SetType(v string) { // GetClusterType returns the ClusterType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClient) GetClusterType() string { - if o == nil || isNil(o.ClusterType.Get()) { + if o == nil || IsNil(o.ClusterType.Get()) { var ret string return ret } @@ -653,7 +653,7 @@ func (o *ManagedClient) UnsetClusterType() { // GetVaDownloadUrl returns the VaDownloadUrl field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClient) GetVaDownloadUrl() string { - if o == nil || isNil(o.VaDownloadUrl.Get()) { + if o == nil || IsNil(o.VaDownloadUrl.Get()) { var ret string return ret } @@ -695,7 +695,7 @@ func (o *ManagedClient) UnsetVaDownloadUrl() { // GetVaVersion returns the VaVersion field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClient) GetVaVersion() string { - if o == nil || isNil(o.VaVersion.Get()) { + if o == nil || IsNil(o.VaVersion.Get()) { var ret string return ret } @@ -737,7 +737,7 @@ func (o *ManagedClient) UnsetVaVersion() { // GetSecret returns the Secret field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClient) GetSecret() string { - if o == nil || isNil(o.Secret.Get()) { + if o == nil || IsNil(o.Secret.Get()) { var ret string return ret } @@ -779,7 +779,7 @@ func (o *ManagedClient) UnsetSecret() { // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClient) GetCreatedAt() time.Time { - if o == nil || isNil(o.CreatedAt.Get()) { + if o == nil || IsNil(o.CreatedAt.Get()) { var ret time.Time return ret } @@ -821,7 +821,7 @@ func (o *ManagedClient) UnsetCreatedAt() { // GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClient) GetUpdatedAt() time.Time { - if o == nil || isNil(o.UpdatedAt.Get()) { + if o == nil || IsNil(o.UpdatedAt.Get()) { var ret time.Time return ret } @@ -863,7 +863,7 @@ func (o *ManagedClient) UnsetUpdatedAt() { // GetProvisionStatus returns the ProvisionStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClient) GetProvisionStatus() string { - if o == nil || isNil(o.ProvisionStatus.Get()) { + if o == nil || IsNil(o.ProvisionStatus.Get()) { var ret string return ret } @@ -976,8 +976,8 @@ func (o ManagedClient) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ManagedClient) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ManagedClient) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -989,7 +989,7 @@ func (o *ManagedClient) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -1003,13 +1003,17 @@ func (o *ManagedClient) UnmarshalJSON(bytes []byte) (err error) { varManagedClient := _ManagedClient{} - if err = json.Unmarshal(bytes, &varManagedClient); err == nil { + err = json.Unmarshal(data, &varManagedClient) + + if err != nil { + return err + } + *o = ManagedClient(varManagedClient) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "alertKey") delete(additionalProperties, "apiGatewayBaseUrl") diff --git a/api_v3/model_managed_client_request.go b/api_v3/model_managed_client_request.go index e049dd016..a8a67a7ac 100644 --- a/api_v3/model_managed_client_request.go +++ b/api_v3/model_managed_client_request.go @@ -77,7 +77,7 @@ func (o *ManagedClientRequest) SetClusterId(v string) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClientRequest) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -119,7 +119,7 @@ func (o *ManagedClientRequest) UnsetDescription() { // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClientRequest) GetName() string { - if o == nil || isNil(o.Name.Get()) { + if o == nil || IsNil(o.Name.Get()) { var ret string return ret } @@ -161,7 +161,7 @@ func (o *ManagedClientRequest) UnsetName() { // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClientRequest) GetType() string { - if o == nil || isNil(o.Type.Get()) { + if o == nil || IsNil(o.Type.Get()) { var ret string return ret } @@ -229,8 +229,8 @@ func (o ManagedClientRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ManagedClientRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ManagedClientRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -239,7 +239,7 @@ func (o *ManagedClientRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -253,13 +253,17 @@ func (o *ManagedClientRequest) UnmarshalJSON(bytes []byte) (err error) { varManagedClientRequest := _ManagedClientRequest{} - if err = json.Unmarshal(bytes, &varManagedClientRequest); err == nil { + err = json.Unmarshal(data, &varManagedClientRequest) + + if err != nil { + return err + } + *o = ManagedClientRequest(varManagedClientRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "clusterId") delete(additionalProperties, "description") delete(additionalProperties, "name") diff --git a/api_v3/model_managed_client_status.go b/api_v3/model_managed_client_status.go index 500414424..98724a8b5 100644 --- a/api_v3/model_managed_client_status.go +++ b/api_v3/model_managed_client_status.go @@ -173,8 +173,8 @@ func (o ManagedClientStatus) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ManagedClientStatus) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ManagedClientStatus) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -186,7 +186,7 @@ func (o *ManagedClientStatus) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -200,13 +200,17 @@ func (o *ManagedClientStatus) UnmarshalJSON(bytes []byte) (err error) { varManagedClientStatus := _ManagedClientStatus{} - if err = json.Unmarshal(bytes, &varManagedClientStatus); err == nil { + err = json.Unmarshal(data, &varManagedClientStatus) + + if err != nil { + return err + } + *o = ManagedClientStatus(varManagedClientStatus) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "body") delete(additionalProperties, "status") delete(additionalProperties, "type") diff --git a/api_v3/model_managed_cluster.go b/api_v3/model_managed_cluster.go index 2cb427a08..efacaa83e 100644 --- a/api_v3/model_managed_cluster.go +++ b/api_v3/model_managed_cluster.go @@ -136,7 +136,7 @@ func (o *ManagedCluster) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *ManagedCluster) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -146,7 +146,7 @@ func (o *ManagedCluster) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedCluster) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -154,7 +154,7 @@ func (o *ManagedCluster) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ManagedCluster) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -168,7 +168,7 @@ func (o *ManagedCluster) SetName(v string) { // GetPod returns the Pod field value if set, zero value otherwise. func (o *ManagedCluster) GetPod() string { - if o == nil || isNil(o.Pod) { + if o == nil || IsNil(o.Pod) { var ret string return ret } @@ -178,7 +178,7 @@ func (o *ManagedCluster) GetPod() string { // GetPodOk returns a tuple with the Pod field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedCluster) GetPodOk() (*string, bool) { - if o == nil || isNil(o.Pod) { + if o == nil || IsNil(o.Pod) { return nil, false } return o.Pod, true @@ -186,7 +186,7 @@ func (o *ManagedCluster) GetPodOk() (*string, bool) { // HasPod returns a boolean if a field has been set. func (o *ManagedCluster) HasPod() bool { - if o != nil && !isNil(o.Pod) { + if o != nil && !IsNil(o.Pod) { return true } @@ -200,7 +200,7 @@ func (o *ManagedCluster) SetPod(v string) { // GetOrg returns the Org field value if set, zero value otherwise. func (o *ManagedCluster) GetOrg() string { - if o == nil || isNil(o.Org) { + if o == nil || IsNil(o.Org) { var ret string return ret } @@ -210,7 +210,7 @@ func (o *ManagedCluster) GetOrg() string { // GetOrgOk returns a tuple with the Org field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedCluster) GetOrgOk() (*string, bool) { - if o == nil || isNil(o.Org) { + if o == nil || IsNil(o.Org) { return nil, false } return o.Org, true @@ -218,7 +218,7 @@ func (o *ManagedCluster) GetOrgOk() (*string, bool) { // HasOrg returns a boolean if a field has been set. func (o *ManagedCluster) HasOrg() bool { - if o != nil && !isNil(o.Org) { + if o != nil && !IsNil(o.Org) { return true } @@ -232,7 +232,7 @@ func (o *ManagedCluster) SetOrg(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *ManagedCluster) GetType() ManagedClusterTypes { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret ManagedClusterTypes return ret } @@ -242,7 +242,7 @@ func (o *ManagedCluster) GetType() ManagedClusterTypes { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedCluster) GetTypeOk() (*ManagedClusterTypes, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -250,7 +250,7 @@ func (o *ManagedCluster) GetTypeOk() (*ManagedClusterTypes, bool) { // HasType returns a boolean if a field has been set. func (o *ManagedCluster) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -264,7 +264,7 @@ func (o *ManagedCluster) SetType(v ManagedClusterTypes) { // GetConfiguration returns the Configuration field value if set, zero value otherwise. func (o *ManagedCluster) GetConfiguration() map[string]string { - if o == nil || isNil(o.Configuration) { + if o == nil || IsNil(o.Configuration) { var ret map[string]string return ret } @@ -274,7 +274,7 @@ func (o *ManagedCluster) GetConfiguration() map[string]string { // GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedCluster) GetConfigurationOk() (*map[string]string, bool) { - if o == nil || isNil(o.Configuration) { + if o == nil || IsNil(o.Configuration) { return nil, false } return o.Configuration, true @@ -282,7 +282,7 @@ func (o *ManagedCluster) GetConfigurationOk() (*map[string]string, bool) { // HasConfiguration returns a boolean if a field has been set. func (o *ManagedCluster) HasConfiguration() bool { - if o != nil && !isNil(o.Configuration) { + if o != nil && !IsNil(o.Configuration) { return true } @@ -296,7 +296,7 @@ func (o *ManagedCluster) SetConfiguration(v map[string]string) { // GetKeyPair returns the KeyPair field value if set, zero value otherwise. func (o *ManagedCluster) GetKeyPair() ManagedClusterKeyPair { - if o == nil || isNil(o.KeyPair) { + if o == nil || IsNil(o.KeyPair) { var ret ManagedClusterKeyPair return ret } @@ -306,7 +306,7 @@ func (o *ManagedCluster) GetKeyPair() ManagedClusterKeyPair { // GetKeyPairOk returns a tuple with the KeyPair field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedCluster) GetKeyPairOk() (*ManagedClusterKeyPair, bool) { - if o == nil || isNil(o.KeyPair) { + if o == nil || IsNil(o.KeyPair) { return nil, false } return o.KeyPair, true @@ -314,7 +314,7 @@ func (o *ManagedCluster) GetKeyPairOk() (*ManagedClusterKeyPair, bool) { // HasKeyPair returns a boolean if a field has been set. func (o *ManagedCluster) HasKeyPair() bool { - if o != nil && !isNil(o.KeyPair) { + if o != nil && !IsNil(o.KeyPair) { return true } @@ -328,7 +328,7 @@ func (o *ManagedCluster) SetKeyPair(v ManagedClusterKeyPair) { // GetAttributes returns the Attributes field value if set, zero value otherwise. func (o *ManagedCluster) GetAttributes() ManagedClusterAttributes { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { var ret ManagedClusterAttributes return ret } @@ -338,7 +338,7 @@ func (o *ManagedCluster) GetAttributes() ManagedClusterAttributes { // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedCluster) GetAttributesOk() (*ManagedClusterAttributes, bool) { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { return nil, false } return o.Attributes, true @@ -346,7 +346,7 @@ func (o *ManagedCluster) GetAttributesOk() (*ManagedClusterAttributes, bool) { // HasAttributes returns a boolean if a field has been set. func (o *ManagedCluster) HasAttributes() bool { - if o != nil && !isNil(o.Attributes) { + if o != nil && !IsNil(o.Attributes) { return true } @@ -360,7 +360,7 @@ func (o *ManagedCluster) SetAttributes(v ManagedClusterAttributes) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *ManagedCluster) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -370,7 +370,7 @@ func (o *ManagedCluster) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedCluster) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -378,7 +378,7 @@ func (o *ManagedCluster) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *ManagedCluster) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -392,7 +392,7 @@ func (o *ManagedCluster) SetDescription(v string) { // GetRedis returns the Redis field value if set, zero value otherwise. func (o *ManagedCluster) GetRedis() ManagedClusterRedis { - if o == nil || isNil(o.Redis) { + if o == nil || IsNil(o.Redis) { var ret ManagedClusterRedis return ret } @@ -402,7 +402,7 @@ func (o *ManagedCluster) GetRedis() ManagedClusterRedis { // GetRedisOk returns a tuple with the Redis field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedCluster) GetRedisOk() (*ManagedClusterRedis, bool) { - if o == nil || isNil(o.Redis) { + if o == nil || IsNil(o.Redis) { return nil, false } return o.Redis, true @@ -410,7 +410,7 @@ func (o *ManagedCluster) GetRedisOk() (*ManagedClusterRedis, bool) { // HasRedis returns a boolean if a field has been set. func (o *ManagedCluster) HasRedis() bool { - if o != nil && !isNil(o.Redis) { + if o != nil && !IsNil(o.Redis) { return true } @@ -474,7 +474,7 @@ func (o *ManagedCluster) SetCcgVersion(v string) { // GetPinnedConfig returns the PinnedConfig field value if set, zero value otherwise. func (o *ManagedCluster) GetPinnedConfig() bool { - if o == nil || isNil(o.PinnedConfig) { + if o == nil || IsNil(o.PinnedConfig) { var ret bool return ret } @@ -484,7 +484,7 @@ func (o *ManagedCluster) GetPinnedConfig() bool { // GetPinnedConfigOk returns a tuple with the PinnedConfig field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedCluster) GetPinnedConfigOk() (*bool, bool) { - if o == nil || isNil(o.PinnedConfig) { + if o == nil || IsNil(o.PinnedConfig) { return nil, false } return o.PinnedConfig, true @@ -492,7 +492,7 @@ func (o *ManagedCluster) GetPinnedConfigOk() (*bool, bool) { // HasPinnedConfig returns a boolean if a field has been set. func (o *ManagedCluster) HasPinnedConfig() bool { - if o != nil && !isNil(o.PinnedConfig) { + if o != nil && !IsNil(o.PinnedConfig) { return true } @@ -506,7 +506,7 @@ func (o *ManagedCluster) SetPinnedConfig(v bool) { // GetLogConfiguration returns the LogConfiguration field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedCluster) GetLogConfiguration() ClientLogConfiguration { - if o == nil || isNil(o.LogConfiguration.Get()) { + if o == nil || IsNil(o.LogConfiguration.Get()) { var ret ClientLogConfiguration return ret } @@ -548,7 +548,7 @@ func (o *ManagedCluster) UnsetLogConfiguration() { // GetOperational returns the Operational field value if set, zero value otherwise. func (o *ManagedCluster) GetOperational() bool { - if o == nil || isNil(o.Operational) { + if o == nil || IsNil(o.Operational) { var ret bool return ret } @@ -558,7 +558,7 @@ func (o *ManagedCluster) GetOperational() bool { // GetOperationalOk returns a tuple with the Operational field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedCluster) GetOperationalOk() (*bool, bool) { - if o == nil || isNil(o.Operational) { + if o == nil || IsNil(o.Operational) { return nil, false } return o.Operational, true @@ -566,7 +566,7 @@ func (o *ManagedCluster) GetOperationalOk() (*bool, bool) { // HasOperational returns a boolean if a field has been set. func (o *ManagedCluster) HasOperational() bool { - if o != nil && !isNil(o.Operational) { + if o != nil && !IsNil(o.Operational) { return true } @@ -580,7 +580,7 @@ func (o *ManagedCluster) SetOperational(v bool) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *ManagedCluster) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -590,7 +590,7 @@ func (o *ManagedCluster) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedCluster) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -598,7 +598,7 @@ func (o *ManagedCluster) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *ManagedCluster) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -612,7 +612,7 @@ func (o *ManagedCluster) SetStatus(v string) { // GetPublicKeyCertificate returns the PublicKeyCertificate field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedCluster) GetPublicKeyCertificate() string { - if o == nil || isNil(o.PublicKeyCertificate.Get()) { + if o == nil || IsNil(o.PublicKeyCertificate.Get()) { var ret string return ret } @@ -654,7 +654,7 @@ func (o *ManagedCluster) UnsetPublicKeyCertificate() { // GetPublicKeyThumbprint returns the PublicKeyThumbprint field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedCluster) GetPublicKeyThumbprint() string { - if o == nil || isNil(o.PublicKeyThumbprint.Get()) { + if o == nil || IsNil(o.PublicKeyThumbprint.Get()) { var ret string return ret } @@ -696,7 +696,7 @@ func (o *ManagedCluster) UnsetPublicKeyThumbprint() { // GetPublicKey returns the PublicKey field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedCluster) GetPublicKey() string { - if o == nil || isNil(o.PublicKey.Get()) { + if o == nil || IsNil(o.PublicKey.Get()) { var ret string return ret } @@ -738,7 +738,7 @@ func (o *ManagedCluster) UnsetPublicKey() { // GetAlertKey returns the AlertKey field value if set, zero value otherwise. func (o *ManagedCluster) GetAlertKey() string { - if o == nil || isNil(o.AlertKey) { + if o == nil || IsNil(o.AlertKey) { var ret string return ret } @@ -748,7 +748,7 @@ func (o *ManagedCluster) GetAlertKey() string { // GetAlertKeyOk returns a tuple with the AlertKey field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedCluster) GetAlertKeyOk() (*string, bool) { - if o == nil || isNil(o.AlertKey) { + if o == nil || IsNil(o.AlertKey) { return nil, false } return o.AlertKey, true @@ -756,7 +756,7 @@ func (o *ManagedCluster) GetAlertKeyOk() (*string, bool) { // HasAlertKey returns a boolean if a field has been set. func (o *ManagedCluster) HasAlertKey() bool { - if o != nil && !isNil(o.AlertKey) { + if o != nil && !IsNil(o.AlertKey) { return true } @@ -770,7 +770,7 @@ func (o *ManagedCluster) SetAlertKey(v string) { // GetClientIds returns the ClientIds field value if set, zero value otherwise. func (o *ManagedCluster) GetClientIds() []string { - if o == nil || isNil(o.ClientIds) { + if o == nil || IsNil(o.ClientIds) { var ret []string return ret } @@ -780,7 +780,7 @@ func (o *ManagedCluster) GetClientIds() []string { // GetClientIdsOk returns a tuple with the ClientIds field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedCluster) GetClientIdsOk() ([]string, bool) { - if o == nil || isNil(o.ClientIds) { + if o == nil || IsNil(o.ClientIds) { return nil, false } return o.ClientIds, true @@ -788,7 +788,7 @@ func (o *ManagedCluster) GetClientIdsOk() ([]string, bool) { // HasClientIds returns a boolean if a field has been set. func (o *ManagedCluster) HasClientIds() bool { - if o != nil && !isNil(o.ClientIds) { + if o != nil && !IsNil(o.ClientIds) { return true } @@ -802,7 +802,7 @@ func (o *ManagedCluster) SetClientIds(v []string) { // GetServiceCount returns the ServiceCount field value if set, zero value otherwise. func (o *ManagedCluster) GetServiceCount() int32 { - if o == nil || isNil(o.ServiceCount) { + if o == nil || IsNil(o.ServiceCount) { var ret int32 return ret } @@ -812,7 +812,7 @@ func (o *ManagedCluster) GetServiceCount() int32 { // GetServiceCountOk returns a tuple with the ServiceCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedCluster) GetServiceCountOk() (*int32, bool) { - if o == nil || isNil(o.ServiceCount) { + if o == nil || IsNil(o.ServiceCount) { return nil, false } return o.ServiceCount, true @@ -820,7 +820,7 @@ func (o *ManagedCluster) GetServiceCountOk() (*int32, bool) { // HasServiceCount returns a boolean if a field has been set. func (o *ManagedCluster) HasServiceCount() bool { - if o != nil && !isNil(o.ServiceCount) { + if o != nil && !IsNil(o.ServiceCount) { return true } @@ -834,7 +834,7 @@ func (o *ManagedCluster) SetServiceCount(v int32) { // GetCcId returns the CcId field value if set, zero value otherwise. func (o *ManagedCluster) GetCcId() string { - if o == nil || isNil(o.CcId) { + if o == nil || IsNil(o.CcId) { var ret string return ret } @@ -844,7 +844,7 @@ func (o *ManagedCluster) GetCcId() string { // GetCcIdOk returns a tuple with the CcId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedCluster) GetCcIdOk() (*string, bool) { - if o == nil || isNil(o.CcId) { + if o == nil || IsNil(o.CcId) { return nil, false } return o.CcId, true @@ -852,7 +852,7 @@ func (o *ManagedCluster) GetCcIdOk() (*string, bool) { // HasCcId returns a boolean if a field has been set. func (o *ManagedCluster) HasCcId() bool { - if o != nil && !isNil(o.CcId) { + if o != nil && !IsNil(o.CcId) { return true } @@ -866,7 +866,7 @@ func (o *ManagedCluster) SetCcId(v string) { // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedCluster) GetCreatedAt() time.Time { - if o == nil || isNil(o.CreatedAt.Get()) { + if o == nil || IsNil(o.CreatedAt.Get()) { var ret time.Time return ret } @@ -908,7 +908,7 @@ func (o *ManagedCluster) UnsetCreatedAt() { // GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedCluster) GetUpdatedAt() time.Time { - if o == nil || isNil(o.UpdatedAt.Get()) { + if o == nil || IsNil(o.UpdatedAt.Get()) { var ret time.Time return ret } @@ -959,45 +959,45 @@ func (o ManagedCluster) MarshalJSON() ([]byte, error) { func (o ManagedCluster) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Pod) { + if !IsNil(o.Pod) { toSerialize["pod"] = o.Pod } - if !isNil(o.Org) { + if !IsNil(o.Org) { toSerialize["org"] = o.Org } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Configuration) { + if !IsNil(o.Configuration) { toSerialize["configuration"] = o.Configuration } - if !isNil(o.KeyPair) { + if !IsNil(o.KeyPair) { toSerialize["keyPair"] = o.KeyPair } - if !isNil(o.Attributes) { + if !IsNil(o.Attributes) { toSerialize["attributes"] = o.Attributes } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.Redis) { + if !IsNil(o.Redis) { toSerialize["redis"] = o.Redis } toSerialize["clientType"] = o.ClientType.Get() toSerialize["ccgVersion"] = o.CcgVersion - if !isNil(o.PinnedConfig) { + if !IsNil(o.PinnedConfig) { toSerialize["pinnedConfig"] = o.PinnedConfig } if o.LogConfiguration.IsSet() { toSerialize["logConfiguration"] = o.LogConfiguration.Get() } - if !isNil(o.Operational) { + if !IsNil(o.Operational) { toSerialize["operational"] = o.Operational } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } if o.PublicKeyCertificate.IsSet() { @@ -1009,16 +1009,16 @@ func (o ManagedCluster) ToMap() (map[string]interface{}, error) { if o.PublicKey.IsSet() { toSerialize["publicKey"] = o.PublicKey.Get() } - if !isNil(o.AlertKey) { + if !IsNil(o.AlertKey) { toSerialize["alertKey"] = o.AlertKey } - if !isNil(o.ClientIds) { + if !IsNil(o.ClientIds) { toSerialize["clientIds"] = o.ClientIds } - if !isNil(o.ServiceCount) { + if !IsNil(o.ServiceCount) { toSerialize["serviceCount"] = o.ServiceCount } - if !isNil(o.CcId) { + if !IsNil(o.CcId) { toSerialize["ccId"] = o.CcId } if o.CreatedAt.IsSet() { @@ -1035,8 +1035,8 @@ func (o ManagedCluster) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ManagedCluster) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ManagedCluster) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -1047,7 +1047,7 @@ func (o *ManagedCluster) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -1061,13 +1061,17 @@ func (o *ManagedCluster) UnmarshalJSON(bytes []byte) (err error) { varManagedCluster := _ManagedCluster{} - if err = json.Unmarshal(bytes, &varManagedCluster); err == nil { + err = json.Unmarshal(data, &varManagedCluster) + + if err != nil { + return err + } + *o = ManagedCluster(varManagedCluster) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "pod") diff --git a/api_v3/model_managed_cluster_attributes.go b/api_v3/model_managed_cluster_attributes.go index e72559d6d..a11291741 100644 --- a/api_v3/model_managed_cluster_attributes.go +++ b/api_v3/model_managed_cluster_attributes.go @@ -46,7 +46,7 @@ func NewManagedClusterAttributesWithDefaults() *ManagedClusterAttributes { // GetQueue returns the Queue field value if set, zero value otherwise. func (o *ManagedClusterAttributes) GetQueue() ManagedClusterQueue { - if o == nil || isNil(o.Queue) { + if o == nil || IsNil(o.Queue) { var ret ManagedClusterQueue return ret } @@ -56,7 +56,7 @@ func (o *ManagedClusterAttributes) GetQueue() ManagedClusterQueue { // GetQueueOk returns a tuple with the Queue field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedClusterAttributes) GetQueueOk() (*ManagedClusterQueue, bool) { - if o == nil || isNil(o.Queue) { + if o == nil || IsNil(o.Queue) { return nil, false } return o.Queue, true @@ -64,7 +64,7 @@ func (o *ManagedClusterAttributes) GetQueueOk() (*ManagedClusterQueue, bool) { // HasQueue returns a boolean if a field has been set. func (o *ManagedClusterAttributes) HasQueue() bool { - if o != nil && !isNil(o.Queue) { + if o != nil && !IsNil(o.Queue) { return true } @@ -78,7 +78,7 @@ func (o *ManagedClusterAttributes) SetQueue(v ManagedClusterQueue) { // GetKeystore returns the Keystore field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClusterAttributes) GetKeystore() string { - if o == nil || isNil(o.Keystore.Get()) { + if o == nil || IsNil(o.Keystore.Get()) { var ret string return ret } @@ -128,7 +128,7 @@ func (o ManagedClusterAttributes) MarshalJSON() ([]byte, error) { func (o ManagedClusterAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Queue) { + if !IsNil(o.Queue) { toSerialize["queue"] = o.Queue } if o.Keystore.IsSet() { @@ -142,16 +142,20 @@ func (o ManagedClusterAttributes) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ManagedClusterAttributes) UnmarshalJSON(bytes []byte) (err error) { +func (o *ManagedClusterAttributes) UnmarshalJSON(data []byte) (err error) { varManagedClusterAttributes := _ManagedClusterAttributes{} - if err = json.Unmarshal(bytes, &varManagedClusterAttributes); err == nil { + err = json.Unmarshal(data, &varManagedClusterAttributes) + + if err != nil { + return err + } + *o = ManagedClusterAttributes(varManagedClusterAttributes) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "queue") delete(additionalProperties, "keystore") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_managed_cluster_key_pair.go b/api_v3/model_managed_cluster_key_pair.go index e388146a2..bbf291a21 100644 --- a/api_v3/model_managed_cluster_key_pair.go +++ b/api_v3/model_managed_cluster_key_pair.go @@ -49,7 +49,7 @@ func NewManagedClusterKeyPairWithDefaults() *ManagedClusterKeyPair { // GetPublicKey returns the PublicKey field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClusterKeyPair) GetPublicKey() string { - if o == nil || isNil(o.PublicKey.Get()) { + if o == nil || IsNil(o.PublicKey.Get()) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *ManagedClusterKeyPair) UnsetPublicKey() { // GetPublicKeyThumbprint returns the PublicKeyThumbprint field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClusterKeyPair) GetPublicKeyThumbprint() string { - if o == nil || isNil(o.PublicKeyThumbprint.Get()) { + if o == nil || IsNil(o.PublicKeyThumbprint.Get()) { var ret string return ret } @@ -133,7 +133,7 @@ func (o *ManagedClusterKeyPair) UnsetPublicKeyThumbprint() { // GetPublicKeyCertificate returns the PublicKeyCertificate field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClusterKeyPair) GetPublicKeyCertificate() string { - if o == nil || isNil(o.PublicKeyCertificate.Get()) { + if o == nil || IsNil(o.PublicKeyCertificate.Get()) { var ret string return ret } @@ -200,16 +200,20 @@ func (o ManagedClusterKeyPair) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ManagedClusterKeyPair) UnmarshalJSON(bytes []byte) (err error) { +func (o *ManagedClusterKeyPair) UnmarshalJSON(data []byte) (err error) { varManagedClusterKeyPair := _ManagedClusterKeyPair{} - if err = json.Unmarshal(bytes, &varManagedClusterKeyPair); err == nil { + err = json.Unmarshal(data, &varManagedClusterKeyPair) + + if err != nil { + return err + } + *o = ManagedClusterKeyPair(varManagedClusterKeyPair) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "publicKey") delete(additionalProperties, "publicKeyThumbprint") delete(additionalProperties, "publicKeyCertificate") diff --git a/api_v3/model_managed_cluster_queue.go b/api_v3/model_managed_cluster_queue.go index f61bfa33a..093d08021 100644 --- a/api_v3/model_managed_cluster_queue.go +++ b/api_v3/model_managed_cluster_queue.go @@ -47,7 +47,7 @@ func NewManagedClusterQueueWithDefaults() *ManagedClusterQueue { // GetName returns the Name field value if set, zero value otherwise. func (o *ManagedClusterQueue) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *ManagedClusterQueue) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedClusterQueue) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -65,7 +65,7 @@ func (o *ManagedClusterQueue) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ManagedClusterQueue) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -79,7 +79,7 @@ func (o *ManagedClusterQueue) SetName(v string) { // GetRegion returns the Region field value if set, zero value otherwise. func (o *ManagedClusterQueue) GetRegion() string { - if o == nil || isNil(o.Region) { + if o == nil || IsNil(o.Region) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *ManagedClusterQueue) GetRegion() string { // GetRegionOk returns a tuple with the Region field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedClusterQueue) GetRegionOk() (*string, bool) { - if o == nil || isNil(o.Region) { + if o == nil || IsNil(o.Region) { return nil, false } return o.Region, true @@ -97,7 +97,7 @@ func (o *ManagedClusterQueue) GetRegionOk() (*string, bool) { // HasRegion returns a boolean if a field has been set. func (o *ManagedClusterQueue) HasRegion() bool { - if o != nil && !isNil(o.Region) { + if o != nil && !IsNil(o.Region) { return true } @@ -119,10 +119,10 @@ func (o ManagedClusterQueue) MarshalJSON() ([]byte, error) { func (o ManagedClusterQueue) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Region) { + if !IsNil(o.Region) { toSerialize["region"] = o.Region } @@ -133,16 +133,20 @@ func (o ManagedClusterQueue) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ManagedClusterQueue) UnmarshalJSON(bytes []byte) (err error) { +func (o *ManagedClusterQueue) UnmarshalJSON(data []byte) (err error) { varManagedClusterQueue := _ManagedClusterQueue{} - if err = json.Unmarshal(bytes, &varManagedClusterQueue); err == nil { + err = json.Unmarshal(data, &varManagedClusterQueue) + + if err != nil { + return err + } + *o = ManagedClusterQueue(varManagedClusterQueue) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "region") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_managed_cluster_redis.go b/api_v3/model_managed_cluster_redis.go index 9611103b5..434a2d337 100644 --- a/api_v3/model_managed_cluster_redis.go +++ b/api_v3/model_managed_cluster_redis.go @@ -47,7 +47,7 @@ func NewManagedClusterRedisWithDefaults() *ManagedClusterRedis { // GetRedisHost returns the RedisHost field value if set, zero value otherwise. func (o *ManagedClusterRedis) GetRedisHost() string { - if o == nil || isNil(o.RedisHost) { + if o == nil || IsNil(o.RedisHost) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *ManagedClusterRedis) GetRedisHost() string { // GetRedisHostOk returns a tuple with the RedisHost field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedClusterRedis) GetRedisHostOk() (*string, bool) { - if o == nil || isNil(o.RedisHost) { + if o == nil || IsNil(o.RedisHost) { return nil, false } return o.RedisHost, true @@ -65,7 +65,7 @@ func (o *ManagedClusterRedis) GetRedisHostOk() (*string, bool) { // HasRedisHost returns a boolean if a field has been set. func (o *ManagedClusterRedis) HasRedisHost() bool { - if o != nil && !isNil(o.RedisHost) { + if o != nil && !IsNil(o.RedisHost) { return true } @@ -79,7 +79,7 @@ func (o *ManagedClusterRedis) SetRedisHost(v string) { // GetRedisPort returns the RedisPort field value if set, zero value otherwise. func (o *ManagedClusterRedis) GetRedisPort() int32 { - if o == nil || isNil(o.RedisPort) { + if o == nil || IsNil(o.RedisPort) { var ret int32 return ret } @@ -89,7 +89,7 @@ func (o *ManagedClusterRedis) GetRedisPort() int32 { // GetRedisPortOk returns a tuple with the RedisPort field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedClusterRedis) GetRedisPortOk() (*int32, bool) { - if o == nil || isNil(o.RedisPort) { + if o == nil || IsNil(o.RedisPort) { return nil, false } return o.RedisPort, true @@ -97,7 +97,7 @@ func (o *ManagedClusterRedis) GetRedisPortOk() (*int32, bool) { // HasRedisPort returns a boolean if a field has been set. func (o *ManagedClusterRedis) HasRedisPort() bool { - if o != nil && !isNil(o.RedisPort) { + if o != nil && !IsNil(o.RedisPort) { return true } @@ -119,10 +119,10 @@ func (o ManagedClusterRedis) MarshalJSON() ([]byte, error) { func (o ManagedClusterRedis) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.RedisHost) { + if !IsNil(o.RedisHost) { toSerialize["redisHost"] = o.RedisHost } - if !isNil(o.RedisPort) { + if !IsNil(o.RedisPort) { toSerialize["redisPort"] = o.RedisPort } @@ -133,16 +133,20 @@ func (o ManagedClusterRedis) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ManagedClusterRedis) UnmarshalJSON(bytes []byte) (err error) { +func (o *ManagedClusterRedis) UnmarshalJSON(data []byte) (err error) { varManagedClusterRedis := _ManagedClusterRedis{} - if err = json.Unmarshal(bytes, &varManagedClusterRedis); err == nil { + err = json.Unmarshal(data, &varManagedClusterRedis) + + if err != nil { + return err + } + *o = ManagedClusterRedis(varManagedClusterRedis) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "redisHost") delete(additionalProperties, "redisPort") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_managed_cluster_request.go b/api_v3/model_managed_cluster_request.go index 5f056eb25..899690fa5 100644 --- a/api_v3/model_managed_cluster_request.go +++ b/api_v3/model_managed_cluster_request.go @@ -76,7 +76,7 @@ func (o *ManagedClusterRequest) SetName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *ManagedClusterRequest) GetType() ManagedClusterTypes { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret ManagedClusterTypes return ret } @@ -86,7 +86,7 @@ func (o *ManagedClusterRequest) GetType() ManagedClusterTypes { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedClusterRequest) GetTypeOk() (*ManagedClusterTypes, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -94,7 +94,7 @@ func (o *ManagedClusterRequest) GetTypeOk() (*ManagedClusterTypes, bool) { // HasType returns a boolean if a field has been set. func (o *ManagedClusterRequest) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -108,7 +108,7 @@ func (o *ManagedClusterRequest) SetType(v ManagedClusterTypes) { // GetConfiguration returns the Configuration field value if set, zero value otherwise. func (o *ManagedClusterRequest) GetConfiguration() map[string]string { - if o == nil || isNil(o.Configuration) { + if o == nil || IsNil(o.Configuration) { var ret map[string]string return ret } @@ -118,7 +118,7 @@ func (o *ManagedClusterRequest) GetConfiguration() map[string]string { // GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagedClusterRequest) GetConfigurationOk() (*map[string]string, bool) { - if o == nil || isNil(o.Configuration) { + if o == nil || IsNil(o.Configuration) { return nil, false } return o.Configuration, true @@ -126,7 +126,7 @@ func (o *ManagedClusterRequest) GetConfigurationOk() (*map[string]string, bool) // HasConfiguration returns a boolean if a field has been set. func (o *ManagedClusterRequest) HasConfiguration() bool { - if o != nil && !isNil(o.Configuration) { + if o != nil && !IsNil(o.Configuration) { return true } @@ -140,7 +140,7 @@ func (o *ManagedClusterRequest) SetConfiguration(v map[string]string) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManagedClusterRequest) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -191,10 +191,10 @@ func (o ManagedClusterRequest) MarshalJSON() ([]byte, error) { func (o ManagedClusterRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Configuration) { + if !IsNil(o.Configuration) { toSerialize["configuration"] = o.Configuration } if o.Description.IsSet() { @@ -208,8 +208,8 @@ func (o ManagedClusterRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ManagedClusterRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ManagedClusterRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -218,7 +218,7 @@ func (o *ManagedClusterRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -232,13 +232,17 @@ func (o *ManagedClusterRequest) UnmarshalJSON(bytes []byte) (err error) { varManagedClusterRequest := _ManagedClusterRequest{} - if err = json.Unmarshal(bytes, &varManagedClusterRequest); err == nil { + err = json.Unmarshal(data, &varManagedClusterRequest) + + if err != nil { + return err + } + *o = ManagedClusterRequest(varManagedClusterRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "type") delete(additionalProperties, "configuration") diff --git a/api_v3/model_manager_correlation_mapping.go b/api_v3/model_manager_correlation_mapping.go index 9a6b0ea55..c3e7d1abc 100644 --- a/api_v3/model_manager_correlation_mapping.go +++ b/api_v3/model_manager_correlation_mapping.go @@ -47,7 +47,7 @@ func NewManagerCorrelationMappingWithDefaults() *ManagerCorrelationMapping { // GetAccountAttributeName returns the AccountAttributeName field value if set, zero value otherwise. func (o *ManagerCorrelationMapping) GetAccountAttributeName() string { - if o == nil || isNil(o.AccountAttributeName) { + if o == nil || IsNil(o.AccountAttributeName) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *ManagerCorrelationMapping) GetAccountAttributeName() string { // GetAccountAttributeNameOk returns a tuple with the AccountAttributeName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagerCorrelationMapping) GetAccountAttributeNameOk() (*string, bool) { - if o == nil || isNil(o.AccountAttributeName) { + if o == nil || IsNil(o.AccountAttributeName) { return nil, false } return o.AccountAttributeName, true @@ -65,7 +65,7 @@ func (o *ManagerCorrelationMapping) GetAccountAttributeNameOk() (*string, bool) // HasAccountAttributeName returns a boolean if a field has been set. func (o *ManagerCorrelationMapping) HasAccountAttributeName() bool { - if o != nil && !isNil(o.AccountAttributeName) { + if o != nil && !IsNil(o.AccountAttributeName) { return true } @@ -79,7 +79,7 @@ func (o *ManagerCorrelationMapping) SetAccountAttributeName(v string) { // GetIdentityAttributeName returns the IdentityAttributeName field value if set, zero value otherwise. func (o *ManagerCorrelationMapping) GetIdentityAttributeName() string { - if o == nil || isNil(o.IdentityAttributeName) { + if o == nil || IsNil(o.IdentityAttributeName) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *ManagerCorrelationMapping) GetIdentityAttributeName() string { // GetIdentityAttributeNameOk returns a tuple with the IdentityAttributeName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManagerCorrelationMapping) GetIdentityAttributeNameOk() (*string, bool) { - if o == nil || isNil(o.IdentityAttributeName) { + if o == nil || IsNil(o.IdentityAttributeName) { return nil, false } return o.IdentityAttributeName, true @@ -97,7 +97,7 @@ func (o *ManagerCorrelationMapping) GetIdentityAttributeNameOk() (*string, bool) // HasIdentityAttributeName returns a boolean if a field has been set. func (o *ManagerCorrelationMapping) HasIdentityAttributeName() bool { - if o != nil && !isNil(o.IdentityAttributeName) { + if o != nil && !IsNil(o.IdentityAttributeName) { return true } @@ -119,10 +119,10 @@ func (o ManagerCorrelationMapping) MarshalJSON() ([]byte, error) { func (o ManagerCorrelationMapping) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.AccountAttributeName) { + if !IsNil(o.AccountAttributeName) { toSerialize["accountAttributeName"] = o.AccountAttributeName } - if !isNil(o.IdentityAttributeName) { + if !IsNil(o.IdentityAttributeName) { toSerialize["identityAttributeName"] = o.IdentityAttributeName } @@ -133,16 +133,20 @@ func (o ManagerCorrelationMapping) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ManagerCorrelationMapping) UnmarshalJSON(bytes []byte) (err error) { +func (o *ManagerCorrelationMapping) UnmarshalJSON(data []byte) (err error) { varManagerCorrelationMapping := _ManagerCorrelationMapping{} - if err = json.Unmarshal(bytes, &varManagerCorrelationMapping); err == nil { + err = json.Unmarshal(data, &varManagerCorrelationMapping) + + if err != nil { + return err + } + *o = ManagerCorrelationMapping(varManagerCorrelationMapping) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "accountAttributeName") delete(additionalProperties, "identityAttributeName") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_manual_discover_applications.go b/api_v3/model_manual_discover_applications.go index 8fbe955ba..7be730576 100644 --- a/api_v3/model_manual_discover_applications.go +++ b/api_v3/model_manual_discover_applications.go @@ -89,8 +89,8 @@ func (o ManualDiscoverApplications) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ManualDiscoverApplications) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ManualDiscoverApplications) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -99,7 +99,7 @@ func (o *ManualDiscoverApplications) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -113,13 +113,17 @@ func (o *ManualDiscoverApplications) UnmarshalJSON(bytes []byte) (err error) { varManualDiscoverApplications := _ManualDiscoverApplications{} - if err = json.Unmarshal(bytes, &varManualDiscoverApplications); err == nil { + err = json.Unmarshal(data, &varManualDiscoverApplications) + + if err != nil { + return err + } + *o = ManualDiscoverApplications(varManualDiscoverApplications) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "file") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_manual_discover_applications_template.go b/api_v3/model_manual_discover_applications_template.go index ba4dc64c8..15a3beb6d 100644 --- a/api_v3/model_manual_discover_applications_template.go +++ b/api_v3/model_manual_discover_applications_template.go @@ -47,7 +47,7 @@ func NewManualDiscoverApplicationsTemplateWithDefaults() *ManualDiscoverApplicat // GetApplicationName returns the ApplicationName field value if set, zero value otherwise. func (o *ManualDiscoverApplicationsTemplate) GetApplicationName() string { - if o == nil || isNil(o.ApplicationName) { + if o == nil || IsNil(o.ApplicationName) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *ManualDiscoverApplicationsTemplate) GetApplicationName() string { // GetApplicationNameOk returns a tuple with the ApplicationName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManualDiscoverApplicationsTemplate) GetApplicationNameOk() (*string, bool) { - if o == nil || isNil(o.ApplicationName) { + if o == nil || IsNil(o.ApplicationName) { return nil, false } return o.ApplicationName, true @@ -65,7 +65,7 @@ func (o *ManualDiscoverApplicationsTemplate) GetApplicationNameOk() (*string, bo // HasApplicationName returns a boolean if a field has been set. func (o *ManualDiscoverApplicationsTemplate) HasApplicationName() bool { - if o != nil && !isNil(o.ApplicationName) { + if o != nil && !IsNil(o.ApplicationName) { return true } @@ -79,7 +79,7 @@ func (o *ManualDiscoverApplicationsTemplate) SetApplicationName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *ManualDiscoverApplicationsTemplate) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *ManualDiscoverApplicationsTemplate) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManualDiscoverApplicationsTemplate) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -97,7 +97,7 @@ func (o *ManualDiscoverApplicationsTemplate) GetDescriptionOk() (*string, bool) // HasDescription returns a boolean if a field has been set. func (o *ManualDiscoverApplicationsTemplate) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -119,10 +119,10 @@ func (o ManualDiscoverApplicationsTemplate) MarshalJSON() ([]byte, error) { func (o ManualDiscoverApplicationsTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.ApplicationName) { + if !IsNil(o.ApplicationName) { toSerialize["application_name"] = o.ApplicationName } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -133,16 +133,20 @@ func (o ManualDiscoverApplicationsTemplate) ToMap() (map[string]interface{}, err return toSerialize, nil } -func (o *ManualDiscoverApplicationsTemplate) UnmarshalJSON(bytes []byte) (err error) { +func (o *ManualDiscoverApplicationsTemplate) UnmarshalJSON(data []byte) (err error) { varManualDiscoverApplicationsTemplate := _ManualDiscoverApplicationsTemplate{} - if err = json.Unmarshal(bytes, &varManualDiscoverApplicationsTemplate); err == nil { + err = json.Unmarshal(data, &varManualDiscoverApplicationsTemplate) + + if err != nil { + return err + } + *o = ManualDiscoverApplicationsTemplate(varManualDiscoverApplicationsTemplate) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "application_name") delete(additionalProperties, "description") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_manual_work_item_details.go b/api_v3/model_manual_work_item_details.go index ad916031e..55d631e41 100644 --- a/api_v3/model_manual_work_item_details.go +++ b/api_v3/model_manual_work_item_details.go @@ -57,7 +57,7 @@ func NewManualWorkItemDetailsWithDefaults() *ManualWorkItemDetails { // GetForwarded returns the Forwarded field value if set, zero value otherwise. func (o *ManualWorkItemDetails) GetForwarded() bool { - if o == nil || isNil(o.Forwarded) { + if o == nil || IsNil(o.Forwarded) { var ret bool return ret } @@ -67,7 +67,7 @@ func (o *ManualWorkItemDetails) GetForwarded() bool { // GetForwardedOk returns a tuple with the Forwarded field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManualWorkItemDetails) GetForwardedOk() (*bool, bool) { - if o == nil || isNil(o.Forwarded) { + if o == nil || IsNil(o.Forwarded) { return nil, false } return o.Forwarded, true @@ -75,7 +75,7 @@ func (o *ManualWorkItemDetails) GetForwardedOk() (*bool, bool) { // HasForwarded returns a boolean if a field has been set. func (o *ManualWorkItemDetails) HasForwarded() bool { - if o != nil && !isNil(o.Forwarded) { + if o != nil && !IsNil(o.Forwarded) { return true } @@ -89,7 +89,7 @@ func (o *ManualWorkItemDetails) SetForwarded(v bool) { // GetOriginalOwner returns the OriginalOwner field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManualWorkItemDetails) GetOriginalOwner() ManualWorkItemDetailsOriginalOwner { - if o == nil || isNil(o.OriginalOwner.Get()) { + if o == nil || IsNil(o.OriginalOwner.Get()) { var ret ManualWorkItemDetailsOriginalOwner return ret } @@ -131,7 +131,7 @@ func (o *ManualWorkItemDetails) UnsetOriginalOwner() { // GetCurrentOwner returns the CurrentOwner field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ManualWorkItemDetails) GetCurrentOwner() ManualWorkItemDetailsCurrentOwner { - if o == nil || isNil(o.CurrentOwner.Get()) { + if o == nil || IsNil(o.CurrentOwner.Get()) { var ret ManualWorkItemDetailsCurrentOwner return ret } @@ -173,7 +173,7 @@ func (o *ManualWorkItemDetails) UnsetCurrentOwner() { // GetModified returns the Modified field value if set, zero value otherwise. func (o *ManualWorkItemDetails) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -183,7 +183,7 @@ func (o *ManualWorkItemDetails) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManualWorkItemDetails) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -191,7 +191,7 @@ func (o *ManualWorkItemDetails) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *ManualWorkItemDetails) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -205,7 +205,7 @@ func (o *ManualWorkItemDetails) SetModified(v time.Time) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *ManualWorkItemDetails) GetStatus() ManualWorkItemState { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret ManualWorkItemState return ret } @@ -215,7 +215,7 @@ func (o *ManualWorkItemDetails) GetStatus() ManualWorkItemState { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManualWorkItemDetails) GetStatusOk() (*ManualWorkItemState, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -223,7 +223,7 @@ func (o *ManualWorkItemDetails) GetStatusOk() (*ManualWorkItemState, bool) { // HasStatus returns a boolean if a field has been set. func (o *ManualWorkItemDetails) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -248,7 +248,7 @@ func (o *ManualWorkItemDetails) GetForwardHistory() []ApprovalForwardHistory { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ManualWorkItemDetails) GetForwardHistoryOk() ([]ApprovalForwardHistory, bool) { - if o == nil || isNil(o.ForwardHistory) { + if o == nil || IsNil(o.ForwardHistory) { return nil, false } return o.ForwardHistory, true @@ -256,7 +256,7 @@ func (o *ManualWorkItemDetails) GetForwardHistoryOk() ([]ApprovalForwardHistory, // HasForwardHistory returns a boolean if a field has been set. func (o *ManualWorkItemDetails) HasForwardHistory() bool { - if o != nil && isNil(o.ForwardHistory) { + if o != nil && !IsNil(o.ForwardHistory) { return true } @@ -278,7 +278,7 @@ func (o ManualWorkItemDetails) MarshalJSON() ([]byte, error) { func (o ManualWorkItemDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Forwarded) { + if !IsNil(o.Forwarded) { toSerialize["forwarded"] = o.Forwarded } if o.OriginalOwner.IsSet() { @@ -287,10 +287,10 @@ func (o ManualWorkItemDetails) ToMap() (map[string]interface{}, error) { if o.CurrentOwner.IsSet() { toSerialize["currentOwner"] = o.CurrentOwner.Get() } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } if o.ForwardHistory != nil { @@ -304,16 +304,20 @@ func (o ManualWorkItemDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ManualWorkItemDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *ManualWorkItemDetails) UnmarshalJSON(data []byte) (err error) { varManualWorkItemDetails := _ManualWorkItemDetails{} - if err = json.Unmarshal(bytes, &varManualWorkItemDetails); err == nil { + err = json.Unmarshal(data, &varManualWorkItemDetails) + + if err != nil { + return err + } + *o = ManualWorkItemDetails(varManualWorkItemDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "forwarded") delete(additionalProperties, "originalOwner") delete(additionalProperties, "currentOwner") diff --git a/api_v3/model_manual_work_item_details_current_owner.go b/api_v3/model_manual_work_item_details_current_owner.go index f49fe93e2..28e33f9a5 100644 --- a/api_v3/model_manual_work_item_details_current_owner.go +++ b/api_v3/model_manual_work_item_details_current_owner.go @@ -49,7 +49,7 @@ func NewManualWorkItemDetailsCurrentOwnerWithDefaults() *ManualWorkItemDetailsCu // GetType returns the Type field value if set, zero value otherwise. func (o *ManualWorkItemDetailsCurrentOwner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *ManualWorkItemDetailsCurrentOwner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManualWorkItemDetailsCurrentOwner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *ManualWorkItemDetailsCurrentOwner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *ManualWorkItemDetailsCurrentOwner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *ManualWorkItemDetailsCurrentOwner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *ManualWorkItemDetailsCurrentOwner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *ManualWorkItemDetailsCurrentOwner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManualWorkItemDetailsCurrentOwner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *ManualWorkItemDetailsCurrentOwner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ManualWorkItemDetailsCurrentOwner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *ManualWorkItemDetailsCurrentOwner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *ManualWorkItemDetailsCurrentOwner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *ManualWorkItemDetailsCurrentOwner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManualWorkItemDetailsCurrentOwner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *ManualWorkItemDetailsCurrentOwner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ManualWorkItemDetailsCurrentOwner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o ManualWorkItemDetailsCurrentOwner) MarshalJSON() ([]byte, error) { func (o ManualWorkItemDetailsCurrentOwner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o ManualWorkItemDetailsCurrentOwner) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *ManualWorkItemDetailsCurrentOwner) UnmarshalJSON(bytes []byte) (err error) { +func (o *ManualWorkItemDetailsCurrentOwner) UnmarshalJSON(data []byte) (err error) { varManualWorkItemDetailsCurrentOwner := _ManualWorkItemDetailsCurrentOwner{} - if err = json.Unmarshal(bytes, &varManualWorkItemDetailsCurrentOwner); err == nil { + err = json.Unmarshal(data, &varManualWorkItemDetailsCurrentOwner) + + if err != nil { + return err + } + *o = ManualWorkItemDetailsCurrentOwner(varManualWorkItemDetailsCurrentOwner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_manual_work_item_details_original_owner.go b/api_v3/model_manual_work_item_details_original_owner.go index 57403b19a..b296a1a9e 100644 --- a/api_v3/model_manual_work_item_details_original_owner.go +++ b/api_v3/model_manual_work_item_details_original_owner.go @@ -49,7 +49,7 @@ func NewManualWorkItemDetailsOriginalOwnerWithDefaults() *ManualWorkItemDetailsO // GetType returns the Type field value if set, zero value otherwise. func (o *ManualWorkItemDetailsOriginalOwner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *ManualWorkItemDetailsOriginalOwner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManualWorkItemDetailsOriginalOwner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *ManualWorkItemDetailsOriginalOwner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *ManualWorkItemDetailsOriginalOwner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *ManualWorkItemDetailsOriginalOwner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *ManualWorkItemDetailsOriginalOwner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *ManualWorkItemDetailsOriginalOwner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManualWorkItemDetailsOriginalOwner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *ManualWorkItemDetailsOriginalOwner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ManualWorkItemDetailsOriginalOwner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *ManualWorkItemDetailsOriginalOwner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *ManualWorkItemDetailsOriginalOwner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *ManualWorkItemDetailsOriginalOwner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ManualWorkItemDetailsOriginalOwner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *ManualWorkItemDetailsOriginalOwner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ManualWorkItemDetailsOriginalOwner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o ManualWorkItemDetailsOriginalOwner) MarshalJSON() ([]byte, error) { func (o ManualWorkItemDetailsOriginalOwner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o ManualWorkItemDetailsOriginalOwner) ToMap() (map[string]interface{}, err return toSerialize, nil } -func (o *ManualWorkItemDetailsOriginalOwner) UnmarshalJSON(bytes []byte) (err error) { +func (o *ManualWorkItemDetailsOriginalOwner) UnmarshalJSON(data []byte) (err error) { varManualWorkItemDetailsOriginalOwner := _ManualWorkItemDetailsOriginalOwner{} - if err = json.Unmarshal(bytes, &varManualWorkItemDetailsOriginalOwner); err == nil { + err = json.Unmarshal(data, &varManualWorkItemDetailsOriginalOwner) + + if err != nil { + return err + } + *o = ManualWorkItemDetailsOriginalOwner(varManualWorkItemDetailsOriginalOwner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_metric_aggregation.go b/api_v3/model_metric_aggregation.go index 449c85747..31238b35e 100644 --- a/api_v3/model_metric_aggregation.go +++ b/api_v3/model_metric_aggregation.go @@ -79,7 +79,7 @@ func (o *MetricAggregation) SetName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *MetricAggregation) GetType() MetricType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret MetricType return ret } @@ -89,7 +89,7 @@ func (o *MetricAggregation) GetType() MetricType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *MetricAggregation) GetTypeOk() (*MetricType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -97,7 +97,7 @@ func (o *MetricAggregation) GetTypeOk() (*MetricType, bool) { // HasType returns a boolean if a field has been set. func (o *MetricAggregation) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -144,7 +144,7 @@ func (o MetricAggregation) MarshalJSON() ([]byte, error) { func (o MetricAggregation) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } toSerialize["field"] = o.Field @@ -156,8 +156,8 @@ func (o MetricAggregation) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *MetricAggregation) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *MetricAggregation) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -167,7 +167,7 @@ func (o *MetricAggregation) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -181,13 +181,17 @@ func (o *MetricAggregation) UnmarshalJSON(bytes []byte) (err error) { varMetricAggregation := _MetricAggregation{} - if err = json.Unmarshal(bytes, &varMetricAggregation); err == nil { + err = json.Unmarshal(data, &varMetricAggregation) + + if err != nil { + return err + } + *o = MetricAggregation(varMetricAggregation) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "type") delete(additionalProperties, "field") diff --git a/api_v3/model_mfa_config_test_response.go b/api_v3/model_mfa_config_test_response.go index 09cf3c536..fbb12d3f9 100644 --- a/api_v3/model_mfa_config_test_response.go +++ b/api_v3/model_mfa_config_test_response.go @@ -47,7 +47,7 @@ func NewMfaConfigTestResponseWithDefaults() *MfaConfigTestResponse { // GetState returns the State field value if set, zero value otherwise. func (o *MfaConfigTestResponse) GetState() string { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *MfaConfigTestResponse) GetState() string { // GetStateOk returns a tuple with the State field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *MfaConfigTestResponse) GetStateOk() (*string, bool) { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { return nil, false } return o.State, true @@ -65,7 +65,7 @@ func (o *MfaConfigTestResponse) GetStateOk() (*string, bool) { // HasState returns a boolean if a field has been set. func (o *MfaConfigTestResponse) HasState() bool { - if o != nil && !isNil(o.State) { + if o != nil && !IsNil(o.State) { return true } @@ -79,7 +79,7 @@ func (o *MfaConfigTestResponse) SetState(v string) { // GetError returns the Error field value if set, zero value otherwise. func (o *MfaConfigTestResponse) GetError() string { - if o == nil || isNil(o.Error) { + if o == nil || IsNil(o.Error) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *MfaConfigTestResponse) GetError() string { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *MfaConfigTestResponse) GetErrorOk() (*string, bool) { - if o == nil || isNil(o.Error) { + if o == nil || IsNil(o.Error) { return nil, false } return o.Error, true @@ -97,7 +97,7 @@ func (o *MfaConfigTestResponse) GetErrorOk() (*string, bool) { // HasError returns a boolean if a field has been set. func (o *MfaConfigTestResponse) HasError() bool { - if o != nil && !isNil(o.Error) { + if o != nil && !IsNil(o.Error) { return true } @@ -119,8 +119,12 @@ func (o MfaConfigTestResponse) MarshalJSON() ([]byte, error) { func (o MfaConfigTestResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: state is readOnly - // skip: error is readOnly + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,16 +133,20 @@ func (o MfaConfigTestResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *MfaConfigTestResponse) UnmarshalJSON(bytes []byte) (err error) { +func (o *MfaConfigTestResponse) UnmarshalJSON(data []byte) (err error) { varMfaConfigTestResponse := _MfaConfigTestResponse{} - if err = json.Unmarshal(bytes, &varMfaConfigTestResponse); err == nil { + err = json.Unmarshal(data, &varMfaConfigTestResponse) + + if err != nil { + return err + } + *o = MfaConfigTestResponse(varMfaConfigTestResponse) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "state") delete(additionalProperties, "error") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_mfa_duo_config.go b/api_v3/model_mfa_duo_config.go index a67862671..eacf9b024 100644 --- a/api_v3/model_mfa_duo_config.go +++ b/api_v3/model_mfa_duo_config.go @@ -59,7 +59,7 @@ func NewMfaDuoConfigWithDefaults() *MfaDuoConfig { // GetMfaMethod returns the MfaMethod field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MfaDuoConfig) GetMfaMethod() string { - if o == nil || isNil(o.MfaMethod.Get()) { + if o == nil || IsNil(o.MfaMethod.Get()) { var ret string return ret } @@ -101,7 +101,7 @@ func (o *MfaDuoConfig) UnsetMfaMethod() { // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *MfaDuoConfig) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -111,7 +111,7 @@ func (o *MfaDuoConfig) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *MfaDuoConfig) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -119,7 +119,7 @@ func (o *MfaDuoConfig) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *MfaDuoConfig) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -133,7 +133,7 @@ func (o *MfaDuoConfig) SetEnabled(v bool) { // GetHost returns the Host field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MfaDuoConfig) GetHost() string { - if o == nil || isNil(o.Host.Get()) { + if o == nil || IsNil(o.Host.Get()) { var ret string return ret } @@ -175,7 +175,7 @@ func (o *MfaDuoConfig) UnsetHost() { // GetAccessKey returns the AccessKey field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MfaDuoConfig) GetAccessKey() string { - if o == nil || isNil(o.AccessKey.Get()) { + if o == nil || IsNil(o.AccessKey.Get()) { var ret string return ret } @@ -217,7 +217,7 @@ func (o *MfaDuoConfig) UnsetAccessKey() { // GetIdentityAttribute returns the IdentityAttribute field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MfaDuoConfig) GetIdentityAttribute() string { - if o == nil || isNil(o.IdentityAttribute.Get()) { + if o == nil || IsNil(o.IdentityAttribute.Get()) { var ret string return ret } @@ -270,7 +270,7 @@ func (o *MfaDuoConfig) GetConfigProperties() map[string]interface{} { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *MfaDuoConfig) GetConfigPropertiesOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.ConfigProperties) { + if o == nil || IsNil(o.ConfigProperties) { return map[string]interface{}{}, false } return o.ConfigProperties, true @@ -278,7 +278,7 @@ func (o *MfaDuoConfig) GetConfigPropertiesOk() (map[string]interface{}, bool) { // HasConfigProperties returns a boolean if a field has been set. func (o *MfaDuoConfig) HasConfigProperties() bool { - if o != nil && isNil(o.ConfigProperties) { + if o != nil && !IsNil(o.ConfigProperties) { return true } @@ -303,7 +303,7 @@ func (o MfaDuoConfig) ToMap() (map[string]interface{}, error) { if o.MfaMethod.IsSet() { toSerialize["mfaMethod"] = o.MfaMethod.Get() } - if !isNil(o.Enabled) { + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } if o.Host.IsSet() { @@ -326,16 +326,20 @@ func (o MfaDuoConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *MfaDuoConfig) UnmarshalJSON(bytes []byte) (err error) { +func (o *MfaDuoConfig) UnmarshalJSON(data []byte) (err error) { varMfaDuoConfig := _MfaDuoConfig{} - if err = json.Unmarshal(bytes, &varMfaDuoConfig); err == nil { + err = json.Unmarshal(data, &varMfaDuoConfig) + + if err != nil { + return err + } + *o = MfaDuoConfig(varMfaDuoConfig) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "mfaMethod") delete(additionalProperties, "enabled") delete(additionalProperties, "host") diff --git a/api_v3/model_mfa_okta_config.go b/api_v3/model_mfa_okta_config.go index 93af33aba..af7bfdae8 100644 --- a/api_v3/model_mfa_okta_config.go +++ b/api_v3/model_mfa_okta_config.go @@ -57,7 +57,7 @@ func NewMfaOktaConfigWithDefaults() *MfaOktaConfig { // GetMfaMethod returns the MfaMethod field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MfaOktaConfig) GetMfaMethod() string { - if o == nil || isNil(o.MfaMethod.Get()) { + if o == nil || IsNil(o.MfaMethod.Get()) { var ret string return ret } @@ -99,7 +99,7 @@ func (o *MfaOktaConfig) UnsetMfaMethod() { // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *MfaOktaConfig) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -109,7 +109,7 @@ func (o *MfaOktaConfig) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *MfaOktaConfig) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -117,7 +117,7 @@ func (o *MfaOktaConfig) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *MfaOktaConfig) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -131,7 +131,7 @@ func (o *MfaOktaConfig) SetEnabled(v bool) { // GetHost returns the Host field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MfaOktaConfig) GetHost() string { - if o == nil || isNil(o.Host.Get()) { + if o == nil || IsNil(o.Host.Get()) { var ret string return ret } @@ -173,7 +173,7 @@ func (o *MfaOktaConfig) UnsetHost() { // GetAccessKey returns the AccessKey field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MfaOktaConfig) GetAccessKey() string { - if o == nil || isNil(o.AccessKey.Get()) { + if o == nil || IsNil(o.AccessKey.Get()) { var ret string return ret } @@ -215,7 +215,7 @@ func (o *MfaOktaConfig) UnsetAccessKey() { // GetIdentityAttribute returns the IdentityAttribute field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MfaOktaConfig) GetIdentityAttribute() string { - if o == nil || isNil(o.IdentityAttribute.Get()) { + if o == nil || IsNil(o.IdentityAttribute.Get()) { var ret string return ret } @@ -268,7 +268,7 @@ func (o MfaOktaConfig) ToMap() (map[string]interface{}, error) { if o.MfaMethod.IsSet() { toSerialize["mfaMethod"] = o.MfaMethod.Get() } - if !isNil(o.Enabled) { + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } if o.Host.IsSet() { @@ -288,16 +288,20 @@ func (o MfaOktaConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *MfaOktaConfig) UnmarshalJSON(bytes []byte) (err error) { +func (o *MfaOktaConfig) UnmarshalJSON(data []byte) (err error) { varMfaOktaConfig := _MfaOktaConfig{} - if err = json.Unmarshal(bytes, &varMfaOktaConfig); err == nil { + err = json.Unmarshal(data, &varMfaOktaConfig) + + if err != nil { + return err + } + *o = MfaOktaConfig(varMfaOktaConfig) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "mfaMethod") delete(additionalProperties, "enabled") delete(additionalProperties, "host") diff --git a/api_v3/model_multi_policy_request.go b/api_v3/model_multi_policy_request.go index edf509af2..cf2883500 100644 --- a/api_v3/model_multi_policy_request.go +++ b/api_v3/model_multi_policy_request.go @@ -45,7 +45,7 @@ func NewMultiPolicyRequestWithDefaults() *MultiPolicyRequest { // GetFilteredPolicyList returns the FilteredPolicyList field value if set, zero value otherwise. func (o *MultiPolicyRequest) GetFilteredPolicyList() []string { - if o == nil || isNil(o.FilteredPolicyList) { + if o == nil || IsNil(o.FilteredPolicyList) { var ret []string return ret } @@ -55,7 +55,7 @@ func (o *MultiPolicyRequest) GetFilteredPolicyList() []string { // GetFilteredPolicyListOk returns a tuple with the FilteredPolicyList field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *MultiPolicyRequest) GetFilteredPolicyListOk() ([]string, bool) { - if o == nil || isNil(o.FilteredPolicyList) { + if o == nil || IsNil(o.FilteredPolicyList) { return nil, false } return o.FilteredPolicyList, true @@ -63,7 +63,7 @@ func (o *MultiPolicyRequest) GetFilteredPolicyListOk() ([]string, bool) { // HasFilteredPolicyList returns a boolean if a field has been set. func (o *MultiPolicyRequest) HasFilteredPolicyList() bool { - if o != nil && !isNil(o.FilteredPolicyList) { + if o != nil && !IsNil(o.FilteredPolicyList) { return true } @@ -85,7 +85,7 @@ func (o MultiPolicyRequest) MarshalJSON() ([]byte, error) { func (o MultiPolicyRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.FilteredPolicyList) { + if !IsNil(o.FilteredPolicyList) { toSerialize["filteredPolicyList"] = o.FilteredPolicyList } @@ -96,16 +96,20 @@ func (o MultiPolicyRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *MultiPolicyRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *MultiPolicyRequest) UnmarshalJSON(data []byte) (err error) { varMultiPolicyRequest := _MultiPolicyRequest{} - if err = json.Unmarshal(bytes, &varMultiPolicyRequest); err == nil { + err = json.Unmarshal(data, &varMultiPolicyRequest) + + if err != nil { + return err + } + *o = MultiPolicyRequest(varMultiPolicyRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "filteredPolicyList") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_nested_aggregation.go b/api_v3/model_nested_aggregation.go index 5e9b57af1..e0c16d1ba 100644 --- a/api_v3/model_nested_aggregation.go +++ b/api_v3/model_nested_aggregation.go @@ -116,8 +116,8 @@ func (o NestedAggregation) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NestedAggregation) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *NestedAggregation) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -127,7 +127,7 @@ func (o *NestedAggregation) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -141,13 +141,17 @@ func (o *NestedAggregation) UnmarshalJSON(bytes []byte) (err error) { varNestedAggregation := _NestedAggregation{} - if err = json.Unmarshal(bytes, &varNestedAggregation); err == nil { + err = json.Unmarshal(data, &varNestedAggregation) + + if err != nil { + return err + } + *o = NestedAggregation(varNestedAggregation) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "type") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_network_configuration.go b/api_v3/model_network_configuration.go index f360335cf..25226feeb 100644 --- a/api_v3/model_network_configuration.go +++ b/api_v3/model_network_configuration.go @@ -64,7 +64,7 @@ func (o *NetworkConfiguration) GetRange() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *NetworkConfiguration) GetRangeOk() ([]string, bool) { - if o == nil || isNil(o.Range) { + if o == nil || IsNil(o.Range) { return nil, false } return o.Range, true @@ -72,7 +72,7 @@ func (o *NetworkConfiguration) GetRangeOk() ([]string, bool) { // HasRange returns a boolean if a field has been set. func (o *NetworkConfiguration) HasRange() bool { - if o != nil && isNil(o.Range) { + if o != nil && !IsNil(o.Range) { return true } @@ -97,7 +97,7 @@ func (o *NetworkConfiguration) GetGeolocation() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *NetworkConfiguration) GetGeolocationOk() ([]string, bool) { - if o == nil || isNil(o.Geolocation) { + if o == nil || IsNil(o.Geolocation) { return nil, false } return o.Geolocation, true @@ -105,7 +105,7 @@ func (o *NetworkConfiguration) GetGeolocationOk() ([]string, bool) { // HasGeolocation returns a boolean if a field has been set. func (o *NetworkConfiguration) HasGeolocation() bool { - if o != nil && isNil(o.Geolocation) { + if o != nil && !IsNil(o.Geolocation) { return true } @@ -119,7 +119,7 @@ func (o *NetworkConfiguration) SetGeolocation(v []string) { // GetWhitelisted returns the Whitelisted field value if set, zero value otherwise. func (o *NetworkConfiguration) GetWhitelisted() bool { - if o == nil || isNil(o.Whitelisted) { + if o == nil || IsNil(o.Whitelisted) { var ret bool return ret } @@ -129,7 +129,7 @@ func (o *NetworkConfiguration) GetWhitelisted() bool { // GetWhitelistedOk returns a tuple with the Whitelisted field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NetworkConfiguration) GetWhitelistedOk() (*bool, bool) { - if o == nil || isNil(o.Whitelisted) { + if o == nil || IsNil(o.Whitelisted) { return nil, false } return o.Whitelisted, true @@ -137,7 +137,7 @@ func (o *NetworkConfiguration) GetWhitelistedOk() (*bool, bool) { // HasWhitelisted returns a boolean if a field has been set. func (o *NetworkConfiguration) HasWhitelisted() bool { - if o != nil && !isNil(o.Whitelisted) { + if o != nil && !IsNil(o.Whitelisted) { return true } @@ -165,7 +165,7 @@ func (o NetworkConfiguration) ToMap() (map[string]interface{}, error) { if o.Geolocation != nil { toSerialize["geolocation"] = o.Geolocation } - if !isNil(o.Whitelisted) { + if !IsNil(o.Whitelisted) { toSerialize["whitelisted"] = o.Whitelisted } @@ -176,16 +176,20 @@ func (o NetworkConfiguration) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NetworkConfiguration) UnmarshalJSON(bytes []byte) (err error) { +func (o *NetworkConfiguration) UnmarshalJSON(data []byte) (err error) { varNetworkConfiguration := _NetworkConfiguration{} - if err = json.Unmarshal(bytes, &varNetworkConfiguration); err == nil { + err = json.Unmarshal(data, &varNetworkConfiguration) + + if err != nil { + return err + } + *o = NetworkConfiguration(varNetworkConfiguration) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "range") delete(additionalProperties, "geolocation") delete(additionalProperties, "whitelisted") diff --git a/api_v3/model_non_employee_approval_decision.go b/api_v3/model_non_employee_approval_decision.go index 7f41d28af..0bda2abc2 100644 --- a/api_v3/model_non_employee_approval_decision.go +++ b/api_v3/model_non_employee_approval_decision.go @@ -45,7 +45,7 @@ func NewNonEmployeeApprovalDecisionWithDefaults() *NonEmployeeApprovalDecision { // GetComment returns the Comment field value if set, zero value otherwise. func (o *NonEmployeeApprovalDecision) GetComment() string { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { var ret string return ret } @@ -55,7 +55,7 @@ func (o *NonEmployeeApprovalDecision) GetComment() string { // GetCommentOk returns a tuple with the Comment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalDecision) GetCommentOk() (*string, bool) { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { return nil, false } return o.Comment, true @@ -63,7 +63,7 @@ func (o *NonEmployeeApprovalDecision) GetCommentOk() (*string, bool) { // HasComment returns a boolean if a field has been set. func (o *NonEmployeeApprovalDecision) HasComment() bool { - if o != nil && !isNil(o.Comment) { + if o != nil && !IsNil(o.Comment) { return true } @@ -85,7 +85,7 @@ func (o NonEmployeeApprovalDecision) MarshalJSON() ([]byte, error) { func (o NonEmployeeApprovalDecision) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Comment) { + if !IsNil(o.Comment) { toSerialize["comment"] = o.Comment } @@ -96,16 +96,20 @@ func (o NonEmployeeApprovalDecision) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeApprovalDecision) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeApprovalDecision) UnmarshalJSON(data []byte) (err error) { varNonEmployeeApprovalDecision := _NonEmployeeApprovalDecision{} - if err = json.Unmarshal(bytes, &varNonEmployeeApprovalDecision); err == nil { + err = json.Unmarshal(data, &varNonEmployeeApprovalDecision) + + if err != nil { + return err + } + *o = NonEmployeeApprovalDecision(varNonEmployeeApprovalDecision) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "comment") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_non_employee_approval_item.go b/api_v3/model_non_employee_approval_item.go index f6d683440..e3318cc00 100644 --- a/api_v3/model_non_employee_approval_item.go +++ b/api_v3/model_non_employee_approval_item.go @@ -59,7 +59,7 @@ func NewNonEmployeeApprovalItemWithDefaults() *NonEmployeeApprovalItem { // GetId returns the Id field value if set, zero value otherwise. func (o *NonEmployeeApprovalItem) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -69,7 +69,7 @@ func (o *NonEmployeeApprovalItem) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItem) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -77,7 +77,7 @@ func (o *NonEmployeeApprovalItem) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *NonEmployeeApprovalItem) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -91,7 +91,7 @@ func (o *NonEmployeeApprovalItem) SetId(v string) { // GetApprover returns the Approver field value if set, zero value otherwise. func (o *NonEmployeeApprovalItem) GetApprover() NonEmployeeIdentityReferenceWithId { - if o == nil || isNil(o.Approver) { + if o == nil || IsNil(o.Approver) { var ret NonEmployeeIdentityReferenceWithId return ret } @@ -101,7 +101,7 @@ func (o *NonEmployeeApprovalItem) GetApprover() NonEmployeeIdentityReferenceWith // GetApproverOk returns a tuple with the Approver field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItem) GetApproverOk() (*NonEmployeeIdentityReferenceWithId, bool) { - if o == nil || isNil(o.Approver) { + if o == nil || IsNil(o.Approver) { return nil, false } return o.Approver, true @@ -109,7 +109,7 @@ func (o *NonEmployeeApprovalItem) GetApproverOk() (*NonEmployeeIdentityReference // HasApprover returns a boolean if a field has been set. func (o *NonEmployeeApprovalItem) HasApprover() bool { - if o != nil && !isNil(o.Approver) { + if o != nil && !IsNil(o.Approver) { return true } @@ -123,7 +123,7 @@ func (o *NonEmployeeApprovalItem) SetApprover(v NonEmployeeIdentityReferenceWith // GetAccountName returns the AccountName field value if set, zero value otherwise. func (o *NonEmployeeApprovalItem) GetAccountName() string { - if o == nil || isNil(o.AccountName) { + if o == nil || IsNil(o.AccountName) { var ret string return ret } @@ -133,7 +133,7 @@ func (o *NonEmployeeApprovalItem) GetAccountName() string { // GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItem) GetAccountNameOk() (*string, bool) { - if o == nil || isNil(o.AccountName) { + if o == nil || IsNil(o.AccountName) { return nil, false } return o.AccountName, true @@ -141,7 +141,7 @@ func (o *NonEmployeeApprovalItem) GetAccountNameOk() (*string, bool) { // HasAccountName returns a boolean if a field has been set. func (o *NonEmployeeApprovalItem) HasAccountName() bool { - if o != nil && !isNil(o.AccountName) { + if o != nil && !IsNil(o.AccountName) { return true } @@ -155,7 +155,7 @@ func (o *NonEmployeeApprovalItem) SetAccountName(v string) { // GetApprovalStatus returns the ApprovalStatus field value if set, zero value otherwise. func (o *NonEmployeeApprovalItem) GetApprovalStatus() ApprovalStatus { - if o == nil || isNil(o.ApprovalStatus) { + if o == nil || IsNil(o.ApprovalStatus) { var ret ApprovalStatus return ret } @@ -165,7 +165,7 @@ func (o *NonEmployeeApprovalItem) GetApprovalStatus() ApprovalStatus { // GetApprovalStatusOk returns a tuple with the ApprovalStatus field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItem) GetApprovalStatusOk() (*ApprovalStatus, bool) { - if o == nil || isNil(o.ApprovalStatus) { + if o == nil || IsNil(o.ApprovalStatus) { return nil, false } return o.ApprovalStatus, true @@ -173,7 +173,7 @@ func (o *NonEmployeeApprovalItem) GetApprovalStatusOk() (*ApprovalStatus, bool) // HasApprovalStatus returns a boolean if a field has been set. func (o *NonEmployeeApprovalItem) HasApprovalStatus() bool { - if o != nil && !isNil(o.ApprovalStatus) { + if o != nil && !IsNil(o.ApprovalStatus) { return true } @@ -187,7 +187,7 @@ func (o *NonEmployeeApprovalItem) SetApprovalStatus(v ApprovalStatus) { // GetApprovalOrder returns the ApprovalOrder field value if set, zero value otherwise. func (o *NonEmployeeApprovalItem) GetApprovalOrder() float32 { - if o == nil || isNil(o.ApprovalOrder) { + if o == nil || IsNil(o.ApprovalOrder) { var ret float32 return ret } @@ -197,7 +197,7 @@ func (o *NonEmployeeApprovalItem) GetApprovalOrder() float32 { // GetApprovalOrderOk returns a tuple with the ApprovalOrder field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItem) GetApprovalOrderOk() (*float32, bool) { - if o == nil || isNil(o.ApprovalOrder) { + if o == nil || IsNil(o.ApprovalOrder) { return nil, false } return o.ApprovalOrder, true @@ -205,7 +205,7 @@ func (o *NonEmployeeApprovalItem) GetApprovalOrderOk() (*float32, bool) { // HasApprovalOrder returns a boolean if a field has been set. func (o *NonEmployeeApprovalItem) HasApprovalOrder() bool { - if o != nil && !isNil(o.ApprovalOrder) { + if o != nil && !IsNil(o.ApprovalOrder) { return true } @@ -219,7 +219,7 @@ func (o *NonEmployeeApprovalItem) SetApprovalOrder(v float32) { // GetComment returns the Comment field value if set, zero value otherwise. func (o *NonEmployeeApprovalItem) GetComment() string { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { var ret string return ret } @@ -229,7 +229,7 @@ func (o *NonEmployeeApprovalItem) GetComment() string { // GetCommentOk returns a tuple with the Comment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItem) GetCommentOk() (*string, bool) { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { return nil, false } return o.Comment, true @@ -237,7 +237,7 @@ func (o *NonEmployeeApprovalItem) GetCommentOk() (*string, bool) { // HasComment returns a boolean if a field has been set. func (o *NonEmployeeApprovalItem) HasComment() bool { - if o != nil && !isNil(o.Comment) { + if o != nil && !IsNil(o.Comment) { return true } @@ -251,7 +251,7 @@ func (o *NonEmployeeApprovalItem) SetComment(v string) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *NonEmployeeApprovalItem) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -261,7 +261,7 @@ func (o *NonEmployeeApprovalItem) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItem) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -269,7 +269,7 @@ func (o *NonEmployeeApprovalItem) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *NonEmployeeApprovalItem) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -283,7 +283,7 @@ func (o *NonEmployeeApprovalItem) SetModified(v time.Time) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *NonEmployeeApprovalItem) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -293,7 +293,7 @@ func (o *NonEmployeeApprovalItem) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItem) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -301,7 +301,7 @@ func (o *NonEmployeeApprovalItem) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *NonEmployeeApprovalItem) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -315,7 +315,7 @@ func (o *NonEmployeeApprovalItem) SetCreated(v time.Time) { // GetNonEmployeeRequest returns the NonEmployeeRequest field value if set, zero value otherwise. func (o *NonEmployeeApprovalItem) GetNonEmployeeRequest() NonEmployeeRequestLite { - if o == nil || isNil(o.NonEmployeeRequest) { + if o == nil || IsNil(o.NonEmployeeRequest) { var ret NonEmployeeRequestLite return ret } @@ -325,7 +325,7 @@ func (o *NonEmployeeApprovalItem) GetNonEmployeeRequest() NonEmployeeRequestLite // GetNonEmployeeRequestOk returns a tuple with the NonEmployeeRequest field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItem) GetNonEmployeeRequestOk() (*NonEmployeeRequestLite, bool) { - if o == nil || isNil(o.NonEmployeeRequest) { + if o == nil || IsNil(o.NonEmployeeRequest) { return nil, false } return o.NonEmployeeRequest, true @@ -333,7 +333,7 @@ func (o *NonEmployeeApprovalItem) GetNonEmployeeRequestOk() (*NonEmployeeRequest // HasNonEmployeeRequest returns a boolean if a field has been set. func (o *NonEmployeeApprovalItem) HasNonEmployeeRequest() bool { - if o != nil && !isNil(o.NonEmployeeRequest) { + if o != nil && !IsNil(o.NonEmployeeRequest) { return true } @@ -355,31 +355,31 @@ func (o NonEmployeeApprovalItem) MarshalJSON() ([]byte, error) { func (o NonEmployeeApprovalItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Approver) { + if !IsNil(o.Approver) { toSerialize["approver"] = o.Approver } - if !isNil(o.AccountName) { + if !IsNil(o.AccountName) { toSerialize["accountName"] = o.AccountName } - if !isNil(o.ApprovalStatus) { + if !IsNil(o.ApprovalStatus) { toSerialize["approvalStatus"] = o.ApprovalStatus } - if !isNil(o.ApprovalOrder) { + if !IsNil(o.ApprovalOrder) { toSerialize["approvalOrder"] = o.ApprovalOrder } - if !isNil(o.Comment) { + if !IsNil(o.Comment) { toSerialize["comment"] = o.Comment } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.NonEmployeeRequest) { + if !IsNil(o.NonEmployeeRequest) { toSerialize["nonEmployeeRequest"] = o.NonEmployeeRequest } @@ -390,16 +390,20 @@ func (o NonEmployeeApprovalItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeApprovalItem) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeApprovalItem) UnmarshalJSON(data []byte) (err error) { varNonEmployeeApprovalItem := _NonEmployeeApprovalItem{} - if err = json.Unmarshal(bytes, &varNonEmployeeApprovalItem); err == nil { + err = json.Unmarshal(data, &varNonEmployeeApprovalItem) + + if err != nil { + return err + } + *o = NonEmployeeApprovalItem(varNonEmployeeApprovalItem) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "approver") delete(additionalProperties, "accountName") diff --git a/api_v3/model_non_employee_approval_item_base.go b/api_v3/model_non_employee_approval_item_base.go index f34e5744f..d0814d8b5 100644 --- a/api_v3/model_non_employee_approval_item_base.go +++ b/api_v3/model_non_employee_approval_item_base.go @@ -58,7 +58,7 @@ func NewNonEmployeeApprovalItemBaseWithDefaults() *NonEmployeeApprovalItemBase { // GetId returns the Id field value if set, zero value otherwise. func (o *NonEmployeeApprovalItemBase) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -68,7 +68,7 @@ func (o *NonEmployeeApprovalItemBase) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItemBase) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -76,7 +76,7 @@ func (o *NonEmployeeApprovalItemBase) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *NonEmployeeApprovalItemBase) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -90,7 +90,7 @@ func (o *NonEmployeeApprovalItemBase) SetId(v string) { // GetApprover returns the Approver field value if set, zero value otherwise. func (o *NonEmployeeApprovalItemBase) GetApprover() NonEmployeeIdentityReferenceWithId { - if o == nil || isNil(o.Approver) { + if o == nil || IsNil(o.Approver) { var ret NonEmployeeIdentityReferenceWithId return ret } @@ -100,7 +100,7 @@ func (o *NonEmployeeApprovalItemBase) GetApprover() NonEmployeeIdentityReference // GetApproverOk returns a tuple with the Approver field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItemBase) GetApproverOk() (*NonEmployeeIdentityReferenceWithId, bool) { - if o == nil || isNil(o.Approver) { + if o == nil || IsNil(o.Approver) { return nil, false } return o.Approver, true @@ -108,7 +108,7 @@ func (o *NonEmployeeApprovalItemBase) GetApproverOk() (*NonEmployeeIdentityRefer // HasApprover returns a boolean if a field has been set. func (o *NonEmployeeApprovalItemBase) HasApprover() bool { - if o != nil && !isNil(o.Approver) { + if o != nil && !IsNil(o.Approver) { return true } @@ -122,7 +122,7 @@ func (o *NonEmployeeApprovalItemBase) SetApprover(v NonEmployeeIdentityReference // GetAccountName returns the AccountName field value if set, zero value otherwise. func (o *NonEmployeeApprovalItemBase) GetAccountName() string { - if o == nil || isNil(o.AccountName) { + if o == nil || IsNil(o.AccountName) { var ret string return ret } @@ -132,7 +132,7 @@ func (o *NonEmployeeApprovalItemBase) GetAccountName() string { // GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItemBase) GetAccountNameOk() (*string, bool) { - if o == nil || isNil(o.AccountName) { + if o == nil || IsNil(o.AccountName) { return nil, false } return o.AccountName, true @@ -140,7 +140,7 @@ func (o *NonEmployeeApprovalItemBase) GetAccountNameOk() (*string, bool) { // HasAccountName returns a boolean if a field has been set. func (o *NonEmployeeApprovalItemBase) HasAccountName() bool { - if o != nil && !isNil(o.AccountName) { + if o != nil && !IsNil(o.AccountName) { return true } @@ -154,7 +154,7 @@ func (o *NonEmployeeApprovalItemBase) SetAccountName(v string) { // GetApprovalStatus returns the ApprovalStatus field value if set, zero value otherwise. func (o *NonEmployeeApprovalItemBase) GetApprovalStatus() ApprovalStatus { - if o == nil || isNil(o.ApprovalStatus) { + if o == nil || IsNil(o.ApprovalStatus) { var ret ApprovalStatus return ret } @@ -164,7 +164,7 @@ func (o *NonEmployeeApprovalItemBase) GetApprovalStatus() ApprovalStatus { // GetApprovalStatusOk returns a tuple with the ApprovalStatus field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItemBase) GetApprovalStatusOk() (*ApprovalStatus, bool) { - if o == nil || isNil(o.ApprovalStatus) { + if o == nil || IsNil(o.ApprovalStatus) { return nil, false } return o.ApprovalStatus, true @@ -172,7 +172,7 @@ func (o *NonEmployeeApprovalItemBase) GetApprovalStatusOk() (*ApprovalStatus, bo // HasApprovalStatus returns a boolean if a field has been set. func (o *NonEmployeeApprovalItemBase) HasApprovalStatus() bool { - if o != nil && !isNil(o.ApprovalStatus) { + if o != nil && !IsNil(o.ApprovalStatus) { return true } @@ -186,7 +186,7 @@ func (o *NonEmployeeApprovalItemBase) SetApprovalStatus(v ApprovalStatus) { // GetApprovalOrder returns the ApprovalOrder field value if set, zero value otherwise. func (o *NonEmployeeApprovalItemBase) GetApprovalOrder() float32 { - if o == nil || isNil(o.ApprovalOrder) { + if o == nil || IsNil(o.ApprovalOrder) { var ret float32 return ret } @@ -196,7 +196,7 @@ func (o *NonEmployeeApprovalItemBase) GetApprovalOrder() float32 { // GetApprovalOrderOk returns a tuple with the ApprovalOrder field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItemBase) GetApprovalOrderOk() (*float32, bool) { - if o == nil || isNil(o.ApprovalOrder) { + if o == nil || IsNil(o.ApprovalOrder) { return nil, false } return o.ApprovalOrder, true @@ -204,7 +204,7 @@ func (o *NonEmployeeApprovalItemBase) GetApprovalOrderOk() (*float32, bool) { // HasApprovalOrder returns a boolean if a field has been set. func (o *NonEmployeeApprovalItemBase) HasApprovalOrder() bool { - if o != nil && !isNil(o.ApprovalOrder) { + if o != nil && !IsNil(o.ApprovalOrder) { return true } @@ -218,7 +218,7 @@ func (o *NonEmployeeApprovalItemBase) SetApprovalOrder(v float32) { // GetComment returns the Comment field value if set, zero value otherwise. func (o *NonEmployeeApprovalItemBase) GetComment() string { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { var ret string return ret } @@ -228,7 +228,7 @@ func (o *NonEmployeeApprovalItemBase) GetComment() string { // GetCommentOk returns a tuple with the Comment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItemBase) GetCommentOk() (*string, bool) { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { return nil, false } return o.Comment, true @@ -236,7 +236,7 @@ func (o *NonEmployeeApprovalItemBase) GetCommentOk() (*string, bool) { // HasComment returns a boolean if a field has been set. func (o *NonEmployeeApprovalItemBase) HasComment() bool { - if o != nil && !isNil(o.Comment) { + if o != nil && !IsNil(o.Comment) { return true } @@ -250,7 +250,7 @@ func (o *NonEmployeeApprovalItemBase) SetComment(v string) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *NonEmployeeApprovalItemBase) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -260,7 +260,7 @@ func (o *NonEmployeeApprovalItemBase) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItemBase) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -268,7 +268,7 @@ func (o *NonEmployeeApprovalItemBase) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *NonEmployeeApprovalItemBase) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -282,7 +282,7 @@ func (o *NonEmployeeApprovalItemBase) SetModified(v time.Time) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *NonEmployeeApprovalItemBase) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -292,7 +292,7 @@ func (o *NonEmployeeApprovalItemBase) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItemBase) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -300,7 +300,7 @@ func (o *NonEmployeeApprovalItemBase) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *NonEmployeeApprovalItemBase) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -322,28 +322,28 @@ func (o NonEmployeeApprovalItemBase) MarshalJSON() ([]byte, error) { func (o NonEmployeeApprovalItemBase) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Approver) { + if !IsNil(o.Approver) { toSerialize["approver"] = o.Approver } - if !isNil(o.AccountName) { + if !IsNil(o.AccountName) { toSerialize["accountName"] = o.AccountName } - if !isNil(o.ApprovalStatus) { + if !IsNil(o.ApprovalStatus) { toSerialize["approvalStatus"] = o.ApprovalStatus } - if !isNil(o.ApprovalOrder) { + if !IsNil(o.ApprovalOrder) { toSerialize["approvalOrder"] = o.ApprovalOrder } - if !isNil(o.Comment) { + if !IsNil(o.Comment) { toSerialize["comment"] = o.Comment } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } @@ -354,16 +354,20 @@ func (o NonEmployeeApprovalItemBase) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeApprovalItemBase) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeApprovalItemBase) UnmarshalJSON(data []byte) (err error) { varNonEmployeeApprovalItemBase := _NonEmployeeApprovalItemBase{} - if err = json.Unmarshal(bytes, &varNonEmployeeApprovalItemBase); err == nil { + err = json.Unmarshal(data, &varNonEmployeeApprovalItemBase) + + if err != nil { + return err + } + *o = NonEmployeeApprovalItemBase(varNonEmployeeApprovalItemBase) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "approver") delete(additionalProperties, "accountName") diff --git a/api_v3/model_non_employee_approval_item_detail.go b/api_v3/model_non_employee_approval_item_detail.go index 0c0578ae1..8c21d6c88 100644 --- a/api_v3/model_non_employee_approval_item_detail.go +++ b/api_v3/model_non_employee_approval_item_detail.go @@ -59,7 +59,7 @@ func NewNonEmployeeApprovalItemDetailWithDefaults() *NonEmployeeApprovalItemDeta // GetId returns the Id field value if set, zero value otherwise. func (o *NonEmployeeApprovalItemDetail) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -69,7 +69,7 @@ func (o *NonEmployeeApprovalItemDetail) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItemDetail) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -77,7 +77,7 @@ func (o *NonEmployeeApprovalItemDetail) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *NonEmployeeApprovalItemDetail) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -91,7 +91,7 @@ func (o *NonEmployeeApprovalItemDetail) SetId(v string) { // GetApprover returns the Approver field value if set, zero value otherwise. func (o *NonEmployeeApprovalItemDetail) GetApprover() NonEmployeeIdentityReferenceWithId { - if o == nil || isNil(o.Approver) { + if o == nil || IsNil(o.Approver) { var ret NonEmployeeIdentityReferenceWithId return ret } @@ -101,7 +101,7 @@ func (o *NonEmployeeApprovalItemDetail) GetApprover() NonEmployeeIdentityReferen // GetApproverOk returns a tuple with the Approver field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItemDetail) GetApproverOk() (*NonEmployeeIdentityReferenceWithId, bool) { - if o == nil || isNil(o.Approver) { + if o == nil || IsNil(o.Approver) { return nil, false } return o.Approver, true @@ -109,7 +109,7 @@ func (o *NonEmployeeApprovalItemDetail) GetApproverOk() (*NonEmployeeIdentityRef // HasApprover returns a boolean if a field has been set. func (o *NonEmployeeApprovalItemDetail) HasApprover() bool { - if o != nil && !isNil(o.Approver) { + if o != nil && !IsNil(o.Approver) { return true } @@ -123,7 +123,7 @@ func (o *NonEmployeeApprovalItemDetail) SetApprover(v NonEmployeeIdentityReferen // GetAccountName returns the AccountName field value if set, zero value otherwise. func (o *NonEmployeeApprovalItemDetail) GetAccountName() string { - if o == nil || isNil(o.AccountName) { + if o == nil || IsNil(o.AccountName) { var ret string return ret } @@ -133,7 +133,7 @@ func (o *NonEmployeeApprovalItemDetail) GetAccountName() string { // GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItemDetail) GetAccountNameOk() (*string, bool) { - if o == nil || isNil(o.AccountName) { + if o == nil || IsNil(o.AccountName) { return nil, false } return o.AccountName, true @@ -141,7 +141,7 @@ func (o *NonEmployeeApprovalItemDetail) GetAccountNameOk() (*string, bool) { // HasAccountName returns a boolean if a field has been set. func (o *NonEmployeeApprovalItemDetail) HasAccountName() bool { - if o != nil && !isNil(o.AccountName) { + if o != nil && !IsNil(o.AccountName) { return true } @@ -155,7 +155,7 @@ func (o *NonEmployeeApprovalItemDetail) SetAccountName(v string) { // GetApprovalStatus returns the ApprovalStatus field value if set, zero value otherwise. func (o *NonEmployeeApprovalItemDetail) GetApprovalStatus() ApprovalStatus { - if o == nil || isNil(o.ApprovalStatus) { + if o == nil || IsNil(o.ApprovalStatus) { var ret ApprovalStatus return ret } @@ -165,7 +165,7 @@ func (o *NonEmployeeApprovalItemDetail) GetApprovalStatus() ApprovalStatus { // GetApprovalStatusOk returns a tuple with the ApprovalStatus field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItemDetail) GetApprovalStatusOk() (*ApprovalStatus, bool) { - if o == nil || isNil(o.ApprovalStatus) { + if o == nil || IsNil(o.ApprovalStatus) { return nil, false } return o.ApprovalStatus, true @@ -173,7 +173,7 @@ func (o *NonEmployeeApprovalItemDetail) GetApprovalStatusOk() (*ApprovalStatus, // HasApprovalStatus returns a boolean if a field has been set. func (o *NonEmployeeApprovalItemDetail) HasApprovalStatus() bool { - if o != nil && !isNil(o.ApprovalStatus) { + if o != nil && !IsNil(o.ApprovalStatus) { return true } @@ -187,7 +187,7 @@ func (o *NonEmployeeApprovalItemDetail) SetApprovalStatus(v ApprovalStatus) { // GetApprovalOrder returns the ApprovalOrder field value if set, zero value otherwise. func (o *NonEmployeeApprovalItemDetail) GetApprovalOrder() float32 { - if o == nil || isNil(o.ApprovalOrder) { + if o == nil || IsNil(o.ApprovalOrder) { var ret float32 return ret } @@ -197,7 +197,7 @@ func (o *NonEmployeeApprovalItemDetail) GetApprovalOrder() float32 { // GetApprovalOrderOk returns a tuple with the ApprovalOrder field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItemDetail) GetApprovalOrderOk() (*float32, bool) { - if o == nil || isNil(o.ApprovalOrder) { + if o == nil || IsNil(o.ApprovalOrder) { return nil, false } return o.ApprovalOrder, true @@ -205,7 +205,7 @@ func (o *NonEmployeeApprovalItemDetail) GetApprovalOrderOk() (*float32, bool) { // HasApprovalOrder returns a boolean if a field has been set. func (o *NonEmployeeApprovalItemDetail) HasApprovalOrder() bool { - if o != nil && !isNil(o.ApprovalOrder) { + if o != nil && !IsNil(o.ApprovalOrder) { return true } @@ -219,7 +219,7 @@ func (o *NonEmployeeApprovalItemDetail) SetApprovalOrder(v float32) { // GetComment returns the Comment field value if set, zero value otherwise. func (o *NonEmployeeApprovalItemDetail) GetComment() string { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { var ret string return ret } @@ -229,7 +229,7 @@ func (o *NonEmployeeApprovalItemDetail) GetComment() string { // GetCommentOk returns a tuple with the Comment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItemDetail) GetCommentOk() (*string, bool) { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { return nil, false } return o.Comment, true @@ -237,7 +237,7 @@ func (o *NonEmployeeApprovalItemDetail) GetCommentOk() (*string, bool) { // HasComment returns a boolean if a field has been set. func (o *NonEmployeeApprovalItemDetail) HasComment() bool { - if o != nil && !isNil(o.Comment) { + if o != nil && !IsNil(o.Comment) { return true } @@ -251,7 +251,7 @@ func (o *NonEmployeeApprovalItemDetail) SetComment(v string) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *NonEmployeeApprovalItemDetail) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -261,7 +261,7 @@ func (o *NonEmployeeApprovalItemDetail) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItemDetail) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -269,7 +269,7 @@ func (o *NonEmployeeApprovalItemDetail) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *NonEmployeeApprovalItemDetail) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -283,7 +283,7 @@ func (o *NonEmployeeApprovalItemDetail) SetModified(v time.Time) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *NonEmployeeApprovalItemDetail) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -293,7 +293,7 @@ func (o *NonEmployeeApprovalItemDetail) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItemDetail) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -301,7 +301,7 @@ func (o *NonEmployeeApprovalItemDetail) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *NonEmployeeApprovalItemDetail) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -315,7 +315,7 @@ func (o *NonEmployeeApprovalItemDetail) SetCreated(v time.Time) { // GetNonEmployeeRequest returns the NonEmployeeRequest field value if set, zero value otherwise. func (o *NonEmployeeApprovalItemDetail) GetNonEmployeeRequest() NonEmployeeRequestWithoutApprovalItem { - if o == nil || isNil(o.NonEmployeeRequest) { + if o == nil || IsNil(o.NonEmployeeRequest) { var ret NonEmployeeRequestWithoutApprovalItem return ret } @@ -325,7 +325,7 @@ func (o *NonEmployeeApprovalItemDetail) GetNonEmployeeRequest() NonEmployeeReque // GetNonEmployeeRequestOk returns a tuple with the NonEmployeeRequest field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalItemDetail) GetNonEmployeeRequestOk() (*NonEmployeeRequestWithoutApprovalItem, bool) { - if o == nil || isNil(o.NonEmployeeRequest) { + if o == nil || IsNil(o.NonEmployeeRequest) { return nil, false } return o.NonEmployeeRequest, true @@ -333,7 +333,7 @@ func (o *NonEmployeeApprovalItemDetail) GetNonEmployeeRequestOk() (*NonEmployeeR // HasNonEmployeeRequest returns a boolean if a field has been set. func (o *NonEmployeeApprovalItemDetail) HasNonEmployeeRequest() bool { - if o != nil && !isNil(o.NonEmployeeRequest) { + if o != nil && !IsNil(o.NonEmployeeRequest) { return true } @@ -355,31 +355,31 @@ func (o NonEmployeeApprovalItemDetail) MarshalJSON() ([]byte, error) { func (o NonEmployeeApprovalItemDetail) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Approver) { + if !IsNil(o.Approver) { toSerialize["approver"] = o.Approver } - if !isNil(o.AccountName) { + if !IsNil(o.AccountName) { toSerialize["accountName"] = o.AccountName } - if !isNil(o.ApprovalStatus) { + if !IsNil(o.ApprovalStatus) { toSerialize["approvalStatus"] = o.ApprovalStatus } - if !isNil(o.ApprovalOrder) { + if !IsNil(o.ApprovalOrder) { toSerialize["approvalOrder"] = o.ApprovalOrder } - if !isNil(o.Comment) { + if !IsNil(o.Comment) { toSerialize["comment"] = o.Comment } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.NonEmployeeRequest) { + if !IsNil(o.NonEmployeeRequest) { toSerialize["nonEmployeeRequest"] = o.NonEmployeeRequest } @@ -390,16 +390,20 @@ func (o NonEmployeeApprovalItemDetail) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeApprovalItemDetail) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeApprovalItemDetail) UnmarshalJSON(data []byte) (err error) { varNonEmployeeApprovalItemDetail := _NonEmployeeApprovalItemDetail{} - if err = json.Unmarshal(bytes, &varNonEmployeeApprovalItemDetail); err == nil { + err = json.Unmarshal(data, &varNonEmployeeApprovalItemDetail) + + if err != nil { + return err + } + *o = NonEmployeeApprovalItemDetail(varNonEmployeeApprovalItemDetail) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "approver") delete(additionalProperties, "accountName") diff --git a/api_v3/model_non_employee_approval_summary.go b/api_v3/model_non_employee_approval_summary.go index 0a55e59c8..4c220a6ee 100644 --- a/api_v3/model_non_employee_approval_summary.go +++ b/api_v3/model_non_employee_approval_summary.go @@ -49,7 +49,7 @@ func NewNonEmployeeApprovalSummaryWithDefaults() *NonEmployeeApprovalSummary { // GetApproved returns the Approved field value if set, zero value otherwise. func (o *NonEmployeeApprovalSummary) GetApproved() int32 { - if o == nil || isNil(o.Approved) { + if o == nil || IsNil(o.Approved) { var ret int32 return ret } @@ -59,7 +59,7 @@ func (o *NonEmployeeApprovalSummary) GetApproved() int32 { // GetApprovedOk returns a tuple with the Approved field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalSummary) GetApprovedOk() (*int32, bool) { - if o == nil || isNil(o.Approved) { + if o == nil || IsNil(o.Approved) { return nil, false } return o.Approved, true @@ -67,7 +67,7 @@ func (o *NonEmployeeApprovalSummary) GetApprovedOk() (*int32, bool) { // HasApproved returns a boolean if a field has been set. func (o *NonEmployeeApprovalSummary) HasApproved() bool { - if o != nil && !isNil(o.Approved) { + if o != nil && !IsNil(o.Approved) { return true } @@ -81,7 +81,7 @@ func (o *NonEmployeeApprovalSummary) SetApproved(v int32) { // GetPending returns the Pending field value if set, zero value otherwise. func (o *NonEmployeeApprovalSummary) GetPending() int32 { - if o == nil || isNil(o.Pending) { + if o == nil || IsNil(o.Pending) { var ret int32 return ret } @@ -91,7 +91,7 @@ func (o *NonEmployeeApprovalSummary) GetPending() int32 { // GetPendingOk returns a tuple with the Pending field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalSummary) GetPendingOk() (*int32, bool) { - if o == nil || isNil(o.Pending) { + if o == nil || IsNil(o.Pending) { return nil, false } return o.Pending, true @@ -99,7 +99,7 @@ func (o *NonEmployeeApprovalSummary) GetPendingOk() (*int32, bool) { // HasPending returns a boolean if a field has been set. func (o *NonEmployeeApprovalSummary) HasPending() bool { - if o != nil && !isNil(o.Pending) { + if o != nil && !IsNil(o.Pending) { return true } @@ -113,7 +113,7 @@ func (o *NonEmployeeApprovalSummary) SetPending(v int32) { // GetRejected returns the Rejected field value if set, zero value otherwise. func (o *NonEmployeeApprovalSummary) GetRejected() int32 { - if o == nil || isNil(o.Rejected) { + if o == nil || IsNil(o.Rejected) { var ret int32 return ret } @@ -123,7 +123,7 @@ func (o *NonEmployeeApprovalSummary) GetRejected() int32 { // GetRejectedOk returns a tuple with the Rejected field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeApprovalSummary) GetRejectedOk() (*int32, bool) { - if o == nil || isNil(o.Rejected) { + if o == nil || IsNil(o.Rejected) { return nil, false } return o.Rejected, true @@ -131,7 +131,7 @@ func (o *NonEmployeeApprovalSummary) GetRejectedOk() (*int32, bool) { // HasRejected returns a boolean if a field has been set. func (o *NonEmployeeApprovalSummary) HasRejected() bool { - if o != nil && !isNil(o.Rejected) { + if o != nil && !IsNil(o.Rejected) { return true } @@ -153,13 +153,13 @@ func (o NonEmployeeApprovalSummary) MarshalJSON() ([]byte, error) { func (o NonEmployeeApprovalSummary) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Approved) { + if !IsNil(o.Approved) { toSerialize["approved"] = o.Approved } - if !isNil(o.Pending) { + if !IsNil(o.Pending) { toSerialize["pending"] = o.Pending } - if !isNil(o.Rejected) { + if !IsNil(o.Rejected) { toSerialize["rejected"] = o.Rejected } @@ -170,16 +170,20 @@ func (o NonEmployeeApprovalSummary) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeApprovalSummary) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeApprovalSummary) UnmarshalJSON(data []byte) (err error) { varNonEmployeeApprovalSummary := _NonEmployeeApprovalSummary{} - if err = json.Unmarshal(bytes, &varNonEmployeeApprovalSummary); err == nil { + err = json.Unmarshal(data, &varNonEmployeeApprovalSummary) + + if err != nil { + return err + } + *o = NonEmployeeApprovalSummary(varNonEmployeeApprovalSummary) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "approved") delete(additionalProperties, "pending") delete(additionalProperties, "rejected") diff --git a/api_v3/model_non_employee_bulk_upload_job.go b/api_v3/model_non_employee_bulk_upload_job.go index 1d969ae78..f9795a289 100644 --- a/api_v3/model_non_employee_bulk_upload_job.go +++ b/api_v3/model_non_employee_bulk_upload_job.go @@ -54,7 +54,7 @@ func NewNonEmployeeBulkUploadJobWithDefaults() *NonEmployeeBulkUploadJob { // GetId returns the Id field value if set, zero value otherwise. func (o *NonEmployeeBulkUploadJob) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -64,7 +64,7 @@ func (o *NonEmployeeBulkUploadJob) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeBulkUploadJob) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -72,7 +72,7 @@ func (o *NonEmployeeBulkUploadJob) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *NonEmployeeBulkUploadJob) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -86,7 +86,7 @@ func (o *NonEmployeeBulkUploadJob) SetId(v string) { // GetSourceId returns the SourceId field value if set, zero value otherwise. func (o *NonEmployeeBulkUploadJob) GetSourceId() string { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { var ret string return ret } @@ -96,7 +96,7 @@ func (o *NonEmployeeBulkUploadJob) GetSourceId() string { // GetSourceIdOk returns a tuple with the SourceId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeBulkUploadJob) GetSourceIdOk() (*string, bool) { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { return nil, false } return o.SourceId, true @@ -104,7 +104,7 @@ func (o *NonEmployeeBulkUploadJob) GetSourceIdOk() (*string, bool) { // HasSourceId returns a boolean if a field has been set. func (o *NonEmployeeBulkUploadJob) HasSourceId() bool { - if o != nil && !isNil(o.SourceId) { + if o != nil && !IsNil(o.SourceId) { return true } @@ -118,7 +118,7 @@ func (o *NonEmployeeBulkUploadJob) SetSourceId(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *NonEmployeeBulkUploadJob) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -128,7 +128,7 @@ func (o *NonEmployeeBulkUploadJob) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeBulkUploadJob) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -136,7 +136,7 @@ func (o *NonEmployeeBulkUploadJob) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *NonEmployeeBulkUploadJob) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -150,7 +150,7 @@ func (o *NonEmployeeBulkUploadJob) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *NonEmployeeBulkUploadJob) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -160,7 +160,7 @@ func (o *NonEmployeeBulkUploadJob) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeBulkUploadJob) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -168,7 +168,7 @@ func (o *NonEmployeeBulkUploadJob) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *NonEmployeeBulkUploadJob) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -182,7 +182,7 @@ func (o *NonEmployeeBulkUploadJob) SetModified(v time.Time) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *NonEmployeeBulkUploadJob) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -192,7 +192,7 @@ func (o *NonEmployeeBulkUploadJob) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeBulkUploadJob) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -200,7 +200,7 @@ func (o *NonEmployeeBulkUploadJob) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *NonEmployeeBulkUploadJob) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -222,19 +222,19 @@ func (o NonEmployeeBulkUploadJob) MarshalJSON() ([]byte, error) { func (o NonEmployeeBulkUploadJob) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.SourceId) { + if !IsNil(o.SourceId) { toSerialize["sourceId"] = o.SourceId } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -245,16 +245,20 @@ func (o NonEmployeeBulkUploadJob) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeBulkUploadJob) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeBulkUploadJob) UnmarshalJSON(data []byte) (err error) { varNonEmployeeBulkUploadJob := _NonEmployeeBulkUploadJob{} - if err = json.Unmarshal(bytes, &varNonEmployeeBulkUploadJob); err == nil { + err = json.Unmarshal(data, &varNonEmployeeBulkUploadJob) + + if err != nil { + return err + } + *o = NonEmployeeBulkUploadJob(varNonEmployeeBulkUploadJob) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "sourceId") delete(additionalProperties, "created") diff --git a/api_v3/model_non_employee_bulk_upload_status.go b/api_v3/model_non_employee_bulk_upload_status.go index da0d1c197..d5b6a4542 100644 --- a/api_v3/model_non_employee_bulk_upload_status.go +++ b/api_v3/model_non_employee_bulk_upload_status.go @@ -45,7 +45,7 @@ func NewNonEmployeeBulkUploadStatusWithDefaults() *NonEmployeeBulkUploadStatus { // GetStatus returns the Status field value if set, zero value otherwise. func (o *NonEmployeeBulkUploadStatus) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -55,7 +55,7 @@ func (o *NonEmployeeBulkUploadStatus) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeBulkUploadStatus) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -63,7 +63,7 @@ func (o *NonEmployeeBulkUploadStatus) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *NonEmployeeBulkUploadStatus) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -85,7 +85,7 @@ func (o NonEmployeeBulkUploadStatus) MarshalJSON() ([]byte, error) { func (o NonEmployeeBulkUploadStatus) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -96,16 +96,20 @@ func (o NonEmployeeBulkUploadStatus) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeBulkUploadStatus) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeBulkUploadStatus) UnmarshalJSON(data []byte) (err error) { varNonEmployeeBulkUploadStatus := _NonEmployeeBulkUploadStatus{} - if err = json.Unmarshal(bytes, &varNonEmployeeBulkUploadStatus); err == nil { + err = json.Unmarshal(data, &varNonEmployeeBulkUploadStatus) + + if err != nil { + return err + } + *o = NonEmployeeBulkUploadStatus(varNonEmployeeBulkUploadStatus) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "status") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_non_employee_identity_reference_with_id.go b/api_v3/model_non_employee_identity_reference_with_id.go index 4085126a3..99a028c70 100644 --- a/api_v3/model_non_employee_identity_reference_with_id.go +++ b/api_v3/model_non_employee_identity_reference_with_id.go @@ -46,7 +46,7 @@ func NewNonEmployeeIdentityReferenceWithIdWithDefaults() *NonEmployeeIdentityRef // GetType returns the Type field value if set, zero value otherwise. func (o *NonEmployeeIdentityReferenceWithId) GetType() NonEmployeeIdentityDtoType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret NonEmployeeIdentityDtoType return ret } @@ -56,7 +56,7 @@ func (o *NonEmployeeIdentityReferenceWithId) GetType() NonEmployeeIdentityDtoTyp // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeIdentityReferenceWithId) GetTypeOk() (*NonEmployeeIdentityDtoType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -64,7 +64,7 @@ func (o *NonEmployeeIdentityReferenceWithId) GetTypeOk() (*NonEmployeeIdentityDt // HasType returns a boolean if a field has been set. func (o *NonEmployeeIdentityReferenceWithId) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -78,7 +78,7 @@ func (o *NonEmployeeIdentityReferenceWithId) SetType(v NonEmployeeIdentityDtoTyp // GetId returns the Id field value if set, zero value otherwise. func (o *NonEmployeeIdentityReferenceWithId) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -88,7 +88,7 @@ func (o *NonEmployeeIdentityReferenceWithId) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeIdentityReferenceWithId) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -96,7 +96,7 @@ func (o *NonEmployeeIdentityReferenceWithId) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *NonEmployeeIdentityReferenceWithId) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -118,10 +118,10 @@ func (o NonEmployeeIdentityReferenceWithId) MarshalJSON() ([]byte, error) { func (o NonEmployeeIdentityReferenceWithId) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } @@ -132,16 +132,20 @@ func (o NonEmployeeIdentityReferenceWithId) ToMap() (map[string]interface{}, err return toSerialize, nil } -func (o *NonEmployeeIdentityReferenceWithId) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeIdentityReferenceWithId) UnmarshalJSON(data []byte) (err error) { varNonEmployeeIdentityReferenceWithId := _NonEmployeeIdentityReferenceWithId{} - if err = json.Unmarshal(bytes, &varNonEmployeeIdentityReferenceWithId); err == nil { + err = json.Unmarshal(data, &varNonEmployeeIdentityReferenceWithId) + + if err != nil { + return err + } + *o = NonEmployeeIdentityReferenceWithId(varNonEmployeeIdentityReferenceWithId) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_non_employee_idn_user_request.go b/api_v3/model_non_employee_idn_user_request.go index dab26d1c8..960bbdba8 100644 --- a/api_v3/model_non_employee_idn_user_request.go +++ b/api_v3/model_non_employee_idn_user_request.go @@ -88,8 +88,8 @@ func (o NonEmployeeIdnUserRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeIdnUserRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *NonEmployeeIdnUserRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -98,7 +98,7 @@ func (o *NonEmployeeIdnUserRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -112,13 +112,17 @@ func (o *NonEmployeeIdnUserRequest) UnmarshalJSON(bytes []byte) (err error) { varNonEmployeeIdnUserRequest := _NonEmployeeIdnUserRequest{} - if err = json.Unmarshal(bytes, &varNonEmployeeIdnUserRequest); err == nil { + err = json.Unmarshal(data, &varNonEmployeeIdnUserRequest) + + if err != nil { + return err + } + *o = NonEmployeeIdnUserRequest(varNonEmployeeIdnUserRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_non_employee_record.go b/api_v3/model_non_employee_record.go index ac4fdca8a..0bebeebdb 100644 --- a/api_v3/model_non_employee_record.go +++ b/api_v3/model_non_employee_record.go @@ -70,7 +70,7 @@ func NewNonEmployeeRecordWithDefaults() *NonEmployeeRecord { // GetId returns the Id field value if set, zero value otherwise. func (o *NonEmployeeRecord) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -80,7 +80,7 @@ func (o *NonEmployeeRecord) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRecord) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -88,7 +88,7 @@ func (o *NonEmployeeRecord) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *NonEmployeeRecord) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -102,7 +102,7 @@ func (o *NonEmployeeRecord) SetId(v string) { // GetAccountName returns the AccountName field value if set, zero value otherwise. func (o *NonEmployeeRecord) GetAccountName() string { - if o == nil || isNil(o.AccountName) { + if o == nil || IsNil(o.AccountName) { var ret string return ret } @@ -112,7 +112,7 @@ func (o *NonEmployeeRecord) GetAccountName() string { // GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRecord) GetAccountNameOk() (*string, bool) { - if o == nil || isNil(o.AccountName) { + if o == nil || IsNil(o.AccountName) { return nil, false } return o.AccountName, true @@ -120,7 +120,7 @@ func (o *NonEmployeeRecord) GetAccountNameOk() (*string, bool) { // HasAccountName returns a boolean if a field has been set. func (o *NonEmployeeRecord) HasAccountName() bool { - if o != nil && !isNil(o.AccountName) { + if o != nil && !IsNil(o.AccountName) { return true } @@ -134,7 +134,7 @@ func (o *NonEmployeeRecord) SetAccountName(v string) { // GetFirstName returns the FirstName field value if set, zero value otherwise. func (o *NonEmployeeRecord) GetFirstName() string { - if o == nil || isNil(o.FirstName) { + if o == nil || IsNil(o.FirstName) { var ret string return ret } @@ -144,7 +144,7 @@ func (o *NonEmployeeRecord) GetFirstName() string { // GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRecord) GetFirstNameOk() (*string, bool) { - if o == nil || isNil(o.FirstName) { + if o == nil || IsNil(o.FirstName) { return nil, false } return o.FirstName, true @@ -152,7 +152,7 @@ func (o *NonEmployeeRecord) GetFirstNameOk() (*string, bool) { // HasFirstName returns a boolean if a field has been set. func (o *NonEmployeeRecord) HasFirstName() bool { - if o != nil && !isNil(o.FirstName) { + if o != nil && !IsNil(o.FirstName) { return true } @@ -166,7 +166,7 @@ func (o *NonEmployeeRecord) SetFirstName(v string) { // GetLastName returns the LastName field value if set, zero value otherwise. func (o *NonEmployeeRecord) GetLastName() string { - if o == nil || isNil(o.LastName) { + if o == nil || IsNil(o.LastName) { var ret string return ret } @@ -176,7 +176,7 @@ func (o *NonEmployeeRecord) GetLastName() string { // GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRecord) GetLastNameOk() (*string, bool) { - if o == nil || isNil(o.LastName) { + if o == nil || IsNil(o.LastName) { return nil, false } return o.LastName, true @@ -184,7 +184,7 @@ func (o *NonEmployeeRecord) GetLastNameOk() (*string, bool) { // HasLastName returns a boolean if a field has been set. func (o *NonEmployeeRecord) HasLastName() bool { - if o != nil && !isNil(o.LastName) { + if o != nil && !IsNil(o.LastName) { return true } @@ -198,7 +198,7 @@ func (o *NonEmployeeRecord) SetLastName(v string) { // GetEmail returns the Email field value if set, zero value otherwise. func (o *NonEmployeeRecord) GetEmail() string { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { var ret string return ret } @@ -208,7 +208,7 @@ func (o *NonEmployeeRecord) GetEmail() string { // GetEmailOk returns a tuple with the Email field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRecord) GetEmailOk() (*string, bool) { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { return nil, false } return o.Email, true @@ -216,7 +216,7 @@ func (o *NonEmployeeRecord) GetEmailOk() (*string, bool) { // HasEmail returns a boolean if a field has been set. func (o *NonEmployeeRecord) HasEmail() bool { - if o != nil && !isNil(o.Email) { + if o != nil && !IsNil(o.Email) { return true } @@ -230,7 +230,7 @@ func (o *NonEmployeeRecord) SetEmail(v string) { // GetPhone returns the Phone field value if set, zero value otherwise. func (o *NonEmployeeRecord) GetPhone() string { - if o == nil || isNil(o.Phone) { + if o == nil || IsNil(o.Phone) { var ret string return ret } @@ -240,7 +240,7 @@ func (o *NonEmployeeRecord) GetPhone() string { // GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRecord) GetPhoneOk() (*string, bool) { - if o == nil || isNil(o.Phone) { + if o == nil || IsNil(o.Phone) { return nil, false } return o.Phone, true @@ -248,7 +248,7 @@ func (o *NonEmployeeRecord) GetPhoneOk() (*string, bool) { // HasPhone returns a boolean if a field has been set. func (o *NonEmployeeRecord) HasPhone() bool { - if o != nil && !isNil(o.Phone) { + if o != nil && !IsNil(o.Phone) { return true } @@ -262,7 +262,7 @@ func (o *NonEmployeeRecord) SetPhone(v string) { // GetManager returns the Manager field value if set, zero value otherwise. func (o *NonEmployeeRecord) GetManager() string { - if o == nil || isNil(o.Manager) { + if o == nil || IsNil(o.Manager) { var ret string return ret } @@ -272,7 +272,7 @@ func (o *NonEmployeeRecord) GetManager() string { // GetManagerOk returns a tuple with the Manager field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRecord) GetManagerOk() (*string, bool) { - if o == nil || isNil(o.Manager) { + if o == nil || IsNil(o.Manager) { return nil, false } return o.Manager, true @@ -280,7 +280,7 @@ func (o *NonEmployeeRecord) GetManagerOk() (*string, bool) { // HasManager returns a boolean if a field has been set. func (o *NonEmployeeRecord) HasManager() bool { - if o != nil && !isNil(o.Manager) { + if o != nil && !IsNil(o.Manager) { return true } @@ -294,7 +294,7 @@ func (o *NonEmployeeRecord) SetManager(v string) { // GetSourceId returns the SourceId field value if set, zero value otherwise. func (o *NonEmployeeRecord) GetSourceId() string { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { var ret string return ret } @@ -304,7 +304,7 @@ func (o *NonEmployeeRecord) GetSourceId() string { // GetSourceIdOk returns a tuple with the SourceId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRecord) GetSourceIdOk() (*string, bool) { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { return nil, false } return o.SourceId, true @@ -312,7 +312,7 @@ func (o *NonEmployeeRecord) GetSourceIdOk() (*string, bool) { // HasSourceId returns a boolean if a field has been set. func (o *NonEmployeeRecord) HasSourceId() bool { - if o != nil && !isNil(o.SourceId) { + if o != nil && !IsNil(o.SourceId) { return true } @@ -326,7 +326,7 @@ func (o *NonEmployeeRecord) SetSourceId(v string) { // GetData returns the Data field value if set, zero value otherwise. func (o *NonEmployeeRecord) GetData() map[string]string { - if o == nil || isNil(o.Data) { + if o == nil || IsNil(o.Data) { var ret map[string]string return ret } @@ -336,7 +336,7 @@ func (o *NonEmployeeRecord) GetData() map[string]string { // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRecord) GetDataOk() (*map[string]string, bool) { - if o == nil || isNil(o.Data) { + if o == nil || IsNil(o.Data) { return nil, false } return o.Data, true @@ -344,7 +344,7 @@ func (o *NonEmployeeRecord) GetDataOk() (*map[string]string, bool) { // HasData returns a boolean if a field has been set. func (o *NonEmployeeRecord) HasData() bool { - if o != nil && !isNil(o.Data) { + if o != nil && !IsNil(o.Data) { return true } @@ -358,7 +358,7 @@ func (o *NonEmployeeRecord) SetData(v map[string]string) { // GetStartDate returns the StartDate field value if set, zero value otherwise. func (o *NonEmployeeRecord) GetStartDate() time.Time { - if o == nil || isNil(o.StartDate) { + if o == nil || IsNil(o.StartDate) { var ret time.Time return ret } @@ -368,7 +368,7 @@ func (o *NonEmployeeRecord) GetStartDate() time.Time { // GetStartDateOk returns a tuple with the StartDate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRecord) GetStartDateOk() (*time.Time, bool) { - if o == nil || isNil(o.StartDate) { + if o == nil || IsNil(o.StartDate) { return nil, false } return o.StartDate, true @@ -376,7 +376,7 @@ func (o *NonEmployeeRecord) GetStartDateOk() (*time.Time, bool) { // HasStartDate returns a boolean if a field has been set. func (o *NonEmployeeRecord) HasStartDate() bool { - if o != nil && !isNil(o.StartDate) { + if o != nil && !IsNil(o.StartDate) { return true } @@ -390,7 +390,7 @@ func (o *NonEmployeeRecord) SetStartDate(v time.Time) { // GetEndDate returns the EndDate field value if set, zero value otherwise. func (o *NonEmployeeRecord) GetEndDate() time.Time { - if o == nil || isNil(o.EndDate) { + if o == nil || IsNil(o.EndDate) { var ret time.Time return ret } @@ -400,7 +400,7 @@ func (o *NonEmployeeRecord) GetEndDate() time.Time { // GetEndDateOk returns a tuple with the EndDate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRecord) GetEndDateOk() (*time.Time, bool) { - if o == nil || isNil(o.EndDate) { + if o == nil || IsNil(o.EndDate) { return nil, false } return o.EndDate, true @@ -408,7 +408,7 @@ func (o *NonEmployeeRecord) GetEndDateOk() (*time.Time, bool) { // HasEndDate returns a boolean if a field has been set. func (o *NonEmployeeRecord) HasEndDate() bool { - if o != nil && !isNil(o.EndDate) { + if o != nil && !IsNil(o.EndDate) { return true } @@ -422,7 +422,7 @@ func (o *NonEmployeeRecord) SetEndDate(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *NonEmployeeRecord) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -432,7 +432,7 @@ func (o *NonEmployeeRecord) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRecord) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -440,7 +440,7 @@ func (o *NonEmployeeRecord) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *NonEmployeeRecord) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -454,7 +454,7 @@ func (o *NonEmployeeRecord) SetModified(v time.Time) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *NonEmployeeRecord) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -464,7 +464,7 @@ func (o *NonEmployeeRecord) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRecord) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -472,7 +472,7 @@ func (o *NonEmployeeRecord) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *NonEmployeeRecord) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -494,43 +494,43 @@ func (o NonEmployeeRecord) MarshalJSON() ([]byte, error) { func (o NonEmployeeRecord) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.AccountName) { + if !IsNil(o.AccountName) { toSerialize["accountName"] = o.AccountName } - if !isNil(o.FirstName) { + if !IsNil(o.FirstName) { toSerialize["firstName"] = o.FirstName } - if !isNil(o.LastName) { + if !IsNil(o.LastName) { toSerialize["lastName"] = o.LastName } - if !isNil(o.Email) { + if !IsNil(o.Email) { toSerialize["email"] = o.Email } - if !isNil(o.Phone) { + if !IsNil(o.Phone) { toSerialize["phone"] = o.Phone } - if !isNil(o.Manager) { + if !IsNil(o.Manager) { toSerialize["manager"] = o.Manager } - if !isNil(o.SourceId) { + if !IsNil(o.SourceId) { toSerialize["sourceId"] = o.SourceId } - if !isNil(o.Data) { + if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !isNil(o.StartDate) { + if !IsNil(o.StartDate) { toSerialize["startDate"] = o.StartDate } - if !isNil(o.EndDate) { + if !IsNil(o.EndDate) { toSerialize["endDate"] = o.EndDate } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } @@ -541,16 +541,20 @@ func (o NonEmployeeRecord) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeRecord) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeRecord) UnmarshalJSON(data []byte) (err error) { varNonEmployeeRecord := _NonEmployeeRecord{} - if err = json.Unmarshal(bytes, &varNonEmployeeRecord); err == nil { + err = json.Unmarshal(data, &varNonEmployeeRecord) + + if err != nil { + return err + } + *o = NonEmployeeRecord(varNonEmployeeRecord) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "accountName") delete(additionalProperties, "firstName") diff --git a/api_v3/model_non_employee_reject_approval_decision.go b/api_v3/model_non_employee_reject_approval_decision.go index e01081d5a..db50860f4 100644 --- a/api_v3/model_non_employee_reject_approval_decision.go +++ b/api_v3/model_non_employee_reject_approval_decision.go @@ -88,8 +88,8 @@ func (o NonEmployeeRejectApprovalDecision) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *NonEmployeeRejectApprovalDecision) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *NonEmployeeRejectApprovalDecision) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -98,7 +98,7 @@ func (o *NonEmployeeRejectApprovalDecision) UnmarshalJSON(bytes []byte) (err err allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -112,13 +112,17 @@ func (o *NonEmployeeRejectApprovalDecision) UnmarshalJSON(bytes []byte) (err err varNonEmployeeRejectApprovalDecision := _NonEmployeeRejectApprovalDecision{} - if err = json.Unmarshal(bytes, &varNonEmployeeRejectApprovalDecision); err == nil { + err = json.Unmarshal(data, &varNonEmployeeRejectApprovalDecision) + + if err != nil { + return err + } + *o = NonEmployeeRejectApprovalDecision(varNonEmployeeRejectApprovalDecision) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "comment") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_non_employee_request.go b/api_v3/model_non_employee_request.go index 1bee88ec4..c62741b37 100644 --- a/api_v3/model_non_employee_request.go +++ b/api_v3/model_non_employee_request.go @@ -82,7 +82,7 @@ func NewNonEmployeeRequestWithDefaults() *NonEmployeeRequest { // GetId returns the Id field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -92,7 +92,7 @@ func (o *NonEmployeeRequest) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -100,7 +100,7 @@ func (o *NonEmployeeRequest) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -114,7 +114,7 @@ func (o *NonEmployeeRequest) SetId(v string) { // GetSourceId returns the SourceId field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetSourceId() string { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { var ret string return ret } @@ -124,7 +124,7 @@ func (o *NonEmployeeRequest) GetSourceId() string { // GetSourceIdOk returns a tuple with the SourceId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetSourceIdOk() (*string, bool) { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { return nil, false } return o.SourceId, true @@ -132,7 +132,7 @@ func (o *NonEmployeeRequest) GetSourceIdOk() (*string, bool) { // HasSourceId returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasSourceId() bool { - if o != nil && !isNil(o.SourceId) { + if o != nil && !IsNil(o.SourceId) { return true } @@ -146,7 +146,7 @@ func (o *NonEmployeeRequest) SetSourceId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -156,7 +156,7 @@ func (o *NonEmployeeRequest) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -164,7 +164,7 @@ func (o *NonEmployeeRequest) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -178,7 +178,7 @@ func (o *NonEmployeeRequest) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -188,7 +188,7 @@ func (o *NonEmployeeRequest) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -196,7 +196,7 @@ func (o *NonEmployeeRequest) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -210,7 +210,7 @@ func (o *NonEmployeeRequest) SetDescription(v string) { // GetAccountName returns the AccountName field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetAccountName() string { - if o == nil || isNil(o.AccountName) { + if o == nil || IsNil(o.AccountName) { var ret string return ret } @@ -220,7 +220,7 @@ func (o *NonEmployeeRequest) GetAccountName() string { // GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetAccountNameOk() (*string, bool) { - if o == nil || isNil(o.AccountName) { + if o == nil || IsNil(o.AccountName) { return nil, false } return o.AccountName, true @@ -228,7 +228,7 @@ func (o *NonEmployeeRequest) GetAccountNameOk() (*string, bool) { // HasAccountName returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasAccountName() bool { - if o != nil && !isNil(o.AccountName) { + if o != nil && !IsNil(o.AccountName) { return true } @@ -242,7 +242,7 @@ func (o *NonEmployeeRequest) SetAccountName(v string) { // GetFirstName returns the FirstName field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetFirstName() string { - if o == nil || isNil(o.FirstName) { + if o == nil || IsNil(o.FirstName) { var ret string return ret } @@ -252,7 +252,7 @@ func (o *NonEmployeeRequest) GetFirstName() string { // GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetFirstNameOk() (*string, bool) { - if o == nil || isNil(o.FirstName) { + if o == nil || IsNil(o.FirstName) { return nil, false } return o.FirstName, true @@ -260,7 +260,7 @@ func (o *NonEmployeeRequest) GetFirstNameOk() (*string, bool) { // HasFirstName returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasFirstName() bool { - if o != nil && !isNil(o.FirstName) { + if o != nil && !IsNil(o.FirstName) { return true } @@ -274,7 +274,7 @@ func (o *NonEmployeeRequest) SetFirstName(v string) { // GetLastName returns the LastName field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetLastName() string { - if o == nil || isNil(o.LastName) { + if o == nil || IsNil(o.LastName) { var ret string return ret } @@ -284,7 +284,7 @@ func (o *NonEmployeeRequest) GetLastName() string { // GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetLastNameOk() (*string, bool) { - if o == nil || isNil(o.LastName) { + if o == nil || IsNil(o.LastName) { return nil, false } return o.LastName, true @@ -292,7 +292,7 @@ func (o *NonEmployeeRequest) GetLastNameOk() (*string, bool) { // HasLastName returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasLastName() bool { - if o != nil && !isNil(o.LastName) { + if o != nil && !IsNil(o.LastName) { return true } @@ -306,7 +306,7 @@ func (o *NonEmployeeRequest) SetLastName(v string) { // GetEmail returns the Email field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetEmail() string { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { var ret string return ret } @@ -316,7 +316,7 @@ func (o *NonEmployeeRequest) GetEmail() string { // GetEmailOk returns a tuple with the Email field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetEmailOk() (*string, bool) { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { return nil, false } return o.Email, true @@ -324,7 +324,7 @@ func (o *NonEmployeeRequest) GetEmailOk() (*string, bool) { // HasEmail returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasEmail() bool { - if o != nil && !isNil(o.Email) { + if o != nil && !IsNil(o.Email) { return true } @@ -338,7 +338,7 @@ func (o *NonEmployeeRequest) SetEmail(v string) { // GetPhone returns the Phone field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetPhone() string { - if o == nil || isNil(o.Phone) { + if o == nil || IsNil(o.Phone) { var ret string return ret } @@ -348,7 +348,7 @@ func (o *NonEmployeeRequest) GetPhone() string { // GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetPhoneOk() (*string, bool) { - if o == nil || isNil(o.Phone) { + if o == nil || IsNil(o.Phone) { return nil, false } return o.Phone, true @@ -356,7 +356,7 @@ func (o *NonEmployeeRequest) GetPhoneOk() (*string, bool) { // HasPhone returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasPhone() bool { - if o != nil && !isNil(o.Phone) { + if o != nil && !IsNil(o.Phone) { return true } @@ -370,7 +370,7 @@ func (o *NonEmployeeRequest) SetPhone(v string) { // GetManager returns the Manager field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetManager() string { - if o == nil || isNil(o.Manager) { + if o == nil || IsNil(o.Manager) { var ret string return ret } @@ -380,7 +380,7 @@ func (o *NonEmployeeRequest) GetManager() string { // GetManagerOk returns a tuple with the Manager field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetManagerOk() (*string, bool) { - if o == nil || isNil(o.Manager) { + if o == nil || IsNil(o.Manager) { return nil, false } return o.Manager, true @@ -388,7 +388,7 @@ func (o *NonEmployeeRequest) GetManagerOk() (*string, bool) { // HasManager returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasManager() bool { - if o != nil && !isNil(o.Manager) { + if o != nil && !IsNil(o.Manager) { return true } @@ -402,7 +402,7 @@ func (o *NonEmployeeRequest) SetManager(v string) { // GetNonEmployeeSource returns the NonEmployeeSource field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetNonEmployeeSource() NonEmployeeSourceLite { - if o == nil || isNil(o.NonEmployeeSource) { + if o == nil || IsNil(o.NonEmployeeSource) { var ret NonEmployeeSourceLite return ret } @@ -412,7 +412,7 @@ func (o *NonEmployeeRequest) GetNonEmployeeSource() NonEmployeeSourceLite { // GetNonEmployeeSourceOk returns a tuple with the NonEmployeeSource field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetNonEmployeeSourceOk() (*NonEmployeeSourceLite, bool) { - if o == nil || isNil(o.NonEmployeeSource) { + if o == nil || IsNil(o.NonEmployeeSource) { return nil, false } return o.NonEmployeeSource, true @@ -420,7 +420,7 @@ func (o *NonEmployeeRequest) GetNonEmployeeSourceOk() (*NonEmployeeSourceLite, b // HasNonEmployeeSource returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasNonEmployeeSource() bool { - if o != nil && !isNil(o.NonEmployeeSource) { + if o != nil && !IsNil(o.NonEmployeeSource) { return true } @@ -434,7 +434,7 @@ func (o *NonEmployeeRequest) SetNonEmployeeSource(v NonEmployeeSourceLite) { // GetData returns the Data field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetData() map[string]string { - if o == nil || isNil(o.Data) { + if o == nil || IsNil(o.Data) { var ret map[string]string return ret } @@ -444,7 +444,7 @@ func (o *NonEmployeeRequest) GetData() map[string]string { // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetDataOk() (*map[string]string, bool) { - if o == nil || isNil(o.Data) { + if o == nil || IsNil(o.Data) { return nil, false } return o.Data, true @@ -452,7 +452,7 @@ func (o *NonEmployeeRequest) GetDataOk() (*map[string]string, bool) { // HasData returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasData() bool { - if o != nil && !isNil(o.Data) { + if o != nil && !IsNil(o.Data) { return true } @@ -466,7 +466,7 @@ func (o *NonEmployeeRequest) SetData(v map[string]string) { // GetApprovalItems returns the ApprovalItems field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetApprovalItems() []NonEmployeeApprovalItemBase { - if o == nil || isNil(o.ApprovalItems) { + if o == nil || IsNil(o.ApprovalItems) { var ret []NonEmployeeApprovalItemBase return ret } @@ -476,7 +476,7 @@ func (o *NonEmployeeRequest) GetApprovalItems() []NonEmployeeApprovalItemBase { // GetApprovalItemsOk returns a tuple with the ApprovalItems field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetApprovalItemsOk() ([]NonEmployeeApprovalItemBase, bool) { - if o == nil || isNil(o.ApprovalItems) { + if o == nil || IsNil(o.ApprovalItems) { return nil, false } return o.ApprovalItems, true @@ -484,7 +484,7 @@ func (o *NonEmployeeRequest) GetApprovalItemsOk() ([]NonEmployeeApprovalItemBase // HasApprovalItems returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasApprovalItems() bool { - if o != nil && !isNil(o.ApprovalItems) { + if o != nil && !IsNil(o.ApprovalItems) { return true } @@ -498,7 +498,7 @@ func (o *NonEmployeeRequest) SetApprovalItems(v []NonEmployeeApprovalItemBase) { // GetApprovalStatus returns the ApprovalStatus field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetApprovalStatus() ApprovalStatus { - if o == nil || isNil(o.ApprovalStatus) { + if o == nil || IsNil(o.ApprovalStatus) { var ret ApprovalStatus return ret } @@ -508,7 +508,7 @@ func (o *NonEmployeeRequest) GetApprovalStatus() ApprovalStatus { // GetApprovalStatusOk returns a tuple with the ApprovalStatus field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetApprovalStatusOk() (*ApprovalStatus, bool) { - if o == nil || isNil(o.ApprovalStatus) { + if o == nil || IsNil(o.ApprovalStatus) { return nil, false } return o.ApprovalStatus, true @@ -516,7 +516,7 @@ func (o *NonEmployeeRequest) GetApprovalStatusOk() (*ApprovalStatus, bool) { // HasApprovalStatus returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasApprovalStatus() bool { - if o != nil && !isNil(o.ApprovalStatus) { + if o != nil && !IsNil(o.ApprovalStatus) { return true } @@ -530,7 +530,7 @@ func (o *NonEmployeeRequest) SetApprovalStatus(v ApprovalStatus) { // GetComment returns the Comment field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetComment() string { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { var ret string return ret } @@ -540,7 +540,7 @@ func (o *NonEmployeeRequest) GetComment() string { // GetCommentOk returns a tuple with the Comment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetCommentOk() (*string, bool) { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { return nil, false } return o.Comment, true @@ -548,7 +548,7 @@ func (o *NonEmployeeRequest) GetCommentOk() (*string, bool) { // HasComment returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasComment() bool { - if o != nil && !isNil(o.Comment) { + if o != nil && !IsNil(o.Comment) { return true } @@ -562,7 +562,7 @@ func (o *NonEmployeeRequest) SetComment(v string) { // GetCompletionDate returns the CompletionDate field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetCompletionDate() time.Time { - if o == nil || isNil(o.CompletionDate) { + if o == nil || IsNil(o.CompletionDate) { var ret time.Time return ret } @@ -572,7 +572,7 @@ func (o *NonEmployeeRequest) GetCompletionDate() time.Time { // GetCompletionDateOk returns a tuple with the CompletionDate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetCompletionDateOk() (*time.Time, bool) { - if o == nil || isNil(o.CompletionDate) { + if o == nil || IsNil(o.CompletionDate) { return nil, false } return o.CompletionDate, true @@ -580,7 +580,7 @@ func (o *NonEmployeeRequest) GetCompletionDateOk() (*time.Time, bool) { // HasCompletionDate returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasCompletionDate() bool { - if o != nil && !isNil(o.CompletionDate) { + if o != nil && !IsNil(o.CompletionDate) { return true } @@ -594,7 +594,7 @@ func (o *NonEmployeeRequest) SetCompletionDate(v time.Time) { // GetStartDate returns the StartDate field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetStartDate() time.Time { - if o == nil || isNil(o.StartDate) { + if o == nil || IsNil(o.StartDate) { var ret time.Time return ret } @@ -604,7 +604,7 @@ func (o *NonEmployeeRequest) GetStartDate() time.Time { // GetStartDateOk returns a tuple with the StartDate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetStartDateOk() (*time.Time, bool) { - if o == nil || isNil(o.StartDate) { + if o == nil || IsNil(o.StartDate) { return nil, false } return o.StartDate, true @@ -612,7 +612,7 @@ func (o *NonEmployeeRequest) GetStartDateOk() (*time.Time, bool) { // HasStartDate returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasStartDate() bool { - if o != nil && !isNil(o.StartDate) { + if o != nil && !IsNil(o.StartDate) { return true } @@ -626,7 +626,7 @@ func (o *NonEmployeeRequest) SetStartDate(v time.Time) { // GetEndDate returns the EndDate field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetEndDate() time.Time { - if o == nil || isNil(o.EndDate) { + if o == nil || IsNil(o.EndDate) { var ret time.Time return ret } @@ -636,7 +636,7 @@ func (o *NonEmployeeRequest) GetEndDate() time.Time { // GetEndDateOk returns a tuple with the EndDate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetEndDateOk() (*time.Time, bool) { - if o == nil || isNil(o.EndDate) { + if o == nil || IsNil(o.EndDate) { return nil, false } return o.EndDate, true @@ -644,7 +644,7 @@ func (o *NonEmployeeRequest) GetEndDateOk() (*time.Time, bool) { // HasEndDate returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasEndDate() bool { - if o != nil && !isNil(o.EndDate) { + if o != nil && !IsNil(o.EndDate) { return true } @@ -658,7 +658,7 @@ func (o *NonEmployeeRequest) SetEndDate(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -668,7 +668,7 @@ func (o *NonEmployeeRequest) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -676,7 +676,7 @@ func (o *NonEmployeeRequest) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -690,7 +690,7 @@ func (o *NonEmployeeRequest) SetModified(v time.Time) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *NonEmployeeRequest) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -700,7 +700,7 @@ func (o *NonEmployeeRequest) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequest) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -708,7 +708,7 @@ func (o *NonEmployeeRequest) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *NonEmployeeRequest) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -730,64 +730,64 @@ func (o NonEmployeeRequest) MarshalJSON() ([]byte, error) { func (o NonEmployeeRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.SourceId) { + if !IsNil(o.SourceId) { toSerialize["sourceId"] = o.SourceId } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.AccountName) { + if !IsNil(o.AccountName) { toSerialize["accountName"] = o.AccountName } - if !isNil(o.FirstName) { + if !IsNil(o.FirstName) { toSerialize["firstName"] = o.FirstName } - if !isNil(o.LastName) { + if !IsNil(o.LastName) { toSerialize["lastName"] = o.LastName } - if !isNil(o.Email) { + if !IsNil(o.Email) { toSerialize["email"] = o.Email } - if !isNil(o.Phone) { + if !IsNil(o.Phone) { toSerialize["phone"] = o.Phone } - if !isNil(o.Manager) { + if !IsNil(o.Manager) { toSerialize["manager"] = o.Manager } - if !isNil(o.NonEmployeeSource) { + if !IsNil(o.NonEmployeeSource) { toSerialize["nonEmployeeSource"] = o.NonEmployeeSource } - if !isNil(o.Data) { + if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !isNil(o.ApprovalItems) { + if !IsNil(o.ApprovalItems) { toSerialize["approvalItems"] = o.ApprovalItems } - if !isNil(o.ApprovalStatus) { + if !IsNil(o.ApprovalStatus) { toSerialize["approvalStatus"] = o.ApprovalStatus } - if !isNil(o.Comment) { + if !IsNil(o.Comment) { toSerialize["comment"] = o.Comment } - if !isNil(o.CompletionDate) { + if !IsNil(o.CompletionDate) { toSerialize["completionDate"] = o.CompletionDate } - if !isNil(o.StartDate) { + if !IsNil(o.StartDate) { toSerialize["startDate"] = o.StartDate } - if !isNil(o.EndDate) { + if !IsNil(o.EndDate) { toSerialize["endDate"] = o.EndDate } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } @@ -798,16 +798,20 @@ func (o NonEmployeeRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeRequest) UnmarshalJSON(data []byte) (err error) { varNonEmployeeRequest := _NonEmployeeRequest{} - if err = json.Unmarshal(bytes, &varNonEmployeeRequest); err == nil { + err = json.Unmarshal(data, &varNonEmployeeRequest) + + if err != nil { + return err + } + *o = NonEmployeeRequest(varNonEmployeeRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "sourceId") delete(additionalProperties, "name") diff --git a/api_v3/model_non_employee_request_body.go b/api_v3/model_non_employee_request_body.go index fcabd1077..7559d02a8 100644 --- a/api_v3/model_non_employee_request_body.go +++ b/api_v3/model_non_employee_request_body.go @@ -242,7 +242,7 @@ func (o *NonEmployeeRequestBody) SetSourceId(v string) { // GetData returns the Data field value if set, zero value otherwise. func (o *NonEmployeeRequestBody) GetData() map[string]string { - if o == nil || isNil(o.Data) { + if o == nil || IsNil(o.Data) { var ret map[string]string return ret } @@ -252,7 +252,7 @@ func (o *NonEmployeeRequestBody) GetData() map[string]string { // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestBody) GetDataOk() (*map[string]string, bool) { - if o == nil || isNil(o.Data) { + if o == nil || IsNil(o.Data) { return nil, false } return o.Data, true @@ -260,7 +260,7 @@ func (o *NonEmployeeRequestBody) GetDataOk() (*map[string]string, bool) { // HasData returns a boolean if a field has been set. func (o *NonEmployeeRequestBody) HasData() bool { - if o != nil && !isNil(o.Data) { + if o != nil && !IsNil(o.Data) { return true } @@ -337,7 +337,7 @@ func (o NonEmployeeRequestBody) ToMap() (map[string]interface{}, error) { toSerialize["phone"] = o.Phone toSerialize["manager"] = o.Manager toSerialize["sourceId"] = o.SourceId - if !isNil(o.Data) { + if !IsNil(o.Data) { toSerialize["data"] = o.Data } toSerialize["startDate"] = o.StartDate @@ -350,8 +350,8 @@ func (o NonEmployeeRequestBody) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeRequestBody) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *NonEmployeeRequestBody) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -368,7 +368,7 @@ func (o *NonEmployeeRequestBody) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -382,13 +382,17 @@ func (o *NonEmployeeRequestBody) UnmarshalJSON(bytes []byte) (err error) { varNonEmployeeRequestBody := _NonEmployeeRequestBody{} - if err = json.Unmarshal(bytes, &varNonEmployeeRequestBody); err == nil { + err = json.Unmarshal(data, &varNonEmployeeRequestBody) + + if err != nil { + return err + } + *o = NonEmployeeRequestBody(varNonEmployeeRequestBody) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "accountName") delete(additionalProperties, "firstName") delete(additionalProperties, "lastName") diff --git a/api_v3/model_non_employee_request_lite.go b/api_v3/model_non_employee_request_lite.go index 917635568..694e272ac 100644 --- a/api_v3/model_non_employee_request_lite.go +++ b/api_v3/model_non_employee_request_lite.go @@ -46,7 +46,7 @@ func NewNonEmployeeRequestLiteWithDefaults() *NonEmployeeRequestLite { // GetId returns the Id field value if set, zero value otherwise. func (o *NonEmployeeRequestLite) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -56,7 +56,7 @@ func (o *NonEmployeeRequestLite) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestLite) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -64,7 +64,7 @@ func (o *NonEmployeeRequestLite) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *NonEmployeeRequestLite) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -78,7 +78,7 @@ func (o *NonEmployeeRequestLite) SetId(v string) { // GetRequester returns the Requester field value if set, zero value otherwise. func (o *NonEmployeeRequestLite) GetRequester() NonEmployeeIdentityReferenceWithId { - if o == nil || isNil(o.Requester) { + if o == nil || IsNil(o.Requester) { var ret NonEmployeeIdentityReferenceWithId return ret } @@ -88,7 +88,7 @@ func (o *NonEmployeeRequestLite) GetRequester() NonEmployeeIdentityReferenceWith // GetRequesterOk returns a tuple with the Requester field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestLite) GetRequesterOk() (*NonEmployeeIdentityReferenceWithId, bool) { - if o == nil || isNil(o.Requester) { + if o == nil || IsNil(o.Requester) { return nil, false } return o.Requester, true @@ -96,7 +96,7 @@ func (o *NonEmployeeRequestLite) GetRequesterOk() (*NonEmployeeIdentityReference // HasRequester returns a boolean if a field has been set. func (o *NonEmployeeRequestLite) HasRequester() bool { - if o != nil && !isNil(o.Requester) { + if o != nil && !IsNil(o.Requester) { return true } @@ -118,10 +118,10 @@ func (o NonEmployeeRequestLite) MarshalJSON() ([]byte, error) { func (o NonEmployeeRequestLite) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Requester) { + if !IsNil(o.Requester) { toSerialize["requester"] = o.Requester } @@ -132,16 +132,20 @@ func (o NonEmployeeRequestLite) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeRequestLite) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeRequestLite) UnmarshalJSON(data []byte) (err error) { varNonEmployeeRequestLite := _NonEmployeeRequestLite{} - if err = json.Unmarshal(bytes, &varNonEmployeeRequestLite); err == nil { + err = json.Unmarshal(data, &varNonEmployeeRequestLite) + + if err != nil { + return err + } + *o = NonEmployeeRequestLite(varNonEmployeeRequestLite) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "requester") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_non_employee_request_summary.go b/api_v3/model_non_employee_request_summary.go index 6e08649d9..3d0b6a2a7 100644 --- a/api_v3/model_non_employee_request_summary.go +++ b/api_v3/model_non_employee_request_summary.go @@ -51,7 +51,7 @@ func NewNonEmployeeRequestSummaryWithDefaults() *NonEmployeeRequestSummary { // GetApproved returns the Approved field value if set, zero value otherwise. func (o *NonEmployeeRequestSummary) GetApproved() int32 { - if o == nil || isNil(o.Approved) { + if o == nil || IsNil(o.Approved) { var ret int32 return ret } @@ -61,7 +61,7 @@ func (o *NonEmployeeRequestSummary) GetApproved() int32 { // GetApprovedOk returns a tuple with the Approved field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestSummary) GetApprovedOk() (*int32, bool) { - if o == nil || isNil(o.Approved) { + if o == nil || IsNil(o.Approved) { return nil, false } return o.Approved, true @@ -69,7 +69,7 @@ func (o *NonEmployeeRequestSummary) GetApprovedOk() (*int32, bool) { // HasApproved returns a boolean if a field has been set. func (o *NonEmployeeRequestSummary) HasApproved() bool { - if o != nil && !isNil(o.Approved) { + if o != nil && !IsNil(o.Approved) { return true } @@ -83,7 +83,7 @@ func (o *NonEmployeeRequestSummary) SetApproved(v int32) { // GetRejected returns the Rejected field value if set, zero value otherwise. func (o *NonEmployeeRequestSummary) GetRejected() int32 { - if o == nil || isNil(o.Rejected) { + if o == nil || IsNil(o.Rejected) { var ret int32 return ret } @@ -93,7 +93,7 @@ func (o *NonEmployeeRequestSummary) GetRejected() int32 { // GetRejectedOk returns a tuple with the Rejected field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestSummary) GetRejectedOk() (*int32, bool) { - if o == nil || isNil(o.Rejected) { + if o == nil || IsNil(o.Rejected) { return nil, false } return o.Rejected, true @@ -101,7 +101,7 @@ func (o *NonEmployeeRequestSummary) GetRejectedOk() (*int32, bool) { // HasRejected returns a boolean if a field has been set. func (o *NonEmployeeRequestSummary) HasRejected() bool { - if o != nil && !isNil(o.Rejected) { + if o != nil && !IsNil(o.Rejected) { return true } @@ -115,7 +115,7 @@ func (o *NonEmployeeRequestSummary) SetRejected(v int32) { // GetPending returns the Pending field value if set, zero value otherwise. func (o *NonEmployeeRequestSummary) GetPending() int32 { - if o == nil || isNil(o.Pending) { + if o == nil || IsNil(o.Pending) { var ret int32 return ret } @@ -125,7 +125,7 @@ func (o *NonEmployeeRequestSummary) GetPending() int32 { // GetPendingOk returns a tuple with the Pending field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestSummary) GetPendingOk() (*int32, bool) { - if o == nil || isNil(o.Pending) { + if o == nil || IsNil(o.Pending) { return nil, false } return o.Pending, true @@ -133,7 +133,7 @@ func (o *NonEmployeeRequestSummary) GetPendingOk() (*int32, bool) { // HasPending returns a boolean if a field has been set. func (o *NonEmployeeRequestSummary) HasPending() bool { - if o != nil && !isNil(o.Pending) { + if o != nil && !IsNil(o.Pending) { return true } @@ -147,7 +147,7 @@ func (o *NonEmployeeRequestSummary) SetPending(v int32) { // GetNonEmployeeCount returns the NonEmployeeCount field value if set, zero value otherwise. func (o *NonEmployeeRequestSummary) GetNonEmployeeCount() int32 { - if o == nil || isNil(o.NonEmployeeCount) { + if o == nil || IsNil(o.NonEmployeeCount) { var ret int32 return ret } @@ -157,7 +157,7 @@ func (o *NonEmployeeRequestSummary) GetNonEmployeeCount() int32 { // GetNonEmployeeCountOk returns a tuple with the NonEmployeeCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestSummary) GetNonEmployeeCountOk() (*int32, bool) { - if o == nil || isNil(o.NonEmployeeCount) { + if o == nil || IsNil(o.NonEmployeeCount) { return nil, false } return o.NonEmployeeCount, true @@ -165,7 +165,7 @@ func (o *NonEmployeeRequestSummary) GetNonEmployeeCountOk() (*int32, bool) { // HasNonEmployeeCount returns a boolean if a field has been set. func (o *NonEmployeeRequestSummary) HasNonEmployeeCount() bool { - if o != nil && !isNil(o.NonEmployeeCount) { + if o != nil && !IsNil(o.NonEmployeeCount) { return true } @@ -187,16 +187,16 @@ func (o NonEmployeeRequestSummary) MarshalJSON() ([]byte, error) { func (o NonEmployeeRequestSummary) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Approved) { + if !IsNil(o.Approved) { toSerialize["approved"] = o.Approved } - if !isNil(o.Rejected) { + if !IsNil(o.Rejected) { toSerialize["rejected"] = o.Rejected } - if !isNil(o.Pending) { + if !IsNil(o.Pending) { toSerialize["pending"] = o.Pending } - if !isNil(o.NonEmployeeCount) { + if !IsNil(o.NonEmployeeCount) { toSerialize["nonEmployeeCount"] = o.NonEmployeeCount } @@ -207,16 +207,20 @@ func (o NonEmployeeRequestSummary) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeRequestSummary) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeRequestSummary) UnmarshalJSON(data []byte) (err error) { varNonEmployeeRequestSummary := _NonEmployeeRequestSummary{} - if err = json.Unmarshal(bytes, &varNonEmployeeRequestSummary); err == nil { + err = json.Unmarshal(data, &varNonEmployeeRequestSummary) + + if err != nil { + return err + } + *o = NonEmployeeRequestSummary(varNonEmployeeRequestSummary) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "approved") delete(additionalProperties, "rejected") delete(additionalProperties, "pending") diff --git a/api_v3/model_non_employee_request_without_approval_item.go b/api_v3/model_non_employee_request_without_approval_item.go index 4dfe01f54..776930681 100644 --- a/api_v3/model_non_employee_request_without_approval_item.go +++ b/api_v3/model_non_employee_request_without_approval_item.go @@ -75,7 +75,7 @@ func NewNonEmployeeRequestWithoutApprovalItemWithDefaults() *NonEmployeeRequestW // GetId returns the Id field value if set, zero value otherwise. func (o *NonEmployeeRequestWithoutApprovalItem) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -85,7 +85,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestWithoutApprovalItem) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -93,7 +93,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *NonEmployeeRequestWithoutApprovalItem) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -107,7 +107,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) SetId(v string) { // GetRequester returns the Requester field value if set, zero value otherwise. func (o *NonEmployeeRequestWithoutApprovalItem) GetRequester() NonEmployeeIdentityReferenceWithId { - if o == nil || isNil(o.Requester) { + if o == nil || IsNil(o.Requester) { var ret NonEmployeeIdentityReferenceWithId return ret } @@ -117,7 +117,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetRequester() NonEmployeeIdenti // GetRequesterOk returns a tuple with the Requester field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestWithoutApprovalItem) GetRequesterOk() (*NonEmployeeIdentityReferenceWithId, bool) { - if o == nil || isNil(o.Requester) { + if o == nil || IsNil(o.Requester) { return nil, false } return o.Requester, true @@ -125,7 +125,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetRequesterOk() (*NonEmployeeId // HasRequester returns a boolean if a field has been set. func (o *NonEmployeeRequestWithoutApprovalItem) HasRequester() bool { - if o != nil && !isNil(o.Requester) { + if o != nil && !IsNil(o.Requester) { return true } @@ -139,7 +139,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) SetRequester(v NonEmployeeIdenti // GetAccountName returns the AccountName field value if set, zero value otherwise. func (o *NonEmployeeRequestWithoutApprovalItem) GetAccountName() string { - if o == nil || isNil(o.AccountName) { + if o == nil || IsNil(o.AccountName) { var ret string return ret } @@ -149,7 +149,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetAccountName() string { // GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestWithoutApprovalItem) GetAccountNameOk() (*string, bool) { - if o == nil || isNil(o.AccountName) { + if o == nil || IsNil(o.AccountName) { return nil, false } return o.AccountName, true @@ -157,7 +157,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetAccountNameOk() (*string, boo // HasAccountName returns a boolean if a field has been set. func (o *NonEmployeeRequestWithoutApprovalItem) HasAccountName() bool { - if o != nil && !isNil(o.AccountName) { + if o != nil && !IsNil(o.AccountName) { return true } @@ -171,7 +171,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) SetAccountName(v string) { // GetFirstName returns the FirstName field value if set, zero value otherwise. func (o *NonEmployeeRequestWithoutApprovalItem) GetFirstName() string { - if o == nil || isNil(o.FirstName) { + if o == nil || IsNil(o.FirstName) { var ret string return ret } @@ -181,7 +181,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetFirstName() string { // GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestWithoutApprovalItem) GetFirstNameOk() (*string, bool) { - if o == nil || isNil(o.FirstName) { + if o == nil || IsNil(o.FirstName) { return nil, false } return o.FirstName, true @@ -189,7 +189,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetFirstNameOk() (*string, bool) // HasFirstName returns a boolean if a field has been set. func (o *NonEmployeeRequestWithoutApprovalItem) HasFirstName() bool { - if o != nil && !isNil(o.FirstName) { + if o != nil && !IsNil(o.FirstName) { return true } @@ -203,7 +203,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) SetFirstName(v string) { // GetLastName returns the LastName field value if set, zero value otherwise. func (o *NonEmployeeRequestWithoutApprovalItem) GetLastName() string { - if o == nil || isNil(o.LastName) { + if o == nil || IsNil(o.LastName) { var ret string return ret } @@ -213,7 +213,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetLastName() string { // GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestWithoutApprovalItem) GetLastNameOk() (*string, bool) { - if o == nil || isNil(o.LastName) { + if o == nil || IsNil(o.LastName) { return nil, false } return o.LastName, true @@ -221,7 +221,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetLastNameOk() (*string, bool) // HasLastName returns a boolean if a field has been set. func (o *NonEmployeeRequestWithoutApprovalItem) HasLastName() bool { - if o != nil && !isNil(o.LastName) { + if o != nil && !IsNil(o.LastName) { return true } @@ -235,7 +235,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) SetLastName(v string) { // GetEmail returns the Email field value if set, zero value otherwise. func (o *NonEmployeeRequestWithoutApprovalItem) GetEmail() string { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { var ret string return ret } @@ -245,7 +245,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetEmail() string { // GetEmailOk returns a tuple with the Email field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestWithoutApprovalItem) GetEmailOk() (*string, bool) { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { return nil, false } return o.Email, true @@ -253,7 +253,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetEmailOk() (*string, bool) { // HasEmail returns a boolean if a field has been set. func (o *NonEmployeeRequestWithoutApprovalItem) HasEmail() bool { - if o != nil && !isNil(o.Email) { + if o != nil && !IsNil(o.Email) { return true } @@ -267,7 +267,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) SetEmail(v string) { // GetPhone returns the Phone field value if set, zero value otherwise. func (o *NonEmployeeRequestWithoutApprovalItem) GetPhone() string { - if o == nil || isNil(o.Phone) { + if o == nil || IsNil(o.Phone) { var ret string return ret } @@ -277,7 +277,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetPhone() string { // GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestWithoutApprovalItem) GetPhoneOk() (*string, bool) { - if o == nil || isNil(o.Phone) { + if o == nil || IsNil(o.Phone) { return nil, false } return o.Phone, true @@ -285,7 +285,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetPhoneOk() (*string, bool) { // HasPhone returns a boolean if a field has been set. func (o *NonEmployeeRequestWithoutApprovalItem) HasPhone() bool { - if o != nil && !isNil(o.Phone) { + if o != nil && !IsNil(o.Phone) { return true } @@ -299,7 +299,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) SetPhone(v string) { // GetManager returns the Manager field value if set, zero value otherwise. func (o *NonEmployeeRequestWithoutApprovalItem) GetManager() string { - if o == nil || isNil(o.Manager) { + if o == nil || IsNil(o.Manager) { var ret string return ret } @@ -309,7 +309,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetManager() string { // GetManagerOk returns a tuple with the Manager field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestWithoutApprovalItem) GetManagerOk() (*string, bool) { - if o == nil || isNil(o.Manager) { + if o == nil || IsNil(o.Manager) { return nil, false } return o.Manager, true @@ -317,7 +317,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetManagerOk() (*string, bool) { // HasManager returns a boolean if a field has been set. func (o *NonEmployeeRequestWithoutApprovalItem) HasManager() bool { - if o != nil && !isNil(o.Manager) { + if o != nil && !IsNil(o.Manager) { return true } @@ -331,7 +331,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) SetManager(v string) { // GetNonEmployeeSource returns the NonEmployeeSource field value if set, zero value otherwise. func (o *NonEmployeeRequestWithoutApprovalItem) GetNonEmployeeSource() NonEmployeeSourceLiteWithSchemaAttributes { - if o == nil || isNil(o.NonEmployeeSource) { + if o == nil || IsNil(o.NonEmployeeSource) { var ret NonEmployeeSourceLiteWithSchemaAttributes return ret } @@ -341,7 +341,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetNonEmployeeSource() NonEmploy // GetNonEmployeeSourceOk returns a tuple with the NonEmployeeSource field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestWithoutApprovalItem) GetNonEmployeeSourceOk() (*NonEmployeeSourceLiteWithSchemaAttributes, bool) { - if o == nil || isNil(o.NonEmployeeSource) { + if o == nil || IsNil(o.NonEmployeeSource) { return nil, false } return o.NonEmployeeSource, true @@ -349,7 +349,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetNonEmployeeSourceOk() (*NonEm // HasNonEmployeeSource returns a boolean if a field has been set. func (o *NonEmployeeRequestWithoutApprovalItem) HasNonEmployeeSource() bool { - if o != nil && !isNil(o.NonEmployeeSource) { + if o != nil && !IsNil(o.NonEmployeeSource) { return true } @@ -363,7 +363,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) SetNonEmployeeSource(v NonEmploy // GetData returns the Data field value if set, zero value otherwise. func (o *NonEmployeeRequestWithoutApprovalItem) GetData() map[string]string { - if o == nil || isNil(o.Data) { + if o == nil || IsNil(o.Data) { var ret map[string]string return ret } @@ -373,7 +373,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetData() map[string]string { // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestWithoutApprovalItem) GetDataOk() (*map[string]string, bool) { - if o == nil || isNil(o.Data) { + if o == nil || IsNil(o.Data) { return nil, false } return o.Data, true @@ -381,7 +381,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetDataOk() (*map[string]string, // HasData returns a boolean if a field has been set. func (o *NonEmployeeRequestWithoutApprovalItem) HasData() bool { - if o != nil && !isNil(o.Data) { + if o != nil && !IsNil(o.Data) { return true } @@ -395,7 +395,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) SetData(v map[string]string) { // GetApprovalStatus returns the ApprovalStatus field value if set, zero value otherwise. func (o *NonEmployeeRequestWithoutApprovalItem) GetApprovalStatus() ApprovalStatus { - if o == nil || isNil(o.ApprovalStatus) { + if o == nil || IsNil(o.ApprovalStatus) { var ret ApprovalStatus return ret } @@ -405,7 +405,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetApprovalStatus() ApprovalStat // GetApprovalStatusOk returns a tuple with the ApprovalStatus field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestWithoutApprovalItem) GetApprovalStatusOk() (*ApprovalStatus, bool) { - if o == nil || isNil(o.ApprovalStatus) { + if o == nil || IsNil(o.ApprovalStatus) { return nil, false } return o.ApprovalStatus, true @@ -413,7 +413,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetApprovalStatusOk() (*Approval // HasApprovalStatus returns a boolean if a field has been set. func (o *NonEmployeeRequestWithoutApprovalItem) HasApprovalStatus() bool { - if o != nil && !isNil(o.ApprovalStatus) { + if o != nil && !IsNil(o.ApprovalStatus) { return true } @@ -427,7 +427,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) SetApprovalStatus(v ApprovalStat // GetComment returns the Comment field value if set, zero value otherwise. func (o *NonEmployeeRequestWithoutApprovalItem) GetComment() string { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { var ret string return ret } @@ -437,7 +437,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetComment() string { // GetCommentOk returns a tuple with the Comment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestWithoutApprovalItem) GetCommentOk() (*string, bool) { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { return nil, false } return o.Comment, true @@ -445,7 +445,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetCommentOk() (*string, bool) { // HasComment returns a boolean if a field has been set. func (o *NonEmployeeRequestWithoutApprovalItem) HasComment() bool { - if o != nil && !isNil(o.Comment) { + if o != nil && !IsNil(o.Comment) { return true } @@ -459,7 +459,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) SetComment(v string) { // GetCompletionDate returns the CompletionDate field value if set, zero value otherwise. func (o *NonEmployeeRequestWithoutApprovalItem) GetCompletionDate() time.Time { - if o == nil || isNil(o.CompletionDate) { + if o == nil || IsNil(o.CompletionDate) { var ret time.Time return ret } @@ -469,7 +469,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetCompletionDate() time.Time { // GetCompletionDateOk returns a tuple with the CompletionDate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestWithoutApprovalItem) GetCompletionDateOk() (*time.Time, bool) { - if o == nil || isNil(o.CompletionDate) { + if o == nil || IsNil(o.CompletionDate) { return nil, false } return o.CompletionDate, true @@ -477,7 +477,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetCompletionDateOk() (*time.Tim // HasCompletionDate returns a boolean if a field has been set. func (o *NonEmployeeRequestWithoutApprovalItem) HasCompletionDate() bool { - if o != nil && !isNil(o.CompletionDate) { + if o != nil && !IsNil(o.CompletionDate) { return true } @@ -491,7 +491,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) SetCompletionDate(v time.Time) { // GetStartDate returns the StartDate field value if set, zero value otherwise. func (o *NonEmployeeRequestWithoutApprovalItem) GetStartDate() string { - if o == nil || isNil(o.StartDate) { + if o == nil || IsNil(o.StartDate) { var ret string return ret } @@ -501,7 +501,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetStartDate() string { // GetStartDateOk returns a tuple with the StartDate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestWithoutApprovalItem) GetStartDateOk() (*string, bool) { - if o == nil || isNil(o.StartDate) { + if o == nil || IsNil(o.StartDate) { return nil, false } return o.StartDate, true @@ -509,7 +509,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetStartDateOk() (*string, bool) // HasStartDate returns a boolean if a field has been set. func (o *NonEmployeeRequestWithoutApprovalItem) HasStartDate() bool { - if o != nil && !isNil(o.StartDate) { + if o != nil && !IsNil(o.StartDate) { return true } @@ -523,7 +523,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) SetStartDate(v string) { // GetEndDate returns the EndDate field value if set, zero value otherwise. func (o *NonEmployeeRequestWithoutApprovalItem) GetEndDate() string { - if o == nil || isNil(o.EndDate) { + if o == nil || IsNil(o.EndDate) { var ret string return ret } @@ -533,7 +533,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetEndDate() string { // GetEndDateOk returns a tuple with the EndDate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestWithoutApprovalItem) GetEndDateOk() (*string, bool) { - if o == nil || isNil(o.EndDate) { + if o == nil || IsNil(o.EndDate) { return nil, false } return o.EndDate, true @@ -541,7 +541,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetEndDateOk() (*string, bool) { // HasEndDate returns a boolean if a field has been set. func (o *NonEmployeeRequestWithoutApprovalItem) HasEndDate() bool { - if o != nil && !isNil(o.EndDate) { + if o != nil && !IsNil(o.EndDate) { return true } @@ -555,7 +555,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) SetEndDate(v string) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *NonEmployeeRequestWithoutApprovalItem) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -565,7 +565,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestWithoutApprovalItem) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -573,7 +573,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetModifiedOk() (*time.Time, boo // HasModified returns a boolean if a field has been set. func (o *NonEmployeeRequestWithoutApprovalItem) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -587,7 +587,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) SetModified(v time.Time) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *NonEmployeeRequestWithoutApprovalItem) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -597,7 +597,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeRequestWithoutApprovalItem) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -605,7 +605,7 @@ func (o *NonEmployeeRequestWithoutApprovalItem) GetCreatedOk() (*time.Time, bool // HasCreated returns a boolean if a field has been set. func (o *NonEmployeeRequestWithoutApprovalItem) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -627,55 +627,55 @@ func (o NonEmployeeRequestWithoutApprovalItem) MarshalJSON() ([]byte, error) { func (o NonEmployeeRequestWithoutApprovalItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Requester) { + if !IsNil(o.Requester) { toSerialize["requester"] = o.Requester } - if !isNil(o.AccountName) { + if !IsNil(o.AccountName) { toSerialize["accountName"] = o.AccountName } - if !isNil(o.FirstName) { + if !IsNil(o.FirstName) { toSerialize["firstName"] = o.FirstName } - if !isNil(o.LastName) { + if !IsNil(o.LastName) { toSerialize["lastName"] = o.LastName } - if !isNil(o.Email) { + if !IsNil(o.Email) { toSerialize["email"] = o.Email } - if !isNil(o.Phone) { + if !IsNil(o.Phone) { toSerialize["phone"] = o.Phone } - if !isNil(o.Manager) { + if !IsNil(o.Manager) { toSerialize["manager"] = o.Manager } - if !isNil(o.NonEmployeeSource) { + if !IsNil(o.NonEmployeeSource) { toSerialize["nonEmployeeSource"] = o.NonEmployeeSource } - if !isNil(o.Data) { + if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !isNil(o.ApprovalStatus) { + if !IsNil(o.ApprovalStatus) { toSerialize["approvalStatus"] = o.ApprovalStatus } - if !isNil(o.Comment) { + if !IsNil(o.Comment) { toSerialize["comment"] = o.Comment } - if !isNil(o.CompletionDate) { + if !IsNil(o.CompletionDate) { toSerialize["completionDate"] = o.CompletionDate } - if !isNil(o.StartDate) { + if !IsNil(o.StartDate) { toSerialize["startDate"] = o.StartDate } - if !isNil(o.EndDate) { + if !IsNil(o.EndDate) { toSerialize["endDate"] = o.EndDate } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } @@ -686,16 +686,20 @@ func (o NonEmployeeRequestWithoutApprovalItem) ToMap() (map[string]interface{}, return toSerialize, nil } -func (o *NonEmployeeRequestWithoutApprovalItem) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeRequestWithoutApprovalItem) UnmarshalJSON(data []byte) (err error) { varNonEmployeeRequestWithoutApprovalItem := _NonEmployeeRequestWithoutApprovalItem{} - if err = json.Unmarshal(bytes, &varNonEmployeeRequestWithoutApprovalItem); err == nil { + err = json.Unmarshal(data, &varNonEmployeeRequestWithoutApprovalItem) + + if err != nil { + return err + } + *o = NonEmployeeRequestWithoutApprovalItem(varNonEmployeeRequestWithoutApprovalItem) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "requester") delete(additionalProperties, "accountName") diff --git a/api_v3/model_non_employee_schema_attribute.go b/api_v3/model_non_employee_schema_attribute.go index 5e7ab49db..d07dfa9ee 100644 --- a/api_v3/model_non_employee_schema_attribute.go +++ b/api_v3/model_non_employee_schema_attribute.go @@ -67,7 +67,7 @@ func NewNonEmployeeSchemaAttributeWithDefaults() *NonEmployeeSchemaAttribute { // GetId returns the Id field value if set, zero value otherwise. func (o *NonEmployeeSchemaAttribute) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -77,7 +77,7 @@ func (o *NonEmployeeSchemaAttribute) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSchemaAttribute) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -85,7 +85,7 @@ func (o *NonEmployeeSchemaAttribute) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *NonEmployeeSchemaAttribute) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -99,7 +99,7 @@ func (o *NonEmployeeSchemaAttribute) SetId(v string) { // GetSystem returns the System field value if set, zero value otherwise. func (o *NonEmployeeSchemaAttribute) GetSystem() bool { - if o == nil || isNil(o.System) { + if o == nil || IsNil(o.System) { var ret bool return ret } @@ -109,7 +109,7 @@ func (o *NonEmployeeSchemaAttribute) GetSystem() bool { // GetSystemOk returns a tuple with the System field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSchemaAttribute) GetSystemOk() (*bool, bool) { - if o == nil || isNil(o.System) { + if o == nil || IsNil(o.System) { return nil, false } return o.System, true @@ -117,7 +117,7 @@ func (o *NonEmployeeSchemaAttribute) GetSystemOk() (*bool, bool) { // HasSystem returns a boolean if a field has been set. func (o *NonEmployeeSchemaAttribute) HasSystem() bool { - if o != nil && !isNil(o.System) { + if o != nil && !IsNil(o.System) { return true } @@ -131,7 +131,7 @@ func (o *NonEmployeeSchemaAttribute) SetSystem(v bool) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *NonEmployeeSchemaAttribute) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -141,7 +141,7 @@ func (o *NonEmployeeSchemaAttribute) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSchemaAttribute) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -149,7 +149,7 @@ func (o *NonEmployeeSchemaAttribute) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *NonEmployeeSchemaAttribute) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -163,7 +163,7 @@ func (o *NonEmployeeSchemaAttribute) SetModified(v time.Time) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *NonEmployeeSchemaAttribute) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -173,7 +173,7 @@ func (o *NonEmployeeSchemaAttribute) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSchemaAttribute) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -181,7 +181,7 @@ func (o *NonEmployeeSchemaAttribute) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *NonEmployeeSchemaAttribute) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -267,7 +267,7 @@ func (o *NonEmployeeSchemaAttribute) SetTechnicalName(v string) { // GetHelpText returns the HelpText field value if set, zero value otherwise. func (o *NonEmployeeSchemaAttribute) GetHelpText() string { - if o == nil || isNil(o.HelpText) { + if o == nil || IsNil(o.HelpText) { var ret string return ret } @@ -277,7 +277,7 @@ func (o *NonEmployeeSchemaAttribute) GetHelpText() string { // GetHelpTextOk returns a tuple with the HelpText field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSchemaAttribute) GetHelpTextOk() (*string, bool) { - if o == nil || isNil(o.HelpText) { + if o == nil || IsNil(o.HelpText) { return nil, false } return o.HelpText, true @@ -285,7 +285,7 @@ func (o *NonEmployeeSchemaAttribute) GetHelpTextOk() (*string, bool) { // HasHelpText returns a boolean if a field has been set. func (o *NonEmployeeSchemaAttribute) HasHelpText() bool { - if o != nil && !isNil(o.HelpText) { + if o != nil && !IsNil(o.HelpText) { return true } @@ -299,7 +299,7 @@ func (o *NonEmployeeSchemaAttribute) SetHelpText(v string) { // GetPlaceholder returns the Placeholder field value if set, zero value otherwise. func (o *NonEmployeeSchemaAttribute) GetPlaceholder() string { - if o == nil || isNil(o.Placeholder) { + if o == nil || IsNil(o.Placeholder) { var ret string return ret } @@ -309,7 +309,7 @@ func (o *NonEmployeeSchemaAttribute) GetPlaceholder() string { // GetPlaceholderOk returns a tuple with the Placeholder field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSchemaAttribute) GetPlaceholderOk() (*string, bool) { - if o == nil || isNil(o.Placeholder) { + if o == nil || IsNil(o.Placeholder) { return nil, false } return o.Placeholder, true @@ -317,7 +317,7 @@ func (o *NonEmployeeSchemaAttribute) GetPlaceholderOk() (*string, bool) { // HasPlaceholder returns a boolean if a field has been set. func (o *NonEmployeeSchemaAttribute) HasPlaceholder() bool { - if o != nil && !isNil(o.Placeholder) { + if o != nil && !IsNil(o.Placeholder) { return true } @@ -331,7 +331,7 @@ func (o *NonEmployeeSchemaAttribute) SetPlaceholder(v string) { // GetRequired returns the Required field value if set, zero value otherwise. func (o *NonEmployeeSchemaAttribute) GetRequired() bool { - if o == nil || isNil(o.Required) { + if o == nil || IsNil(o.Required) { var ret bool return ret } @@ -341,7 +341,7 @@ func (o *NonEmployeeSchemaAttribute) GetRequired() bool { // GetRequiredOk returns a tuple with the Required field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSchemaAttribute) GetRequiredOk() (*bool, bool) { - if o == nil || isNil(o.Required) { + if o == nil || IsNil(o.Required) { return nil, false } return o.Required, true @@ -349,7 +349,7 @@ func (o *NonEmployeeSchemaAttribute) GetRequiredOk() (*bool, bool) { // HasRequired returns a boolean if a field has been set. func (o *NonEmployeeSchemaAttribute) HasRequired() bool { - if o != nil && !isNil(o.Required) { + if o != nil && !IsNil(o.Required) { return true } @@ -371,28 +371,28 @@ func (o NonEmployeeSchemaAttribute) MarshalJSON() ([]byte, error) { func (o NonEmployeeSchemaAttribute) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.System) { + if !IsNil(o.System) { toSerialize["system"] = o.System } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } toSerialize["type"] = o.Type toSerialize["label"] = o.Label toSerialize["technicalName"] = o.TechnicalName - if !isNil(o.HelpText) { + if !IsNil(o.HelpText) { toSerialize["helpText"] = o.HelpText } - if !isNil(o.Placeholder) { + if !IsNil(o.Placeholder) { toSerialize["placeholder"] = o.Placeholder } - if !isNil(o.Required) { + if !IsNil(o.Required) { toSerialize["required"] = o.Required } @@ -403,8 +403,8 @@ func (o NonEmployeeSchemaAttribute) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeSchemaAttribute) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *NonEmployeeSchemaAttribute) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -415,7 +415,7 @@ func (o *NonEmployeeSchemaAttribute) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -429,13 +429,17 @@ func (o *NonEmployeeSchemaAttribute) UnmarshalJSON(bytes []byte) (err error) { varNonEmployeeSchemaAttribute := _NonEmployeeSchemaAttribute{} - if err = json.Unmarshal(bytes, &varNonEmployeeSchemaAttribute); err == nil { + err = json.Unmarshal(data, &varNonEmployeeSchemaAttribute) + + if err != nil { + return err + } + *o = NonEmployeeSchemaAttribute(varNonEmployeeSchemaAttribute) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "system") delete(additionalProperties, "modified") diff --git a/api_v3/model_non_employee_schema_attribute_body.go b/api_v3/model_non_employee_schema_attribute_body.go index c4868653e..ad3f3929b 100644 --- a/api_v3/model_non_employee_schema_attribute_body.go +++ b/api_v3/model_non_employee_schema_attribute_body.go @@ -131,7 +131,7 @@ func (o *NonEmployeeSchemaAttributeBody) SetTechnicalName(v string) { // GetHelpText returns the HelpText field value if set, zero value otherwise. func (o *NonEmployeeSchemaAttributeBody) GetHelpText() string { - if o == nil || isNil(o.HelpText) { + if o == nil || IsNil(o.HelpText) { var ret string return ret } @@ -141,7 +141,7 @@ func (o *NonEmployeeSchemaAttributeBody) GetHelpText() string { // GetHelpTextOk returns a tuple with the HelpText field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSchemaAttributeBody) GetHelpTextOk() (*string, bool) { - if o == nil || isNil(o.HelpText) { + if o == nil || IsNil(o.HelpText) { return nil, false } return o.HelpText, true @@ -149,7 +149,7 @@ func (o *NonEmployeeSchemaAttributeBody) GetHelpTextOk() (*string, bool) { // HasHelpText returns a boolean if a field has been set. func (o *NonEmployeeSchemaAttributeBody) HasHelpText() bool { - if o != nil && !isNil(o.HelpText) { + if o != nil && !IsNil(o.HelpText) { return true } @@ -163,7 +163,7 @@ func (o *NonEmployeeSchemaAttributeBody) SetHelpText(v string) { // GetPlaceholder returns the Placeholder field value if set, zero value otherwise. func (o *NonEmployeeSchemaAttributeBody) GetPlaceholder() string { - if o == nil || isNil(o.Placeholder) { + if o == nil || IsNil(o.Placeholder) { var ret string return ret } @@ -173,7 +173,7 @@ func (o *NonEmployeeSchemaAttributeBody) GetPlaceholder() string { // GetPlaceholderOk returns a tuple with the Placeholder field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSchemaAttributeBody) GetPlaceholderOk() (*string, bool) { - if o == nil || isNil(o.Placeholder) { + if o == nil || IsNil(o.Placeholder) { return nil, false } return o.Placeholder, true @@ -181,7 +181,7 @@ func (o *NonEmployeeSchemaAttributeBody) GetPlaceholderOk() (*string, bool) { // HasPlaceholder returns a boolean if a field has been set. func (o *NonEmployeeSchemaAttributeBody) HasPlaceholder() bool { - if o != nil && !isNil(o.Placeholder) { + if o != nil && !IsNil(o.Placeholder) { return true } @@ -195,7 +195,7 @@ func (o *NonEmployeeSchemaAttributeBody) SetPlaceholder(v string) { // GetRequired returns the Required field value if set, zero value otherwise. func (o *NonEmployeeSchemaAttributeBody) GetRequired() bool { - if o == nil || isNil(o.Required) { + if o == nil || IsNil(o.Required) { var ret bool return ret } @@ -205,7 +205,7 @@ func (o *NonEmployeeSchemaAttributeBody) GetRequired() bool { // GetRequiredOk returns a tuple with the Required field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSchemaAttributeBody) GetRequiredOk() (*bool, bool) { - if o == nil || isNil(o.Required) { + if o == nil || IsNil(o.Required) { return nil, false } return o.Required, true @@ -213,7 +213,7 @@ func (o *NonEmployeeSchemaAttributeBody) GetRequiredOk() (*bool, bool) { // HasRequired returns a boolean if a field has been set. func (o *NonEmployeeSchemaAttributeBody) HasRequired() bool { - if o != nil && !isNil(o.Required) { + if o != nil && !IsNil(o.Required) { return true } @@ -238,13 +238,13 @@ func (o NonEmployeeSchemaAttributeBody) ToMap() (map[string]interface{}, error) toSerialize["type"] = o.Type toSerialize["label"] = o.Label toSerialize["technicalName"] = o.TechnicalName - if !isNil(o.HelpText) { + if !IsNil(o.HelpText) { toSerialize["helpText"] = o.HelpText } - if !isNil(o.Placeholder) { + if !IsNil(o.Placeholder) { toSerialize["placeholder"] = o.Placeholder } - if !isNil(o.Required) { + if !IsNil(o.Required) { toSerialize["required"] = o.Required } @@ -255,8 +255,8 @@ func (o NonEmployeeSchemaAttributeBody) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *NonEmployeeSchemaAttributeBody) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *NonEmployeeSchemaAttributeBody) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -267,7 +267,7 @@ func (o *NonEmployeeSchemaAttributeBody) UnmarshalJSON(bytes []byte) (err error) allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -281,13 +281,17 @@ func (o *NonEmployeeSchemaAttributeBody) UnmarshalJSON(bytes []byte) (err error) varNonEmployeeSchemaAttributeBody := _NonEmployeeSchemaAttributeBody{} - if err = json.Unmarshal(bytes, &varNonEmployeeSchemaAttributeBody); err == nil { + err = json.Unmarshal(data, &varNonEmployeeSchemaAttributeBody) + + if err != nil { + return err + } + *o = NonEmployeeSchemaAttributeBody(varNonEmployeeSchemaAttributeBody) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "label") delete(additionalProperties, "technicalName") diff --git a/api_v3/model_non_employee_source.go b/api_v3/model_non_employee_source.go index bf601fda5..70fa0dbdf 100644 --- a/api_v3/model_non_employee_source.go +++ b/api_v3/model_non_employee_source.go @@ -60,7 +60,7 @@ func NewNonEmployeeSourceWithDefaults() *NonEmployeeSource { // GetId returns the Id field value if set, zero value otherwise. func (o *NonEmployeeSource) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -70,7 +70,7 @@ func (o *NonEmployeeSource) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSource) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -78,7 +78,7 @@ func (o *NonEmployeeSource) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *NonEmployeeSource) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -92,7 +92,7 @@ func (o *NonEmployeeSource) SetId(v string) { // GetSourceId returns the SourceId field value if set, zero value otherwise. func (o *NonEmployeeSource) GetSourceId() string { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { var ret string return ret } @@ -102,7 +102,7 @@ func (o *NonEmployeeSource) GetSourceId() string { // GetSourceIdOk returns a tuple with the SourceId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSource) GetSourceIdOk() (*string, bool) { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { return nil, false } return o.SourceId, true @@ -110,7 +110,7 @@ func (o *NonEmployeeSource) GetSourceIdOk() (*string, bool) { // HasSourceId returns a boolean if a field has been set. func (o *NonEmployeeSource) HasSourceId() bool { - if o != nil && !isNil(o.SourceId) { + if o != nil && !IsNil(o.SourceId) { return true } @@ -124,7 +124,7 @@ func (o *NonEmployeeSource) SetSourceId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *NonEmployeeSource) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -134,7 +134,7 @@ func (o *NonEmployeeSource) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSource) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -142,7 +142,7 @@ func (o *NonEmployeeSource) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *NonEmployeeSource) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -156,7 +156,7 @@ func (o *NonEmployeeSource) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *NonEmployeeSource) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -166,7 +166,7 @@ func (o *NonEmployeeSource) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSource) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -174,7 +174,7 @@ func (o *NonEmployeeSource) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *NonEmployeeSource) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -188,7 +188,7 @@ func (o *NonEmployeeSource) SetDescription(v string) { // GetApprovers returns the Approvers field value if set, zero value otherwise. func (o *NonEmployeeSource) GetApprovers() []NonEmployeeIdentityReferenceWithId { - if o == nil || isNil(o.Approvers) { + if o == nil || IsNil(o.Approvers) { var ret []NonEmployeeIdentityReferenceWithId return ret } @@ -198,7 +198,7 @@ func (o *NonEmployeeSource) GetApprovers() []NonEmployeeIdentityReferenceWithId // GetApproversOk returns a tuple with the Approvers field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSource) GetApproversOk() ([]NonEmployeeIdentityReferenceWithId, bool) { - if o == nil || isNil(o.Approvers) { + if o == nil || IsNil(o.Approvers) { return nil, false } return o.Approvers, true @@ -206,7 +206,7 @@ func (o *NonEmployeeSource) GetApproversOk() ([]NonEmployeeIdentityReferenceWith // HasApprovers returns a boolean if a field has been set. func (o *NonEmployeeSource) HasApprovers() bool { - if o != nil && !isNil(o.Approvers) { + if o != nil && !IsNil(o.Approvers) { return true } @@ -220,7 +220,7 @@ func (o *NonEmployeeSource) SetApprovers(v []NonEmployeeIdentityReferenceWithId) // GetAccountManagers returns the AccountManagers field value if set, zero value otherwise. func (o *NonEmployeeSource) GetAccountManagers() []NonEmployeeIdentityReferenceWithId { - if o == nil || isNil(o.AccountManagers) { + if o == nil || IsNil(o.AccountManagers) { var ret []NonEmployeeIdentityReferenceWithId return ret } @@ -230,7 +230,7 @@ func (o *NonEmployeeSource) GetAccountManagers() []NonEmployeeIdentityReferenceW // GetAccountManagersOk returns a tuple with the AccountManagers field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSource) GetAccountManagersOk() ([]NonEmployeeIdentityReferenceWithId, bool) { - if o == nil || isNil(o.AccountManagers) { + if o == nil || IsNil(o.AccountManagers) { return nil, false } return o.AccountManagers, true @@ -238,7 +238,7 @@ func (o *NonEmployeeSource) GetAccountManagersOk() ([]NonEmployeeIdentityReferen // HasAccountManagers returns a boolean if a field has been set. func (o *NonEmployeeSource) HasAccountManagers() bool { - if o != nil && !isNil(o.AccountManagers) { + if o != nil && !IsNil(o.AccountManagers) { return true } @@ -252,7 +252,7 @@ func (o *NonEmployeeSource) SetAccountManagers(v []NonEmployeeIdentityReferenceW // GetModified returns the Modified field value if set, zero value otherwise. func (o *NonEmployeeSource) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -262,7 +262,7 @@ func (o *NonEmployeeSource) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSource) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -270,7 +270,7 @@ func (o *NonEmployeeSource) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *NonEmployeeSource) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -284,7 +284,7 @@ func (o *NonEmployeeSource) SetModified(v time.Time) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *NonEmployeeSource) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -294,7 +294,7 @@ func (o *NonEmployeeSource) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSource) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -302,7 +302,7 @@ func (o *NonEmployeeSource) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *NonEmployeeSource) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -324,28 +324,28 @@ func (o NonEmployeeSource) MarshalJSON() ([]byte, error) { func (o NonEmployeeSource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.SourceId) { + if !IsNil(o.SourceId) { toSerialize["sourceId"] = o.SourceId } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.Approvers) { + if !IsNil(o.Approvers) { toSerialize["approvers"] = o.Approvers } - if !isNil(o.AccountManagers) { + if !IsNil(o.AccountManagers) { toSerialize["accountManagers"] = o.AccountManagers } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } @@ -356,16 +356,20 @@ func (o NonEmployeeSource) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeSource) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeSource) UnmarshalJSON(data []byte) (err error) { varNonEmployeeSource := _NonEmployeeSource{} - if err = json.Unmarshal(bytes, &varNonEmployeeSource); err == nil { + err = json.Unmarshal(data, &varNonEmployeeSource) + + if err != nil { + return err + } + *o = NonEmployeeSource(varNonEmployeeSource) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "sourceId") delete(additionalProperties, "name") diff --git a/api_v3/model_non_employee_source_lite.go b/api_v3/model_non_employee_source_lite.go index fb817cdec..ed8ec406f 100644 --- a/api_v3/model_non_employee_source_lite.go +++ b/api_v3/model_non_employee_source_lite.go @@ -51,7 +51,7 @@ func NewNonEmployeeSourceLiteWithDefaults() *NonEmployeeSourceLite { // GetId returns the Id field value if set, zero value otherwise. func (o *NonEmployeeSourceLite) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -61,7 +61,7 @@ func (o *NonEmployeeSourceLite) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceLite) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -69,7 +69,7 @@ func (o *NonEmployeeSourceLite) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *NonEmployeeSourceLite) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -83,7 +83,7 @@ func (o *NonEmployeeSourceLite) SetId(v string) { // GetSourceId returns the SourceId field value if set, zero value otherwise. func (o *NonEmployeeSourceLite) GetSourceId() string { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { var ret string return ret } @@ -93,7 +93,7 @@ func (o *NonEmployeeSourceLite) GetSourceId() string { // GetSourceIdOk returns a tuple with the SourceId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceLite) GetSourceIdOk() (*string, bool) { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { return nil, false } return o.SourceId, true @@ -101,7 +101,7 @@ func (o *NonEmployeeSourceLite) GetSourceIdOk() (*string, bool) { // HasSourceId returns a boolean if a field has been set. func (o *NonEmployeeSourceLite) HasSourceId() bool { - if o != nil && !isNil(o.SourceId) { + if o != nil && !IsNil(o.SourceId) { return true } @@ -115,7 +115,7 @@ func (o *NonEmployeeSourceLite) SetSourceId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *NonEmployeeSourceLite) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -125,7 +125,7 @@ func (o *NonEmployeeSourceLite) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceLite) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -133,7 +133,7 @@ func (o *NonEmployeeSourceLite) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *NonEmployeeSourceLite) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -147,7 +147,7 @@ func (o *NonEmployeeSourceLite) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *NonEmployeeSourceLite) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -157,7 +157,7 @@ func (o *NonEmployeeSourceLite) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceLite) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -165,7 +165,7 @@ func (o *NonEmployeeSourceLite) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *NonEmployeeSourceLite) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -187,16 +187,16 @@ func (o NonEmployeeSourceLite) MarshalJSON() ([]byte, error) { func (o NonEmployeeSourceLite) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.SourceId) { + if !IsNil(o.SourceId) { toSerialize["sourceId"] = o.SourceId } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -207,16 +207,20 @@ func (o NonEmployeeSourceLite) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeSourceLite) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeSourceLite) UnmarshalJSON(data []byte) (err error) { varNonEmployeeSourceLite := _NonEmployeeSourceLite{} - if err = json.Unmarshal(bytes, &varNonEmployeeSourceLite); err == nil { + err = json.Unmarshal(data, &varNonEmployeeSourceLite) + + if err != nil { + return err + } + *o = NonEmployeeSourceLite(varNonEmployeeSourceLite) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "sourceId") delete(additionalProperties, "name") diff --git a/api_v3/model_non_employee_source_lite_with_schema_attributes.go b/api_v3/model_non_employee_source_lite_with_schema_attributes.go index 2bc5cfda2..cb4f9116d 100644 --- a/api_v3/model_non_employee_source_lite_with_schema_attributes.go +++ b/api_v3/model_non_employee_source_lite_with_schema_attributes.go @@ -53,7 +53,7 @@ func NewNonEmployeeSourceLiteWithSchemaAttributesWithDefaults() *NonEmployeeSour // GetId returns the Id field value if set, zero value otherwise. func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -63,7 +63,7 @@ func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -71,7 +71,7 @@ func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *NonEmployeeSourceLiteWithSchemaAttributes) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -85,7 +85,7 @@ func (o *NonEmployeeSourceLiteWithSchemaAttributes) SetId(v string) { // GetSourceId returns the SourceId field value if set, zero value otherwise. func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetSourceId() string { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { var ret string return ret } @@ -95,7 +95,7 @@ func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetSourceId() string { // GetSourceIdOk returns a tuple with the SourceId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetSourceIdOk() (*string, bool) { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { return nil, false } return o.SourceId, true @@ -103,7 +103,7 @@ func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetSourceIdOk() (*string, bo // HasSourceId returns a boolean if a field has been set. func (o *NonEmployeeSourceLiteWithSchemaAttributes) HasSourceId() bool { - if o != nil && !isNil(o.SourceId) { + if o != nil && !IsNil(o.SourceId) { return true } @@ -117,7 +117,7 @@ func (o *NonEmployeeSourceLiteWithSchemaAttributes) SetSourceId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -127,7 +127,7 @@ func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -135,7 +135,7 @@ func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetNameOk() (*string, bool) // HasName returns a boolean if a field has been set. func (o *NonEmployeeSourceLiteWithSchemaAttributes) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -149,7 +149,7 @@ func (o *NonEmployeeSourceLiteWithSchemaAttributes) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -159,7 +159,7 @@ func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -167,7 +167,7 @@ func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetDescriptionOk() (*string, // HasDescription returns a boolean if a field has been set. func (o *NonEmployeeSourceLiteWithSchemaAttributes) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -181,7 +181,7 @@ func (o *NonEmployeeSourceLiteWithSchemaAttributes) SetDescription(v string) { // GetSchemaAttributes returns the SchemaAttributes field value if set, zero value otherwise. func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetSchemaAttributes() []NonEmployeeSchemaAttribute { - if o == nil || isNil(o.SchemaAttributes) { + if o == nil || IsNil(o.SchemaAttributes) { var ret []NonEmployeeSchemaAttribute return ret } @@ -191,7 +191,7 @@ func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetSchemaAttributes() []NonE // GetSchemaAttributesOk returns a tuple with the SchemaAttributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetSchemaAttributesOk() ([]NonEmployeeSchemaAttribute, bool) { - if o == nil || isNil(o.SchemaAttributes) { + if o == nil || IsNil(o.SchemaAttributes) { return nil, false } return o.SchemaAttributes, true @@ -199,7 +199,7 @@ func (o *NonEmployeeSourceLiteWithSchemaAttributes) GetSchemaAttributesOk() ([]N // HasSchemaAttributes returns a boolean if a field has been set. func (o *NonEmployeeSourceLiteWithSchemaAttributes) HasSchemaAttributes() bool { - if o != nil && !isNil(o.SchemaAttributes) { + if o != nil && !IsNil(o.SchemaAttributes) { return true } @@ -221,19 +221,19 @@ func (o NonEmployeeSourceLiteWithSchemaAttributes) MarshalJSON() ([]byte, error) func (o NonEmployeeSourceLiteWithSchemaAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.SourceId) { + if !IsNil(o.SourceId) { toSerialize["sourceId"] = o.SourceId } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.SchemaAttributes) { + if !IsNil(o.SchemaAttributes) { toSerialize["schemaAttributes"] = o.SchemaAttributes } @@ -244,16 +244,20 @@ func (o NonEmployeeSourceLiteWithSchemaAttributes) ToMap() (map[string]interface return toSerialize, nil } -func (o *NonEmployeeSourceLiteWithSchemaAttributes) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeSourceLiteWithSchemaAttributes) UnmarshalJSON(data []byte) (err error) { varNonEmployeeSourceLiteWithSchemaAttributes := _NonEmployeeSourceLiteWithSchemaAttributes{} - if err = json.Unmarshal(bytes, &varNonEmployeeSourceLiteWithSchemaAttributes); err == nil { + err = json.Unmarshal(data, &varNonEmployeeSourceLiteWithSchemaAttributes) + + if err != nil { + return err + } + *o = NonEmployeeSourceLiteWithSchemaAttributes(varNonEmployeeSourceLiteWithSchemaAttributes) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "sourceId") delete(additionalProperties, "name") diff --git a/api_v3/model_non_employee_source_request_body.go b/api_v3/model_non_employee_source_request_body.go index 9580e982c..c12a916fb 100644 --- a/api_v3/model_non_employee_source_request_body.go +++ b/api_v3/model_non_employee_source_request_body.go @@ -130,7 +130,7 @@ func (o *NonEmployeeSourceRequestBody) SetOwner(v NonEmployeeIdnUserRequest) { // GetManagementWorkgroup returns the ManagementWorkgroup field value if set, zero value otherwise. func (o *NonEmployeeSourceRequestBody) GetManagementWorkgroup() string { - if o == nil || isNil(o.ManagementWorkgroup) { + if o == nil || IsNil(o.ManagementWorkgroup) { var ret string return ret } @@ -140,7 +140,7 @@ func (o *NonEmployeeSourceRequestBody) GetManagementWorkgroup() string { // GetManagementWorkgroupOk returns a tuple with the ManagementWorkgroup field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceRequestBody) GetManagementWorkgroupOk() (*string, bool) { - if o == nil || isNil(o.ManagementWorkgroup) { + if o == nil || IsNil(o.ManagementWorkgroup) { return nil, false } return o.ManagementWorkgroup, true @@ -148,7 +148,7 @@ func (o *NonEmployeeSourceRequestBody) GetManagementWorkgroupOk() (*string, bool // HasManagementWorkgroup returns a boolean if a field has been set. func (o *NonEmployeeSourceRequestBody) HasManagementWorkgroup() bool { - if o != nil && !isNil(o.ManagementWorkgroup) { + if o != nil && !IsNil(o.ManagementWorkgroup) { return true } @@ -162,7 +162,7 @@ func (o *NonEmployeeSourceRequestBody) SetManagementWorkgroup(v string) { // GetApprovers returns the Approvers field value if set, zero value otherwise. func (o *NonEmployeeSourceRequestBody) GetApprovers() []NonEmployeeIdnUserRequest { - if o == nil || isNil(o.Approvers) { + if o == nil || IsNil(o.Approvers) { var ret []NonEmployeeIdnUserRequest return ret } @@ -172,7 +172,7 @@ func (o *NonEmployeeSourceRequestBody) GetApprovers() []NonEmployeeIdnUserReques // GetApproversOk returns a tuple with the Approvers field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceRequestBody) GetApproversOk() ([]NonEmployeeIdnUserRequest, bool) { - if o == nil || isNil(o.Approvers) { + if o == nil || IsNil(o.Approvers) { return nil, false } return o.Approvers, true @@ -180,7 +180,7 @@ func (o *NonEmployeeSourceRequestBody) GetApproversOk() ([]NonEmployeeIdnUserReq // HasApprovers returns a boolean if a field has been set. func (o *NonEmployeeSourceRequestBody) HasApprovers() bool { - if o != nil && !isNil(o.Approvers) { + if o != nil && !IsNil(o.Approvers) { return true } @@ -194,7 +194,7 @@ func (o *NonEmployeeSourceRequestBody) SetApprovers(v []NonEmployeeIdnUserReques // GetAccountManagers returns the AccountManagers field value if set, zero value otherwise. func (o *NonEmployeeSourceRequestBody) GetAccountManagers() []NonEmployeeIdnUserRequest { - if o == nil || isNil(o.AccountManagers) { + if o == nil || IsNil(o.AccountManagers) { var ret []NonEmployeeIdnUserRequest return ret } @@ -204,7 +204,7 @@ func (o *NonEmployeeSourceRequestBody) GetAccountManagers() []NonEmployeeIdnUser // GetAccountManagersOk returns a tuple with the AccountManagers field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceRequestBody) GetAccountManagersOk() ([]NonEmployeeIdnUserRequest, bool) { - if o == nil || isNil(o.AccountManagers) { + if o == nil || IsNil(o.AccountManagers) { return nil, false } return o.AccountManagers, true @@ -212,7 +212,7 @@ func (o *NonEmployeeSourceRequestBody) GetAccountManagersOk() ([]NonEmployeeIdnU // HasAccountManagers returns a boolean if a field has been set. func (o *NonEmployeeSourceRequestBody) HasAccountManagers() bool { - if o != nil && !isNil(o.AccountManagers) { + if o != nil && !IsNil(o.AccountManagers) { return true } @@ -237,13 +237,13 @@ func (o NonEmployeeSourceRequestBody) ToMap() (map[string]interface{}, error) { toSerialize["name"] = o.Name toSerialize["description"] = o.Description toSerialize["owner"] = o.Owner - if !isNil(o.ManagementWorkgroup) { + if !IsNil(o.ManagementWorkgroup) { toSerialize["managementWorkgroup"] = o.ManagementWorkgroup } - if !isNil(o.Approvers) { + if !IsNil(o.Approvers) { toSerialize["approvers"] = o.Approvers } - if !isNil(o.AccountManagers) { + if !IsNil(o.AccountManagers) { toSerialize["accountManagers"] = o.AccountManagers } @@ -254,8 +254,8 @@ func (o NonEmployeeSourceRequestBody) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeSourceRequestBody) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *NonEmployeeSourceRequestBody) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -266,7 +266,7 @@ func (o *NonEmployeeSourceRequestBody) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -280,13 +280,17 @@ func (o *NonEmployeeSourceRequestBody) UnmarshalJSON(bytes []byte) (err error) { varNonEmployeeSourceRequestBody := _NonEmployeeSourceRequestBody{} - if err = json.Unmarshal(bytes, &varNonEmployeeSourceRequestBody); err == nil { + err = json.Unmarshal(data, &varNonEmployeeSourceRequestBody) + + if err != nil { + return err + } + *o = NonEmployeeSourceRequestBody(varNonEmployeeSourceRequestBody) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "description") delete(additionalProperties, "owner") diff --git a/api_v3/model_non_employee_source_with_cloud_external_id.go b/api_v3/model_non_employee_source_with_cloud_external_id.go index 3436bc970..6b87da49c 100644 --- a/api_v3/model_non_employee_source_with_cloud_external_id.go +++ b/api_v3/model_non_employee_source_with_cloud_external_id.go @@ -62,7 +62,7 @@ func NewNonEmployeeSourceWithCloudExternalIdWithDefaults() *NonEmployeeSourceWit // GetId returns the Id field value if set, zero value otherwise. func (o *NonEmployeeSourceWithCloudExternalId) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -72,7 +72,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceWithCloudExternalId) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -80,7 +80,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *NonEmployeeSourceWithCloudExternalId) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -94,7 +94,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) SetId(v string) { // GetSourceId returns the SourceId field value if set, zero value otherwise. func (o *NonEmployeeSourceWithCloudExternalId) GetSourceId() string { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { var ret string return ret } @@ -104,7 +104,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetSourceId() string { // GetSourceIdOk returns a tuple with the SourceId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceWithCloudExternalId) GetSourceIdOk() (*string, bool) { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { return nil, false } return o.SourceId, true @@ -112,7 +112,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetSourceIdOk() (*string, bool) { // HasSourceId returns a boolean if a field has been set. func (o *NonEmployeeSourceWithCloudExternalId) HasSourceId() bool { - if o != nil && !isNil(o.SourceId) { + if o != nil && !IsNil(o.SourceId) { return true } @@ -126,7 +126,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) SetSourceId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *NonEmployeeSourceWithCloudExternalId) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -136,7 +136,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceWithCloudExternalId) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -144,7 +144,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *NonEmployeeSourceWithCloudExternalId) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -158,7 +158,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *NonEmployeeSourceWithCloudExternalId) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -168,7 +168,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceWithCloudExternalId) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -176,7 +176,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetDescriptionOk() (*string, bool // HasDescription returns a boolean if a field has been set. func (o *NonEmployeeSourceWithCloudExternalId) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -190,7 +190,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) SetDescription(v string) { // GetApprovers returns the Approvers field value if set, zero value otherwise. func (o *NonEmployeeSourceWithCloudExternalId) GetApprovers() []NonEmployeeIdentityReferenceWithId { - if o == nil || isNil(o.Approvers) { + if o == nil || IsNil(o.Approvers) { var ret []NonEmployeeIdentityReferenceWithId return ret } @@ -200,7 +200,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetApprovers() []NonEmployeeIdent // GetApproversOk returns a tuple with the Approvers field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceWithCloudExternalId) GetApproversOk() ([]NonEmployeeIdentityReferenceWithId, bool) { - if o == nil || isNil(o.Approvers) { + if o == nil || IsNil(o.Approvers) { return nil, false } return o.Approvers, true @@ -208,7 +208,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetApproversOk() ([]NonEmployeeId // HasApprovers returns a boolean if a field has been set. func (o *NonEmployeeSourceWithCloudExternalId) HasApprovers() bool { - if o != nil && !isNil(o.Approvers) { + if o != nil && !IsNil(o.Approvers) { return true } @@ -222,7 +222,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) SetApprovers(v []NonEmployeeIdent // GetAccountManagers returns the AccountManagers field value if set, zero value otherwise. func (o *NonEmployeeSourceWithCloudExternalId) GetAccountManagers() []NonEmployeeIdentityReferenceWithId { - if o == nil || isNil(o.AccountManagers) { + if o == nil || IsNil(o.AccountManagers) { var ret []NonEmployeeIdentityReferenceWithId return ret } @@ -232,7 +232,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetAccountManagers() []NonEmploye // GetAccountManagersOk returns a tuple with the AccountManagers field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceWithCloudExternalId) GetAccountManagersOk() ([]NonEmployeeIdentityReferenceWithId, bool) { - if o == nil || isNil(o.AccountManagers) { + if o == nil || IsNil(o.AccountManagers) { return nil, false } return o.AccountManagers, true @@ -240,7 +240,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetAccountManagersOk() ([]NonEmpl // HasAccountManagers returns a boolean if a field has been set. func (o *NonEmployeeSourceWithCloudExternalId) HasAccountManagers() bool { - if o != nil && !isNil(o.AccountManagers) { + if o != nil && !IsNil(o.AccountManagers) { return true } @@ -254,7 +254,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) SetAccountManagers(v []NonEmploye // GetModified returns the Modified field value if set, zero value otherwise. func (o *NonEmployeeSourceWithCloudExternalId) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -264,7 +264,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceWithCloudExternalId) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -272,7 +272,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetModifiedOk() (*time.Time, bool // HasModified returns a boolean if a field has been set. func (o *NonEmployeeSourceWithCloudExternalId) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -286,7 +286,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) SetModified(v time.Time) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *NonEmployeeSourceWithCloudExternalId) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -296,7 +296,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceWithCloudExternalId) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -304,7 +304,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetCreatedOk() (*time.Time, bool) // HasCreated returns a boolean if a field has been set. func (o *NonEmployeeSourceWithCloudExternalId) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -318,7 +318,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) SetCreated(v time.Time) { // GetCloudExternalId returns the CloudExternalId field value if set, zero value otherwise. func (o *NonEmployeeSourceWithCloudExternalId) GetCloudExternalId() string { - if o == nil || isNil(o.CloudExternalId) { + if o == nil || IsNil(o.CloudExternalId) { var ret string return ret } @@ -328,7 +328,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetCloudExternalId() string { // GetCloudExternalIdOk returns a tuple with the CloudExternalId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceWithCloudExternalId) GetCloudExternalIdOk() (*string, bool) { - if o == nil || isNil(o.CloudExternalId) { + if o == nil || IsNil(o.CloudExternalId) { return nil, false } return o.CloudExternalId, true @@ -336,7 +336,7 @@ func (o *NonEmployeeSourceWithCloudExternalId) GetCloudExternalIdOk() (*string, // HasCloudExternalId returns a boolean if a field has been set. func (o *NonEmployeeSourceWithCloudExternalId) HasCloudExternalId() bool { - if o != nil && !isNil(o.CloudExternalId) { + if o != nil && !IsNil(o.CloudExternalId) { return true } @@ -358,31 +358,31 @@ func (o NonEmployeeSourceWithCloudExternalId) MarshalJSON() ([]byte, error) { func (o NonEmployeeSourceWithCloudExternalId) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.SourceId) { + if !IsNil(o.SourceId) { toSerialize["sourceId"] = o.SourceId } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.Approvers) { + if !IsNil(o.Approvers) { toSerialize["approvers"] = o.Approvers } - if !isNil(o.AccountManagers) { + if !IsNil(o.AccountManagers) { toSerialize["accountManagers"] = o.AccountManagers } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.CloudExternalId) { + if !IsNil(o.CloudExternalId) { toSerialize["cloudExternalId"] = o.CloudExternalId } @@ -393,16 +393,20 @@ func (o NonEmployeeSourceWithCloudExternalId) ToMap() (map[string]interface{}, e return toSerialize, nil } -func (o *NonEmployeeSourceWithCloudExternalId) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeSourceWithCloudExternalId) UnmarshalJSON(data []byte) (err error) { varNonEmployeeSourceWithCloudExternalId := _NonEmployeeSourceWithCloudExternalId{} - if err = json.Unmarshal(bytes, &varNonEmployeeSourceWithCloudExternalId); err == nil { + err = json.Unmarshal(data, &varNonEmployeeSourceWithCloudExternalId) + + if err != nil { + return err + } + *o = NonEmployeeSourceWithCloudExternalId(varNonEmployeeSourceWithCloudExternalId) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "sourceId") delete(additionalProperties, "name") diff --git a/api_v3/model_non_employee_source_with_ne_count.go b/api_v3/model_non_employee_source_with_ne_count.go index 20eb307da..5fa92f4a1 100644 --- a/api_v3/model_non_employee_source_with_ne_count.go +++ b/api_v3/model_non_employee_source_with_ne_count.go @@ -62,7 +62,7 @@ func NewNonEmployeeSourceWithNECountWithDefaults() *NonEmployeeSourceWithNECount // GetId returns the Id field value if set, zero value otherwise. func (o *NonEmployeeSourceWithNECount) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -72,7 +72,7 @@ func (o *NonEmployeeSourceWithNECount) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceWithNECount) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -80,7 +80,7 @@ func (o *NonEmployeeSourceWithNECount) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *NonEmployeeSourceWithNECount) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -94,7 +94,7 @@ func (o *NonEmployeeSourceWithNECount) SetId(v string) { // GetSourceId returns the SourceId field value if set, zero value otherwise. func (o *NonEmployeeSourceWithNECount) GetSourceId() string { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { var ret string return ret } @@ -104,7 +104,7 @@ func (o *NonEmployeeSourceWithNECount) GetSourceId() string { // GetSourceIdOk returns a tuple with the SourceId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceWithNECount) GetSourceIdOk() (*string, bool) { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { return nil, false } return o.SourceId, true @@ -112,7 +112,7 @@ func (o *NonEmployeeSourceWithNECount) GetSourceIdOk() (*string, bool) { // HasSourceId returns a boolean if a field has been set. func (o *NonEmployeeSourceWithNECount) HasSourceId() bool { - if o != nil && !isNil(o.SourceId) { + if o != nil && !IsNil(o.SourceId) { return true } @@ -126,7 +126,7 @@ func (o *NonEmployeeSourceWithNECount) SetSourceId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *NonEmployeeSourceWithNECount) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -136,7 +136,7 @@ func (o *NonEmployeeSourceWithNECount) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceWithNECount) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -144,7 +144,7 @@ func (o *NonEmployeeSourceWithNECount) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *NonEmployeeSourceWithNECount) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -158,7 +158,7 @@ func (o *NonEmployeeSourceWithNECount) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *NonEmployeeSourceWithNECount) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -168,7 +168,7 @@ func (o *NonEmployeeSourceWithNECount) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceWithNECount) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -176,7 +176,7 @@ func (o *NonEmployeeSourceWithNECount) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *NonEmployeeSourceWithNECount) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -190,7 +190,7 @@ func (o *NonEmployeeSourceWithNECount) SetDescription(v string) { // GetApprovers returns the Approvers field value if set, zero value otherwise. func (o *NonEmployeeSourceWithNECount) GetApprovers() []NonEmployeeIdentityReferenceWithId { - if o == nil || isNil(o.Approvers) { + if o == nil || IsNil(o.Approvers) { var ret []NonEmployeeIdentityReferenceWithId return ret } @@ -200,7 +200,7 @@ func (o *NonEmployeeSourceWithNECount) GetApprovers() []NonEmployeeIdentityRefer // GetApproversOk returns a tuple with the Approvers field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceWithNECount) GetApproversOk() ([]NonEmployeeIdentityReferenceWithId, bool) { - if o == nil || isNil(o.Approvers) { + if o == nil || IsNil(o.Approvers) { return nil, false } return o.Approvers, true @@ -208,7 +208,7 @@ func (o *NonEmployeeSourceWithNECount) GetApproversOk() ([]NonEmployeeIdentityRe // HasApprovers returns a boolean if a field has been set. func (o *NonEmployeeSourceWithNECount) HasApprovers() bool { - if o != nil && !isNil(o.Approvers) { + if o != nil && !IsNil(o.Approvers) { return true } @@ -222,7 +222,7 @@ func (o *NonEmployeeSourceWithNECount) SetApprovers(v []NonEmployeeIdentityRefer // GetAccountManagers returns the AccountManagers field value if set, zero value otherwise. func (o *NonEmployeeSourceWithNECount) GetAccountManagers() []NonEmployeeIdentityReferenceWithId { - if o == nil || isNil(o.AccountManagers) { + if o == nil || IsNil(o.AccountManagers) { var ret []NonEmployeeIdentityReferenceWithId return ret } @@ -232,7 +232,7 @@ func (o *NonEmployeeSourceWithNECount) GetAccountManagers() []NonEmployeeIdentit // GetAccountManagersOk returns a tuple with the AccountManagers field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceWithNECount) GetAccountManagersOk() ([]NonEmployeeIdentityReferenceWithId, bool) { - if o == nil || isNil(o.AccountManagers) { + if o == nil || IsNil(o.AccountManagers) { return nil, false } return o.AccountManagers, true @@ -240,7 +240,7 @@ func (o *NonEmployeeSourceWithNECount) GetAccountManagersOk() ([]NonEmployeeIden // HasAccountManagers returns a boolean if a field has been set. func (o *NonEmployeeSourceWithNECount) HasAccountManagers() bool { - if o != nil && !isNil(o.AccountManagers) { + if o != nil && !IsNil(o.AccountManagers) { return true } @@ -254,7 +254,7 @@ func (o *NonEmployeeSourceWithNECount) SetAccountManagers(v []NonEmployeeIdentit // GetModified returns the Modified field value if set, zero value otherwise. func (o *NonEmployeeSourceWithNECount) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -264,7 +264,7 @@ func (o *NonEmployeeSourceWithNECount) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceWithNECount) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -272,7 +272,7 @@ func (o *NonEmployeeSourceWithNECount) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *NonEmployeeSourceWithNECount) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -286,7 +286,7 @@ func (o *NonEmployeeSourceWithNECount) SetModified(v time.Time) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *NonEmployeeSourceWithNECount) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -296,7 +296,7 @@ func (o *NonEmployeeSourceWithNECount) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NonEmployeeSourceWithNECount) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -304,7 +304,7 @@ func (o *NonEmployeeSourceWithNECount) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *NonEmployeeSourceWithNECount) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -318,7 +318,7 @@ func (o *NonEmployeeSourceWithNECount) SetCreated(v time.Time) { // GetNonEmployeeCount returns the NonEmployeeCount field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NonEmployeeSourceWithNECount) GetNonEmployeeCount() int32 { - if o == nil || isNil(o.NonEmployeeCount.Get()) { + if o == nil || IsNil(o.NonEmployeeCount.Get()) { var ret int32 return ret } @@ -368,28 +368,28 @@ func (o NonEmployeeSourceWithNECount) MarshalJSON() ([]byte, error) { func (o NonEmployeeSourceWithNECount) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.SourceId) { + if !IsNil(o.SourceId) { toSerialize["sourceId"] = o.SourceId } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.Approvers) { + if !IsNil(o.Approvers) { toSerialize["approvers"] = o.Approvers } - if !isNil(o.AccountManagers) { + if !IsNil(o.AccountManagers) { toSerialize["accountManagers"] = o.AccountManagers } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } if o.NonEmployeeCount.IsSet() { @@ -403,16 +403,20 @@ func (o NonEmployeeSourceWithNECount) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *NonEmployeeSourceWithNECount) UnmarshalJSON(bytes []byte) (err error) { +func (o *NonEmployeeSourceWithNECount) UnmarshalJSON(data []byte) (err error) { varNonEmployeeSourceWithNECount := _NonEmployeeSourceWithNECount{} - if err = json.Unmarshal(bytes, &varNonEmployeeSourceWithNECount); err == nil { + err = json.Unmarshal(data, &varNonEmployeeSourceWithNECount) + + if err != nil { + return err + } + *o = NonEmployeeSourceWithNECount(varNonEmployeeSourceWithNECount) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "sourceId") delete(additionalProperties, "name") diff --git a/api_v3/model_object_import_result.go b/api_v3/model_object_import_result.go index 410ec3d72..dfada3134 100644 --- a/api_v3/model_object_import_result.go +++ b/api_v3/model_object_import_result.go @@ -172,8 +172,8 @@ func (o ObjectImportResult) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ObjectImportResult) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ObjectImportResult) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -185,7 +185,7 @@ func (o *ObjectImportResult) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -199,13 +199,17 @@ func (o *ObjectImportResult) UnmarshalJSON(bytes []byte) (err error) { varObjectImportResult := _ObjectImportResult{} - if err = json.Unmarshal(bytes, &varObjectImportResult); err == nil { + err = json.Unmarshal(data, &varObjectImportResult) + + if err != nil { + return err + } + *o = ObjectImportResult(varObjectImportResult) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "infos") delete(additionalProperties, "warnings") delete(additionalProperties, "errors") diff --git a/api_v3/model_object_mapping_bulk_create_request.go b/api_v3/model_object_mapping_bulk_create_request.go index b415b251b..c701cd987 100644 --- a/api_v3/model_object_mapping_bulk_create_request.go +++ b/api_v3/model_object_mapping_bulk_create_request.go @@ -87,8 +87,8 @@ func (o ObjectMappingBulkCreateRequest) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *ObjectMappingBulkCreateRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ObjectMappingBulkCreateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -97,7 +97,7 @@ func (o *ObjectMappingBulkCreateRequest) UnmarshalJSON(bytes []byte) (err error) allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -111,13 +111,17 @@ func (o *ObjectMappingBulkCreateRequest) UnmarshalJSON(bytes []byte) (err error) varObjectMappingBulkCreateRequest := _ObjectMappingBulkCreateRequest{} - if err = json.Unmarshal(bytes, &varObjectMappingBulkCreateRequest); err == nil { + err = json.Unmarshal(data, &varObjectMappingBulkCreateRequest) + + if err != nil { + return err + } + *o = ObjectMappingBulkCreateRequest(varObjectMappingBulkCreateRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "newObjectMappings") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_object_mapping_bulk_create_response.go b/api_v3/model_object_mapping_bulk_create_response.go index b5469fb45..d4e144cc5 100644 --- a/api_v3/model_object_mapping_bulk_create_response.go +++ b/api_v3/model_object_mapping_bulk_create_response.go @@ -44,7 +44,7 @@ func NewObjectMappingBulkCreateResponseWithDefaults() *ObjectMappingBulkCreateRe // GetAddedObjects returns the AddedObjects field value if set, zero value otherwise. func (o *ObjectMappingBulkCreateResponse) GetAddedObjects() []ObjectMappingResponse { - if o == nil || isNil(o.AddedObjects) { + if o == nil || IsNil(o.AddedObjects) { var ret []ObjectMappingResponse return ret } @@ -54,7 +54,7 @@ func (o *ObjectMappingBulkCreateResponse) GetAddedObjects() []ObjectMappingRespo // GetAddedObjectsOk returns a tuple with the AddedObjects field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ObjectMappingBulkCreateResponse) GetAddedObjectsOk() ([]ObjectMappingResponse, bool) { - if o == nil || isNil(o.AddedObjects) { + if o == nil || IsNil(o.AddedObjects) { return nil, false } return o.AddedObjects, true @@ -62,7 +62,7 @@ func (o *ObjectMappingBulkCreateResponse) GetAddedObjectsOk() ([]ObjectMappingRe // HasAddedObjects returns a boolean if a field has been set. func (o *ObjectMappingBulkCreateResponse) HasAddedObjects() bool { - if o != nil && !isNil(o.AddedObjects) { + if o != nil && !IsNil(o.AddedObjects) { return true } @@ -84,7 +84,7 @@ func (o ObjectMappingBulkCreateResponse) MarshalJSON() ([]byte, error) { func (o ObjectMappingBulkCreateResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.AddedObjects) { + if !IsNil(o.AddedObjects) { toSerialize["addedObjects"] = o.AddedObjects } @@ -95,16 +95,20 @@ func (o ObjectMappingBulkCreateResponse) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *ObjectMappingBulkCreateResponse) UnmarshalJSON(bytes []byte) (err error) { +func (o *ObjectMappingBulkCreateResponse) UnmarshalJSON(data []byte) (err error) { varObjectMappingBulkCreateResponse := _ObjectMappingBulkCreateResponse{} - if err = json.Unmarshal(bytes, &varObjectMappingBulkCreateResponse); err == nil { + err = json.Unmarshal(data, &varObjectMappingBulkCreateResponse) + + if err != nil { + return err + } + *o = ObjectMappingBulkCreateResponse(varObjectMappingBulkCreateResponse) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "addedObjects") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_object_mapping_bulk_patch_request.go b/api_v3/model_object_mapping_bulk_patch_request.go index 27d940118..8b7d6b72c 100644 --- a/api_v3/model_object_mapping_bulk_patch_request.go +++ b/api_v3/model_object_mapping_bulk_patch_request.go @@ -88,8 +88,8 @@ func (o ObjectMappingBulkPatchRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ObjectMappingBulkPatchRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ObjectMappingBulkPatchRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -98,7 +98,7 @@ func (o *ObjectMappingBulkPatchRequest) UnmarshalJSON(bytes []byte) (err error) allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -112,13 +112,17 @@ func (o *ObjectMappingBulkPatchRequest) UnmarshalJSON(bytes []byte) (err error) varObjectMappingBulkPatchRequest := _ObjectMappingBulkPatchRequest{} - if err = json.Unmarshal(bytes, &varObjectMappingBulkPatchRequest); err == nil { + err = json.Unmarshal(data, &varObjectMappingBulkPatchRequest) + + if err != nil { + return err + } + *o = ObjectMappingBulkPatchRequest(varObjectMappingBulkPatchRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "patches") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_object_mapping_bulk_patch_response.go b/api_v3/model_object_mapping_bulk_patch_response.go index 5fc543e83..325c49f24 100644 --- a/api_v3/model_object_mapping_bulk_patch_response.go +++ b/api_v3/model_object_mapping_bulk_patch_response.go @@ -44,7 +44,7 @@ func NewObjectMappingBulkPatchResponseWithDefaults() *ObjectMappingBulkPatchResp // GetPatchedObjects returns the PatchedObjects field value if set, zero value otherwise. func (o *ObjectMappingBulkPatchResponse) GetPatchedObjects() []ObjectMappingResponse { - if o == nil || isNil(o.PatchedObjects) { + if o == nil || IsNil(o.PatchedObjects) { var ret []ObjectMappingResponse return ret } @@ -54,7 +54,7 @@ func (o *ObjectMappingBulkPatchResponse) GetPatchedObjects() []ObjectMappingResp // GetPatchedObjectsOk returns a tuple with the PatchedObjects field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ObjectMappingBulkPatchResponse) GetPatchedObjectsOk() ([]ObjectMappingResponse, bool) { - if o == nil || isNil(o.PatchedObjects) { + if o == nil || IsNil(o.PatchedObjects) { return nil, false } return o.PatchedObjects, true @@ -62,7 +62,7 @@ func (o *ObjectMappingBulkPatchResponse) GetPatchedObjectsOk() ([]ObjectMappingR // HasPatchedObjects returns a boolean if a field has been set. func (o *ObjectMappingBulkPatchResponse) HasPatchedObjects() bool { - if o != nil && !isNil(o.PatchedObjects) { + if o != nil && !IsNil(o.PatchedObjects) { return true } @@ -84,7 +84,7 @@ func (o ObjectMappingBulkPatchResponse) MarshalJSON() ([]byte, error) { func (o ObjectMappingBulkPatchResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.PatchedObjects) { + if !IsNil(o.PatchedObjects) { toSerialize["patchedObjects"] = o.PatchedObjects } @@ -95,16 +95,20 @@ func (o ObjectMappingBulkPatchResponse) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *ObjectMappingBulkPatchResponse) UnmarshalJSON(bytes []byte) (err error) { +func (o *ObjectMappingBulkPatchResponse) UnmarshalJSON(data []byte) (err error) { varObjectMappingBulkPatchResponse := _ObjectMappingBulkPatchResponse{} - if err = json.Unmarshal(bytes, &varObjectMappingBulkPatchResponse); err == nil { + err = json.Unmarshal(data, &varObjectMappingBulkPatchResponse) + + if err != nil { + return err + } + *o = ObjectMappingBulkPatchResponse(varObjectMappingBulkPatchResponse) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "patchedObjects") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_object_mapping_request.go b/api_v3/model_object_mapping_request.go index 3bd7bf235..291eb3bb9 100644 --- a/api_v3/model_object_mapping_request.go +++ b/api_v3/model_object_mapping_request.go @@ -158,7 +158,7 @@ func (o *ObjectMappingRequest) SetTargetValue(v string) { // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *ObjectMappingRequest) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -168,7 +168,7 @@ func (o *ObjectMappingRequest) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ObjectMappingRequest) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -176,7 +176,7 @@ func (o *ObjectMappingRequest) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *ObjectMappingRequest) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -202,7 +202,7 @@ func (o ObjectMappingRequest) ToMap() (map[string]interface{}, error) { toSerialize["jsonPath"] = o.JsonPath toSerialize["sourceValue"] = o.SourceValue toSerialize["targetValue"] = o.TargetValue - if !isNil(o.Enabled) { + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } @@ -213,8 +213,8 @@ func (o ObjectMappingRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ObjectMappingRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ObjectMappingRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -226,7 +226,7 @@ func (o *ObjectMappingRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -240,13 +240,17 @@ func (o *ObjectMappingRequest) UnmarshalJSON(bytes []byte) (err error) { varObjectMappingRequest := _ObjectMappingRequest{} - if err = json.Unmarshal(bytes, &varObjectMappingRequest); err == nil { + err = json.Unmarshal(data, &varObjectMappingRequest) + + if err != nil { + return err + } + *o = ObjectMappingRequest(varObjectMappingRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "objectType") delete(additionalProperties, "jsonPath") delete(additionalProperties, "sourceValue") diff --git a/api_v3/model_object_mapping_response.go b/api_v3/model_object_mapping_response.go index 44266a82d..adb032109 100644 --- a/api_v3/model_object_mapping_response.go +++ b/api_v3/model_object_mapping_response.go @@ -63,7 +63,7 @@ func NewObjectMappingResponseWithDefaults() *ObjectMappingResponse { // GetObjectMappingId returns the ObjectMappingId field value if set, zero value otherwise. func (o *ObjectMappingResponse) GetObjectMappingId() string { - if o == nil || isNil(o.ObjectMappingId) { + if o == nil || IsNil(o.ObjectMappingId) { var ret string return ret } @@ -73,7 +73,7 @@ func (o *ObjectMappingResponse) GetObjectMappingId() string { // GetObjectMappingIdOk returns a tuple with the ObjectMappingId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ObjectMappingResponse) GetObjectMappingIdOk() (*string, bool) { - if o == nil || isNil(o.ObjectMappingId) { + if o == nil || IsNil(o.ObjectMappingId) { return nil, false } return o.ObjectMappingId, true @@ -81,7 +81,7 @@ func (o *ObjectMappingResponse) GetObjectMappingIdOk() (*string, bool) { // HasObjectMappingId returns a boolean if a field has been set. func (o *ObjectMappingResponse) HasObjectMappingId() bool { - if o != nil && !isNil(o.ObjectMappingId) { + if o != nil && !IsNil(o.ObjectMappingId) { return true } @@ -95,7 +95,7 @@ func (o *ObjectMappingResponse) SetObjectMappingId(v string) { // GetObjectType returns the ObjectType field value if set, zero value otherwise. func (o *ObjectMappingResponse) GetObjectType() string { - if o == nil || isNil(o.ObjectType) { + if o == nil || IsNil(o.ObjectType) { var ret string return ret } @@ -105,7 +105,7 @@ func (o *ObjectMappingResponse) GetObjectType() string { // GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ObjectMappingResponse) GetObjectTypeOk() (*string, bool) { - if o == nil || isNil(o.ObjectType) { + if o == nil || IsNil(o.ObjectType) { return nil, false } return o.ObjectType, true @@ -113,7 +113,7 @@ func (o *ObjectMappingResponse) GetObjectTypeOk() (*string, bool) { // HasObjectType returns a boolean if a field has been set. func (o *ObjectMappingResponse) HasObjectType() bool { - if o != nil && !isNil(o.ObjectType) { + if o != nil && !IsNil(o.ObjectType) { return true } @@ -127,7 +127,7 @@ func (o *ObjectMappingResponse) SetObjectType(v string) { // GetJsonPath returns the JsonPath field value if set, zero value otherwise. func (o *ObjectMappingResponse) GetJsonPath() string { - if o == nil || isNil(o.JsonPath) { + if o == nil || IsNil(o.JsonPath) { var ret string return ret } @@ -137,7 +137,7 @@ func (o *ObjectMappingResponse) GetJsonPath() string { // GetJsonPathOk returns a tuple with the JsonPath field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ObjectMappingResponse) GetJsonPathOk() (*string, bool) { - if o == nil || isNil(o.JsonPath) { + if o == nil || IsNil(o.JsonPath) { return nil, false } return o.JsonPath, true @@ -145,7 +145,7 @@ func (o *ObjectMappingResponse) GetJsonPathOk() (*string, bool) { // HasJsonPath returns a boolean if a field has been set. func (o *ObjectMappingResponse) HasJsonPath() bool { - if o != nil && !isNil(o.JsonPath) { + if o != nil && !IsNil(o.JsonPath) { return true } @@ -159,7 +159,7 @@ func (o *ObjectMappingResponse) SetJsonPath(v string) { // GetSourceValue returns the SourceValue field value if set, zero value otherwise. func (o *ObjectMappingResponse) GetSourceValue() string { - if o == nil || isNil(o.SourceValue) { + if o == nil || IsNil(o.SourceValue) { var ret string return ret } @@ -169,7 +169,7 @@ func (o *ObjectMappingResponse) GetSourceValue() string { // GetSourceValueOk returns a tuple with the SourceValue field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ObjectMappingResponse) GetSourceValueOk() (*string, bool) { - if o == nil || isNil(o.SourceValue) { + if o == nil || IsNil(o.SourceValue) { return nil, false } return o.SourceValue, true @@ -177,7 +177,7 @@ func (o *ObjectMappingResponse) GetSourceValueOk() (*string, bool) { // HasSourceValue returns a boolean if a field has been set. func (o *ObjectMappingResponse) HasSourceValue() bool { - if o != nil && !isNil(o.SourceValue) { + if o != nil && !IsNil(o.SourceValue) { return true } @@ -191,7 +191,7 @@ func (o *ObjectMappingResponse) SetSourceValue(v string) { // GetTargetValue returns the TargetValue field value if set, zero value otherwise. func (o *ObjectMappingResponse) GetTargetValue() string { - if o == nil || isNil(o.TargetValue) { + if o == nil || IsNil(o.TargetValue) { var ret string return ret } @@ -201,7 +201,7 @@ func (o *ObjectMappingResponse) GetTargetValue() string { // GetTargetValueOk returns a tuple with the TargetValue field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ObjectMappingResponse) GetTargetValueOk() (*string, bool) { - if o == nil || isNil(o.TargetValue) { + if o == nil || IsNil(o.TargetValue) { return nil, false } return o.TargetValue, true @@ -209,7 +209,7 @@ func (o *ObjectMappingResponse) GetTargetValueOk() (*string, bool) { // HasTargetValue returns a boolean if a field has been set. func (o *ObjectMappingResponse) HasTargetValue() bool { - if o != nil && !isNil(o.TargetValue) { + if o != nil && !IsNil(o.TargetValue) { return true } @@ -223,7 +223,7 @@ func (o *ObjectMappingResponse) SetTargetValue(v string) { // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *ObjectMappingResponse) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -233,7 +233,7 @@ func (o *ObjectMappingResponse) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ObjectMappingResponse) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -241,7 +241,7 @@ func (o *ObjectMappingResponse) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *ObjectMappingResponse) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -255,7 +255,7 @@ func (o *ObjectMappingResponse) SetEnabled(v bool) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *ObjectMappingResponse) GetCreated() string { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret string return ret } @@ -265,7 +265,7 @@ func (o *ObjectMappingResponse) GetCreated() string { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ObjectMappingResponse) GetCreatedOk() (*string, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -273,7 +273,7 @@ func (o *ObjectMappingResponse) GetCreatedOk() (*string, bool) { // HasCreated returns a boolean if a field has been set. func (o *ObjectMappingResponse) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -287,7 +287,7 @@ func (o *ObjectMappingResponse) SetCreated(v string) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *ObjectMappingResponse) GetModified() string { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret string return ret } @@ -297,7 +297,7 @@ func (o *ObjectMappingResponse) GetModified() string { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ObjectMappingResponse) GetModifiedOk() (*string, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -305,7 +305,7 @@ func (o *ObjectMappingResponse) GetModifiedOk() (*string, bool) { // HasModified returns a boolean if a field has been set. func (o *ObjectMappingResponse) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -327,28 +327,28 @@ func (o ObjectMappingResponse) MarshalJSON() ([]byte, error) { func (o ObjectMappingResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.ObjectMappingId) { + if !IsNil(o.ObjectMappingId) { toSerialize["objectMappingId"] = o.ObjectMappingId } - if !isNil(o.ObjectType) { + if !IsNil(o.ObjectType) { toSerialize["objectType"] = o.ObjectType } - if !isNil(o.JsonPath) { + if !IsNil(o.JsonPath) { toSerialize["jsonPath"] = o.JsonPath } - if !isNil(o.SourceValue) { + if !IsNil(o.SourceValue) { toSerialize["sourceValue"] = o.SourceValue } - if !isNil(o.TargetValue) { + if !IsNil(o.TargetValue) { toSerialize["targetValue"] = o.TargetValue } - if !isNil(o.Enabled) { + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } @@ -359,16 +359,20 @@ func (o ObjectMappingResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ObjectMappingResponse) UnmarshalJSON(bytes []byte) (err error) { +func (o *ObjectMappingResponse) UnmarshalJSON(data []byte) (err error) { varObjectMappingResponse := _ObjectMappingResponse{} - if err = json.Unmarshal(bytes, &varObjectMappingResponse); err == nil { + err = json.Unmarshal(data, &varObjectMappingResponse) + + if err != nil { + return err + } + *o = ObjectMappingResponse(varObjectMappingResponse) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "objectMappingId") delete(additionalProperties, "objectType") delete(additionalProperties, "jsonPath") diff --git a/api_v3/model_okta_verification_request.go b/api_v3/model_okta_verification_request.go index 0a874b1e7..3cc508785 100644 --- a/api_v3/model_okta_verification_request.go +++ b/api_v3/model_okta_verification_request.go @@ -88,8 +88,8 @@ func (o OktaVerificationRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *OktaVerificationRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *OktaVerificationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -98,7 +98,7 @@ func (o *OktaVerificationRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -112,13 +112,17 @@ func (o *OktaVerificationRequest) UnmarshalJSON(bytes []byte) (err error) { varOktaVerificationRequest := _OktaVerificationRequest{} - if err = json.Unmarshal(bytes, &varOktaVerificationRequest); err == nil { + err = json.Unmarshal(data, &varOktaVerificationRequest) + + if err != nil { + return err + } + *o = OktaVerificationRequest(varOktaVerificationRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "userId") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_original_request.go b/api_v3/model_original_request.go index c1083e993..ed2c78b54 100644 --- a/api_v3/model_original_request.go +++ b/api_v3/model_original_request.go @@ -50,7 +50,7 @@ func NewOriginalRequestWithDefaults() *OriginalRequest { // GetAccountId returns the AccountId field value if set, zero value otherwise. func (o *OriginalRequest) GetAccountId() string { - if o == nil || isNil(o.AccountId) { + if o == nil || IsNil(o.AccountId) { var ret string return ret } @@ -60,7 +60,7 @@ func (o *OriginalRequest) GetAccountId() string { // GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OriginalRequest) GetAccountIdOk() (*string, bool) { - if o == nil || isNil(o.AccountId) { + if o == nil || IsNil(o.AccountId) { return nil, false } return o.AccountId, true @@ -68,7 +68,7 @@ func (o *OriginalRequest) GetAccountIdOk() (*string, bool) { // HasAccountId returns a boolean if a field has been set. func (o *OriginalRequest) HasAccountId() bool { - if o != nil && !isNil(o.AccountId) { + if o != nil && !IsNil(o.AccountId) { return true } @@ -82,7 +82,7 @@ func (o *OriginalRequest) SetAccountId(v string) { // GetAttributeRequests returns the AttributeRequests field value if set, zero value otherwise. func (o *OriginalRequest) GetAttributeRequests() []AttributeRequest { - if o == nil || isNil(o.AttributeRequests) { + if o == nil || IsNil(o.AttributeRequests) { var ret []AttributeRequest return ret } @@ -92,7 +92,7 @@ func (o *OriginalRequest) GetAttributeRequests() []AttributeRequest { // GetAttributeRequestsOk returns a tuple with the AttributeRequests field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OriginalRequest) GetAttributeRequestsOk() ([]AttributeRequest, bool) { - if o == nil || isNil(o.AttributeRequests) { + if o == nil || IsNil(o.AttributeRequests) { return nil, false } return o.AttributeRequests, true @@ -100,7 +100,7 @@ func (o *OriginalRequest) GetAttributeRequestsOk() ([]AttributeRequest, bool) { // HasAttributeRequests returns a boolean if a field has been set. func (o *OriginalRequest) HasAttributeRequests() bool { - if o != nil && !isNil(o.AttributeRequests) { + if o != nil && !IsNil(o.AttributeRequests) { return true } @@ -114,7 +114,7 @@ func (o *OriginalRequest) SetAttributeRequests(v []AttributeRequest) { // GetOp returns the Op field value if set, zero value otherwise. func (o *OriginalRequest) GetOp() string { - if o == nil || isNil(o.Op) { + if o == nil || IsNil(o.Op) { var ret string return ret } @@ -124,7 +124,7 @@ func (o *OriginalRequest) GetOp() string { // GetOpOk returns a tuple with the Op field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OriginalRequest) GetOpOk() (*string, bool) { - if o == nil || isNil(o.Op) { + if o == nil || IsNil(o.Op) { return nil, false } return o.Op, true @@ -132,7 +132,7 @@ func (o *OriginalRequest) GetOpOk() (*string, bool) { // HasOp returns a boolean if a field has been set. func (o *OriginalRequest) HasOp() bool { - if o != nil && !isNil(o.Op) { + if o != nil && !IsNil(o.Op) { return true } @@ -146,7 +146,7 @@ func (o *OriginalRequest) SetOp(v string) { // GetSource returns the Source field value if set, zero value otherwise. func (o *OriginalRequest) GetSource() AccountSource { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { var ret AccountSource return ret } @@ -156,7 +156,7 @@ func (o *OriginalRequest) GetSource() AccountSource { // GetSourceOk returns a tuple with the Source field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OriginalRequest) GetSourceOk() (*AccountSource, bool) { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { return nil, false } return o.Source, true @@ -164,7 +164,7 @@ func (o *OriginalRequest) GetSourceOk() (*AccountSource, bool) { // HasSource returns a boolean if a field has been set. func (o *OriginalRequest) HasSource() bool { - if o != nil && !isNil(o.Source) { + if o != nil && !IsNil(o.Source) { return true } @@ -186,16 +186,16 @@ func (o OriginalRequest) MarshalJSON() ([]byte, error) { func (o OriginalRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.AccountId) { + if !IsNil(o.AccountId) { toSerialize["accountId"] = o.AccountId } - if !isNil(o.AttributeRequests) { + if !IsNil(o.AttributeRequests) { toSerialize["attributeRequests"] = o.AttributeRequests } - if !isNil(o.Op) { + if !IsNil(o.Op) { toSerialize["op"] = o.Op } - if !isNil(o.Source) { + if !IsNil(o.Source) { toSerialize["source"] = o.Source } @@ -206,16 +206,20 @@ func (o OriginalRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *OriginalRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *OriginalRequest) UnmarshalJSON(data []byte) (err error) { varOriginalRequest := _OriginalRequest{} - if err = json.Unmarshal(bytes, &varOriginalRequest); err == nil { + err = json.Unmarshal(data, &varOriginalRequest) + + if err != nil { + return err + } + *o = OriginalRequest(varOriginalRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "accountId") delete(additionalProperties, "attributeRequests") delete(additionalProperties, "op") diff --git a/api_v3/model_orphan_uncorrelated_report_arguments.go b/api_v3/model_orphan_uncorrelated_report_arguments.go index a6f91e98e..fda7e9da8 100644 --- a/api_v3/model_orphan_uncorrelated_report_arguments.go +++ b/api_v3/model_orphan_uncorrelated_report_arguments.go @@ -45,7 +45,7 @@ func NewOrphanUncorrelatedReportArgumentsWithDefaults() *OrphanUncorrelatedRepor // GetSelectedFormats returns the SelectedFormats field value if set, zero value otherwise. func (o *OrphanUncorrelatedReportArguments) GetSelectedFormats() []string { - if o == nil || isNil(o.SelectedFormats) { + if o == nil || IsNil(o.SelectedFormats) { var ret []string return ret } @@ -55,7 +55,7 @@ func (o *OrphanUncorrelatedReportArguments) GetSelectedFormats() []string { // GetSelectedFormatsOk returns a tuple with the SelectedFormats field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OrphanUncorrelatedReportArguments) GetSelectedFormatsOk() ([]string, bool) { - if o == nil || isNil(o.SelectedFormats) { + if o == nil || IsNil(o.SelectedFormats) { return nil, false } return o.SelectedFormats, true @@ -63,7 +63,7 @@ func (o *OrphanUncorrelatedReportArguments) GetSelectedFormatsOk() ([]string, bo // HasSelectedFormats returns a boolean if a field has been set. func (o *OrphanUncorrelatedReportArguments) HasSelectedFormats() bool { - if o != nil && !isNil(o.SelectedFormats) { + if o != nil && !IsNil(o.SelectedFormats) { return true } @@ -85,7 +85,7 @@ func (o OrphanUncorrelatedReportArguments) MarshalJSON() ([]byte, error) { func (o OrphanUncorrelatedReportArguments) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.SelectedFormats) { + if !IsNil(o.SelectedFormats) { toSerialize["selectedFormats"] = o.SelectedFormats } @@ -96,16 +96,20 @@ func (o OrphanUncorrelatedReportArguments) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *OrphanUncorrelatedReportArguments) UnmarshalJSON(bytes []byte) (err error) { +func (o *OrphanUncorrelatedReportArguments) UnmarshalJSON(data []byte) (err error) { varOrphanUncorrelatedReportArguments := _OrphanUncorrelatedReportArguments{} - if err = json.Unmarshal(bytes, &varOrphanUncorrelatedReportArguments); err == nil { + err = json.Unmarshal(data, &varOrphanUncorrelatedReportArguments) + + if err != nil { + return err + } + *o = OrphanUncorrelatedReportArguments(varOrphanUncorrelatedReportArguments) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "selectedFormats") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_owner_dto.go b/api_v3/model_owner_dto.go index 2cfa4b601..3c6041541 100644 --- a/api_v3/model_owner_dto.go +++ b/api_v3/model_owner_dto.go @@ -49,7 +49,7 @@ func NewOwnerDtoWithDefaults() *OwnerDto { // GetType returns the Type field value if set, zero value otherwise. func (o *OwnerDto) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *OwnerDto) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OwnerDto) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *OwnerDto) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *OwnerDto) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *OwnerDto) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *OwnerDto) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *OwnerDto) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OwnerDto) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *OwnerDto) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *OwnerDto) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *OwnerDto) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *OwnerDto) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *OwnerDto) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OwnerDto) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *OwnerDto) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *OwnerDto) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o OwnerDto) MarshalJSON() ([]byte, error) { func (o OwnerDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o OwnerDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *OwnerDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *OwnerDto) UnmarshalJSON(data []byte) (err error) { varOwnerDto := _OwnerDto{} - if err = json.Unmarshal(bytes, &varOwnerDto); err == nil { + err = json.Unmarshal(data, &varOwnerDto) + + if err != nil { + return err + } + *o = OwnerDto(varOwnerDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_owner_reference.go b/api_v3/model_owner_reference.go index a7eaa605d..c1710bb0e 100644 --- a/api_v3/model_owner_reference.go +++ b/api_v3/model_owner_reference.go @@ -49,7 +49,7 @@ func NewOwnerReferenceWithDefaults() *OwnerReference { // GetType returns the Type field value if set, zero value otherwise. func (o *OwnerReference) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *OwnerReference) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OwnerReference) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *OwnerReference) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *OwnerReference) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *OwnerReference) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *OwnerReference) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *OwnerReference) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OwnerReference) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *OwnerReference) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *OwnerReference) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *OwnerReference) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *OwnerReference) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *OwnerReference) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OwnerReference) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *OwnerReference) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *OwnerReference) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o OwnerReference) MarshalJSON() ([]byte, error) { func (o OwnerReference) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o OwnerReference) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *OwnerReference) UnmarshalJSON(bytes []byte) (err error) { +func (o *OwnerReference) UnmarshalJSON(data []byte) (err error) { varOwnerReference := _OwnerReference{} - if err = json.Unmarshal(bytes, &varOwnerReference); err == nil { + err = json.Unmarshal(data, &varOwnerReference) + + if err != nil { + return err + } + *o = OwnerReference(varOwnerReference) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_owner_reference_segments.go b/api_v3/model_owner_reference_segments.go index 5aebfdd4c..e5210620c 100644 --- a/api_v3/model_owner_reference_segments.go +++ b/api_v3/model_owner_reference_segments.go @@ -49,7 +49,7 @@ func NewOwnerReferenceSegmentsWithDefaults() *OwnerReferenceSegments { // GetType returns the Type field value if set, zero value otherwise. func (o *OwnerReferenceSegments) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *OwnerReferenceSegments) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OwnerReferenceSegments) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *OwnerReferenceSegments) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *OwnerReferenceSegments) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *OwnerReferenceSegments) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *OwnerReferenceSegments) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *OwnerReferenceSegments) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OwnerReferenceSegments) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *OwnerReferenceSegments) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *OwnerReferenceSegments) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *OwnerReferenceSegments) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *OwnerReferenceSegments) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *OwnerReferenceSegments) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OwnerReferenceSegments) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *OwnerReferenceSegments) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *OwnerReferenceSegments) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o OwnerReferenceSegments) MarshalJSON() ([]byte, error) { func (o OwnerReferenceSegments) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o OwnerReferenceSegments) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *OwnerReferenceSegments) UnmarshalJSON(bytes []byte) (err error) { +func (o *OwnerReferenceSegments) UnmarshalJSON(data []byte) (err error) { varOwnerReferenceSegments := _OwnerReferenceSegments{} - if err = json.Unmarshal(bytes, &varOwnerReferenceSegments); err == nil { + err = json.Unmarshal(data, &varOwnerReferenceSegments) + + if err != nil { + return err + } + *o = OwnerReferenceSegments(varOwnerReferenceSegments) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_owns.go b/api_v3/model_owns.go index b336c5f21..de5a2868e 100644 --- a/api_v3/model_owns.go +++ b/api_v3/model_owns.go @@ -50,7 +50,7 @@ func NewOwnsWithDefaults() *Owns { // GetSources returns the Sources field value if set, zero value otherwise. func (o *Owns) GetSources() []Reference { - if o == nil || isNil(o.Sources) { + if o == nil || IsNil(o.Sources) { var ret []Reference return ret } @@ -60,7 +60,7 @@ func (o *Owns) GetSources() []Reference { // GetSourcesOk returns a tuple with the Sources field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Owns) GetSourcesOk() ([]Reference, bool) { - if o == nil || isNil(o.Sources) { + if o == nil || IsNil(o.Sources) { return nil, false } return o.Sources, true @@ -68,7 +68,7 @@ func (o *Owns) GetSourcesOk() ([]Reference, bool) { // HasSources returns a boolean if a field has been set. func (o *Owns) HasSources() bool { - if o != nil && !isNil(o.Sources) { + if o != nil && !IsNil(o.Sources) { return true } @@ -82,7 +82,7 @@ func (o *Owns) SetSources(v []Reference) { // GetEntitlements returns the Entitlements field value if set, zero value otherwise. func (o *Owns) GetEntitlements() []Reference { - if o == nil || isNil(o.Entitlements) { + if o == nil || IsNil(o.Entitlements) { var ret []Reference return ret } @@ -92,7 +92,7 @@ func (o *Owns) GetEntitlements() []Reference { // GetEntitlementsOk returns a tuple with the Entitlements field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Owns) GetEntitlementsOk() ([]Reference, bool) { - if o == nil || isNil(o.Entitlements) { + if o == nil || IsNil(o.Entitlements) { return nil, false } return o.Entitlements, true @@ -100,7 +100,7 @@ func (o *Owns) GetEntitlementsOk() ([]Reference, bool) { // HasEntitlements returns a boolean if a field has been set. func (o *Owns) HasEntitlements() bool { - if o != nil && !isNil(o.Entitlements) { + if o != nil && !IsNil(o.Entitlements) { return true } @@ -114,7 +114,7 @@ func (o *Owns) SetEntitlements(v []Reference) { // GetAccessProfiles returns the AccessProfiles field value if set, zero value otherwise. func (o *Owns) GetAccessProfiles() []Reference { - if o == nil || isNil(o.AccessProfiles) { + if o == nil || IsNil(o.AccessProfiles) { var ret []Reference return ret } @@ -124,7 +124,7 @@ func (o *Owns) GetAccessProfiles() []Reference { // GetAccessProfilesOk returns a tuple with the AccessProfiles field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Owns) GetAccessProfilesOk() ([]Reference, bool) { - if o == nil || isNil(o.AccessProfiles) { + if o == nil || IsNil(o.AccessProfiles) { return nil, false } return o.AccessProfiles, true @@ -132,7 +132,7 @@ func (o *Owns) GetAccessProfilesOk() ([]Reference, bool) { // HasAccessProfiles returns a boolean if a field has been set. func (o *Owns) HasAccessProfiles() bool { - if o != nil && !isNil(o.AccessProfiles) { + if o != nil && !IsNil(o.AccessProfiles) { return true } @@ -146,7 +146,7 @@ func (o *Owns) SetAccessProfiles(v []Reference) { // GetRoles returns the Roles field value if set, zero value otherwise. func (o *Owns) GetRoles() []Reference { - if o == nil || isNil(o.Roles) { + if o == nil || IsNil(o.Roles) { var ret []Reference return ret } @@ -156,7 +156,7 @@ func (o *Owns) GetRoles() []Reference { // GetRolesOk returns a tuple with the Roles field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Owns) GetRolesOk() ([]Reference, bool) { - if o == nil || isNil(o.Roles) { + if o == nil || IsNil(o.Roles) { return nil, false } return o.Roles, true @@ -164,7 +164,7 @@ func (o *Owns) GetRolesOk() ([]Reference, bool) { // HasRoles returns a boolean if a field has been set. func (o *Owns) HasRoles() bool { - if o != nil && !isNil(o.Roles) { + if o != nil && !IsNil(o.Roles) { return true } @@ -178,7 +178,7 @@ func (o *Owns) SetRoles(v []Reference) { // GetApps returns the Apps field value if set, zero value otherwise. func (o *Owns) GetApps() []Reference { - if o == nil || isNil(o.Apps) { + if o == nil || IsNil(o.Apps) { var ret []Reference return ret } @@ -188,7 +188,7 @@ func (o *Owns) GetApps() []Reference { // GetAppsOk returns a tuple with the Apps field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Owns) GetAppsOk() ([]Reference, bool) { - if o == nil || isNil(o.Apps) { + if o == nil || IsNil(o.Apps) { return nil, false } return o.Apps, true @@ -196,7 +196,7 @@ func (o *Owns) GetAppsOk() ([]Reference, bool) { // HasApps returns a boolean if a field has been set. func (o *Owns) HasApps() bool { - if o != nil && !isNil(o.Apps) { + if o != nil && !IsNil(o.Apps) { return true } @@ -210,7 +210,7 @@ func (o *Owns) SetApps(v []Reference) { // GetGovernanceGroups returns the GovernanceGroups field value if set, zero value otherwise. func (o *Owns) GetGovernanceGroups() []Reference { - if o == nil || isNil(o.GovernanceGroups) { + if o == nil || IsNil(o.GovernanceGroups) { var ret []Reference return ret } @@ -220,7 +220,7 @@ func (o *Owns) GetGovernanceGroups() []Reference { // GetGovernanceGroupsOk returns a tuple with the GovernanceGroups field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Owns) GetGovernanceGroupsOk() ([]Reference, bool) { - if o == nil || isNil(o.GovernanceGroups) { + if o == nil || IsNil(o.GovernanceGroups) { return nil, false } return o.GovernanceGroups, true @@ -228,7 +228,7 @@ func (o *Owns) GetGovernanceGroupsOk() ([]Reference, bool) { // HasGovernanceGroups returns a boolean if a field has been set. func (o *Owns) HasGovernanceGroups() bool { - if o != nil && !isNil(o.GovernanceGroups) { + if o != nil && !IsNil(o.GovernanceGroups) { return true } @@ -242,7 +242,7 @@ func (o *Owns) SetGovernanceGroups(v []Reference) { // GetFallbackApprover returns the FallbackApprover field value if set, zero value otherwise. func (o *Owns) GetFallbackApprover() bool { - if o == nil || isNil(o.FallbackApprover) { + if o == nil || IsNil(o.FallbackApprover) { var ret bool return ret } @@ -252,7 +252,7 @@ func (o *Owns) GetFallbackApprover() bool { // GetFallbackApproverOk returns a tuple with the FallbackApprover field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Owns) GetFallbackApproverOk() (*bool, bool) { - if o == nil || isNil(o.FallbackApprover) { + if o == nil || IsNil(o.FallbackApprover) { return nil, false } return o.FallbackApprover, true @@ -260,7 +260,7 @@ func (o *Owns) GetFallbackApproverOk() (*bool, bool) { // HasFallbackApprover returns a boolean if a field has been set. func (o *Owns) HasFallbackApprover() bool { - if o != nil && !isNil(o.FallbackApprover) { + if o != nil && !IsNil(o.FallbackApprover) { return true } @@ -282,25 +282,25 @@ func (o Owns) MarshalJSON() ([]byte, error) { func (o Owns) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Sources) { + if !IsNil(o.Sources) { toSerialize["sources"] = o.Sources } - if !isNil(o.Entitlements) { + if !IsNil(o.Entitlements) { toSerialize["entitlements"] = o.Entitlements } - if !isNil(o.AccessProfiles) { + if !IsNil(o.AccessProfiles) { toSerialize["accessProfiles"] = o.AccessProfiles } - if !isNil(o.Roles) { + if !IsNil(o.Roles) { toSerialize["roles"] = o.Roles } - if !isNil(o.Apps) { + if !IsNil(o.Apps) { toSerialize["apps"] = o.Apps } - if !isNil(o.GovernanceGroups) { + if !IsNil(o.GovernanceGroups) { toSerialize["governanceGroups"] = o.GovernanceGroups } - if !isNil(o.FallbackApprover) { + if !IsNil(o.FallbackApprover) { toSerialize["fallbackApprover"] = o.FallbackApprover } @@ -311,16 +311,20 @@ func (o Owns) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Owns) UnmarshalJSON(bytes []byte) (err error) { +func (o *Owns) UnmarshalJSON(data []byte) (err error) { varOwns := _Owns{} - if err = json.Unmarshal(bytes, &varOwns); err == nil { + err = json.Unmarshal(data, &varOwns) + + if err != nil { + return err + } + *o = Owns(varOwns) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "sources") delete(additionalProperties, "entitlements") delete(additionalProperties, "accessProfiles") diff --git a/api_v3/model_password_change_request.go b/api_v3/model_password_change_request.go index ac52cdd81..5bbc3c284 100644 --- a/api_v3/model_password_change_request.go +++ b/api_v3/model_password_change_request.go @@ -53,7 +53,7 @@ func NewPasswordChangeRequestWithDefaults() *PasswordChangeRequest { // GetIdentityId returns the IdentityId field value if set, zero value otherwise. func (o *PasswordChangeRequest) GetIdentityId() string { - if o == nil || isNil(o.IdentityId) { + if o == nil || IsNil(o.IdentityId) { var ret string return ret } @@ -63,7 +63,7 @@ func (o *PasswordChangeRequest) GetIdentityId() string { // GetIdentityIdOk returns a tuple with the IdentityId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordChangeRequest) GetIdentityIdOk() (*string, bool) { - if o == nil || isNil(o.IdentityId) { + if o == nil || IsNil(o.IdentityId) { return nil, false } return o.IdentityId, true @@ -71,7 +71,7 @@ func (o *PasswordChangeRequest) GetIdentityIdOk() (*string, bool) { // HasIdentityId returns a boolean if a field has been set. func (o *PasswordChangeRequest) HasIdentityId() bool { - if o != nil && !isNil(o.IdentityId) { + if o != nil && !IsNil(o.IdentityId) { return true } @@ -85,7 +85,7 @@ func (o *PasswordChangeRequest) SetIdentityId(v string) { // GetEncryptedPassword returns the EncryptedPassword field value if set, zero value otherwise. func (o *PasswordChangeRequest) GetEncryptedPassword() string { - if o == nil || isNil(o.EncryptedPassword) { + if o == nil || IsNil(o.EncryptedPassword) { var ret string return ret } @@ -95,7 +95,7 @@ func (o *PasswordChangeRequest) GetEncryptedPassword() string { // GetEncryptedPasswordOk returns a tuple with the EncryptedPassword field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordChangeRequest) GetEncryptedPasswordOk() (*string, bool) { - if o == nil || isNil(o.EncryptedPassword) { + if o == nil || IsNil(o.EncryptedPassword) { return nil, false } return o.EncryptedPassword, true @@ -103,7 +103,7 @@ func (o *PasswordChangeRequest) GetEncryptedPasswordOk() (*string, bool) { // HasEncryptedPassword returns a boolean if a field has been set. func (o *PasswordChangeRequest) HasEncryptedPassword() bool { - if o != nil && !isNil(o.EncryptedPassword) { + if o != nil && !IsNil(o.EncryptedPassword) { return true } @@ -117,7 +117,7 @@ func (o *PasswordChangeRequest) SetEncryptedPassword(v string) { // GetPublicKeyId returns the PublicKeyId field value if set, zero value otherwise. func (o *PasswordChangeRequest) GetPublicKeyId() string { - if o == nil || isNil(o.PublicKeyId) { + if o == nil || IsNil(o.PublicKeyId) { var ret string return ret } @@ -127,7 +127,7 @@ func (o *PasswordChangeRequest) GetPublicKeyId() string { // GetPublicKeyIdOk returns a tuple with the PublicKeyId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordChangeRequest) GetPublicKeyIdOk() (*string, bool) { - if o == nil || isNil(o.PublicKeyId) { + if o == nil || IsNil(o.PublicKeyId) { return nil, false } return o.PublicKeyId, true @@ -135,7 +135,7 @@ func (o *PasswordChangeRequest) GetPublicKeyIdOk() (*string, bool) { // HasPublicKeyId returns a boolean if a field has been set. func (o *PasswordChangeRequest) HasPublicKeyId() bool { - if o != nil && !isNil(o.PublicKeyId) { + if o != nil && !IsNil(o.PublicKeyId) { return true } @@ -149,7 +149,7 @@ func (o *PasswordChangeRequest) SetPublicKeyId(v string) { // GetAccountId returns the AccountId field value if set, zero value otherwise. func (o *PasswordChangeRequest) GetAccountId() string { - if o == nil || isNil(o.AccountId) { + if o == nil || IsNil(o.AccountId) { var ret string return ret } @@ -159,7 +159,7 @@ func (o *PasswordChangeRequest) GetAccountId() string { // GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordChangeRequest) GetAccountIdOk() (*string, bool) { - if o == nil || isNil(o.AccountId) { + if o == nil || IsNil(o.AccountId) { return nil, false } return o.AccountId, true @@ -167,7 +167,7 @@ func (o *PasswordChangeRequest) GetAccountIdOk() (*string, bool) { // HasAccountId returns a boolean if a field has been set. func (o *PasswordChangeRequest) HasAccountId() bool { - if o != nil && !isNil(o.AccountId) { + if o != nil && !IsNil(o.AccountId) { return true } @@ -181,7 +181,7 @@ func (o *PasswordChangeRequest) SetAccountId(v string) { // GetSourceId returns the SourceId field value if set, zero value otherwise. func (o *PasswordChangeRequest) GetSourceId() string { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { var ret string return ret } @@ -191,7 +191,7 @@ func (o *PasswordChangeRequest) GetSourceId() string { // GetSourceIdOk returns a tuple with the SourceId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordChangeRequest) GetSourceIdOk() (*string, bool) { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { return nil, false } return o.SourceId, true @@ -199,7 +199,7 @@ func (o *PasswordChangeRequest) GetSourceIdOk() (*string, bool) { // HasSourceId returns a boolean if a field has been set. func (o *PasswordChangeRequest) HasSourceId() bool { - if o != nil && !isNil(o.SourceId) { + if o != nil && !IsNil(o.SourceId) { return true } @@ -221,19 +221,19 @@ func (o PasswordChangeRequest) MarshalJSON() ([]byte, error) { func (o PasswordChangeRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.IdentityId) { + if !IsNil(o.IdentityId) { toSerialize["identityId"] = o.IdentityId } - if !isNil(o.EncryptedPassword) { + if !IsNil(o.EncryptedPassword) { toSerialize["encryptedPassword"] = o.EncryptedPassword } - if !isNil(o.PublicKeyId) { + if !IsNil(o.PublicKeyId) { toSerialize["publicKeyId"] = o.PublicKeyId } - if !isNil(o.AccountId) { + if !IsNil(o.AccountId) { toSerialize["accountId"] = o.AccountId } - if !isNil(o.SourceId) { + if !IsNil(o.SourceId) { toSerialize["sourceId"] = o.SourceId } @@ -244,16 +244,20 @@ func (o PasswordChangeRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PasswordChangeRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *PasswordChangeRequest) UnmarshalJSON(data []byte) (err error) { varPasswordChangeRequest := _PasswordChangeRequest{} - if err = json.Unmarshal(bytes, &varPasswordChangeRequest); err == nil { + err = json.Unmarshal(data, &varPasswordChangeRequest) + + if err != nil { + return err + } + *o = PasswordChangeRequest(varPasswordChangeRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "identityId") delete(additionalProperties, "encryptedPassword") delete(additionalProperties, "publicKeyId") diff --git a/api_v3/model_password_change_response.go b/api_v3/model_password_change_response.go index 6dae9e28e..be660c35e 100644 --- a/api_v3/model_password_change_response.go +++ b/api_v3/model_password_change_response.go @@ -47,7 +47,7 @@ func NewPasswordChangeResponseWithDefaults() *PasswordChangeResponse { // GetRequestId returns the RequestId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PasswordChangeResponse) GetRequestId() string { - if o == nil || isNil(o.RequestId.Get()) { + if o == nil || IsNil(o.RequestId.Get()) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *PasswordChangeResponse) UnsetRequestId() { // GetState returns the State field value if set, zero value otherwise. func (o *PasswordChangeResponse) GetState() string { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { var ret string return ret } @@ -99,7 +99,7 @@ func (o *PasswordChangeResponse) GetState() string { // GetStateOk returns a tuple with the State field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordChangeResponse) GetStateOk() (*string, bool) { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { return nil, false } return o.State, true @@ -107,7 +107,7 @@ func (o *PasswordChangeResponse) GetStateOk() (*string, bool) { // HasState returns a boolean if a field has been set. func (o *PasswordChangeResponse) HasState() bool { - if o != nil && !isNil(o.State) { + if o != nil && !IsNil(o.State) { return true } @@ -132,7 +132,7 @@ func (o PasswordChangeResponse) ToMap() (map[string]interface{}, error) { if o.RequestId.IsSet() { toSerialize["requestId"] = o.RequestId.Get() } - if !isNil(o.State) { + if !IsNil(o.State) { toSerialize["state"] = o.State } @@ -143,16 +143,20 @@ func (o PasswordChangeResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PasswordChangeResponse) UnmarshalJSON(bytes []byte) (err error) { +func (o *PasswordChangeResponse) UnmarshalJSON(data []byte) (err error) { varPasswordChangeResponse := _PasswordChangeResponse{} - if err = json.Unmarshal(bytes, &varPasswordChangeResponse); err == nil { + err = json.Unmarshal(data, &varPasswordChangeResponse) + + if err != nil { + return err + } + *o = PasswordChangeResponse(varPasswordChangeResponse) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "requestId") delete(additionalProperties, "state") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_password_info.go b/api_v3/model_password_info.go index 28912b50c..14382e41f 100644 --- a/api_v3/model_password_info.go +++ b/api_v3/model_password_info.go @@ -55,7 +55,7 @@ func NewPasswordInfoWithDefaults() *PasswordInfo { // GetIdentityId returns the IdentityId field value if set, zero value otherwise. func (o *PasswordInfo) GetIdentityId() string { - if o == nil || isNil(o.IdentityId) { + if o == nil || IsNil(o.IdentityId) { var ret string return ret } @@ -65,7 +65,7 @@ func (o *PasswordInfo) GetIdentityId() string { // GetIdentityIdOk returns a tuple with the IdentityId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordInfo) GetIdentityIdOk() (*string, bool) { - if o == nil || isNil(o.IdentityId) { + if o == nil || IsNil(o.IdentityId) { return nil, false } return o.IdentityId, true @@ -73,7 +73,7 @@ func (o *PasswordInfo) GetIdentityIdOk() (*string, bool) { // HasIdentityId returns a boolean if a field has been set. func (o *PasswordInfo) HasIdentityId() bool { - if o != nil && !isNil(o.IdentityId) { + if o != nil && !IsNil(o.IdentityId) { return true } @@ -87,7 +87,7 @@ func (o *PasswordInfo) SetIdentityId(v string) { // GetSourceId returns the SourceId field value if set, zero value otherwise. func (o *PasswordInfo) GetSourceId() string { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { var ret string return ret } @@ -97,7 +97,7 @@ func (o *PasswordInfo) GetSourceId() string { // GetSourceIdOk returns a tuple with the SourceId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordInfo) GetSourceIdOk() (*string, bool) { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { return nil, false } return o.SourceId, true @@ -105,7 +105,7 @@ func (o *PasswordInfo) GetSourceIdOk() (*string, bool) { // HasSourceId returns a boolean if a field has been set. func (o *PasswordInfo) HasSourceId() bool { - if o != nil && !isNil(o.SourceId) { + if o != nil && !IsNil(o.SourceId) { return true } @@ -119,7 +119,7 @@ func (o *PasswordInfo) SetSourceId(v string) { // GetPublicKeyId returns the PublicKeyId field value if set, zero value otherwise. func (o *PasswordInfo) GetPublicKeyId() string { - if o == nil || isNil(o.PublicKeyId) { + if o == nil || IsNil(o.PublicKeyId) { var ret string return ret } @@ -129,7 +129,7 @@ func (o *PasswordInfo) GetPublicKeyId() string { // GetPublicKeyIdOk returns a tuple with the PublicKeyId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordInfo) GetPublicKeyIdOk() (*string, bool) { - if o == nil || isNil(o.PublicKeyId) { + if o == nil || IsNil(o.PublicKeyId) { return nil, false } return o.PublicKeyId, true @@ -137,7 +137,7 @@ func (o *PasswordInfo) GetPublicKeyIdOk() (*string, bool) { // HasPublicKeyId returns a boolean if a field has been set. func (o *PasswordInfo) HasPublicKeyId() bool { - if o != nil && !isNil(o.PublicKeyId) { + if o != nil && !IsNil(o.PublicKeyId) { return true } @@ -151,7 +151,7 @@ func (o *PasswordInfo) SetPublicKeyId(v string) { // GetPublicKey returns the PublicKey field value if set, zero value otherwise. func (o *PasswordInfo) GetPublicKey() string { - if o == nil || isNil(o.PublicKey) { + if o == nil || IsNil(o.PublicKey) { var ret string return ret } @@ -161,7 +161,7 @@ func (o *PasswordInfo) GetPublicKey() string { // GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordInfo) GetPublicKeyOk() (*string, bool) { - if o == nil || isNil(o.PublicKey) { + if o == nil || IsNil(o.PublicKey) { return nil, false } return o.PublicKey, true @@ -169,7 +169,7 @@ func (o *PasswordInfo) GetPublicKeyOk() (*string, bool) { // HasPublicKey returns a boolean if a field has been set. func (o *PasswordInfo) HasPublicKey() bool { - if o != nil && !isNil(o.PublicKey) { + if o != nil && !IsNil(o.PublicKey) { return true } @@ -183,7 +183,7 @@ func (o *PasswordInfo) SetPublicKey(v string) { // GetAccounts returns the Accounts field value if set, zero value otherwise. func (o *PasswordInfo) GetAccounts() []PasswordInfoAccount { - if o == nil || isNil(o.Accounts) { + if o == nil || IsNil(o.Accounts) { var ret []PasswordInfoAccount return ret } @@ -193,7 +193,7 @@ func (o *PasswordInfo) GetAccounts() []PasswordInfoAccount { // GetAccountsOk returns a tuple with the Accounts field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordInfo) GetAccountsOk() ([]PasswordInfoAccount, bool) { - if o == nil || isNil(o.Accounts) { + if o == nil || IsNil(o.Accounts) { return nil, false } return o.Accounts, true @@ -201,7 +201,7 @@ func (o *PasswordInfo) GetAccountsOk() ([]PasswordInfoAccount, bool) { // HasAccounts returns a boolean if a field has been set. func (o *PasswordInfo) HasAccounts() bool { - if o != nil && !isNil(o.Accounts) { + if o != nil && !IsNil(o.Accounts) { return true } @@ -215,7 +215,7 @@ func (o *PasswordInfo) SetAccounts(v []PasswordInfoAccount) { // GetPolicies returns the Policies field value if set, zero value otherwise. func (o *PasswordInfo) GetPolicies() []string { - if o == nil || isNil(o.Policies) { + if o == nil || IsNil(o.Policies) { var ret []string return ret } @@ -225,7 +225,7 @@ func (o *PasswordInfo) GetPolicies() []string { // GetPoliciesOk returns a tuple with the Policies field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordInfo) GetPoliciesOk() ([]string, bool) { - if o == nil || isNil(o.Policies) { + if o == nil || IsNil(o.Policies) { return nil, false } return o.Policies, true @@ -233,7 +233,7 @@ func (o *PasswordInfo) GetPoliciesOk() ([]string, bool) { // HasPolicies returns a boolean if a field has been set. func (o *PasswordInfo) HasPolicies() bool { - if o != nil && !isNil(o.Policies) { + if o != nil && !IsNil(o.Policies) { return true } @@ -255,22 +255,22 @@ func (o PasswordInfo) MarshalJSON() ([]byte, error) { func (o PasswordInfo) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.IdentityId) { + if !IsNil(o.IdentityId) { toSerialize["identityId"] = o.IdentityId } - if !isNil(o.SourceId) { + if !IsNil(o.SourceId) { toSerialize["sourceId"] = o.SourceId } - if !isNil(o.PublicKeyId) { + if !IsNil(o.PublicKeyId) { toSerialize["publicKeyId"] = o.PublicKeyId } - if !isNil(o.PublicKey) { + if !IsNil(o.PublicKey) { toSerialize["publicKey"] = o.PublicKey } - if !isNil(o.Accounts) { + if !IsNil(o.Accounts) { toSerialize["accounts"] = o.Accounts } - if !isNil(o.Policies) { + if !IsNil(o.Policies) { toSerialize["policies"] = o.Policies } @@ -281,16 +281,20 @@ func (o PasswordInfo) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PasswordInfo) UnmarshalJSON(bytes []byte) (err error) { +func (o *PasswordInfo) UnmarshalJSON(data []byte) (err error) { varPasswordInfo := _PasswordInfo{} - if err = json.Unmarshal(bytes, &varPasswordInfo); err == nil { + err = json.Unmarshal(data, &varPasswordInfo) + + if err != nil { + return err + } + *o = PasswordInfo(varPasswordInfo) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "identityId") delete(additionalProperties, "sourceId") delete(additionalProperties, "publicKeyId") diff --git a/api_v3/model_password_info_account.go b/api_v3/model_password_info_account.go index 0ba08a0c4..1d978fdf2 100644 --- a/api_v3/model_password_info_account.go +++ b/api_v3/model_password_info_account.go @@ -47,7 +47,7 @@ func NewPasswordInfoAccountWithDefaults() *PasswordInfoAccount { // GetAccountId returns the AccountId field value if set, zero value otherwise. func (o *PasswordInfoAccount) GetAccountId() string { - if o == nil || isNil(o.AccountId) { + if o == nil || IsNil(o.AccountId) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *PasswordInfoAccount) GetAccountId() string { // GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordInfoAccount) GetAccountIdOk() (*string, bool) { - if o == nil || isNil(o.AccountId) { + if o == nil || IsNil(o.AccountId) { return nil, false } return o.AccountId, true @@ -65,7 +65,7 @@ func (o *PasswordInfoAccount) GetAccountIdOk() (*string, bool) { // HasAccountId returns a boolean if a field has been set. func (o *PasswordInfoAccount) HasAccountId() bool { - if o != nil && !isNil(o.AccountId) { + if o != nil && !IsNil(o.AccountId) { return true } @@ -79,7 +79,7 @@ func (o *PasswordInfoAccount) SetAccountId(v string) { // GetAccountName returns the AccountName field value if set, zero value otherwise. func (o *PasswordInfoAccount) GetAccountName() string { - if o == nil || isNil(o.AccountName) { + if o == nil || IsNil(o.AccountName) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *PasswordInfoAccount) GetAccountName() string { // GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordInfoAccount) GetAccountNameOk() (*string, bool) { - if o == nil || isNil(o.AccountName) { + if o == nil || IsNil(o.AccountName) { return nil, false } return o.AccountName, true @@ -97,7 +97,7 @@ func (o *PasswordInfoAccount) GetAccountNameOk() (*string, bool) { // HasAccountName returns a boolean if a field has been set. func (o *PasswordInfoAccount) HasAccountName() bool { - if o != nil && !isNil(o.AccountName) { + if o != nil && !IsNil(o.AccountName) { return true } @@ -119,10 +119,10 @@ func (o PasswordInfoAccount) MarshalJSON() ([]byte, error) { func (o PasswordInfoAccount) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.AccountId) { + if !IsNil(o.AccountId) { toSerialize["accountId"] = o.AccountId } - if !isNil(o.AccountName) { + if !IsNil(o.AccountName) { toSerialize["accountName"] = o.AccountName } @@ -133,16 +133,20 @@ func (o PasswordInfoAccount) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PasswordInfoAccount) UnmarshalJSON(bytes []byte) (err error) { +func (o *PasswordInfoAccount) UnmarshalJSON(data []byte) (err error) { varPasswordInfoAccount := _PasswordInfoAccount{} - if err = json.Unmarshal(bytes, &varPasswordInfoAccount); err == nil { + err = json.Unmarshal(data, &varPasswordInfoAccount) + + if err != nil { + return err + } + *o = PasswordInfoAccount(varPasswordInfoAccount) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "accountId") delete(additionalProperties, "accountName") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_password_info_query_dto.go b/api_v3/model_password_info_query_dto.go index 79572b76d..7ab3c1386 100644 --- a/api_v3/model_password_info_query_dto.go +++ b/api_v3/model_password_info_query_dto.go @@ -47,7 +47,7 @@ func NewPasswordInfoQueryDTOWithDefaults() *PasswordInfoQueryDTO { // GetUserName returns the UserName field value if set, zero value otherwise. func (o *PasswordInfoQueryDTO) GetUserName() string { - if o == nil || isNil(o.UserName) { + if o == nil || IsNil(o.UserName) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *PasswordInfoQueryDTO) GetUserName() string { // GetUserNameOk returns a tuple with the UserName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordInfoQueryDTO) GetUserNameOk() (*string, bool) { - if o == nil || isNil(o.UserName) { + if o == nil || IsNil(o.UserName) { return nil, false } return o.UserName, true @@ -65,7 +65,7 @@ func (o *PasswordInfoQueryDTO) GetUserNameOk() (*string, bool) { // HasUserName returns a boolean if a field has been set. func (o *PasswordInfoQueryDTO) HasUserName() bool { - if o != nil && !isNil(o.UserName) { + if o != nil && !IsNil(o.UserName) { return true } @@ -79,7 +79,7 @@ func (o *PasswordInfoQueryDTO) SetUserName(v string) { // GetSourceName returns the SourceName field value if set, zero value otherwise. func (o *PasswordInfoQueryDTO) GetSourceName() string { - if o == nil || isNil(o.SourceName) { + if o == nil || IsNil(o.SourceName) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *PasswordInfoQueryDTO) GetSourceName() string { // GetSourceNameOk returns a tuple with the SourceName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordInfoQueryDTO) GetSourceNameOk() (*string, bool) { - if o == nil || isNil(o.SourceName) { + if o == nil || IsNil(o.SourceName) { return nil, false } return o.SourceName, true @@ -97,7 +97,7 @@ func (o *PasswordInfoQueryDTO) GetSourceNameOk() (*string, bool) { // HasSourceName returns a boolean if a field has been set. func (o *PasswordInfoQueryDTO) HasSourceName() bool { - if o != nil && !isNil(o.SourceName) { + if o != nil && !IsNil(o.SourceName) { return true } @@ -119,10 +119,10 @@ func (o PasswordInfoQueryDTO) MarshalJSON() ([]byte, error) { func (o PasswordInfoQueryDTO) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.UserName) { + if !IsNil(o.UserName) { toSerialize["userName"] = o.UserName } - if !isNil(o.SourceName) { + if !IsNil(o.SourceName) { toSerialize["sourceName"] = o.SourceName } @@ -133,16 +133,20 @@ func (o PasswordInfoQueryDTO) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PasswordInfoQueryDTO) UnmarshalJSON(bytes []byte) (err error) { +func (o *PasswordInfoQueryDTO) UnmarshalJSON(data []byte) (err error) { varPasswordInfoQueryDTO := _PasswordInfoQueryDTO{} - if err = json.Unmarshal(bytes, &varPasswordInfoQueryDTO); err == nil { + err = json.Unmarshal(data, &varPasswordInfoQueryDTO) + + if err != nil { + return err + } + *o = PasswordInfoQueryDTO(varPasswordInfoQueryDTO) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "userName") delete(additionalProperties, "sourceName") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_password_org_config.go b/api_v3/model_password_org_config.go index 88cf733f9..bd0fe2e1b 100644 --- a/api_v3/model_password_org_config.go +++ b/api_v3/model_password_org_config.go @@ -67,7 +67,7 @@ func NewPasswordOrgConfigWithDefaults() *PasswordOrgConfig { // GetCustomInstructionsEnabled returns the CustomInstructionsEnabled field value if set, zero value otherwise. func (o *PasswordOrgConfig) GetCustomInstructionsEnabled() bool { - if o == nil || isNil(o.CustomInstructionsEnabled) { + if o == nil || IsNil(o.CustomInstructionsEnabled) { var ret bool return ret } @@ -77,7 +77,7 @@ func (o *PasswordOrgConfig) GetCustomInstructionsEnabled() bool { // GetCustomInstructionsEnabledOk returns a tuple with the CustomInstructionsEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordOrgConfig) GetCustomInstructionsEnabledOk() (*bool, bool) { - if o == nil || isNil(o.CustomInstructionsEnabled) { + if o == nil || IsNil(o.CustomInstructionsEnabled) { return nil, false } return o.CustomInstructionsEnabled, true @@ -85,7 +85,7 @@ func (o *PasswordOrgConfig) GetCustomInstructionsEnabledOk() (*bool, bool) { // HasCustomInstructionsEnabled returns a boolean if a field has been set. func (o *PasswordOrgConfig) HasCustomInstructionsEnabled() bool { - if o != nil && !isNil(o.CustomInstructionsEnabled) { + if o != nil && !IsNil(o.CustomInstructionsEnabled) { return true } @@ -99,7 +99,7 @@ func (o *PasswordOrgConfig) SetCustomInstructionsEnabled(v bool) { // GetDigitTokenEnabled returns the DigitTokenEnabled field value if set, zero value otherwise. func (o *PasswordOrgConfig) GetDigitTokenEnabled() bool { - if o == nil || isNil(o.DigitTokenEnabled) { + if o == nil || IsNil(o.DigitTokenEnabled) { var ret bool return ret } @@ -109,7 +109,7 @@ func (o *PasswordOrgConfig) GetDigitTokenEnabled() bool { // GetDigitTokenEnabledOk returns a tuple with the DigitTokenEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordOrgConfig) GetDigitTokenEnabledOk() (*bool, bool) { - if o == nil || isNil(o.DigitTokenEnabled) { + if o == nil || IsNil(o.DigitTokenEnabled) { return nil, false } return o.DigitTokenEnabled, true @@ -117,7 +117,7 @@ func (o *PasswordOrgConfig) GetDigitTokenEnabledOk() (*bool, bool) { // HasDigitTokenEnabled returns a boolean if a field has been set. func (o *PasswordOrgConfig) HasDigitTokenEnabled() bool { - if o != nil && !isNil(o.DigitTokenEnabled) { + if o != nil && !IsNil(o.DigitTokenEnabled) { return true } @@ -131,7 +131,7 @@ func (o *PasswordOrgConfig) SetDigitTokenEnabled(v bool) { // GetDigitTokenDurationMinutes returns the DigitTokenDurationMinutes field value if set, zero value otherwise. func (o *PasswordOrgConfig) GetDigitTokenDurationMinutes() int32 { - if o == nil || isNil(o.DigitTokenDurationMinutes) { + if o == nil || IsNil(o.DigitTokenDurationMinutes) { var ret int32 return ret } @@ -141,7 +141,7 @@ func (o *PasswordOrgConfig) GetDigitTokenDurationMinutes() int32 { // GetDigitTokenDurationMinutesOk returns a tuple with the DigitTokenDurationMinutes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordOrgConfig) GetDigitTokenDurationMinutesOk() (*int32, bool) { - if o == nil || isNil(o.DigitTokenDurationMinutes) { + if o == nil || IsNil(o.DigitTokenDurationMinutes) { return nil, false } return o.DigitTokenDurationMinutes, true @@ -149,7 +149,7 @@ func (o *PasswordOrgConfig) GetDigitTokenDurationMinutesOk() (*int32, bool) { // HasDigitTokenDurationMinutes returns a boolean if a field has been set. func (o *PasswordOrgConfig) HasDigitTokenDurationMinutes() bool { - if o != nil && !isNil(o.DigitTokenDurationMinutes) { + if o != nil && !IsNil(o.DigitTokenDurationMinutes) { return true } @@ -163,7 +163,7 @@ func (o *PasswordOrgConfig) SetDigitTokenDurationMinutes(v int32) { // GetDigitTokenLength returns the DigitTokenLength field value if set, zero value otherwise. func (o *PasswordOrgConfig) GetDigitTokenLength() int32 { - if o == nil || isNil(o.DigitTokenLength) { + if o == nil || IsNil(o.DigitTokenLength) { var ret int32 return ret } @@ -173,7 +173,7 @@ func (o *PasswordOrgConfig) GetDigitTokenLength() int32 { // GetDigitTokenLengthOk returns a tuple with the DigitTokenLength field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordOrgConfig) GetDigitTokenLengthOk() (*int32, bool) { - if o == nil || isNil(o.DigitTokenLength) { + if o == nil || IsNil(o.DigitTokenLength) { return nil, false } return o.DigitTokenLength, true @@ -181,7 +181,7 @@ func (o *PasswordOrgConfig) GetDigitTokenLengthOk() (*int32, bool) { // HasDigitTokenLength returns a boolean if a field has been set. func (o *PasswordOrgConfig) HasDigitTokenLength() bool { - if o != nil && !isNil(o.DigitTokenLength) { + if o != nil && !IsNil(o.DigitTokenLength) { return true } @@ -203,16 +203,16 @@ func (o PasswordOrgConfig) MarshalJSON() ([]byte, error) { func (o PasswordOrgConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.CustomInstructionsEnabled) { + if !IsNil(o.CustomInstructionsEnabled) { toSerialize["customInstructionsEnabled"] = o.CustomInstructionsEnabled } - if !isNil(o.DigitTokenEnabled) { + if !IsNil(o.DigitTokenEnabled) { toSerialize["digitTokenEnabled"] = o.DigitTokenEnabled } - if !isNil(o.DigitTokenDurationMinutes) { + if !IsNil(o.DigitTokenDurationMinutes) { toSerialize["digitTokenDurationMinutes"] = o.DigitTokenDurationMinutes } - if !isNil(o.DigitTokenLength) { + if !IsNil(o.DigitTokenLength) { toSerialize["digitTokenLength"] = o.DigitTokenLength } @@ -223,16 +223,20 @@ func (o PasswordOrgConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PasswordOrgConfig) UnmarshalJSON(bytes []byte) (err error) { +func (o *PasswordOrgConfig) UnmarshalJSON(data []byte) (err error) { varPasswordOrgConfig := _PasswordOrgConfig{} - if err = json.Unmarshal(bytes, &varPasswordOrgConfig); err == nil { + err = json.Unmarshal(data, &varPasswordOrgConfig) + + if err != nil { + return err + } + *o = PasswordOrgConfig(varPasswordOrgConfig) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "customInstructionsEnabled") delete(additionalProperties, "digitTokenEnabled") delete(additionalProperties, "digitTokenDurationMinutes") diff --git a/api_v3/model_password_policy_v3_dto.go b/api_v3/model_password_policy_v3_dto.go index 2e875d774..c46d8d6dd 100644 --- a/api_v3/model_password_policy_v3_dto.go +++ b/api_v3/model_password_policy_v3_dto.go @@ -144,7 +144,7 @@ func NewPasswordPolicyV3DtoWithDefaults() *PasswordPolicyV3Dto { // GetId returns the Id field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -154,7 +154,7 @@ func (o *PasswordPolicyV3Dto) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -162,7 +162,7 @@ func (o *PasswordPolicyV3Dto) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -176,7 +176,7 @@ func (o *PasswordPolicyV3Dto) SetId(v string) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PasswordPolicyV3Dto) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -218,7 +218,7 @@ func (o *PasswordPolicyV3Dto) UnsetDescription() { // GetName returns the Name field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -228,7 +228,7 @@ func (o *PasswordPolicyV3Dto) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -236,7 +236,7 @@ func (o *PasswordPolicyV3Dto) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -250,7 +250,7 @@ func (o *PasswordPolicyV3Dto) SetName(v string) { // GetDateCreated returns the DateCreated field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetDateCreated() time.Time { - if o == nil || isNil(o.DateCreated) { + if o == nil || IsNil(o.DateCreated) { var ret time.Time return ret } @@ -260,7 +260,7 @@ func (o *PasswordPolicyV3Dto) GetDateCreated() time.Time { // GetDateCreatedOk returns a tuple with the DateCreated field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetDateCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.DateCreated) { + if o == nil || IsNil(o.DateCreated) { return nil, false } return o.DateCreated, true @@ -268,7 +268,7 @@ func (o *PasswordPolicyV3Dto) GetDateCreatedOk() (*time.Time, bool) { // HasDateCreated returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasDateCreated() bool { - if o != nil && !isNil(o.DateCreated) { + if o != nil && !IsNil(o.DateCreated) { return true } @@ -282,7 +282,7 @@ func (o *PasswordPolicyV3Dto) SetDateCreated(v time.Time) { // GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PasswordPolicyV3Dto) GetLastUpdated() time.Time { - if o == nil || isNil(o.LastUpdated.Get()) { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } @@ -324,7 +324,7 @@ func (o *PasswordPolicyV3Dto) UnsetLastUpdated() { // GetFirstExpirationReminder returns the FirstExpirationReminder field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetFirstExpirationReminder() int64 { - if o == nil || isNil(o.FirstExpirationReminder) { + if o == nil || IsNil(o.FirstExpirationReminder) { var ret int64 return ret } @@ -334,7 +334,7 @@ func (o *PasswordPolicyV3Dto) GetFirstExpirationReminder() int64 { // GetFirstExpirationReminderOk returns a tuple with the FirstExpirationReminder field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetFirstExpirationReminderOk() (*int64, bool) { - if o == nil || isNil(o.FirstExpirationReminder) { + if o == nil || IsNil(o.FirstExpirationReminder) { return nil, false } return o.FirstExpirationReminder, true @@ -342,7 +342,7 @@ func (o *PasswordPolicyV3Dto) GetFirstExpirationReminderOk() (*int64, bool) { // HasFirstExpirationReminder returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasFirstExpirationReminder() bool { - if o != nil && !isNil(o.FirstExpirationReminder) { + if o != nil && !IsNil(o.FirstExpirationReminder) { return true } @@ -356,7 +356,7 @@ func (o *PasswordPolicyV3Dto) SetFirstExpirationReminder(v int64) { // GetAccountIdMinWordLength returns the AccountIdMinWordLength field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetAccountIdMinWordLength() int64 { - if o == nil || isNil(o.AccountIdMinWordLength) { + if o == nil || IsNil(o.AccountIdMinWordLength) { var ret int64 return ret } @@ -366,7 +366,7 @@ func (o *PasswordPolicyV3Dto) GetAccountIdMinWordLength() int64 { // GetAccountIdMinWordLengthOk returns a tuple with the AccountIdMinWordLength field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetAccountIdMinWordLengthOk() (*int64, bool) { - if o == nil || isNil(o.AccountIdMinWordLength) { + if o == nil || IsNil(o.AccountIdMinWordLength) { return nil, false } return o.AccountIdMinWordLength, true @@ -374,7 +374,7 @@ func (o *PasswordPolicyV3Dto) GetAccountIdMinWordLengthOk() (*int64, bool) { // HasAccountIdMinWordLength returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasAccountIdMinWordLength() bool { - if o != nil && !isNil(o.AccountIdMinWordLength) { + if o != nil && !IsNil(o.AccountIdMinWordLength) { return true } @@ -388,7 +388,7 @@ func (o *PasswordPolicyV3Dto) SetAccountIdMinWordLength(v int64) { // GetAccountNameMinWordLength returns the AccountNameMinWordLength field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetAccountNameMinWordLength() int64 { - if o == nil || isNil(o.AccountNameMinWordLength) { + if o == nil || IsNil(o.AccountNameMinWordLength) { var ret int64 return ret } @@ -398,7 +398,7 @@ func (o *PasswordPolicyV3Dto) GetAccountNameMinWordLength() int64 { // GetAccountNameMinWordLengthOk returns a tuple with the AccountNameMinWordLength field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetAccountNameMinWordLengthOk() (*int64, bool) { - if o == nil || isNil(o.AccountNameMinWordLength) { + if o == nil || IsNil(o.AccountNameMinWordLength) { return nil, false } return o.AccountNameMinWordLength, true @@ -406,7 +406,7 @@ func (o *PasswordPolicyV3Dto) GetAccountNameMinWordLengthOk() (*int64, bool) { // HasAccountNameMinWordLength returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasAccountNameMinWordLength() bool { - if o != nil && !isNil(o.AccountNameMinWordLength) { + if o != nil && !IsNil(o.AccountNameMinWordLength) { return true } @@ -420,7 +420,7 @@ func (o *PasswordPolicyV3Dto) SetAccountNameMinWordLength(v int64) { // GetMinAlpha returns the MinAlpha field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetMinAlpha() int64 { - if o == nil || isNil(o.MinAlpha) { + if o == nil || IsNil(o.MinAlpha) { var ret int64 return ret } @@ -430,7 +430,7 @@ func (o *PasswordPolicyV3Dto) GetMinAlpha() int64 { // GetMinAlphaOk returns a tuple with the MinAlpha field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetMinAlphaOk() (*int64, bool) { - if o == nil || isNil(o.MinAlpha) { + if o == nil || IsNil(o.MinAlpha) { return nil, false } return o.MinAlpha, true @@ -438,7 +438,7 @@ func (o *PasswordPolicyV3Dto) GetMinAlphaOk() (*int64, bool) { // HasMinAlpha returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasMinAlpha() bool { - if o != nil && !isNil(o.MinAlpha) { + if o != nil && !IsNil(o.MinAlpha) { return true } @@ -452,7 +452,7 @@ func (o *PasswordPolicyV3Dto) SetMinAlpha(v int64) { // GetMinCharacterTypes returns the MinCharacterTypes field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetMinCharacterTypes() int64 { - if o == nil || isNil(o.MinCharacterTypes) { + if o == nil || IsNil(o.MinCharacterTypes) { var ret int64 return ret } @@ -462,7 +462,7 @@ func (o *PasswordPolicyV3Dto) GetMinCharacterTypes() int64 { // GetMinCharacterTypesOk returns a tuple with the MinCharacterTypes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetMinCharacterTypesOk() (*int64, bool) { - if o == nil || isNil(o.MinCharacterTypes) { + if o == nil || IsNil(o.MinCharacterTypes) { return nil, false } return o.MinCharacterTypes, true @@ -470,7 +470,7 @@ func (o *PasswordPolicyV3Dto) GetMinCharacterTypesOk() (*int64, bool) { // HasMinCharacterTypes returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasMinCharacterTypes() bool { - if o != nil && !isNil(o.MinCharacterTypes) { + if o != nil && !IsNil(o.MinCharacterTypes) { return true } @@ -484,7 +484,7 @@ func (o *PasswordPolicyV3Dto) SetMinCharacterTypes(v int64) { // GetMaxLength returns the MaxLength field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetMaxLength() int64 { - if o == nil || isNil(o.MaxLength) { + if o == nil || IsNil(o.MaxLength) { var ret int64 return ret } @@ -494,7 +494,7 @@ func (o *PasswordPolicyV3Dto) GetMaxLength() int64 { // GetMaxLengthOk returns a tuple with the MaxLength field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetMaxLengthOk() (*int64, bool) { - if o == nil || isNil(o.MaxLength) { + if o == nil || IsNil(o.MaxLength) { return nil, false } return o.MaxLength, true @@ -502,7 +502,7 @@ func (o *PasswordPolicyV3Dto) GetMaxLengthOk() (*int64, bool) { // HasMaxLength returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasMaxLength() bool { - if o != nil && !isNil(o.MaxLength) { + if o != nil && !IsNil(o.MaxLength) { return true } @@ -516,7 +516,7 @@ func (o *PasswordPolicyV3Dto) SetMaxLength(v int64) { // GetMinLength returns the MinLength field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetMinLength() int64 { - if o == nil || isNil(o.MinLength) { + if o == nil || IsNil(o.MinLength) { var ret int64 return ret } @@ -526,7 +526,7 @@ func (o *PasswordPolicyV3Dto) GetMinLength() int64 { // GetMinLengthOk returns a tuple with the MinLength field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetMinLengthOk() (*int64, bool) { - if o == nil || isNil(o.MinLength) { + if o == nil || IsNil(o.MinLength) { return nil, false } return o.MinLength, true @@ -534,7 +534,7 @@ func (o *PasswordPolicyV3Dto) GetMinLengthOk() (*int64, bool) { // HasMinLength returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasMinLength() bool { - if o != nil && !isNil(o.MinLength) { + if o != nil && !IsNil(o.MinLength) { return true } @@ -548,7 +548,7 @@ func (o *PasswordPolicyV3Dto) SetMinLength(v int64) { // GetMaxRepeatedChars returns the MaxRepeatedChars field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetMaxRepeatedChars() int64 { - if o == nil || isNil(o.MaxRepeatedChars) { + if o == nil || IsNil(o.MaxRepeatedChars) { var ret int64 return ret } @@ -558,7 +558,7 @@ func (o *PasswordPolicyV3Dto) GetMaxRepeatedChars() int64 { // GetMaxRepeatedCharsOk returns a tuple with the MaxRepeatedChars field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetMaxRepeatedCharsOk() (*int64, bool) { - if o == nil || isNil(o.MaxRepeatedChars) { + if o == nil || IsNil(o.MaxRepeatedChars) { return nil, false } return o.MaxRepeatedChars, true @@ -566,7 +566,7 @@ func (o *PasswordPolicyV3Dto) GetMaxRepeatedCharsOk() (*int64, bool) { // HasMaxRepeatedChars returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasMaxRepeatedChars() bool { - if o != nil && !isNil(o.MaxRepeatedChars) { + if o != nil && !IsNil(o.MaxRepeatedChars) { return true } @@ -580,7 +580,7 @@ func (o *PasswordPolicyV3Dto) SetMaxRepeatedChars(v int64) { // GetMinLower returns the MinLower field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetMinLower() int64 { - if o == nil || isNil(o.MinLower) { + if o == nil || IsNil(o.MinLower) { var ret int64 return ret } @@ -590,7 +590,7 @@ func (o *PasswordPolicyV3Dto) GetMinLower() int64 { // GetMinLowerOk returns a tuple with the MinLower field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetMinLowerOk() (*int64, bool) { - if o == nil || isNil(o.MinLower) { + if o == nil || IsNil(o.MinLower) { return nil, false } return o.MinLower, true @@ -598,7 +598,7 @@ func (o *PasswordPolicyV3Dto) GetMinLowerOk() (*int64, bool) { // HasMinLower returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasMinLower() bool { - if o != nil && !isNil(o.MinLower) { + if o != nil && !IsNil(o.MinLower) { return true } @@ -612,7 +612,7 @@ func (o *PasswordPolicyV3Dto) SetMinLower(v int64) { // GetMinNumeric returns the MinNumeric field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetMinNumeric() int64 { - if o == nil || isNil(o.MinNumeric) { + if o == nil || IsNil(o.MinNumeric) { var ret int64 return ret } @@ -622,7 +622,7 @@ func (o *PasswordPolicyV3Dto) GetMinNumeric() int64 { // GetMinNumericOk returns a tuple with the MinNumeric field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetMinNumericOk() (*int64, bool) { - if o == nil || isNil(o.MinNumeric) { + if o == nil || IsNil(o.MinNumeric) { return nil, false } return o.MinNumeric, true @@ -630,7 +630,7 @@ func (o *PasswordPolicyV3Dto) GetMinNumericOk() (*int64, bool) { // HasMinNumeric returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasMinNumeric() bool { - if o != nil && !isNil(o.MinNumeric) { + if o != nil && !IsNil(o.MinNumeric) { return true } @@ -644,7 +644,7 @@ func (o *PasswordPolicyV3Dto) SetMinNumeric(v int64) { // GetMinSpecial returns the MinSpecial field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetMinSpecial() int64 { - if o == nil || isNil(o.MinSpecial) { + if o == nil || IsNil(o.MinSpecial) { var ret int64 return ret } @@ -654,7 +654,7 @@ func (o *PasswordPolicyV3Dto) GetMinSpecial() int64 { // GetMinSpecialOk returns a tuple with the MinSpecial field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetMinSpecialOk() (*int64, bool) { - if o == nil || isNil(o.MinSpecial) { + if o == nil || IsNil(o.MinSpecial) { return nil, false } return o.MinSpecial, true @@ -662,7 +662,7 @@ func (o *PasswordPolicyV3Dto) GetMinSpecialOk() (*int64, bool) { // HasMinSpecial returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasMinSpecial() bool { - if o != nil && !isNil(o.MinSpecial) { + if o != nil && !IsNil(o.MinSpecial) { return true } @@ -676,7 +676,7 @@ func (o *PasswordPolicyV3Dto) SetMinSpecial(v int64) { // GetMinUpper returns the MinUpper field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetMinUpper() int64 { - if o == nil || isNil(o.MinUpper) { + if o == nil || IsNil(o.MinUpper) { var ret int64 return ret } @@ -686,7 +686,7 @@ func (o *PasswordPolicyV3Dto) GetMinUpper() int64 { // GetMinUpperOk returns a tuple with the MinUpper field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetMinUpperOk() (*int64, bool) { - if o == nil || isNil(o.MinUpper) { + if o == nil || IsNil(o.MinUpper) { return nil, false } return o.MinUpper, true @@ -694,7 +694,7 @@ func (o *PasswordPolicyV3Dto) GetMinUpperOk() (*int64, bool) { // HasMinUpper returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasMinUpper() bool { - if o != nil && !isNil(o.MinUpper) { + if o != nil && !IsNil(o.MinUpper) { return true } @@ -708,7 +708,7 @@ func (o *PasswordPolicyV3Dto) SetMinUpper(v int64) { // GetPasswordExpiration returns the PasswordExpiration field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetPasswordExpiration() int64 { - if o == nil || isNil(o.PasswordExpiration) { + if o == nil || IsNil(o.PasswordExpiration) { var ret int64 return ret } @@ -718,7 +718,7 @@ func (o *PasswordPolicyV3Dto) GetPasswordExpiration() int64 { // GetPasswordExpirationOk returns a tuple with the PasswordExpiration field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetPasswordExpirationOk() (*int64, bool) { - if o == nil || isNil(o.PasswordExpiration) { + if o == nil || IsNil(o.PasswordExpiration) { return nil, false } return o.PasswordExpiration, true @@ -726,7 +726,7 @@ func (o *PasswordPolicyV3Dto) GetPasswordExpirationOk() (*int64, bool) { // HasPasswordExpiration returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasPasswordExpiration() bool { - if o != nil && !isNil(o.PasswordExpiration) { + if o != nil && !IsNil(o.PasswordExpiration) { return true } @@ -740,7 +740,7 @@ func (o *PasswordPolicyV3Dto) SetPasswordExpiration(v int64) { // GetDefaultPolicy returns the DefaultPolicy field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetDefaultPolicy() bool { - if o == nil || isNil(o.DefaultPolicy) { + if o == nil || IsNil(o.DefaultPolicy) { var ret bool return ret } @@ -750,7 +750,7 @@ func (o *PasswordPolicyV3Dto) GetDefaultPolicy() bool { // GetDefaultPolicyOk returns a tuple with the DefaultPolicy field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetDefaultPolicyOk() (*bool, bool) { - if o == nil || isNil(o.DefaultPolicy) { + if o == nil || IsNil(o.DefaultPolicy) { return nil, false } return o.DefaultPolicy, true @@ -758,7 +758,7 @@ func (o *PasswordPolicyV3Dto) GetDefaultPolicyOk() (*bool, bool) { // HasDefaultPolicy returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasDefaultPolicy() bool { - if o != nil && !isNil(o.DefaultPolicy) { + if o != nil && !IsNil(o.DefaultPolicy) { return true } @@ -772,7 +772,7 @@ func (o *PasswordPolicyV3Dto) SetDefaultPolicy(v bool) { // GetEnablePasswdExpiration returns the EnablePasswdExpiration field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetEnablePasswdExpiration() bool { - if o == nil || isNil(o.EnablePasswdExpiration) { + if o == nil || IsNil(o.EnablePasswdExpiration) { var ret bool return ret } @@ -782,7 +782,7 @@ func (o *PasswordPolicyV3Dto) GetEnablePasswdExpiration() bool { // GetEnablePasswdExpirationOk returns a tuple with the EnablePasswdExpiration field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetEnablePasswdExpirationOk() (*bool, bool) { - if o == nil || isNil(o.EnablePasswdExpiration) { + if o == nil || IsNil(o.EnablePasswdExpiration) { return nil, false } return o.EnablePasswdExpiration, true @@ -790,7 +790,7 @@ func (o *PasswordPolicyV3Dto) GetEnablePasswdExpirationOk() (*bool, bool) { // HasEnablePasswdExpiration returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasEnablePasswdExpiration() bool { - if o != nil && !isNil(o.EnablePasswdExpiration) { + if o != nil && !IsNil(o.EnablePasswdExpiration) { return true } @@ -804,7 +804,7 @@ func (o *PasswordPolicyV3Dto) SetEnablePasswdExpiration(v bool) { // GetRequireStrongAuthn returns the RequireStrongAuthn field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetRequireStrongAuthn() bool { - if o == nil || isNil(o.RequireStrongAuthn) { + if o == nil || IsNil(o.RequireStrongAuthn) { var ret bool return ret } @@ -814,7 +814,7 @@ func (o *PasswordPolicyV3Dto) GetRequireStrongAuthn() bool { // GetRequireStrongAuthnOk returns a tuple with the RequireStrongAuthn field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetRequireStrongAuthnOk() (*bool, bool) { - if o == nil || isNil(o.RequireStrongAuthn) { + if o == nil || IsNil(o.RequireStrongAuthn) { return nil, false } return o.RequireStrongAuthn, true @@ -822,7 +822,7 @@ func (o *PasswordPolicyV3Dto) GetRequireStrongAuthnOk() (*bool, bool) { // HasRequireStrongAuthn returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasRequireStrongAuthn() bool { - if o != nil && !isNil(o.RequireStrongAuthn) { + if o != nil && !IsNil(o.RequireStrongAuthn) { return true } @@ -836,7 +836,7 @@ func (o *PasswordPolicyV3Dto) SetRequireStrongAuthn(v bool) { // GetRequireStrongAuthOffNetwork returns the RequireStrongAuthOffNetwork field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetRequireStrongAuthOffNetwork() bool { - if o == nil || isNil(o.RequireStrongAuthOffNetwork) { + if o == nil || IsNil(o.RequireStrongAuthOffNetwork) { var ret bool return ret } @@ -846,7 +846,7 @@ func (o *PasswordPolicyV3Dto) GetRequireStrongAuthOffNetwork() bool { // GetRequireStrongAuthOffNetworkOk returns a tuple with the RequireStrongAuthOffNetwork field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetRequireStrongAuthOffNetworkOk() (*bool, bool) { - if o == nil || isNil(o.RequireStrongAuthOffNetwork) { + if o == nil || IsNil(o.RequireStrongAuthOffNetwork) { return nil, false } return o.RequireStrongAuthOffNetwork, true @@ -854,7 +854,7 @@ func (o *PasswordPolicyV3Dto) GetRequireStrongAuthOffNetworkOk() (*bool, bool) { // HasRequireStrongAuthOffNetwork returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasRequireStrongAuthOffNetwork() bool { - if o != nil && !isNil(o.RequireStrongAuthOffNetwork) { + if o != nil && !IsNil(o.RequireStrongAuthOffNetwork) { return true } @@ -868,7 +868,7 @@ func (o *PasswordPolicyV3Dto) SetRequireStrongAuthOffNetwork(v bool) { // GetRequireStrongAuthUntrustedGeographies returns the RequireStrongAuthUntrustedGeographies field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetRequireStrongAuthUntrustedGeographies() bool { - if o == nil || isNil(o.RequireStrongAuthUntrustedGeographies) { + if o == nil || IsNil(o.RequireStrongAuthUntrustedGeographies) { var ret bool return ret } @@ -878,7 +878,7 @@ func (o *PasswordPolicyV3Dto) GetRequireStrongAuthUntrustedGeographies() bool { // GetRequireStrongAuthUntrustedGeographiesOk returns a tuple with the RequireStrongAuthUntrustedGeographies field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetRequireStrongAuthUntrustedGeographiesOk() (*bool, bool) { - if o == nil || isNil(o.RequireStrongAuthUntrustedGeographies) { + if o == nil || IsNil(o.RequireStrongAuthUntrustedGeographies) { return nil, false } return o.RequireStrongAuthUntrustedGeographies, true @@ -886,7 +886,7 @@ func (o *PasswordPolicyV3Dto) GetRequireStrongAuthUntrustedGeographiesOk() (*boo // HasRequireStrongAuthUntrustedGeographies returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasRequireStrongAuthUntrustedGeographies() bool { - if o != nil && !isNil(o.RequireStrongAuthUntrustedGeographies) { + if o != nil && !IsNil(o.RequireStrongAuthUntrustedGeographies) { return true } @@ -900,7 +900,7 @@ func (o *PasswordPolicyV3Dto) SetRequireStrongAuthUntrustedGeographies(v bool) { // GetUseAccountAttributes returns the UseAccountAttributes field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetUseAccountAttributes() bool { - if o == nil || isNil(o.UseAccountAttributes) { + if o == nil || IsNil(o.UseAccountAttributes) { var ret bool return ret } @@ -910,7 +910,7 @@ func (o *PasswordPolicyV3Dto) GetUseAccountAttributes() bool { // GetUseAccountAttributesOk returns a tuple with the UseAccountAttributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetUseAccountAttributesOk() (*bool, bool) { - if o == nil || isNil(o.UseAccountAttributes) { + if o == nil || IsNil(o.UseAccountAttributes) { return nil, false } return o.UseAccountAttributes, true @@ -918,7 +918,7 @@ func (o *PasswordPolicyV3Dto) GetUseAccountAttributesOk() (*bool, bool) { // HasUseAccountAttributes returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasUseAccountAttributes() bool { - if o != nil && !isNil(o.UseAccountAttributes) { + if o != nil && !IsNil(o.UseAccountAttributes) { return true } @@ -932,7 +932,7 @@ func (o *PasswordPolicyV3Dto) SetUseAccountAttributes(v bool) { // GetUseDictionary returns the UseDictionary field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetUseDictionary() bool { - if o == nil || isNil(o.UseDictionary) { + if o == nil || IsNil(o.UseDictionary) { var ret bool return ret } @@ -942,7 +942,7 @@ func (o *PasswordPolicyV3Dto) GetUseDictionary() bool { // GetUseDictionaryOk returns a tuple with the UseDictionary field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetUseDictionaryOk() (*bool, bool) { - if o == nil || isNil(o.UseDictionary) { + if o == nil || IsNil(o.UseDictionary) { return nil, false } return o.UseDictionary, true @@ -950,7 +950,7 @@ func (o *PasswordPolicyV3Dto) GetUseDictionaryOk() (*bool, bool) { // HasUseDictionary returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasUseDictionary() bool { - if o != nil && !isNil(o.UseDictionary) { + if o != nil && !IsNil(o.UseDictionary) { return true } @@ -964,7 +964,7 @@ func (o *PasswordPolicyV3Dto) SetUseDictionary(v bool) { // GetUseIdentityAttributes returns the UseIdentityAttributes field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetUseIdentityAttributes() bool { - if o == nil || isNil(o.UseIdentityAttributes) { + if o == nil || IsNil(o.UseIdentityAttributes) { var ret bool return ret } @@ -974,7 +974,7 @@ func (o *PasswordPolicyV3Dto) GetUseIdentityAttributes() bool { // GetUseIdentityAttributesOk returns a tuple with the UseIdentityAttributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetUseIdentityAttributesOk() (*bool, bool) { - if o == nil || isNil(o.UseIdentityAttributes) { + if o == nil || IsNil(o.UseIdentityAttributes) { return nil, false } return o.UseIdentityAttributes, true @@ -982,7 +982,7 @@ func (o *PasswordPolicyV3Dto) GetUseIdentityAttributesOk() (*bool, bool) { // HasUseIdentityAttributes returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasUseIdentityAttributes() bool { - if o != nil && !isNil(o.UseIdentityAttributes) { + if o != nil && !IsNil(o.UseIdentityAttributes) { return true } @@ -996,7 +996,7 @@ func (o *PasswordPolicyV3Dto) SetUseIdentityAttributes(v bool) { // GetValidateAgainstAccountId returns the ValidateAgainstAccountId field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetValidateAgainstAccountId() bool { - if o == nil || isNil(o.ValidateAgainstAccountId) { + if o == nil || IsNil(o.ValidateAgainstAccountId) { var ret bool return ret } @@ -1006,7 +1006,7 @@ func (o *PasswordPolicyV3Dto) GetValidateAgainstAccountId() bool { // GetValidateAgainstAccountIdOk returns a tuple with the ValidateAgainstAccountId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetValidateAgainstAccountIdOk() (*bool, bool) { - if o == nil || isNil(o.ValidateAgainstAccountId) { + if o == nil || IsNil(o.ValidateAgainstAccountId) { return nil, false } return o.ValidateAgainstAccountId, true @@ -1014,7 +1014,7 @@ func (o *PasswordPolicyV3Dto) GetValidateAgainstAccountIdOk() (*bool, bool) { // HasValidateAgainstAccountId returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasValidateAgainstAccountId() bool { - if o != nil && !isNil(o.ValidateAgainstAccountId) { + if o != nil && !IsNil(o.ValidateAgainstAccountId) { return true } @@ -1028,7 +1028,7 @@ func (o *PasswordPolicyV3Dto) SetValidateAgainstAccountId(v bool) { // GetValidateAgainstAccountName returns the ValidateAgainstAccountName field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetValidateAgainstAccountName() bool { - if o == nil || isNil(o.ValidateAgainstAccountName) { + if o == nil || IsNil(o.ValidateAgainstAccountName) { var ret bool return ret } @@ -1038,7 +1038,7 @@ func (o *PasswordPolicyV3Dto) GetValidateAgainstAccountName() bool { // GetValidateAgainstAccountNameOk returns a tuple with the ValidateAgainstAccountName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetValidateAgainstAccountNameOk() (*bool, bool) { - if o == nil || isNil(o.ValidateAgainstAccountName) { + if o == nil || IsNil(o.ValidateAgainstAccountName) { return nil, false } return o.ValidateAgainstAccountName, true @@ -1046,7 +1046,7 @@ func (o *PasswordPolicyV3Dto) GetValidateAgainstAccountNameOk() (*bool, bool) { // HasValidateAgainstAccountName returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasValidateAgainstAccountName() bool { - if o != nil && !isNil(o.ValidateAgainstAccountName) { + if o != nil && !IsNil(o.ValidateAgainstAccountName) { return true } @@ -1060,7 +1060,7 @@ func (o *PasswordPolicyV3Dto) SetValidateAgainstAccountName(v bool) { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PasswordPolicyV3Dto) GetCreated() string { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret string return ret } @@ -1102,7 +1102,7 @@ func (o *PasswordPolicyV3Dto) UnsetCreated() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PasswordPolicyV3Dto) GetModified() string { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret string return ret } @@ -1144,7 +1144,7 @@ func (o *PasswordPolicyV3Dto) UnsetModified() { // GetSourceIds returns the SourceIds field value if set, zero value otherwise. func (o *PasswordPolicyV3Dto) GetSourceIds() []string { - if o == nil || isNil(o.SourceIds) { + if o == nil || IsNil(o.SourceIds) { var ret []string return ret } @@ -1154,7 +1154,7 @@ func (o *PasswordPolicyV3Dto) GetSourceIds() []string { // GetSourceIdsOk returns a tuple with the SourceIds field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordPolicyV3Dto) GetSourceIdsOk() ([]string, bool) { - if o == nil || isNil(o.SourceIds) { + if o == nil || IsNil(o.SourceIds) { return nil, false } return o.SourceIds, true @@ -1162,7 +1162,7 @@ func (o *PasswordPolicyV3Dto) GetSourceIdsOk() ([]string, bool) { // HasSourceIds returns a boolean if a field has been set. func (o *PasswordPolicyV3Dto) HasSourceIds() bool { - if o != nil && !isNil(o.SourceIds) { + if o != nil && !IsNil(o.SourceIds) { return true } @@ -1184,88 +1184,88 @@ func (o PasswordPolicyV3Dto) MarshalJSON() ([]byte, error) { func (o PasswordPolicyV3Dto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } if o.Description.IsSet() { toSerialize["description"] = o.Description.Get() } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.DateCreated) { + if !IsNil(o.DateCreated) { toSerialize["dateCreated"] = o.DateCreated } if o.LastUpdated.IsSet() { toSerialize["lastUpdated"] = o.LastUpdated.Get() } - if !isNil(o.FirstExpirationReminder) { + if !IsNil(o.FirstExpirationReminder) { toSerialize["firstExpirationReminder"] = o.FirstExpirationReminder } - if !isNil(o.AccountIdMinWordLength) { + if !IsNil(o.AccountIdMinWordLength) { toSerialize["accountIdMinWordLength"] = o.AccountIdMinWordLength } - if !isNil(o.AccountNameMinWordLength) { + if !IsNil(o.AccountNameMinWordLength) { toSerialize["accountNameMinWordLength"] = o.AccountNameMinWordLength } - if !isNil(o.MinAlpha) { + if !IsNil(o.MinAlpha) { toSerialize["minAlpha"] = o.MinAlpha } - if !isNil(o.MinCharacterTypes) { + if !IsNil(o.MinCharacterTypes) { toSerialize["minCharacterTypes"] = o.MinCharacterTypes } - if !isNil(o.MaxLength) { + if !IsNil(o.MaxLength) { toSerialize["maxLength"] = o.MaxLength } - if !isNil(o.MinLength) { + if !IsNil(o.MinLength) { toSerialize["minLength"] = o.MinLength } - if !isNil(o.MaxRepeatedChars) { + if !IsNil(o.MaxRepeatedChars) { toSerialize["maxRepeatedChars"] = o.MaxRepeatedChars } - if !isNil(o.MinLower) { + if !IsNil(o.MinLower) { toSerialize["minLower"] = o.MinLower } - if !isNil(o.MinNumeric) { + if !IsNil(o.MinNumeric) { toSerialize["minNumeric"] = o.MinNumeric } - if !isNil(o.MinSpecial) { + if !IsNil(o.MinSpecial) { toSerialize["minSpecial"] = o.MinSpecial } - if !isNil(o.MinUpper) { + if !IsNil(o.MinUpper) { toSerialize["minUpper"] = o.MinUpper } - if !isNil(o.PasswordExpiration) { + if !IsNil(o.PasswordExpiration) { toSerialize["passwordExpiration"] = o.PasswordExpiration } - if !isNil(o.DefaultPolicy) { + if !IsNil(o.DefaultPolicy) { toSerialize["defaultPolicy"] = o.DefaultPolicy } - if !isNil(o.EnablePasswdExpiration) { + if !IsNil(o.EnablePasswdExpiration) { toSerialize["enablePasswdExpiration"] = o.EnablePasswdExpiration } - if !isNil(o.RequireStrongAuthn) { + if !IsNil(o.RequireStrongAuthn) { toSerialize["requireStrongAuthn"] = o.RequireStrongAuthn } - if !isNil(o.RequireStrongAuthOffNetwork) { + if !IsNil(o.RequireStrongAuthOffNetwork) { toSerialize["requireStrongAuthOffNetwork"] = o.RequireStrongAuthOffNetwork } - if !isNil(o.RequireStrongAuthUntrustedGeographies) { + if !IsNil(o.RequireStrongAuthUntrustedGeographies) { toSerialize["requireStrongAuthUntrustedGeographies"] = o.RequireStrongAuthUntrustedGeographies } - if !isNil(o.UseAccountAttributes) { + if !IsNil(o.UseAccountAttributes) { toSerialize["useAccountAttributes"] = o.UseAccountAttributes } - if !isNil(o.UseDictionary) { + if !IsNil(o.UseDictionary) { toSerialize["useDictionary"] = o.UseDictionary } - if !isNil(o.UseIdentityAttributes) { + if !IsNil(o.UseIdentityAttributes) { toSerialize["useIdentityAttributes"] = o.UseIdentityAttributes } - if !isNil(o.ValidateAgainstAccountId) { + if !IsNil(o.ValidateAgainstAccountId) { toSerialize["validateAgainstAccountId"] = o.ValidateAgainstAccountId } - if !isNil(o.ValidateAgainstAccountName) { + if !IsNil(o.ValidateAgainstAccountName) { toSerialize["validateAgainstAccountName"] = o.ValidateAgainstAccountName } if o.Created.IsSet() { @@ -1274,7 +1274,7 @@ func (o PasswordPolicyV3Dto) ToMap() (map[string]interface{}, error) { if o.Modified.IsSet() { toSerialize["modified"] = o.Modified.Get() } - if !isNil(o.SourceIds) { + if !IsNil(o.SourceIds) { toSerialize["sourceIds"] = o.SourceIds } @@ -1285,16 +1285,20 @@ func (o PasswordPolicyV3Dto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PasswordPolicyV3Dto) UnmarshalJSON(bytes []byte) (err error) { +func (o *PasswordPolicyV3Dto) UnmarshalJSON(data []byte) (err error) { varPasswordPolicyV3Dto := _PasswordPolicyV3Dto{} - if err = json.Unmarshal(bytes, &varPasswordPolicyV3Dto); err == nil { + err = json.Unmarshal(data, &varPasswordPolicyV3Dto) + + if err != nil { + return err + } + *o = PasswordPolicyV3Dto(varPasswordPolicyV3Dto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "description") delete(additionalProperties, "name") diff --git a/api_v3/model_password_status.go b/api_v3/model_password_status.go index 1fb747722..8fd281757 100644 --- a/api_v3/model_password_status.go +++ b/api_v3/model_password_status.go @@ -51,7 +51,7 @@ func NewPasswordStatusWithDefaults() *PasswordStatus { // GetRequestId returns the RequestId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PasswordStatus) GetRequestId() string { - if o == nil || isNil(o.RequestId.Get()) { + if o == nil || IsNil(o.RequestId.Get()) { var ret string return ret } @@ -93,7 +93,7 @@ func (o *PasswordStatus) UnsetRequestId() { // GetState returns the State field value if set, zero value otherwise. func (o *PasswordStatus) GetState() string { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { var ret string return ret } @@ -103,7 +103,7 @@ func (o *PasswordStatus) GetState() string { // GetStateOk returns a tuple with the State field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordStatus) GetStateOk() (*string, bool) { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { return nil, false } return o.State, true @@ -111,7 +111,7 @@ func (o *PasswordStatus) GetStateOk() (*string, bool) { // HasState returns a boolean if a field has been set. func (o *PasswordStatus) HasState() bool { - if o != nil && !isNil(o.State) { + if o != nil && !IsNil(o.State) { return true } @@ -125,7 +125,7 @@ func (o *PasswordStatus) SetState(v string) { // GetErrors returns the Errors field value if set, zero value otherwise. func (o *PasswordStatus) GetErrors() []string { - if o == nil || isNil(o.Errors) { + if o == nil || IsNil(o.Errors) { var ret []string return ret } @@ -135,7 +135,7 @@ func (o *PasswordStatus) GetErrors() []string { // GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordStatus) GetErrorsOk() ([]string, bool) { - if o == nil || isNil(o.Errors) { + if o == nil || IsNil(o.Errors) { return nil, false } return o.Errors, true @@ -143,7 +143,7 @@ func (o *PasswordStatus) GetErrorsOk() ([]string, bool) { // HasErrors returns a boolean if a field has been set. func (o *PasswordStatus) HasErrors() bool { - if o != nil && !isNil(o.Errors) { + if o != nil && !IsNil(o.Errors) { return true } @@ -157,7 +157,7 @@ func (o *PasswordStatus) SetErrors(v []string) { // GetSourceIds returns the SourceIds field value if set, zero value otherwise. func (o *PasswordStatus) GetSourceIds() []string { - if o == nil || isNil(o.SourceIds) { + if o == nil || IsNil(o.SourceIds) { var ret []string return ret } @@ -167,7 +167,7 @@ func (o *PasswordStatus) GetSourceIds() []string { // GetSourceIdsOk returns a tuple with the SourceIds field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordStatus) GetSourceIdsOk() ([]string, bool) { - if o == nil || isNil(o.SourceIds) { + if o == nil || IsNil(o.SourceIds) { return nil, false } return o.SourceIds, true @@ -175,7 +175,7 @@ func (o *PasswordStatus) GetSourceIdsOk() ([]string, bool) { // HasSourceIds returns a boolean if a field has been set. func (o *PasswordStatus) HasSourceIds() bool { - if o != nil && !isNil(o.SourceIds) { + if o != nil && !IsNil(o.SourceIds) { return true } @@ -200,13 +200,13 @@ func (o PasswordStatus) ToMap() (map[string]interface{}, error) { if o.RequestId.IsSet() { toSerialize["requestId"] = o.RequestId.Get() } - if !isNil(o.State) { + if !IsNil(o.State) { toSerialize["state"] = o.State } - if !isNil(o.Errors) { + if !IsNil(o.Errors) { toSerialize["errors"] = o.Errors } - if !isNil(o.SourceIds) { + if !IsNil(o.SourceIds) { toSerialize["sourceIds"] = o.SourceIds } @@ -217,16 +217,20 @@ func (o PasswordStatus) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PasswordStatus) UnmarshalJSON(bytes []byte) (err error) { +func (o *PasswordStatus) UnmarshalJSON(data []byte) (err error) { varPasswordStatus := _PasswordStatus{} - if err = json.Unmarshal(bytes, &varPasswordStatus); err == nil { + err = json.Unmarshal(data, &varPasswordStatus) + + if err != nil { + return err + } + *o = PasswordStatus(varPasswordStatus) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "requestId") delete(additionalProperties, "state") delete(additionalProperties, "errors") diff --git a/api_v3/model_password_sync_group.go b/api_v3/model_password_sync_group.go index 44dd329f6..86ea650ce 100644 --- a/api_v3/model_password_sync_group.go +++ b/api_v3/model_password_sync_group.go @@ -56,7 +56,7 @@ func NewPasswordSyncGroupWithDefaults() *PasswordSyncGroup { // GetId returns the Id field value if set, zero value otherwise. func (o *PasswordSyncGroup) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -66,7 +66,7 @@ func (o *PasswordSyncGroup) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordSyncGroup) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -74,7 +74,7 @@ func (o *PasswordSyncGroup) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *PasswordSyncGroup) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -88,7 +88,7 @@ func (o *PasswordSyncGroup) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *PasswordSyncGroup) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -98,7 +98,7 @@ func (o *PasswordSyncGroup) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordSyncGroup) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -106,7 +106,7 @@ func (o *PasswordSyncGroup) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *PasswordSyncGroup) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -120,7 +120,7 @@ func (o *PasswordSyncGroup) SetName(v string) { // GetPasswordPolicyId returns the PasswordPolicyId field value if set, zero value otherwise. func (o *PasswordSyncGroup) GetPasswordPolicyId() string { - if o == nil || isNil(o.PasswordPolicyId) { + if o == nil || IsNil(o.PasswordPolicyId) { var ret string return ret } @@ -130,7 +130,7 @@ func (o *PasswordSyncGroup) GetPasswordPolicyId() string { // GetPasswordPolicyIdOk returns a tuple with the PasswordPolicyId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordSyncGroup) GetPasswordPolicyIdOk() (*string, bool) { - if o == nil || isNil(o.PasswordPolicyId) { + if o == nil || IsNil(o.PasswordPolicyId) { return nil, false } return o.PasswordPolicyId, true @@ -138,7 +138,7 @@ func (o *PasswordSyncGroup) GetPasswordPolicyIdOk() (*string, bool) { // HasPasswordPolicyId returns a boolean if a field has been set. func (o *PasswordSyncGroup) HasPasswordPolicyId() bool { - if o != nil && !isNil(o.PasswordPolicyId) { + if o != nil && !IsNil(o.PasswordPolicyId) { return true } @@ -152,7 +152,7 @@ func (o *PasswordSyncGroup) SetPasswordPolicyId(v string) { // GetSourceIds returns the SourceIds field value if set, zero value otherwise. func (o *PasswordSyncGroup) GetSourceIds() []string { - if o == nil || isNil(o.SourceIds) { + if o == nil || IsNil(o.SourceIds) { var ret []string return ret } @@ -162,7 +162,7 @@ func (o *PasswordSyncGroup) GetSourceIds() []string { // GetSourceIdsOk returns a tuple with the SourceIds field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PasswordSyncGroup) GetSourceIdsOk() ([]string, bool) { - if o == nil || isNil(o.SourceIds) { + if o == nil || IsNil(o.SourceIds) { return nil, false } return o.SourceIds, true @@ -170,7 +170,7 @@ func (o *PasswordSyncGroup) GetSourceIdsOk() ([]string, bool) { // HasSourceIds returns a boolean if a field has been set. func (o *PasswordSyncGroup) HasSourceIds() bool { - if o != nil && !isNil(o.SourceIds) { + if o != nil && !IsNil(o.SourceIds) { return true } @@ -184,7 +184,7 @@ func (o *PasswordSyncGroup) SetSourceIds(v []string) { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PasswordSyncGroup) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -226,7 +226,7 @@ func (o *PasswordSyncGroup) UnsetCreated() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PasswordSyncGroup) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -276,16 +276,16 @@ func (o PasswordSyncGroup) MarshalJSON() ([]byte, error) { func (o PasswordSyncGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.PasswordPolicyId) { + if !IsNil(o.PasswordPolicyId) { toSerialize["passwordPolicyId"] = o.PasswordPolicyId } - if !isNil(o.SourceIds) { + if !IsNil(o.SourceIds) { toSerialize["sourceIds"] = o.SourceIds } if o.Created.IsSet() { @@ -302,16 +302,20 @@ func (o PasswordSyncGroup) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PasswordSyncGroup) UnmarshalJSON(bytes []byte) (err error) { +func (o *PasswordSyncGroup) UnmarshalJSON(data []byte) (err error) { varPasswordSyncGroup := _PasswordSyncGroup{} - if err = json.Unmarshal(bytes, &varPasswordSyncGroup); err == nil { + err = json.Unmarshal(data, &varPasswordSyncGroup) + + if err != nil { + return err + } + *o = PasswordSyncGroup(varPasswordSyncGroup) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "passwordPolicyId") diff --git a/api_v3/model_pat_owner.go b/api_v3/model_pat_owner.go index 85c615f14..cdb7d0840 100644 --- a/api_v3/model_pat_owner.go +++ b/api_v3/model_pat_owner.go @@ -49,7 +49,7 @@ func NewPatOwnerWithDefaults() *PatOwner { // GetType returns the Type field value if set, zero value otherwise. func (o *PatOwner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *PatOwner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PatOwner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *PatOwner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *PatOwner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *PatOwner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *PatOwner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *PatOwner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PatOwner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *PatOwner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *PatOwner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *PatOwner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *PatOwner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *PatOwner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PatOwner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *PatOwner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *PatOwner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o PatOwner) MarshalJSON() ([]byte, error) { func (o PatOwner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o PatOwner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PatOwner) UnmarshalJSON(bytes []byte) (err error) { +func (o *PatOwner) UnmarshalJSON(data []byte) (err error) { varPatOwner := _PatOwner{} - if err = json.Unmarshal(bytes, &varPatOwner); err == nil { + err = json.Unmarshal(data, &varPatOwner) + + if err != nil { + return err + } + *o = PatOwner(varPatOwner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_patch_service_desk_integration_request.go b/api_v3/model_patch_service_desk_integration_request.go index a464f639a..985b9e1ac 100644 --- a/api_v3/model_patch_service_desk_integration_request.go +++ b/api_v3/model_patch_service_desk_integration_request.go @@ -45,7 +45,7 @@ func NewPatchServiceDeskIntegrationRequestWithDefaults() *PatchServiceDeskIntegr // GetOperations returns the Operations field value if set, zero value otherwise. func (o *PatchServiceDeskIntegrationRequest) GetOperations() []JsonPatchOperation { - if o == nil || isNil(o.Operations) { + if o == nil || IsNil(o.Operations) { var ret []JsonPatchOperation return ret } @@ -55,7 +55,7 @@ func (o *PatchServiceDeskIntegrationRequest) GetOperations() []JsonPatchOperatio // GetOperationsOk returns a tuple with the Operations field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PatchServiceDeskIntegrationRequest) GetOperationsOk() ([]JsonPatchOperation, bool) { - if o == nil || isNil(o.Operations) { + if o == nil || IsNil(o.Operations) { return nil, false } return o.Operations, true @@ -63,7 +63,7 @@ func (o *PatchServiceDeskIntegrationRequest) GetOperationsOk() ([]JsonPatchOpera // HasOperations returns a boolean if a field has been set. func (o *PatchServiceDeskIntegrationRequest) HasOperations() bool { - if o != nil && !isNil(o.Operations) { + if o != nil && !IsNil(o.Operations) { return true } @@ -85,7 +85,7 @@ func (o PatchServiceDeskIntegrationRequest) MarshalJSON() ([]byte, error) { func (o PatchServiceDeskIntegrationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Operations) { + if !IsNil(o.Operations) { toSerialize["operations"] = o.Operations } @@ -96,16 +96,20 @@ func (o PatchServiceDeskIntegrationRequest) ToMap() (map[string]interface{}, err return toSerialize, nil } -func (o *PatchServiceDeskIntegrationRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *PatchServiceDeskIntegrationRequest) UnmarshalJSON(data []byte) (err error) { varPatchServiceDeskIntegrationRequest := _PatchServiceDeskIntegrationRequest{} - if err = json.Unmarshal(bytes, &varPatchServiceDeskIntegrationRequest); err == nil { + err = json.Unmarshal(data, &varPatchServiceDeskIntegrationRequest) + + if err != nil { + return err + } + *o = PatchServiceDeskIntegrationRequest(varPatchServiceDeskIntegrationRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "operations") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_pending_approval.go b/api_v3/model_pending_approval.go index d0b125e29..21ccfe840 100644 --- a/api_v3/model_pending_approval.go +++ b/api_v3/model_pending_approval.go @@ -83,7 +83,7 @@ func NewPendingApprovalWithDefaults() *PendingApproval { // GetId returns the Id field value if set, zero value otherwise. func (o *PendingApproval) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -93,7 +93,7 @@ func (o *PendingApproval) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApproval) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -101,7 +101,7 @@ func (o *PendingApproval) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *PendingApproval) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -115,7 +115,7 @@ func (o *PendingApproval) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *PendingApproval) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -125,7 +125,7 @@ func (o *PendingApproval) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApproval) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -133,7 +133,7 @@ func (o *PendingApproval) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *PendingApproval) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -147,7 +147,7 @@ func (o *PendingApproval) SetName(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *PendingApproval) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -157,7 +157,7 @@ func (o *PendingApproval) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApproval) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -165,7 +165,7 @@ func (o *PendingApproval) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *PendingApproval) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -179,7 +179,7 @@ func (o *PendingApproval) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *PendingApproval) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -189,7 +189,7 @@ func (o *PendingApproval) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApproval) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -197,7 +197,7 @@ func (o *PendingApproval) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *PendingApproval) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -211,7 +211,7 @@ func (o *PendingApproval) SetModified(v time.Time) { // GetRequestCreated returns the RequestCreated field value if set, zero value otherwise. func (o *PendingApproval) GetRequestCreated() time.Time { - if o == nil || isNil(o.RequestCreated) { + if o == nil || IsNil(o.RequestCreated) { var ret time.Time return ret } @@ -221,7 +221,7 @@ func (o *PendingApproval) GetRequestCreated() time.Time { // GetRequestCreatedOk returns a tuple with the RequestCreated field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApproval) GetRequestCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.RequestCreated) { + if o == nil || IsNil(o.RequestCreated) { return nil, false } return o.RequestCreated, true @@ -229,7 +229,7 @@ func (o *PendingApproval) GetRequestCreatedOk() (*time.Time, bool) { // HasRequestCreated returns a boolean if a field has been set. func (o *PendingApproval) HasRequestCreated() bool { - if o != nil && !isNil(o.RequestCreated) { + if o != nil && !IsNil(o.RequestCreated) { return true } @@ -243,7 +243,7 @@ func (o *PendingApproval) SetRequestCreated(v time.Time) { // GetRequestType returns the RequestType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PendingApproval) GetRequestType() AccessRequestType { - if o == nil || isNil(o.RequestType.Get()) { + if o == nil || IsNil(o.RequestType.Get()) { var ret AccessRequestType return ret } @@ -285,7 +285,7 @@ func (o *PendingApproval) UnsetRequestType() { // GetRequester returns the Requester field value if set, zero value otherwise. func (o *PendingApproval) GetRequester() AccessItemRequester { - if o == nil || isNil(o.Requester) { + if o == nil || IsNil(o.Requester) { var ret AccessItemRequester return ret } @@ -295,7 +295,7 @@ func (o *PendingApproval) GetRequester() AccessItemRequester { // GetRequesterOk returns a tuple with the Requester field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApproval) GetRequesterOk() (*AccessItemRequester, bool) { - if o == nil || isNil(o.Requester) { + if o == nil || IsNil(o.Requester) { return nil, false } return o.Requester, true @@ -303,7 +303,7 @@ func (o *PendingApproval) GetRequesterOk() (*AccessItemRequester, bool) { // HasRequester returns a boolean if a field has been set. func (o *PendingApproval) HasRequester() bool { - if o != nil && !isNil(o.Requester) { + if o != nil && !IsNil(o.Requester) { return true } @@ -317,7 +317,7 @@ func (o *PendingApproval) SetRequester(v AccessItemRequester) { // GetRequestedFor returns the RequestedFor field value if set, zero value otherwise. func (o *PendingApproval) GetRequestedFor() []AccessItemRequestedFor { - if o == nil || isNil(o.RequestedFor) { + if o == nil || IsNil(o.RequestedFor) { var ret []AccessItemRequestedFor return ret } @@ -327,7 +327,7 @@ func (o *PendingApproval) GetRequestedFor() []AccessItemRequestedFor { // GetRequestedForOk returns a tuple with the RequestedFor field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApproval) GetRequestedForOk() ([]AccessItemRequestedFor, bool) { - if o == nil || isNil(o.RequestedFor) { + if o == nil || IsNil(o.RequestedFor) { return nil, false } return o.RequestedFor, true @@ -335,7 +335,7 @@ func (o *PendingApproval) GetRequestedForOk() ([]AccessItemRequestedFor, bool) { // HasRequestedFor returns a boolean if a field has been set. func (o *PendingApproval) HasRequestedFor() bool { - if o != nil && !isNil(o.RequestedFor) { + if o != nil && !IsNil(o.RequestedFor) { return true } @@ -349,7 +349,7 @@ func (o *PendingApproval) SetRequestedFor(v []AccessItemRequestedFor) { // GetOwner returns the Owner field value if set, zero value otherwise. func (o *PendingApproval) GetOwner() PendingApprovalOwner { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { var ret PendingApprovalOwner return ret } @@ -359,7 +359,7 @@ func (o *PendingApproval) GetOwner() PendingApprovalOwner { // GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApproval) GetOwnerOk() (*PendingApprovalOwner, bool) { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { return nil, false } return o.Owner, true @@ -367,7 +367,7 @@ func (o *PendingApproval) GetOwnerOk() (*PendingApprovalOwner, bool) { // HasOwner returns a boolean if a field has been set. func (o *PendingApproval) HasOwner() bool { - if o != nil && !isNil(o.Owner) { + if o != nil && !IsNil(o.Owner) { return true } @@ -381,7 +381,7 @@ func (o *PendingApproval) SetOwner(v PendingApprovalOwner) { // GetRequestedObject returns the RequestedObject field value if set, zero value otherwise. func (o *PendingApproval) GetRequestedObject() RequestableObjectReference { - if o == nil || isNil(o.RequestedObject) { + if o == nil || IsNil(o.RequestedObject) { var ret RequestableObjectReference return ret } @@ -391,7 +391,7 @@ func (o *PendingApproval) GetRequestedObject() RequestableObjectReference { // GetRequestedObjectOk returns a tuple with the RequestedObject field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApproval) GetRequestedObjectOk() (*RequestableObjectReference, bool) { - if o == nil || isNil(o.RequestedObject) { + if o == nil || IsNil(o.RequestedObject) { return nil, false } return o.RequestedObject, true @@ -399,7 +399,7 @@ func (o *PendingApproval) GetRequestedObjectOk() (*RequestableObjectReference, b // HasRequestedObject returns a boolean if a field has been set. func (o *PendingApproval) HasRequestedObject() bool { - if o != nil && !isNil(o.RequestedObject) { + if o != nil && !IsNil(o.RequestedObject) { return true } @@ -413,7 +413,7 @@ func (o *PendingApproval) SetRequestedObject(v RequestableObjectReference) { // GetRequesterComment returns the RequesterComment field value if set, zero value otherwise. func (o *PendingApproval) GetRequesterComment() CommentDto { - if o == nil || isNil(o.RequesterComment) { + if o == nil || IsNil(o.RequesterComment) { var ret CommentDto return ret } @@ -423,7 +423,7 @@ func (o *PendingApproval) GetRequesterComment() CommentDto { // GetRequesterCommentOk returns a tuple with the RequesterComment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApproval) GetRequesterCommentOk() (*CommentDto, bool) { - if o == nil || isNil(o.RequesterComment) { + if o == nil || IsNil(o.RequesterComment) { return nil, false } return o.RequesterComment, true @@ -431,7 +431,7 @@ func (o *PendingApproval) GetRequesterCommentOk() (*CommentDto, bool) { // HasRequesterComment returns a boolean if a field has been set. func (o *PendingApproval) HasRequesterComment() bool { - if o != nil && !isNil(o.RequesterComment) { + if o != nil && !IsNil(o.RequesterComment) { return true } @@ -445,7 +445,7 @@ func (o *PendingApproval) SetRequesterComment(v CommentDto) { // GetPreviousReviewersComments returns the PreviousReviewersComments field value if set, zero value otherwise. func (o *PendingApproval) GetPreviousReviewersComments() []CommentDto { - if o == nil || isNil(o.PreviousReviewersComments) { + if o == nil || IsNil(o.PreviousReviewersComments) { var ret []CommentDto return ret } @@ -455,7 +455,7 @@ func (o *PendingApproval) GetPreviousReviewersComments() []CommentDto { // GetPreviousReviewersCommentsOk returns a tuple with the PreviousReviewersComments field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApproval) GetPreviousReviewersCommentsOk() ([]CommentDto, bool) { - if o == nil || isNil(o.PreviousReviewersComments) { + if o == nil || IsNil(o.PreviousReviewersComments) { return nil, false } return o.PreviousReviewersComments, true @@ -463,7 +463,7 @@ func (o *PendingApproval) GetPreviousReviewersCommentsOk() ([]CommentDto, bool) // HasPreviousReviewersComments returns a boolean if a field has been set. func (o *PendingApproval) HasPreviousReviewersComments() bool { - if o != nil && !isNil(o.PreviousReviewersComments) { + if o != nil && !IsNil(o.PreviousReviewersComments) { return true } @@ -477,7 +477,7 @@ func (o *PendingApproval) SetPreviousReviewersComments(v []CommentDto) { // GetForwardHistory returns the ForwardHistory field value if set, zero value otherwise. func (o *PendingApproval) GetForwardHistory() []ApprovalForwardHistory { - if o == nil || isNil(o.ForwardHistory) { + if o == nil || IsNil(o.ForwardHistory) { var ret []ApprovalForwardHistory return ret } @@ -487,7 +487,7 @@ func (o *PendingApproval) GetForwardHistory() []ApprovalForwardHistory { // GetForwardHistoryOk returns a tuple with the ForwardHistory field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApproval) GetForwardHistoryOk() ([]ApprovalForwardHistory, bool) { - if o == nil || isNil(o.ForwardHistory) { + if o == nil || IsNil(o.ForwardHistory) { return nil, false } return o.ForwardHistory, true @@ -495,7 +495,7 @@ func (o *PendingApproval) GetForwardHistoryOk() ([]ApprovalForwardHistory, bool) // HasForwardHistory returns a boolean if a field has been set. func (o *PendingApproval) HasForwardHistory() bool { - if o != nil && !isNil(o.ForwardHistory) { + if o != nil && !IsNil(o.ForwardHistory) { return true } @@ -509,7 +509,7 @@ func (o *PendingApproval) SetForwardHistory(v []ApprovalForwardHistory) { // GetCommentRequiredWhenRejected returns the CommentRequiredWhenRejected field value if set, zero value otherwise. func (o *PendingApproval) GetCommentRequiredWhenRejected() bool { - if o == nil || isNil(o.CommentRequiredWhenRejected) { + if o == nil || IsNil(o.CommentRequiredWhenRejected) { var ret bool return ret } @@ -519,7 +519,7 @@ func (o *PendingApproval) GetCommentRequiredWhenRejected() bool { // GetCommentRequiredWhenRejectedOk returns a tuple with the CommentRequiredWhenRejected field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApproval) GetCommentRequiredWhenRejectedOk() (*bool, bool) { - if o == nil || isNil(o.CommentRequiredWhenRejected) { + if o == nil || IsNil(o.CommentRequiredWhenRejected) { return nil, false } return o.CommentRequiredWhenRejected, true @@ -527,7 +527,7 @@ func (o *PendingApproval) GetCommentRequiredWhenRejectedOk() (*bool, bool) { // HasCommentRequiredWhenRejected returns a boolean if a field has been set. func (o *PendingApproval) HasCommentRequiredWhenRejected() bool { - if o != nil && !isNil(o.CommentRequiredWhenRejected) { + if o != nil && !IsNil(o.CommentRequiredWhenRejected) { return true } @@ -541,7 +541,7 @@ func (o *PendingApproval) SetCommentRequiredWhenRejected(v bool) { // GetActionInProcess returns the ActionInProcess field value if set, zero value otherwise. func (o *PendingApproval) GetActionInProcess() PendingApprovalAction { - if o == nil || isNil(o.ActionInProcess) { + if o == nil || IsNil(o.ActionInProcess) { var ret PendingApprovalAction return ret } @@ -551,7 +551,7 @@ func (o *PendingApproval) GetActionInProcess() PendingApprovalAction { // GetActionInProcessOk returns a tuple with the ActionInProcess field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApproval) GetActionInProcessOk() (*PendingApprovalAction, bool) { - if o == nil || isNil(o.ActionInProcess) { + if o == nil || IsNil(o.ActionInProcess) { return nil, false } return o.ActionInProcess, true @@ -559,7 +559,7 @@ func (o *PendingApproval) GetActionInProcessOk() (*PendingApprovalAction, bool) // HasActionInProcess returns a boolean if a field has been set. func (o *PendingApproval) HasActionInProcess() bool { - if o != nil && !isNil(o.ActionInProcess) { + if o != nil && !IsNil(o.ActionInProcess) { return true } @@ -573,7 +573,7 @@ func (o *PendingApproval) SetActionInProcess(v PendingApprovalAction) { // GetRemoveDate returns the RemoveDate field value if set, zero value otherwise. func (o *PendingApproval) GetRemoveDate() time.Time { - if o == nil || isNil(o.RemoveDate) { + if o == nil || IsNil(o.RemoveDate) { var ret time.Time return ret } @@ -583,7 +583,7 @@ func (o *PendingApproval) GetRemoveDate() time.Time { // GetRemoveDateOk returns a tuple with the RemoveDate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApproval) GetRemoveDateOk() (*time.Time, bool) { - if o == nil || isNil(o.RemoveDate) { + if o == nil || IsNil(o.RemoveDate) { return nil, false } return o.RemoveDate, true @@ -591,7 +591,7 @@ func (o *PendingApproval) GetRemoveDateOk() (*time.Time, bool) { // HasRemoveDate returns a boolean if a field has been set. func (o *PendingApproval) HasRemoveDate() bool { - if o != nil && !isNil(o.RemoveDate) { + if o != nil && !IsNil(o.RemoveDate) { return true } @@ -605,7 +605,7 @@ func (o *PendingApproval) SetRemoveDate(v time.Time) { // GetRemoveDateUpdateRequested returns the RemoveDateUpdateRequested field value if set, zero value otherwise. func (o *PendingApproval) GetRemoveDateUpdateRequested() bool { - if o == nil || isNil(o.RemoveDateUpdateRequested) { + if o == nil || IsNil(o.RemoveDateUpdateRequested) { var ret bool return ret } @@ -615,7 +615,7 @@ func (o *PendingApproval) GetRemoveDateUpdateRequested() bool { // GetRemoveDateUpdateRequestedOk returns a tuple with the RemoveDateUpdateRequested field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApproval) GetRemoveDateUpdateRequestedOk() (*bool, bool) { - if o == nil || isNil(o.RemoveDateUpdateRequested) { + if o == nil || IsNil(o.RemoveDateUpdateRequested) { return nil, false } return o.RemoveDateUpdateRequested, true @@ -623,7 +623,7 @@ func (o *PendingApproval) GetRemoveDateUpdateRequestedOk() (*bool, bool) { // HasRemoveDateUpdateRequested returns a boolean if a field has been set. func (o *PendingApproval) HasRemoveDateUpdateRequested() bool { - if o != nil && !isNil(o.RemoveDateUpdateRequested) { + if o != nil && !IsNil(o.RemoveDateUpdateRequested) { return true } @@ -637,7 +637,7 @@ func (o *PendingApproval) SetRemoveDateUpdateRequested(v bool) { // GetCurrentRemoveDate returns the CurrentRemoveDate field value if set, zero value otherwise. func (o *PendingApproval) GetCurrentRemoveDate() time.Time { - if o == nil || isNil(o.CurrentRemoveDate) { + if o == nil || IsNil(o.CurrentRemoveDate) { var ret time.Time return ret } @@ -647,7 +647,7 @@ func (o *PendingApproval) GetCurrentRemoveDate() time.Time { // GetCurrentRemoveDateOk returns a tuple with the CurrentRemoveDate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApproval) GetCurrentRemoveDateOk() (*time.Time, bool) { - if o == nil || isNil(o.CurrentRemoveDate) { + if o == nil || IsNil(o.CurrentRemoveDate) { return nil, false } return o.CurrentRemoveDate, true @@ -655,7 +655,7 @@ func (o *PendingApproval) GetCurrentRemoveDateOk() (*time.Time, bool) { // HasCurrentRemoveDate returns a boolean if a field has been set. func (o *PendingApproval) HasCurrentRemoveDate() bool { - if o != nil && !isNil(o.CurrentRemoveDate) { + if o != nil && !IsNil(o.CurrentRemoveDate) { return true } @@ -669,7 +669,7 @@ func (o *PendingApproval) SetCurrentRemoveDate(v time.Time) { // GetSodViolationContext returns the SodViolationContext field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PendingApproval) GetSodViolationContext() SodViolationContextCheckCompleted { - if o == nil || isNil(o.SodViolationContext.Get()) { + if o == nil || IsNil(o.SodViolationContext.Get()) { var ret SodViolationContextCheckCompleted return ret } @@ -719,58 +719,58 @@ func (o PendingApproval) MarshalJSON() ([]byte, error) { func (o PendingApproval) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.RequestCreated) { + if !IsNil(o.RequestCreated) { toSerialize["requestCreated"] = o.RequestCreated } if o.RequestType.IsSet() { toSerialize["requestType"] = o.RequestType.Get() } - if !isNil(o.Requester) { + if !IsNil(o.Requester) { toSerialize["requester"] = o.Requester } - if !isNil(o.RequestedFor) { + if !IsNil(o.RequestedFor) { toSerialize["requestedFor"] = o.RequestedFor } - if !isNil(o.Owner) { + if !IsNil(o.Owner) { toSerialize["owner"] = o.Owner } - if !isNil(o.RequestedObject) { + if !IsNil(o.RequestedObject) { toSerialize["requestedObject"] = o.RequestedObject } - if !isNil(o.RequesterComment) { + if !IsNil(o.RequesterComment) { toSerialize["requesterComment"] = o.RequesterComment } - if !isNil(o.PreviousReviewersComments) { + if !IsNil(o.PreviousReviewersComments) { toSerialize["previousReviewersComments"] = o.PreviousReviewersComments } - if !isNil(o.ForwardHistory) { + if !IsNil(o.ForwardHistory) { toSerialize["forwardHistory"] = o.ForwardHistory } - if !isNil(o.CommentRequiredWhenRejected) { + if !IsNil(o.CommentRequiredWhenRejected) { toSerialize["commentRequiredWhenRejected"] = o.CommentRequiredWhenRejected } - if !isNil(o.ActionInProcess) { + if !IsNil(o.ActionInProcess) { toSerialize["actionInProcess"] = o.ActionInProcess } - if !isNil(o.RemoveDate) { + if !IsNil(o.RemoveDate) { toSerialize["removeDate"] = o.RemoveDate } - if !isNil(o.RemoveDateUpdateRequested) { + if !IsNil(o.RemoveDateUpdateRequested) { toSerialize["removeDateUpdateRequested"] = o.RemoveDateUpdateRequested } - if !isNil(o.CurrentRemoveDate) { + if !IsNil(o.CurrentRemoveDate) { toSerialize["currentRemoveDate"] = o.CurrentRemoveDate } if o.SodViolationContext.IsSet() { @@ -784,16 +784,20 @@ func (o PendingApproval) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PendingApproval) UnmarshalJSON(bytes []byte) (err error) { +func (o *PendingApproval) UnmarshalJSON(data []byte) (err error) { varPendingApproval := _PendingApproval{} - if err = json.Unmarshal(bytes, &varPendingApproval); err == nil { + err = json.Unmarshal(data, &varPendingApproval) + + if err != nil { + return err + } + *o = PendingApproval(varPendingApproval) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "created") diff --git a/api_v3/model_pending_approval_owner.go b/api_v3/model_pending_approval_owner.go index 819c5429e..b3ab73fff 100644 --- a/api_v3/model_pending_approval_owner.go +++ b/api_v3/model_pending_approval_owner.go @@ -49,7 +49,7 @@ func NewPendingApprovalOwnerWithDefaults() *PendingApprovalOwner { // GetType returns the Type field value if set, zero value otherwise. func (o *PendingApprovalOwner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *PendingApprovalOwner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApprovalOwner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *PendingApprovalOwner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *PendingApprovalOwner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *PendingApprovalOwner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *PendingApprovalOwner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *PendingApprovalOwner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApprovalOwner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *PendingApprovalOwner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *PendingApprovalOwner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *PendingApprovalOwner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *PendingApprovalOwner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *PendingApprovalOwner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PendingApprovalOwner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *PendingApprovalOwner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *PendingApprovalOwner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o PendingApprovalOwner) MarshalJSON() ([]byte, error) { func (o PendingApprovalOwner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o PendingApprovalOwner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PendingApprovalOwner) UnmarshalJSON(bytes []byte) (err error) { +func (o *PendingApprovalOwner) UnmarshalJSON(data []byte) (err error) { varPendingApprovalOwner := _PendingApprovalOwner{} - if err = json.Unmarshal(bytes, &varPendingApprovalOwner); err == nil { + err = json.Unmarshal(data, &varPendingApprovalOwner) + + if err != nil { + return err + } + *o = PendingApprovalOwner(varPendingApprovalOwner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_permission_dto.go b/api_v3/model_permission_dto.go index bb9b84b32..6cc1fc2f3 100644 --- a/api_v3/model_permission_dto.go +++ b/api_v3/model_permission_dto.go @@ -47,7 +47,7 @@ func NewPermissionDtoWithDefaults() *PermissionDto { // GetRights returns the Rights field value if set, zero value otherwise. func (o *PermissionDto) GetRights() []string { - if o == nil || isNil(o.Rights) { + if o == nil || IsNil(o.Rights) { var ret []string return ret } @@ -57,7 +57,7 @@ func (o *PermissionDto) GetRights() []string { // GetRightsOk returns a tuple with the Rights field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PermissionDto) GetRightsOk() ([]string, bool) { - if o == nil || isNil(o.Rights) { + if o == nil || IsNil(o.Rights) { return nil, false } return o.Rights, true @@ -65,7 +65,7 @@ func (o *PermissionDto) GetRightsOk() ([]string, bool) { // HasRights returns a boolean if a field has been set. func (o *PermissionDto) HasRights() bool { - if o != nil && !isNil(o.Rights) { + if o != nil && !IsNil(o.Rights) { return true } @@ -79,7 +79,7 @@ func (o *PermissionDto) SetRights(v []string) { // GetTarget returns the Target field value if set, zero value otherwise. func (o *PermissionDto) GetTarget() string { - if o == nil || isNil(o.Target) { + if o == nil || IsNil(o.Target) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *PermissionDto) GetTarget() string { // GetTargetOk returns a tuple with the Target field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PermissionDto) GetTargetOk() (*string, bool) { - if o == nil || isNil(o.Target) { + if o == nil || IsNil(o.Target) { return nil, false } return o.Target, true @@ -97,7 +97,7 @@ func (o *PermissionDto) GetTargetOk() (*string, bool) { // HasTarget returns a boolean if a field has been set. func (o *PermissionDto) HasTarget() bool { - if o != nil && !isNil(o.Target) { + if o != nil && !IsNil(o.Target) { return true } @@ -119,8 +119,12 @@ func (o PermissionDto) MarshalJSON() ([]byte, error) { func (o PermissionDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: rights is readOnly - // skip: target is readOnly + if !IsNil(o.Rights) { + toSerialize["rights"] = o.Rights + } + if !IsNil(o.Target) { + toSerialize["target"] = o.Target + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,16 +133,20 @@ func (o PermissionDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PermissionDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *PermissionDto) UnmarshalJSON(data []byte) (err error) { varPermissionDto := _PermissionDto{} - if err = json.Unmarshal(bytes, &varPermissionDto); err == nil { + err = json.Unmarshal(data, &varPermissionDto) + + if err != nil { + return err + } + *o = PermissionDto(varPermissionDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "rights") delete(additionalProperties, "target") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_pre_approval_trigger_details.go b/api_v3/model_pre_approval_trigger_details.go index cb9fc68c0..4d0822a7e 100644 --- a/api_v3/model_pre_approval_trigger_details.go +++ b/api_v3/model_pre_approval_trigger_details.go @@ -49,7 +49,7 @@ func NewPreApprovalTriggerDetailsWithDefaults() *PreApprovalTriggerDetails { // GetComment returns the Comment field value if set, zero value otherwise. func (o *PreApprovalTriggerDetails) GetComment() string { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *PreApprovalTriggerDetails) GetComment() string { // GetCommentOk returns a tuple with the Comment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PreApprovalTriggerDetails) GetCommentOk() (*string, bool) { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { return nil, false } return o.Comment, true @@ -67,7 +67,7 @@ func (o *PreApprovalTriggerDetails) GetCommentOk() (*string, bool) { // HasComment returns a boolean if a field has been set. func (o *PreApprovalTriggerDetails) HasComment() bool { - if o != nil && !isNil(o.Comment) { + if o != nil && !IsNil(o.Comment) { return true } @@ -81,7 +81,7 @@ func (o *PreApprovalTriggerDetails) SetComment(v string) { // GetReviewer returns the Reviewer field value if set, zero value otherwise. func (o *PreApprovalTriggerDetails) GetReviewer() string { - if o == nil || isNil(o.Reviewer) { + if o == nil || IsNil(o.Reviewer) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *PreApprovalTriggerDetails) GetReviewer() string { // GetReviewerOk returns a tuple with the Reviewer field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PreApprovalTriggerDetails) GetReviewerOk() (*string, bool) { - if o == nil || isNil(o.Reviewer) { + if o == nil || IsNil(o.Reviewer) { return nil, false } return o.Reviewer, true @@ -99,7 +99,7 @@ func (o *PreApprovalTriggerDetails) GetReviewerOk() (*string, bool) { // HasReviewer returns a boolean if a field has been set. func (o *PreApprovalTriggerDetails) HasReviewer() bool { - if o != nil && !isNil(o.Reviewer) { + if o != nil && !IsNil(o.Reviewer) { return true } @@ -113,7 +113,7 @@ func (o *PreApprovalTriggerDetails) SetReviewer(v string) { // GetDecision returns the Decision field value if set, zero value otherwise. func (o *PreApprovalTriggerDetails) GetDecision() string { - if o == nil || isNil(o.Decision) { + if o == nil || IsNil(o.Decision) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *PreApprovalTriggerDetails) GetDecision() string { // GetDecisionOk returns a tuple with the Decision field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PreApprovalTriggerDetails) GetDecisionOk() (*string, bool) { - if o == nil || isNil(o.Decision) { + if o == nil || IsNil(o.Decision) { return nil, false } return o.Decision, true @@ -131,7 +131,7 @@ func (o *PreApprovalTriggerDetails) GetDecisionOk() (*string, bool) { // HasDecision returns a boolean if a field has been set. func (o *PreApprovalTriggerDetails) HasDecision() bool { - if o != nil && !isNil(o.Decision) { + if o != nil && !IsNil(o.Decision) { return true } @@ -153,13 +153,13 @@ func (o PreApprovalTriggerDetails) MarshalJSON() ([]byte, error) { func (o PreApprovalTriggerDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Comment) { + if !IsNil(o.Comment) { toSerialize["comment"] = o.Comment } - if !isNil(o.Reviewer) { + if !IsNil(o.Reviewer) { toSerialize["reviewer"] = o.Reviewer } - if !isNil(o.Decision) { + if !IsNil(o.Decision) { toSerialize["decision"] = o.Decision } @@ -170,16 +170,20 @@ func (o PreApprovalTriggerDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PreApprovalTriggerDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *PreApprovalTriggerDetails) UnmarshalJSON(data []byte) (err error) { varPreApprovalTriggerDetails := _PreApprovalTriggerDetails{} - if err = json.Unmarshal(bytes, &varPreApprovalTriggerDetails); err == nil { + err = json.Unmarshal(data, &varPreApprovalTriggerDetails) + + if err != nil { + return err + } + *o = PreApprovalTriggerDetails(varPreApprovalTriggerDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "comment") delete(additionalProperties, "reviewer") delete(additionalProperties, "decision") diff --git a/api_v3/model_processing_details.go b/api_v3/model_processing_details.go index af45c7c74..f957ce724 100644 --- a/api_v3/model_processing_details.go +++ b/api_v3/model_processing_details.go @@ -50,7 +50,7 @@ func NewProcessingDetailsWithDefaults() *ProcessingDetails { // GetDate returns the Date field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ProcessingDetails) GetDate() time.Time { - if o == nil || isNil(o.Date.Get()) { + if o == nil || IsNil(o.Date.Get()) { var ret time.Time return ret } @@ -92,7 +92,7 @@ func (o *ProcessingDetails) UnsetDate() { // GetStage returns the Stage field value if set, zero value otherwise. func (o *ProcessingDetails) GetStage() string { - if o == nil || isNil(o.Stage) { + if o == nil || IsNil(o.Stage) { var ret string return ret } @@ -102,7 +102,7 @@ func (o *ProcessingDetails) GetStage() string { // GetStageOk returns a tuple with the Stage field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProcessingDetails) GetStageOk() (*string, bool) { - if o == nil || isNil(o.Stage) { + if o == nil || IsNil(o.Stage) { return nil, false } return o.Stage, true @@ -110,7 +110,7 @@ func (o *ProcessingDetails) GetStageOk() (*string, bool) { // HasStage returns a boolean if a field has been set. func (o *ProcessingDetails) HasStage() bool { - if o != nil && !isNil(o.Stage) { + if o != nil && !IsNil(o.Stage) { return true } @@ -124,7 +124,7 @@ func (o *ProcessingDetails) SetStage(v string) { // GetRetryCount returns the RetryCount field value if set, zero value otherwise. func (o *ProcessingDetails) GetRetryCount() int32 { - if o == nil || isNil(o.RetryCount) { + if o == nil || IsNil(o.RetryCount) { var ret int32 return ret } @@ -134,7 +134,7 @@ func (o *ProcessingDetails) GetRetryCount() int32 { // GetRetryCountOk returns a tuple with the RetryCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProcessingDetails) GetRetryCountOk() (*int32, bool) { - if o == nil || isNil(o.RetryCount) { + if o == nil || IsNil(o.RetryCount) { return nil, false } return o.RetryCount, true @@ -142,7 +142,7 @@ func (o *ProcessingDetails) GetRetryCountOk() (*int32, bool) { // HasRetryCount returns a boolean if a field has been set. func (o *ProcessingDetails) HasRetryCount() bool { - if o != nil && !isNil(o.RetryCount) { + if o != nil && !IsNil(o.RetryCount) { return true } @@ -156,7 +156,7 @@ func (o *ProcessingDetails) SetRetryCount(v int32) { // GetStackTrace returns the StackTrace field value if set, zero value otherwise. func (o *ProcessingDetails) GetStackTrace() string { - if o == nil || isNil(o.StackTrace) { + if o == nil || IsNil(o.StackTrace) { var ret string return ret } @@ -166,7 +166,7 @@ func (o *ProcessingDetails) GetStackTrace() string { // GetStackTraceOk returns a tuple with the StackTrace field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProcessingDetails) GetStackTraceOk() (*string, bool) { - if o == nil || isNil(o.StackTrace) { + if o == nil || IsNil(o.StackTrace) { return nil, false } return o.StackTrace, true @@ -174,7 +174,7 @@ func (o *ProcessingDetails) GetStackTraceOk() (*string, bool) { // HasStackTrace returns a boolean if a field has been set. func (o *ProcessingDetails) HasStackTrace() bool { - if o != nil && !isNil(o.StackTrace) { + if o != nil && !IsNil(o.StackTrace) { return true } @@ -188,7 +188,7 @@ func (o *ProcessingDetails) SetStackTrace(v string) { // GetMessage returns the Message field value if set, zero value otherwise. func (o *ProcessingDetails) GetMessage() string { - if o == nil || isNil(o.Message) { + if o == nil || IsNil(o.Message) { var ret string return ret } @@ -198,7 +198,7 @@ func (o *ProcessingDetails) GetMessage() string { // GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProcessingDetails) GetMessageOk() (*string, bool) { - if o == nil || isNil(o.Message) { + if o == nil || IsNil(o.Message) { return nil, false } return o.Message, true @@ -206,7 +206,7 @@ func (o *ProcessingDetails) GetMessageOk() (*string, bool) { // HasMessage returns a boolean if a field has been set. func (o *ProcessingDetails) HasMessage() bool { - if o != nil && !isNil(o.Message) { + if o != nil && !IsNil(o.Message) { return true } @@ -231,16 +231,16 @@ func (o ProcessingDetails) ToMap() (map[string]interface{}, error) { if o.Date.IsSet() { toSerialize["date"] = o.Date.Get() } - if !isNil(o.Stage) { + if !IsNil(o.Stage) { toSerialize["stage"] = o.Stage } - if !isNil(o.RetryCount) { + if !IsNil(o.RetryCount) { toSerialize["retryCount"] = o.RetryCount } - if !isNil(o.StackTrace) { + if !IsNil(o.StackTrace) { toSerialize["stackTrace"] = o.StackTrace } - if !isNil(o.Message) { + if !IsNil(o.Message) { toSerialize["message"] = o.Message } @@ -251,16 +251,20 @@ func (o ProcessingDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ProcessingDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *ProcessingDetails) UnmarshalJSON(data []byte) (err error) { varProcessingDetails := _ProcessingDetails{} - if err = json.Unmarshal(bytes, &varProcessingDetails); err == nil { + err = json.Unmarshal(data, &varProcessingDetails) + + if err != nil { + return err + } + *o = ProcessingDetails(varProcessingDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "date") delete(additionalProperties, "stage") delete(additionalProperties, "retryCount") diff --git a/api_v3/model_provisioning_config.go b/api_v3/model_provisioning_config.go index 58a44492b..5afb54543 100644 --- a/api_v3/model_provisioning_config.go +++ b/api_v3/model_provisioning_config.go @@ -56,7 +56,7 @@ func NewProvisioningConfigWithDefaults() *ProvisioningConfig { // GetUniversalManager returns the UniversalManager field value if set, zero value otherwise. func (o *ProvisioningConfig) GetUniversalManager() bool { - if o == nil || isNil(o.UniversalManager) { + if o == nil || IsNil(o.UniversalManager) { var ret bool return ret } @@ -66,7 +66,7 @@ func (o *ProvisioningConfig) GetUniversalManager() bool { // GetUniversalManagerOk returns a tuple with the UniversalManager field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProvisioningConfig) GetUniversalManagerOk() (*bool, bool) { - if o == nil || isNil(o.UniversalManager) { + if o == nil || IsNil(o.UniversalManager) { return nil, false } return o.UniversalManager, true @@ -74,7 +74,7 @@ func (o *ProvisioningConfig) GetUniversalManagerOk() (*bool, bool) { // HasUniversalManager returns a boolean if a field has been set. func (o *ProvisioningConfig) HasUniversalManager() bool { - if o != nil && !isNil(o.UniversalManager) { + if o != nil && !IsNil(o.UniversalManager) { return true } @@ -88,7 +88,7 @@ func (o *ProvisioningConfig) SetUniversalManager(v bool) { // GetManagedResourceRefs returns the ManagedResourceRefs field value if set, zero value otherwise. func (o *ProvisioningConfig) GetManagedResourceRefs() []ServiceDeskSource { - if o == nil || isNil(o.ManagedResourceRefs) { + if o == nil || IsNil(o.ManagedResourceRefs) { var ret []ServiceDeskSource return ret } @@ -98,7 +98,7 @@ func (o *ProvisioningConfig) GetManagedResourceRefs() []ServiceDeskSource { // GetManagedResourceRefsOk returns a tuple with the ManagedResourceRefs field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProvisioningConfig) GetManagedResourceRefsOk() ([]ServiceDeskSource, bool) { - if o == nil || isNil(o.ManagedResourceRefs) { + if o == nil || IsNil(o.ManagedResourceRefs) { return nil, false } return o.ManagedResourceRefs, true @@ -106,7 +106,7 @@ func (o *ProvisioningConfig) GetManagedResourceRefsOk() ([]ServiceDeskSource, bo // HasManagedResourceRefs returns a boolean if a field has been set. func (o *ProvisioningConfig) HasManagedResourceRefs() bool { - if o != nil && !isNil(o.ManagedResourceRefs) { + if o != nil && !IsNil(o.ManagedResourceRefs) { return true } @@ -120,7 +120,7 @@ func (o *ProvisioningConfig) SetManagedResourceRefs(v []ServiceDeskSource) { // GetPlanInitializerScript returns the PlanInitializerScript field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ProvisioningConfig) GetPlanInitializerScript() ProvisioningConfigPlanInitializerScript { - if o == nil || isNil(o.PlanInitializerScript.Get()) { + if o == nil || IsNil(o.PlanInitializerScript.Get()) { var ret ProvisioningConfigPlanInitializerScript return ret } @@ -162,7 +162,7 @@ func (o *ProvisioningConfig) UnsetPlanInitializerScript() { // GetNoProvisioningRequests returns the NoProvisioningRequests field value if set, zero value otherwise. func (o *ProvisioningConfig) GetNoProvisioningRequests() bool { - if o == nil || isNil(o.NoProvisioningRequests) { + if o == nil || IsNil(o.NoProvisioningRequests) { var ret bool return ret } @@ -172,7 +172,7 @@ func (o *ProvisioningConfig) GetNoProvisioningRequests() bool { // GetNoProvisioningRequestsOk returns a tuple with the NoProvisioningRequests field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProvisioningConfig) GetNoProvisioningRequestsOk() (*bool, bool) { - if o == nil || isNil(o.NoProvisioningRequests) { + if o == nil || IsNil(o.NoProvisioningRequests) { return nil, false } return o.NoProvisioningRequests, true @@ -180,7 +180,7 @@ func (o *ProvisioningConfig) GetNoProvisioningRequestsOk() (*bool, bool) { // HasNoProvisioningRequests returns a boolean if a field has been set. func (o *ProvisioningConfig) HasNoProvisioningRequests() bool { - if o != nil && !isNil(o.NoProvisioningRequests) { + if o != nil && !IsNil(o.NoProvisioningRequests) { return true } @@ -194,7 +194,7 @@ func (o *ProvisioningConfig) SetNoProvisioningRequests(v bool) { // GetProvisioningRequestExpiration returns the ProvisioningRequestExpiration field value if set, zero value otherwise. func (o *ProvisioningConfig) GetProvisioningRequestExpiration() int32 { - if o == nil || isNil(o.ProvisioningRequestExpiration) { + if o == nil || IsNil(o.ProvisioningRequestExpiration) { var ret int32 return ret } @@ -204,7 +204,7 @@ func (o *ProvisioningConfig) GetProvisioningRequestExpiration() int32 { // GetProvisioningRequestExpirationOk returns a tuple with the ProvisioningRequestExpiration field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProvisioningConfig) GetProvisioningRequestExpirationOk() (*int32, bool) { - if o == nil || isNil(o.ProvisioningRequestExpiration) { + if o == nil || IsNil(o.ProvisioningRequestExpiration) { return nil, false } return o.ProvisioningRequestExpiration, true @@ -212,7 +212,7 @@ func (o *ProvisioningConfig) GetProvisioningRequestExpirationOk() (*int32, bool) // HasProvisioningRequestExpiration returns a boolean if a field has been set. func (o *ProvisioningConfig) HasProvisioningRequestExpiration() bool { - if o != nil && !isNil(o.ProvisioningRequestExpiration) { + if o != nil && !IsNil(o.ProvisioningRequestExpiration) { return true } @@ -234,17 +234,19 @@ func (o ProvisioningConfig) MarshalJSON() ([]byte, error) { func (o ProvisioningConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: universalManager is readOnly - if !isNil(o.ManagedResourceRefs) { + if !IsNil(o.UniversalManager) { + toSerialize["universalManager"] = o.UniversalManager + } + if !IsNil(o.ManagedResourceRefs) { toSerialize["managedResourceRefs"] = o.ManagedResourceRefs } if o.PlanInitializerScript.IsSet() { toSerialize["planInitializerScript"] = o.PlanInitializerScript.Get() } - if !isNil(o.NoProvisioningRequests) { + if !IsNil(o.NoProvisioningRequests) { toSerialize["noProvisioningRequests"] = o.NoProvisioningRequests } - if !isNil(o.ProvisioningRequestExpiration) { + if !IsNil(o.ProvisioningRequestExpiration) { toSerialize["provisioningRequestExpiration"] = o.ProvisioningRequestExpiration } @@ -255,16 +257,20 @@ func (o ProvisioningConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ProvisioningConfig) UnmarshalJSON(bytes []byte) (err error) { +func (o *ProvisioningConfig) UnmarshalJSON(data []byte) (err error) { varProvisioningConfig := _ProvisioningConfig{} - if err = json.Unmarshal(bytes, &varProvisioningConfig); err == nil { + err = json.Unmarshal(data, &varProvisioningConfig) + + if err != nil { + return err + } + *o = ProvisioningConfig(varProvisioningConfig) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "universalManager") delete(additionalProperties, "managedResourceRefs") delete(additionalProperties, "planInitializerScript") diff --git a/api_v3/model_provisioning_config_plan_initializer_script.go b/api_v3/model_provisioning_config_plan_initializer_script.go index 05458ea99..8da84d3ba 100644 --- a/api_v3/model_provisioning_config_plan_initializer_script.go +++ b/api_v3/model_provisioning_config_plan_initializer_script.go @@ -45,7 +45,7 @@ func NewProvisioningConfigPlanInitializerScriptWithDefaults() *ProvisioningConfi // GetSource returns the Source field value if set, zero value otherwise. func (o *ProvisioningConfigPlanInitializerScript) GetSource() string { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { var ret string return ret } @@ -55,7 +55,7 @@ func (o *ProvisioningConfigPlanInitializerScript) GetSource() string { // GetSourceOk returns a tuple with the Source field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProvisioningConfigPlanInitializerScript) GetSourceOk() (*string, bool) { - if o == nil || isNil(o.Source) { + if o == nil || IsNil(o.Source) { return nil, false } return o.Source, true @@ -63,7 +63,7 @@ func (o *ProvisioningConfigPlanInitializerScript) GetSourceOk() (*string, bool) // HasSource returns a boolean if a field has been set. func (o *ProvisioningConfigPlanInitializerScript) HasSource() bool { - if o != nil && !isNil(o.Source) { + if o != nil && !IsNil(o.Source) { return true } @@ -85,7 +85,7 @@ func (o ProvisioningConfigPlanInitializerScript) MarshalJSON() ([]byte, error) { func (o ProvisioningConfigPlanInitializerScript) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Source) { + if !IsNil(o.Source) { toSerialize["source"] = o.Source } @@ -96,16 +96,20 @@ func (o ProvisioningConfigPlanInitializerScript) ToMap() (map[string]interface{} return toSerialize, nil } -func (o *ProvisioningConfigPlanInitializerScript) UnmarshalJSON(bytes []byte) (err error) { +func (o *ProvisioningConfigPlanInitializerScript) UnmarshalJSON(data []byte) (err error) { varProvisioningConfigPlanInitializerScript := _ProvisioningConfigPlanInitializerScript{} - if err = json.Unmarshal(bytes, &varProvisioningConfigPlanInitializerScript); err == nil { + err = json.Unmarshal(data, &varProvisioningConfigPlanInitializerScript) + + if err != nil { + return err + } + *o = ProvisioningConfigPlanInitializerScript(varProvisioningConfigPlanInitializerScript) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "source") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_provisioning_criteria_level1.go b/api_v3/model_provisioning_criteria_level1.go index 494ca7711..bcd6e274e 100644 --- a/api_v3/model_provisioning_criteria_level1.go +++ b/api_v3/model_provisioning_criteria_level1.go @@ -50,7 +50,7 @@ func NewProvisioningCriteriaLevel1WithDefaults() *ProvisioningCriteriaLevel1 { // GetOperation returns the Operation field value if set, zero value otherwise. func (o *ProvisioningCriteriaLevel1) GetOperation() ProvisioningCriteriaOperation { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { var ret ProvisioningCriteriaOperation return ret } @@ -60,7 +60,7 @@ func (o *ProvisioningCriteriaLevel1) GetOperation() ProvisioningCriteriaOperatio // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProvisioningCriteriaLevel1) GetOperationOk() (*ProvisioningCriteriaOperation, bool) { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { return nil, false } return o.Operation, true @@ -68,7 +68,7 @@ func (o *ProvisioningCriteriaLevel1) GetOperationOk() (*ProvisioningCriteriaOper // HasOperation returns a boolean if a field has been set. func (o *ProvisioningCriteriaLevel1) HasOperation() bool { - if o != nil && !isNil(o.Operation) { + if o != nil && !IsNil(o.Operation) { return true } @@ -82,7 +82,7 @@ func (o *ProvisioningCriteriaLevel1) SetOperation(v ProvisioningCriteriaOperatio // GetAttribute returns the Attribute field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ProvisioningCriteriaLevel1) GetAttribute() string { - if o == nil || isNil(o.Attribute.Get()) { + if o == nil || IsNil(o.Attribute.Get()) { var ret string return ret } @@ -124,7 +124,7 @@ func (o *ProvisioningCriteriaLevel1) UnsetAttribute() { // GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ProvisioningCriteriaLevel1) GetValue() string { - if o == nil || isNil(o.Value.Get()) { + if o == nil || IsNil(o.Value.Get()) { var ret string return ret } @@ -177,7 +177,7 @@ func (o *ProvisioningCriteriaLevel1) GetChildren() []ProvisioningCriteriaLevel2 // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ProvisioningCriteriaLevel1) GetChildrenOk() ([]ProvisioningCriteriaLevel2, bool) { - if o == nil || isNil(o.Children) { + if o == nil || IsNil(o.Children) { return nil, false } return o.Children, true @@ -185,7 +185,7 @@ func (o *ProvisioningCriteriaLevel1) GetChildrenOk() ([]ProvisioningCriteriaLeve // HasChildren returns a boolean if a field has been set. func (o *ProvisioningCriteriaLevel1) HasChildren() bool { - if o != nil && isNil(o.Children) { + if o != nil && !IsNil(o.Children) { return true } @@ -207,7 +207,7 @@ func (o ProvisioningCriteriaLevel1) MarshalJSON() ([]byte, error) { func (o ProvisioningCriteriaLevel1) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Operation) { + if !IsNil(o.Operation) { toSerialize["operation"] = o.Operation } if o.Attribute.IsSet() { @@ -227,16 +227,20 @@ func (o ProvisioningCriteriaLevel1) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ProvisioningCriteriaLevel1) UnmarshalJSON(bytes []byte) (err error) { +func (o *ProvisioningCriteriaLevel1) UnmarshalJSON(data []byte) (err error) { varProvisioningCriteriaLevel1 := _ProvisioningCriteriaLevel1{} - if err = json.Unmarshal(bytes, &varProvisioningCriteriaLevel1); err == nil { + err = json.Unmarshal(data, &varProvisioningCriteriaLevel1) + + if err != nil { + return err + } + *o = ProvisioningCriteriaLevel1(varProvisioningCriteriaLevel1) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "operation") delete(additionalProperties, "attribute") delete(additionalProperties, "value") diff --git a/api_v3/model_provisioning_criteria_level2.go b/api_v3/model_provisioning_criteria_level2.go index 6cc177fed..941e12e67 100644 --- a/api_v3/model_provisioning_criteria_level2.go +++ b/api_v3/model_provisioning_criteria_level2.go @@ -50,7 +50,7 @@ func NewProvisioningCriteriaLevel2WithDefaults() *ProvisioningCriteriaLevel2 { // GetOperation returns the Operation field value if set, zero value otherwise. func (o *ProvisioningCriteriaLevel2) GetOperation() ProvisioningCriteriaOperation { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { var ret ProvisioningCriteriaOperation return ret } @@ -60,7 +60,7 @@ func (o *ProvisioningCriteriaLevel2) GetOperation() ProvisioningCriteriaOperatio // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProvisioningCriteriaLevel2) GetOperationOk() (*ProvisioningCriteriaOperation, bool) { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { return nil, false } return o.Operation, true @@ -68,7 +68,7 @@ func (o *ProvisioningCriteriaLevel2) GetOperationOk() (*ProvisioningCriteriaOper // HasOperation returns a boolean if a field has been set. func (o *ProvisioningCriteriaLevel2) HasOperation() bool { - if o != nil && !isNil(o.Operation) { + if o != nil && !IsNil(o.Operation) { return true } @@ -82,7 +82,7 @@ func (o *ProvisioningCriteriaLevel2) SetOperation(v ProvisioningCriteriaOperatio // GetAttribute returns the Attribute field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ProvisioningCriteriaLevel2) GetAttribute() string { - if o == nil || isNil(o.Attribute.Get()) { + if o == nil || IsNil(o.Attribute.Get()) { var ret string return ret } @@ -124,7 +124,7 @@ func (o *ProvisioningCriteriaLevel2) UnsetAttribute() { // GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ProvisioningCriteriaLevel2) GetValue() string { - if o == nil || isNil(o.Value.Get()) { + if o == nil || IsNil(o.Value.Get()) { var ret string return ret } @@ -177,7 +177,7 @@ func (o *ProvisioningCriteriaLevel2) GetChildren() []ProvisioningCriteriaLevel3 // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ProvisioningCriteriaLevel2) GetChildrenOk() ([]ProvisioningCriteriaLevel3, bool) { - if o == nil || isNil(o.Children) { + if o == nil || IsNil(o.Children) { return nil, false } return o.Children, true @@ -185,7 +185,7 @@ func (o *ProvisioningCriteriaLevel2) GetChildrenOk() ([]ProvisioningCriteriaLeve // HasChildren returns a boolean if a field has been set. func (o *ProvisioningCriteriaLevel2) HasChildren() bool { - if o != nil && isNil(o.Children) { + if o != nil && !IsNil(o.Children) { return true } @@ -207,7 +207,7 @@ func (o ProvisioningCriteriaLevel2) MarshalJSON() ([]byte, error) { func (o ProvisioningCriteriaLevel2) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Operation) { + if !IsNil(o.Operation) { toSerialize["operation"] = o.Operation } if o.Attribute.IsSet() { @@ -227,16 +227,20 @@ func (o ProvisioningCriteriaLevel2) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ProvisioningCriteriaLevel2) UnmarshalJSON(bytes []byte) (err error) { +func (o *ProvisioningCriteriaLevel2) UnmarshalJSON(data []byte) (err error) { varProvisioningCriteriaLevel2 := _ProvisioningCriteriaLevel2{} - if err = json.Unmarshal(bytes, &varProvisioningCriteriaLevel2); err == nil { + err = json.Unmarshal(data, &varProvisioningCriteriaLevel2) + + if err != nil { + return err + } + *o = ProvisioningCriteriaLevel2(varProvisioningCriteriaLevel2) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "operation") delete(additionalProperties, "attribute") delete(additionalProperties, "value") diff --git a/api_v3/model_provisioning_criteria_level3.go b/api_v3/model_provisioning_criteria_level3.go index bc3066493..47d721c6e 100644 --- a/api_v3/model_provisioning_criteria_level3.go +++ b/api_v3/model_provisioning_criteria_level3.go @@ -50,7 +50,7 @@ func NewProvisioningCriteriaLevel3WithDefaults() *ProvisioningCriteriaLevel3 { // GetOperation returns the Operation field value if set, zero value otherwise. func (o *ProvisioningCriteriaLevel3) GetOperation() ProvisioningCriteriaOperation { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { var ret ProvisioningCriteriaOperation return ret } @@ -60,7 +60,7 @@ func (o *ProvisioningCriteriaLevel3) GetOperation() ProvisioningCriteriaOperatio // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProvisioningCriteriaLevel3) GetOperationOk() (*ProvisioningCriteriaOperation, bool) { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { return nil, false } return o.Operation, true @@ -68,7 +68,7 @@ func (o *ProvisioningCriteriaLevel3) GetOperationOk() (*ProvisioningCriteriaOper // HasOperation returns a boolean if a field has been set. func (o *ProvisioningCriteriaLevel3) HasOperation() bool { - if o != nil && !isNil(o.Operation) { + if o != nil && !IsNil(o.Operation) { return true } @@ -82,7 +82,7 @@ func (o *ProvisioningCriteriaLevel3) SetOperation(v ProvisioningCriteriaOperatio // GetAttribute returns the Attribute field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ProvisioningCriteriaLevel3) GetAttribute() string { - if o == nil || isNil(o.Attribute.Get()) { + if o == nil || IsNil(o.Attribute.Get()) { var ret string return ret } @@ -124,7 +124,7 @@ func (o *ProvisioningCriteriaLevel3) UnsetAttribute() { // GetValue returns the Value field value if set, zero value otherwise. func (o *ProvisioningCriteriaLevel3) GetValue() string { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { var ret string return ret } @@ -134,7 +134,7 @@ func (o *ProvisioningCriteriaLevel3) GetValue() string { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProvisioningCriteriaLevel3) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { return nil, false } return o.Value, true @@ -142,7 +142,7 @@ func (o *ProvisioningCriteriaLevel3) GetValueOk() (*string, bool) { // HasValue returns a boolean if a field has been set. func (o *ProvisioningCriteriaLevel3) HasValue() bool { - if o != nil && !isNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -156,7 +156,7 @@ func (o *ProvisioningCriteriaLevel3) SetValue(v string) { // GetChildren returns the Children field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ProvisioningCriteriaLevel3) GetChildren() string { - if o == nil || isNil(o.Children.Get()) { + if o == nil || IsNil(o.Children.Get()) { var ret string return ret } @@ -206,13 +206,13 @@ func (o ProvisioningCriteriaLevel3) MarshalJSON() ([]byte, error) { func (o ProvisioningCriteriaLevel3) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Operation) { + if !IsNil(o.Operation) { toSerialize["operation"] = o.Operation } if o.Attribute.IsSet() { toSerialize["attribute"] = o.Attribute.Get() } - if !isNil(o.Value) { + if !IsNil(o.Value) { toSerialize["value"] = o.Value } if o.Children.IsSet() { @@ -226,16 +226,20 @@ func (o ProvisioningCriteriaLevel3) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ProvisioningCriteriaLevel3) UnmarshalJSON(bytes []byte) (err error) { +func (o *ProvisioningCriteriaLevel3) UnmarshalJSON(data []byte) (err error) { varProvisioningCriteriaLevel3 := _ProvisioningCriteriaLevel3{} - if err = json.Unmarshal(bytes, &varProvisioningCriteriaLevel3); err == nil { + err = json.Unmarshal(data, &varProvisioningCriteriaLevel3) + + if err != nil { + return err + } + *o = ProvisioningCriteriaLevel3(varProvisioningCriteriaLevel3) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "operation") delete(additionalProperties, "attribute") delete(additionalProperties, "value") diff --git a/api_v3/model_provisioning_details.go b/api_v3/model_provisioning_details.go index 2ba8bb435..3633b5b10 100644 --- a/api_v3/model_provisioning_details.go +++ b/api_v3/model_provisioning_details.go @@ -45,7 +45,7 @@ func NewProvisioningDetailsWithDefaults() *ProvisioningDetails { // GetOrderedSubPhaseReferences returns the OrderedSubPhaseReferences field value if set, zero value otherwise. func (o *ProvisioningDetails) GetOrderedSubPhaseReferences() string { - if o == nil || isNil(o.OrderedSubPhaseReferences) { + if o == nil || IsNil(o.OrderedSubPhaseReferences) { var ret string return ret } @@ -55,7 +55,7 @@ func (o *ProvisioningDetails) GetOrderedSubPhaseReferences() string { // GetOrderedSubPhaseReferencesOk returns a tuple with the OrderedSubPhaseReferences field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProvisioningDetails) GetOrderedSubPhaseReferencesOk() (*string, bool) { - if o == nil || isNil(o.OrderedSubPhaseReferences) { + if o == nil || IsNil(o.OrderedSubPhaseReferences) { return nil, false } return o.OrderedSubPhaseReferences, true @@ -63,7 +63,7 @@ func (o *ProvisioningDetails) GetOrderedSubPhaseReferencesOk() (*string, bool) { // HasOrderedSubPhaseReferences returns a boolean if a field has been set. func (o *ProvisioningDetails) HasOrderedSubPhaseReferences() bool { - if o != nil && !isNil(o.OrderedSubPhaseReferences) { + if o != nil && !IsNil(o.OrderedSubPhaseReferences) { return true } @@ -85,7 +85,7 @@ func (o ProvisioningDetails) MarshalJSON() ([]byte, error) { func (o ProvisioningDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.OrderedSubPhaseReferences) { + if !IsNil(o.OrderedSubPhaseReferences) { toSerialize["orderedSubPhaseReferences"] = o.OrderedSubPhaseReferences } @@ -96,16 +96,20 @@ func (o ProvisioningDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ProvisioningDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *ProvisioningDetails) UnmarshalJSON(data []byte) (err error) { varProvisioningDetails := _ProvisioningDetails{} - if err = json.Unmarshal(bytes, &varProvisioningDetails); err == nil { + err = json.Unmarshal(data, &varProvisioningDetails) + + if err != nil { + return err + } + *o = ProvisioningDetails(varProvisioningDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "orderedSubPhaseReferences") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_provisioning_policy.go b/api_v3/model_provisioning_policy.go index 87d92a7f0..79d878296 100644 --- a/api_v3/model_provisioning_policy.go +++ b/api_v3/model_provisioning_policy.go @@ -75,7 +75,7 @@ func (o *ProvisioningPolicy) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProvisioningPolicy) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -85,7 +85,7 @@ func (o *ProvisioningPolicy) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProvisioningPolicy) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -93,7 +93,7 @@ func (o *ProvisioningPolicy) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *ProvisioningPolicy) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -107,7 +107,7 @@ func (o *ProvisioningPolicy) SetDescription(v string) { // GetUsageType returns the UsageType field value if set, zero value otherwise. func (o *ProvisioningPolicy) GetUsageType() UsageType { - if o == nil || isNil(o.UsageType) { + if o == nil || IsNil(o.UsageType) { var ret UsageType return ret } @@ -117,7 +117,7 @@ func (o *ProvisioningPolicy) GetUsageType() UsageType { // GetUsageTypeOk returns a tuple with the UsageType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProvisioningPolicy) GetUsageTypeOk() (*UsageType, bool) { - if o == nil || isNil(o.UsageType) { + if o == nil || IsNil(o.UsageType) { return nil, false } return o.UsageType, true @@ -125,7 +125,7 @@ func (o *ProvisioningPolicy) GetUsageTypeOk() (*UsageType, bool) { // HasUsageType returns a boolean if a field has been set. func (o *ProvisioningPolicy) HasUsageType() bool { - if o != nil && !isNil(o.UsageType) { + if o != nil && !IsNil(o.UsageType) { return true } @@ -139,7 +139,7 @@ func (o *ProvisioningPolicy) SetUsageType(v UsageType) { // GetFields returns the Fields field value if set, zero value otherwise. func (o *ProvisioningPolicy) GetFields() []FieldDetailsDto { - if o == nil || isNil(o.Fields) { + if o == nil || IsNil(o.Fields) { var ret []FieldDetailsDto return ret } @@ -149,7 +149,7 @@ func (o *ProvisioningPolicy) GetFields() []FieldDetailsDto { // GetFieldsOk returns a tuple with the Fields field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProvisioningPolicy) GetFieldsOk() ([]FieldDetailsDto, bool) { - if o == nil || isNil(o.Fields) { + if o == nil || IsNil(o.Fields) { return nil, false } return o.Fields, true @@ -157,7 +157,7 @@ func (o *ProvisioningPolicy) GetFieldsOk() ([]FieldDetailsDto, bool) { // HasFields returns a boolean if a field has been set. func (o *ProvisioningPolicy) HasFields() bool { - if o != nil && !isNil(o.Fields) { + if o != nil && !IsNil(o.Fields) { return true } @@ -180,13 +180,13 @@ func (o ProvisioningPolicy) MarshalJSON() ([]byte, error) { func (o ProvisioningPolicy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.UsageType) { + if !IsNil(o.UsageType) { toSerialize["usageType"] = o.UsageType } - if !isNil(o.Fields) { + if !IsNil(o.Fields) { toSerialize["fields"] = o.Fields } @@ -197,8 +197,8 @@ func (o ProvisioningPolicy) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ProvisioningPolicy) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ProvisioningPolicy) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -207,7 +207,7 @@ func (o *ProvisioningPolicy) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -221,13 +221,17 @@ func (o *ProvisioningPolicy) UnmarshalJSON(bytes []byte) (err error) { varProvisioningPolicy := _ProvisioningPolicy{} - if err = json.Unmarshal(bytes, &varProvisioningPolicy); err == nil { + err = json.Unmarshal(data, &varProvisioningPolicy) + + if err != nil { + return err + } + *o = ProvisioningPolicy(varProvisioningPolicy) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "description") delete(additionalProperties, "usageType") diff --git a/api_v3/model_provisioning_policy_dto.go b/api_v3/model_provisioning_policy_dto.go index fbb29662d..7d7f91262 100644 --- a/api_v3/model_provisioning_policy_dto.go +++ b/api_v3/model_provisioning_policy_dto.go @@ -75,7 +75,7 @@ func (o *ProvisioningPolicyDto) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProvisioningPolicyDto) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -85,7 +85,7 @@ func (o *ProvisioningPolicyDto) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProvisioningPolicyDto) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -93,7 +93,7 @@ func (o *ProvisioningPolicyDto) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *ProvisioningPolicyDto) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -107,7 +107,7 @@ func (o *ProvisioningPolicyDto) SetDescription(v string) { // GetUsageType returns the UsageType field value if set, zero value otherwise. func (o *ProvisioningPolicyDto) GetUsageType() UsageType { - if o == nil || isNil(o.UsageType) { + if o == nil || IsNil(o.UsageType) { var ret UsageType return ret } @@ -117,7 +117,7 @@ func (o *ProvisioningPolicyDto) GetUsageType() UsageType { // GetUsageTypeOk returns a tuple with the UsageType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProvisioningPolicyDto) GetUsageTypeOk() (*UsageType, bool) { - if o == nil || isNil(o.UsageType) { + if o == nil || IsNil(o.UsageType) { return nil, false } return o.UsageType, true @@ -125,7 +125,7 @@ func (o *ProvisioningPolicyDto) GetUsageTypeOk() (*UsageType, bool) { // HasUsageType returns a boolean if a field has been set. func (o *ProvisioningPolicyDto) HasUsageType() bool { - if o != nil && !isNil(o.UsageType) { + if o != nil && !IsNil(o.UsageType) { return true } @@ -139,7 +139,7 @@ func (o *ProvisioningPolicyDto) SetUsageType(v UsageType) { // GetFields returns the Fields field value if set, zero value otherwise. func (o *ProvisioningPolicyDto) GetFields() []FieldDetailsDto { - if o == nil || isNil(o.Fields) { + if o == nil || IsNil(o.Fields) { var ret []FieldDetailsDto return ret } @@ -149,7 +149,7 @@ func (o *ProvisioningPolicyDto) GetFields() []FieldDetailsDto { // GetFieldsOk returns a tuple with the Fields field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ProvisioningPolicyDto) GetFieldsOk() ([]FieldDetailsDto, bool) { - if o == nil || isNil(o.Fields) { + if o == nil || IsNil(o.Fields) { return nil, false } return o.Fields, true @@ -157,7 +157,7 @@ func (o *ProvisioningPolicyDto) GetFieldsOk() ([]FieldDetailsDto, bool) { // HasFields returns a boolean if a field has been set. func (o *ProvisioningPolicyDto) HasFields() bool { - if o != nil && !isNil(o.Fields) { + if o != nil && !IsNil(o.Fields) { return true } @@ -180,13 +180,13 @@ func (o ProvisioningPolicyDto) MarshalJSON() ([]byte, error) { func (o ProvisioningPolicyDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.UsageType) { + if !IsNil(o.UsageType) { toSerialize["usageType"] = o.UsageType } - if !isNil(o.Fields) { + if !IsNil(o.Fields) { toSerialize["fields"] = o.Fields } @@ -197,8 +197,8 @@ func (o ProvisioningPolicyDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ProvisioningPolicyDto) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ProvisioningPolicyDto) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -207,7 +207,7 @@ func (o *ProvisioningPolicyDto) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -221,13 +221,17 @@ func (o *ProvisioningPolicyDto) UnmarshalJSON(bytes []byte) (err error) { varProvisioningPolicyDto := _ProvisioningPolicyDto{} - if err = json.Unmarshal(bytes, &varProvisioningPolicyDto); err == nil { + err = json.Unmarshal(data, &varProvisioningPolicyDto) + + if err != nil { + return err + } + *o = ProvisioningPolicyDto(varProvisioningPolicyDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "description") delete(additionalProperties, "usageType") diff --git a/api_v3/model_public_identity.go b/api_v3/model_public_identity.go index 55f0efa3f..939e443c8 100644 --- a/api_v3/model_public_identity.go +++ b/api_v3/model_public_identity.go @@ -58,7 +58,7 @@ func NewPublicIdentityWithDefaults() *PublicIdentity { // GetId returns the Id field value if set, zero value otherwise. func (o *PublicIdentity) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -68,7 +68,7 @@ func (o *PublicIdentity) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PublicIdentity) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -76,7 +76,7 @@ func (o *PublicIdentity) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *PublicIdentity) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -90,7 +90,7 @@ func (o *PublicIdentity) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *PublicIdentity) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -100,7 +100,7 @@ func (o *PublicIdentity) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PublicIdentity) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -108,7 +108,7 @@ func (o *PublicIdentity) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *PublicIdentity) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -122,7 +122,7 @@ func (o *PublicIdentity) SetName(v string) { // GetAlias returns the Alias field value if set, zero value otherwise. func (o *PublicIdentity) GetAlias() string { - if o == nil || isNil(o.Alias) { + if o == nil || IsNil(o.Alias) { var ret string return ret } @@ -132,7 +132,7 @@ func (o *PublicIdentity) GetAlias() string { // GetAliasOk returns a tuple with the Alias field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PublicIdentity) GetAliasOk() (*string, bool) { - if o == nil || isNil(o.Alias) { + if o == nil || IsNil(o.Alias) { return nil, false } return o.Alias, true @@ -140,7 +140,7 @@ func (o *PublicIdentity) GetAliasOk() (*string, bool) { // HasAlias returns a boolean if a field has been set. func (o *PublicIdentity) HasAlias() bool { - if o != nil && !isNil(o.Alias) { + if o != nil && !IsNil(o.Alias) { return true } @@ -154,7 +154,7 @@ func (o *PublicIdentity) SetAlias(v string) { // GetEmail returns the Email field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PublicIdentity) GetEmail() string { - if o == nil || isNil(o.Email.Get()) { + if o == nil || IsNil(o.Email.Get()) { var ret string return ret } @@ -196,7 +196,7 @@ func (o *PublicIdentity) UnsetEmail() { // GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PublicIdentity) GetStatus() string { - if o == nil || isNil(o.Status.Get()) { + if o == nil || IsNil(o.Status.Get()) { var ret string return ret } @@ -238,7 +238,7 @@ func (o *PublicIdentity) UnsetStatus() { // GetIdentityState returns the IdentityState field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PublicIdentity) GetIdentityState() string { - if o == nil || isNil(o.IdentityState.Get()) { + if o == nil || IsNil(o.IdentityState.Get()) { var ret string return ret } @@ -280,7 +280,7 @@ func (o *PublicIdentity) UnsetIdentityState() { // GetManager returns the Manager field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PublicIdentity) GetManager() IdentityReference { - if o == nil || isNil(o.Manager.Get()) { + if o == nil || IsNil(o.Manager.Get()) { var ret IdentityReference return ret } @@ -322,7 +322,7 @@ func (o *PublicIdentity) UnsetManager() { // GetAttributes returns the Attributes field value if set, zero value otherwise. func (o *PublicIdentity) GetAttributes() []IdentityAttribute { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { var ret []IdentityAttribute return ret } @@ -332,7 +332,7 @@ func (o *PublicIdentity) GetAttributes() []IdentityAttribute { // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PublicIdentity) GetAttributesOk() ([]IdentityAttribute, bool) { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { return nil, false } return o.Attributes, true @@ -340,7 +340,7 @@ func (o *PublicIdentity) GetAttributesOk() ([]IdentityAttribute, bool) { // HasAttributes returns a boolean if a field has been set. func (o *PublicIdentity) HasAttributes() bool { - if o != nil && !isNil(o.Attributes) { + if o != nil && !IsNil(o.Attributes) { return true } @@ -362,13 +362,13 @@ func (o PublicIdentity) MarshalJSON() ([]byte, error) { func (o PublicIdentity) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Alias) { + if !IsNil(o.Alias) { toSerialize["alias"] = o.Alias } if o.Email.IsSet() { @@ -383,7 +383,7 @@ func (o PublicIdentity) ToMap() (map[string]interface{}, error) { if o.Manager.IsSet() { toSerialize["manager"] = o.Manager.Get() } - if !isNil(o.Attributes) { + if !IsNil(o.Attributes) { toSerialize["attributes"] = o.Attributes } @@ -394,16 +394,20 @@ func (o PublicIdentity) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PublicIdentity) UnmarshalJSON(bytes []byte) (err error) { +func (o *PublicIdentity) UnmarshalJSON(data []byte) (err error) { varPublicIdentity := _PublicIdentity{} - if err = json.Unmarshal(bytes, &varPublicIdentity); err == nil { + err = json.Unmarshal(data, &varPublicIdentity) + + if err != nil { + return err + } + *o = PublicIdentity(varPublicIdentity) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "alias") diff --git a/api_v3/model_public_identity_attribute_config.go b/api_v3/model_public_identity_attribute_config.go index 19bf900ef..3193a74c1 100644 --- a/api_v3/model_public_identity_attribute_config.go +++ b/api_v3/model_public_identity_attribute_config.go @@ -47,7 +47,7 @@ func NewPublicIdentityAttributeConfigWithDefaults() *PublicIdentityAttributeConf // GetKey returns the Key field value if set, zero value otherwise. func (o *PublicIdentityAttributeConfig) GetKey() string { - if o == nil || isNil(o.Key) { + if o == nil || IsNil(o.Key) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *PublicIdentityAttributeConfig) GetKey() string { // GetKeyOk returns a tuple with the Key field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PublicIdentityAttributeConfig) GetKeyOk() (*string, bool) { - if o == nil || isNil(o.Key) { + if o == nil || IsNil(o.Key) { return nil, false } return o.Key, true @@ -65,7 +65,7 @@ func (o *PublicIdentityAttributeConfig) GetKeyOk() (*string, bool) { // HasKey returns a boolean if a field has been set. func (o *PublicIdentityAttributeConfig) HasKey() bool { - if o != nil && !isNil(o.Key) { + if o != nil && !IsNil(o.Key) { return true } @@ -79,7 +79,7 @@ func (o *PublicIdentityAttributeConfig) SetKey(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *PublicIdentityAttributeConfig) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *PublicIdentityAttributeConfig) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PublicIdentityAttributeConfig) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -97,7 +97,7 @@ func (o *PublicIdentityAttributeConfig) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *PublicIdentityAttributeConfig) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -119,10 +119,10 @@ func (o PublicIdentityAttributeConfig) MarshalJSON() ([]byte, error) { func (o PublicIdentityAttributeConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Key) { + if !IsNil(o.Key) { toSerialize["key"] = o.Key } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -133,16 +133,20 @@ func (o PublicIdentityAttributeConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PublicIdentityAttributeConfig) UnmarshalJSON(bytes []byte) (err error) { +func (o *PublicIdentityAttributeConfig) UnmarshalJSON(data []byte) (err error) { varPublicIdentityAttributeConfig := _PublicIdentityAttributeConfig{} - if err = json.Unmarshal(bytes, &varPublicIdentityAttributeConfig); err == nil { + err = json.Unmarshal(data, &varPublicIdentityAttributeConfig) + + if err != nil { + return err + } + *o = PublicIdentityAttributeConfig(varPublicIdentityAttributeConfig) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "key") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_public_identity_config.go b/api_v3/model_public_identity_config.go index 1bd4a8c02..07a75982f 100644 --- a/api_v3/model_public_identity_config.go +++ b/api_v3/model_public_identity_config.go @@ -49,7 +49,7 @@ func NewPublicIdentityConfigWithDefaults() *PublicIdentityConfig { // GetAttributes returns the Attributes field value if set, zero value otherwise. func (o *PublicIdentityConfig) GetAttributes() []PublicIdentityAttributeConfig { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { var ret []PublicIdentityAttributeConfig return ret } @@ -59,7 +59,7 @@ func (o *PublicIdentityConfig) GetAttributes() []PublicIdentityAttributeConfig { // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PublicIdentityConfig) GetAttributesOk() ([]PublicIdentityAttributeConfig, bool) { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { return nil, false } return o.Attributes, true @@ -67,7 +67,7 @@ func (o *PublicIdentityConfig) GetAttributesOk() ([]PublicIdentityAttributeConfi // HasAttributes returns a boolean if a field has been set. func (o *PublicIdentityConfig) HasAttributes() bool { - if o != nil && !isNil(o.Attributes) { + if o != nil && !IsNil(o.Attributes) { return true } @@ -81,7 +81,7 @@ func (o *PublicIdentityConfig) SetAttributes(v []PublicIdentityAttributeConfig) // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PublicIdentityConfig) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -123,7 +123,7 @@ func (o *PublicIdentityConfig) UnsetModified() { // GetModifiedBy returns the ModifiedBy field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PublicIdentityConfig) GetModifiedBy() IdentityReference { - if o == nil || isNil(o.ModifiedBy.Get()) { + if o == nil || IsNil(o.ModifiedBy.Get()) { var ret IdentityReference return ret } @@ -173,7 +173,7 @@ func (o PublicIdentityConfig) MarshalJSON() ([]byte, error) { func (o PublicIdentityConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Attributes) { + if !IsNil(o.Attributes) { toSerialize["attributes"] = o.Attributes } if o.Modified.IsSet() { @@ -190,16 +190,20 @@ func (o PublicIdentityConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PublicIdentityConfig) UnmarshalJSON(bytes []byte) (err error) { +func (o *PublicIdentityConfig) UnmarshalJSON(data []byte) (err error) { varPublicIdentityConfig := _PublicIdentityConfig{} - if err = json.Unmarshal(bytes, &varPublicIdentityConfig); err == nil { + err = json.Unmarshal(data, &varPublicIdentityConfig) + + if err != nil { + return err + } + *o = PublicIdentityConfig(varPublicIdentityConfig) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "attributes") delete(additionalProperties, "modified") delete(additionalProperties, "modifiedBy") diff --git a/api_v3/model_put_correlation_config_request.go b/api_v3/model_put_correlation_config_request.go index 8954369ef..2a70b8f63 100644 --- a/api_v3/model_put_correlation_config_request.go +++ b/api_v3/model_put_correlation_config_request.go @@ -89,8 +89,8 @@ func (o PutCorrelationConfigRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PutCorrelationConfigRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *PutCorrelationConfigRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -99,7 +99,7 @@ func (o *PutCorrelationConfigRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -113,13 +113,17 @@ func (o *PutCorrelationConfigRequest) UnmarshalJSON(bytes []byte) (err error) { varPutCorrelationConfigRequest := _PutCorrelationConfigRequest{} - if err = json.Unmarshal(bytes, &varPutCorrelationConfigRequest); err == nil { + err = json.Unmarshal(data, &varPutCorrelationConfigRequest) + + if err != nil { + return err + } + *o = PutCorrelationConfigRequest(varPutCorrelationConfigRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "file") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_put_password_dictionary_request.go b/api_v3/model_put_password_dictionary_request.go index 1fe327a5f..effbd768e 100644 --- a/api_v3/model_put_password_dictionary_request.go +++ b/api_v3/model_put_password_dictionary_request.go @@ -45,7 +45,7 @@ func NewPutPasswordDictionaryRequestWithDefaults() *PutPasswordDictionaryRequest // GetFile returns the File field value if set, zero value otherwise. func (o *PutPasswordDictionaryRequest) GetFile() *os.File { - if o == nil || isNil(o.File) { + if o == nil || IsNil(o.File) { var ret *os.File return ret } @@ -55,7 +55,7 @@ func (o *PutPasswordDictionaryRequest) GetFile() *os.File { // GetFileOk returns a tuple with the File field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PutPasswordDictionaryRequest) GetFileOk() (**os.File, bool) { - if o == nil || isNil(o.File) { + if o == nil || IsNil(o.File) { return nil, false } return o.File, true @@ -63,7 +63,7 @@ func (o *PutPasswordDictionaryRequest) GetFileOk() (**os.File, bool) { // HasFile returns a boolean if a field has been set. func (o *PutPasswordDictionaryRequest) HasFile() bool { - if o != nil && !isNil(o.File) { + if o != nil && !IsNil(o.File) { return true } @@ -85,7 +85,7 @@ func (o PutPasswordDictionaryRequest) MarshalJSON() ([]byte, error) { func (o PutPasswordDictionaryRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.File) { + if !IsNil(o.File) { toSerialize["file"] = o.File } @@ -96,16 +96,20 @@ func (o PutPasswordDictionaryRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PutPasswordDictionaryRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *PutPasswordDictionaryRequest) UnmarshalJSON(data []byte) (err error) { varPutPasswordDictionaryRequest := _PutPasswordDictionaryRequest{} - if err = json.Unmarshal(bytes, &varPutPasswordDictionaryRequest); err == nil { + err = json.Unmarshal(data, &varPutPasswordDictionaryRequest) + + if err != nil { + return err + } + *o = PutPasswordDictionaryRequest(varPutPasswordDictionaryRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "file") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_put_source_config_request.go b/api_v3/model_put_source_config_request.go index 73e2e7309..dfc24ceb2 100644 --- a/api_v3/model_put_source_config_request.go +++ b/api_v3/model_put_source_config_request.go @@ -89,8 +89,8 @@ func (o PutSourceConfigRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PutSourceConfigRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *PutSourceConfigRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -99,7 +99,7 @@ func (o *PutSourceConfigRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -113,13 +113,17 @@ func (o *PutSourceConfigRequest) UnmarshalJSON(bytes []byte) (err error) { varPutSourceConfigRequest := _PutSourceConfigRequest{} - if err = json.Unmarshal(bytes, &varPutSourceConfigRequest); err == nil { + err = json.Unmarshal(data, &varPutSourceConfigRequest) + + if err != nil { + return err + } + *o = PutSourceConfigRequest(varPutSourceConfigRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "file") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_put_source_template_request.go b/api_v3/model_put_source_template_request.go index aec7adb7d..612a9d5c9 100644 --- a/api_v3/model_put_source_template_request.go +++ b/api_v3/model_put_source_template_request.go @@ -89,8 +89,8 @@ func (o PutSourceTemplateRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PutSourceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *PutSourceTemplateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -99,7 +99,7 @@ func (o *PutSourceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -113,13 +113,17 @@ func (o *PutSourceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varPutSourceTemplateRequest := _PutSourceTemplateRequest{} - if err = json.Unmarshal(bytes, &varPutSourceTemplateRequest); err == nil { + err = json.Unmarshal(data, &varPutSourceTemplateRequest) + + if err != nil { + return err + } + *o = PutSourceTemplateRequest(varPutSourceTemplateRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "file") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_query.go b/api_v3/model_query.go index c1f6877cc..912bd645a 100644 --- a/api_v3/model_query.go +++ b/api_v3/model_query.go @@ -50,7 +50,7 @@ func NewQueryWithDefaults() *Query { // GetQuery returns the Query field value if set, zero value otherwise. func (o *Query) GetQuery() string { - if o == nil || isNil(o.Query) { + if o == nil || IsNil(o.Query) { var ret string return ret } @@ -60,7 +60,7 @@ func (o *Query) GetQuery() string { // GetQueryOk returns a tuple with the Query field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Query) GetQueryOk() (*string, bool) { - if o == nil || isNil(o.Query) { + if o == nil || IsNil(o.Query) { return nil, false } return o.Query, true @@ -68,7 +68,7 @@ func (o *Query) GetQueryOk() (*string, bool) { // HasQuery returns a boolean if a field has been set. func (o *Query) HasQuery() bool { - if o != nil && !isNil(o.Query) { + if o != nil && !IsNil(o.Query) { return true } @@ -82,7 +82,7 @@ func (o *Query) SetQuery(v string) { // GetFields returns the Fields field value if set, zero value otherwise. func (o *Query) GetFields() string { - if o == nil || isNil(o.Fields) { + if o == nil || IsNil(o.Fields) { var ret string return ret } @@ -92,7 +92,7 @@ func (o *Query) GetFields() string { // GetFieldsOk returns a tuple with the Fields field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Query) GetFieldsOk() (*string, bool) { - if o == nil || isNil(o.Fields) { + if o == nil || IsNil(o.Fields) { return nil, false } return o.Fields, true @@ -100,7 +100,7 @@ func (o *Query) GetFieldsOk() (*string, bool) { // HasFields returns a boolean if a field has been set. func (o *Query) HasFields() bool { - if o != nil && !isNil(o.Fields) { + if o != nil && !IsNil(o.Fields) { return true } @@ -114,7 +114,7 @@ func (o *Query) SetFields(v string) { // GetTimeZone returns the TimeZone field value if set, zero value otherwise. func (o *Query) GetTimeZone() string { - if o == nil || isNil(o.TimeZone) { + if o == nil || IsNil(o.TimeZone) { var ret string return ret } @@ -124,7 +124,7 @@ func (o *Query) GetTimeZone() string { // GetTimeZoneOk returns a tuple with the TimeZone field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Query) GetTimeZoneOk() (*string, bool) { - if o == nil || isNil(o.TimeZone) { + if o == nil || IsNil(o.TimeZone) { return nil, false } return o.TimeZone, true @@ -132,7 +132,7 @@ func (o *Query) GetTimeZoneOk() (*string, bool) { // HasTimeZone returns a boolean if a field has been set. func (o *Query) HasTimeZone() bool { - if o != nil && !isNil(o.TimeZone) { + if o != nil && !IsNil(o.TimeZone) { return true } @@ -146,7 +146,7 @@ func (o *Query) SetTimeZone(v string) { // GetInnerHit returns the InnerHit field value if set, zero value otherwise. func (o *Query) GetInnerHit() InnerHit { - if o == nil || isNil(o.InnerHit) { + if o == nil || IsNil(o.InnerHit) { var ret InnerHit return ret } @@ -156,7 +156,7 @@ func (o *Query) GetInnerHit() InnerHit { // GetInnerHitOk returns a tuple with the InnerHit field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Query) GetInnerHitOk() (*InnerHit, bool) { - if o == nil || isNil(o.InnerHit) { + if o == nil || IsNil(o.InnerHit) { return nil, false } return o.InnerHit, true @@ -164,7 +164,7 @@ func (o *Query) GetInnerHitOk() (*InnerHit, bool) { // HasInnerHit returns a boolean if a field has been set. func (o *Query) HasInnerHit() bool { - if o != nil && !isNil(o.InnerHit) { + if o != nil && !IsNil(o.InnerHit) { return true } @@ -186,16 +186,16 @@ func (o Query) MarshalJSON() ([]byte, error) { func (o Query) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Query) { + if !IsNil(o.Query) { toSerialize["query"] = o.Query } - if !isNil(o.Fields) { + if !IsNil(o.Fields) { toSerialize["fields"] = o.Fields } - if !isNil(o.TimeZone) { + if !IsNil(o.TimeZone) { toSerialize["timeZone"] = o.TimeZone } - if !isNil(o.InnerHit) { + if !IsNil(o.InnerHit) { toSerialize["innerHit"] = o.InnerHit } @@ -206,16 +206,20 @@ func (o Query) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Query) UnmarshalJSON(bytes []byte) (err error) { +func (o *Query) UnmarshalJSON(data []byte) (err error) { varQuery := _Query{} - if err = json.Unmarshal(bytes, &varQuery); err == nil { + err = json.Unmarshal(data, &varQuery) + + if err != nil { + return err + } + *o = Query(varQuery) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "query") delete(additionalProperties, "fields") delete(additionalProperties, "timeZone") diff --git a/api_v3/model_query_result_filter.go b/api_v3/model_query_result_filter.go index 2c0525b03..e53323fa4 100644 --- a/api_v3/model_query_result_filter.go +++ b/api_v3/model_query_result_filter.go @@ -47,7 +47,7 @@ func NewQueryResultFilterWithDefaults() *QueryResultFilter { // GetIncludes returns the Includes field value if set, zero value otherwise. func (o *QueryResultFilter) GetIncludes() []string { - if o == nil || isNil(o.Includes) { + if o == nil || IsNil(o.Includes) { var ret []string return ret } @@ -57,7 +57,7 @@ func (o *QueryResultFilter) GetIncludes() []string { // GetIncludesOk returns a tuple with the Includes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *QueryResultFilter) GetIncludesOk() ([]string, bool) { - if o == nil || isNil(o.Includes) { + if o == nil || IsNil(o.Includes) { return nil, false } return o.Includes, true @@ -65,7 +65,7 @@ func (o *QueryResultFilter) GetIncludesOk() ([]string, bool) { // HasIncludes returns a boolean if a field has been set. func (o *QueryResultFilter) HasIncludes() bool { - if o != nil && !isNil(o.Includes) { + if o != nil && !IsNil(o.Includes) { return true } @@ -79,7 +79,7 @@ func (o *QueryResultFilter) SetIncludes(v []string) { // GetExcludes returns the Excludes field value if set, zero value otherwise. func (o *QueryResultFilter) GetExcludes() []string { - if o == nil || isNil(o.Excludes) { + if o == nil || IsNil(o.Excludes) { var ret []string return ret } @@ -89,7 +89,7 @@ func (o *QueryResultFilter) GetExcludes() []string { // GetExcludesOk returns a tuple with the Excludes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *QueryResultFilter) GetExcludesOk() ([]string, bool) { - if o == nil || isNil(o.Excludes) { + if o == nil || IsNil(o.Excludes) { return nil, false } return o.Excludes, true @@ -97,7 +97,7 @@ func (o *QueryResultFilter) GetExcludesOk() ([]string, bool) { // HasExcludes returns a boolean if a field has been set. func (o *QueryResultFilter) HasExcludes() bool { - if o != nil && !isNil(o.Excludes) { + if o != nil && !IsNil(o.Excludes) { return true } @@ -119,10 +119,10 @@ func (o QueryResultFilter) MarshalJSON() ([]byte, error) { func (o QueryResultFilter) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Includes) { + if !IsNil(o.Includes) { toSerialize["includes"] = o.Includes } - if !isNil(o.Excludes) { + if !IsNil(o.Excludes) { toSerialize["excludes"] = o.Excludes } @@ -133,16 +133,20 @@ func (o QueryResultFilter) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *QueryResultFilter) UnmarshalJSON(bytes []byte) (err error) { +func (o *QueryResultFilter) UnmarshalJSON(data []byte) (err error) { varQueryResultFilter := _QueryResultFilter{} - if err = json.Unmarshal(bytes, &varQueryResultFilter); err == nil { + err = json.Unmarshal(data, &varQueryResultFilter) + + if err != nil { + return err + } + *o = QueryResultFilter(varQueryResultFilter) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "includes") delete(additionalProperties, "excludes") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_queued_check_config_details.go b/api_v3/model_queued_check_config_details.go index dda000b42..c824495ee 100644 --- a/api_v3/model_queued_check_config_details.go +++ b/api_v3/model_queued_check_config_details.go @@ -116,8 +116,8 @@ func (o QueuedCheckConfigDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *QueuedCheckConfigDetails) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *QueuedCheckConfigDetails) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -127,7 +127,7 @@ func (o *QueuedCheckConfigDetails) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -141,13 +141,17 @@ func (o *QueuedCheckConfigDetails) UnmarshalJSON(bytes []byte) (err error) { varQueuedCheckConfigDetails := _QueuedCheckConfigDetails{} - if err = json.Unmarshal(bytes, &varQueuedCheckConfigDetails); err == nil { + err = json.Unmarshal(data, &varQueuedCheckConfigDetails) + + if err != nil { + return err + } + *o = QueuedCheckConfigDetails(varQueuedCheckConfigDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "provisioningStatusCheckIntervalMinutes") delete(additionalProperties, "provisioningMaxStatusCheckDays") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_range.go b/api_v3/model_range.go index a5bca92bc..f65d726a3 100644 --- a/api_v3/model_range.go +++ b/api_v3/model_range.go @@ -45,7 +45,7 @@ func NewRangeWithDefaults() *Range { // GetLower returns the Lower field value if set, zero value otherwise. func (o *Range) GetLower() Bound { - if o == nil || isNil(o.Lower) { + if o == nil || IsNil(o.Lower) { var ret Bound return ret } @@ -55,7 +55,7 @@ func (o *Range) GetLower() Bound { // GetLowerOk returns a tuple with the Lower field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Range) GetLowerOk() (*Bound, bool) { - if o == nil || isNil(o.Lower) { + if o == nil || IsNil(o.Lower) { return nil, false } return o.Lower, true @@ -63,7 +63,7 @@ func (o *Range) GetLowerOk() (*Bound, bool) { // HasLower returns a boolean if a field has been set. func (o *Range) HasLower() bool { - if o != nil && !isNil(o.Lower) { + if o != nil && !IsNil(o.Lower) { return true } @@ -77,7 +77,7 @@ func (o *Range) SetLower(v Bound) { // GetUpper returns the Upper field value if set, zero value otherwise. func (o *Range) GetUpper() Bound { - if o == nil || isNil(o.Upper) { + if o == nil || IsNil(o.Upper) { var ret Bound return ret } @@ -87,7 +87,7 @@ func (o *Range) GetUpper() Bound { // GetUpperOk returns a tuple with the Upper field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Range) GetUpperOk() (*Bound, bool) { - if o == nil || isNil(o.Upper) { + if o == nil || IsNil(o.Upper) { return nil, false } return o.Upper, true @@ -95,7 +95,7 @@ func (o *Range) GetUpperOk() (*Bound, bool) { // HasUpper returns a boolean if a field has been set. func (o *Range) HasUpper() bool { - if o != nil && !isNil(o.Upper) { + if o != nil && !IsNil(o.Upper) { return true } @@ -117,10 +117,10 @@ func (o Range) MarshalJSON() ([]byte, error) { func (o Range) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Lower) { + if !IsNil(o.Lower) { toSerialize["lower"] = o.Lower } - if !isNil(o.Upper) { + if !IsNil(o.Upper) { toSerialize["upper"] = o.Upper } @@ -131,16 +131,20 @@ func (o Range) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Range) UnmarshalJSON(bytes []byte) (err error) { +func (o *Range) UnmarshalJSON(data []byte) (err error) { varRange := _Range{} - if err = json.Unmarshal(bytes, &varRange); err == nil { + err = json.Unmarshal(data, &varRange) + + if err != nil { + return err + } + *o = Range(varRange) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "lower") delete(additionalProperties, "upper") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_reassign_reference.go b/api_v3/model_reassign_reference.go index 7e775871f..87d8f179d 100644 --- a/api_v3/model_reassign_reference.go +++ b/api_v3/model_reassign_reference.go @@ -116,8 +116,8 @@ func (o ReassignReference) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ReassignReference) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ReassignReference) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -127,7 +127,7 @@ func (o *ReassignReference) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -141,13 +141,17 @@ func (o *ReassignReference) UnmarshalJSON(bytes []byte) (err error) { varReassignReference := _ReassignReference{} - if err = json.Unmarshal(bytes, &varReassignReference); err == nil { + err = json.Unmarshal(data, &varReassignReference) + + if err != nil { + return err + } + *o = ReassignReference(varReassignReference) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "type") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_reassignment.go b/api_v3/model_reassignment.go index bc7f50117..cbd481ada 100644 --- a/api_v3/model_reassignment.go +++ b/api_v3/model_reassignment.go @@ -46,7 +46,7 @@ func NewReassignmentWithDefaults() *Reassignment { // GetFrom returns the From field value if set, zero value otherwise. func (o *Reassignment) GetFrom() CertificationReference { - if o == nil || isNil(o.From) { + if o == nil || IsNil(o.From) { var ret CertificationReference return ret } @@ -56,7 +56,7 @@ func (o *Reassignment) GetFrom() CertificationReference { // GetFromOk returns a tuple with the From field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Reassignment) GetFromOk() (*CertificationReference, bool) { - if o == nil || isNil(o.From) { + if o == nil || IsNil(o.From) { return nil, false } return o.From, true @@ -64,7 +64,7 @@ func (o *Reassignment) GetFromOk() (*CertificationReference, bool) { // HasFrom returns a boolean if a field has been set. func (o *Reassignment) HasFrom() bool { - if o != nil && !isNil(o.From) { + if o != nil && !IsNil(o.From) { return true } @@ -78,7 +78,7 @@ func (o *Reassignment) SetFrom(v CertificationReference) { // GetComment returns the Comment field value if set, zero value otherwise. func (o *Reassignment) GetComment() string { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { var ret string return ret } @@ -88,7 +88,7 @@ func (o *Reassignment) GetComment() string { // GetCommentOk returns a tuple with the Comment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Reassignment) GetCommentOk() (*string, bool) { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { return nil, false } return o.Comment, true @@ -96,7 +96,7 @@ func (o *Reassignment) GetCommentOk() (*string, bool) { // HasComment returns a boolean if a field has been set. func (o *Reassignment) HasComment() bool { - if o != nil && !isNil(o.Comment) { + if o != nil && !IsNil(o.Comment) { return true } @@ -118,10 +118,10 @@ func (o Reassignment) MarshalJSON() ([]byte, error) { func (o Reassignment) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.From) { + if !IsNil(o.From) { toSerialize["from"] = o.From } - if !isNil(o.Comment) { + if !IsNil(o.Comment) { toSerialize["comment"] = o.Comment } @@ -132,16 +132,20 @@ func (o Reassignment) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Reassignment) UnmarshalJSON(bytes []byte) (err error) { +func (o *Reassignment) UnmarshalJSON(data []byte) (err error) { varReassignment := _Reassignment{} - if err = json.Unmarshal(bytes, &varReassignment); err == nil { + err = json.Unmarshal(data, &varReassignment) + + if err != nil { + return err + } + *o = Reassignment(varReassignment) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "from") delete(additionalProperties, "comment") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_reassignment_reference.go b/api_v3/model_reassignment_reference.go index e8c91735a..e84869f92 100644 --- a/api_v3/model_reassignment_reference.go +++ b/api_v3/model_reassignment_reference.go @@ -116,8 +116,8 @@ func (o ReassignmentReference) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ReassignmentReference) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ReassignmentReference) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -127,7 +127,7 @@ func (o *ReassignmentReference) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -141,13 +141,17 @@ func (o *ReassignmentReference) UnmarshalJSON(bytes []byte) (err error) { varReassignmentReference := _ReassignmentReference{} - if err = json.Unmarshal(bytes, &varReassignmentReference); err == nil { + err = json.Unmarshal(data, &varReassignmentReference) + + if err != nil { + return err + } + *o = ReassignmentReference(varReassignmentReference) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "type") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_reassignment_trail_dto.go b/api_v3/model_reassignment_trail_dto.go index 4a28c276c..1cf936766 100644 --- a/api_v3/model_reassignment_trail_dto.go +++ b/api_v3/model_reassignment_trail_dto.go @@ -49,7 +49,7 @@ func NewReassignmentTrailDTOWithDefaults() *ReassignmentTrailDTO { // GetPreviousOwner returns the PreviousOwner field value if set, zero value otherwise. func (o *ReassignmentTrailDTO) GetPreviousOwner() string { - if o == nil || isNil(o.PreviousOwner) { + if o == nil || IsNil(o.PreviousOwner) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *ReassignmentTrailDTO) GetPreviousOwner() string { // GetPreviousOwnerOk returns a tuple with the PreviousOwner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReassignmentTrailDTO) GetPreviousOwnerOk() (*string, bool) { - if o == nil || isNil(o.PreviousOwner) { + if o == nil || IsNil(o.PreviousOwner) { return nil, false } return o.PreviousOwner, true @@ -67,7 +67,7 @@ func (o *ReassignmentTrailDTO) GetPreviousOwnerOk() (*string, bool) { // HasPreviousOwner returns a boolean if a field has been set. func (o *ReassignmentTrailDTO) HasPreviousOwner() bool { - if o != nil && !isNil(o.PreviousOwner) { + if o != nil && !IsNil(o.PreviousOwner) { return true } @@ -81,7 +81,7 @@ func (o *ReassignmentTrailDTO) SetPreviousOwner(v string) { // GetNewOwner returns the NewOwner field value if set, zero value otherwise. func (o *ReassignmentTrailDTO) GetNewOwner() string { - if o == nil || isNil(o.NewOwner) { + if o == nil || IsNil(o.NewOwner) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *ReassignmentTrailDTO) GetNewOwner() string { // GetNewOwnerOk returns a tuple with the NewOwner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReassignmentTrailDTO) GetNewOwnerOk() (*string, bool) { - if o == nil || isNil(o.NewOwner) { + if o == nil || IsNil(o.NewOwner) { return nil, false } return o.NewOwner, true @@ -99,7 +99,7 @@ func (o *ReassignmentTrailDTO) GetNewOwnerOk() (*string, bool) { // HasNewOwner returns a boolean if a field has been set. func (o *ReassignmentTrailDTO) HasNewOwner() bool { - if o != nil && !isNil(o.NewOwner) { + if o != nil && !IsNil(o.NewOwner) { return true } @@ -113,7 +113,7 @@ func (o *ReassignmentTrailDTO) SetNewOwner(v string) { // GetReassignmentType returns the ReassignmentType field value if set, zero value otherwise. func (o *ReassignmentTrailDTO) GetReassignmentType() string { - if o == nil || isNil(o.ReassignmentType) { + if o == nil || IsNil(o.ReassignmentType) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *ReassignmentTrailDTO) GetReassignmentType() string { // GetReassignmentTypeOk returns a tuple with the ReassignmentType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReassignmentTrailDTO) GetReassignmentTypeOk() (*string, bool) { - if o == nil || isNil(o.ReassignmentType) { + if o == nil || IsNil(o.ReassignmentType) { return nil, false } return o.ReassignmentType, true @@ -131,7 +131,7 @@ func (o *ReassignmentTrailDTO) GetReassignmentTypeOk() (*string, bool) { // HasReassignmentType returns a boolean if a field has been set. func (o *ReassignmentTrailDTO) HasReassignmentType() bool { - if o != nil && !isNil(o.ReassignmentType) { + if o != nil && !IsNil(o.ReassignmentType) { return true } @@ -153,13 +153,13 @@ func (o ReassignmentTrailDTO) MarshalJSON() ([]byte, error) { func (o ReassignmentTrailDTO) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.PreviousOwner) { + if !IsNil(o.PreviousOwner) { toSerialize["previousOwner"] = o.PreviousOwner } - if !isNil(o.NewOwner) { + if !IsNil(o.NewOwner) { toSerialize["newOwner"] = o.NewOwner } - if !isNil(o.ReassignmentType) { + if !IsNil(o.ReassignmentType) { toSerialize["reassignmentType"] = o.ReassignmentType } @@ -170,16 +170,20 @@ func (o ReassignmentTrailDTO) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ReassignmentTrailDTO) UnmarshalJSON(bytes []byte) (err error) { +func (o *ReassignmentTrailDTO) UnmarshalJSON(data []byte) (err error) { varReassignmentTrailDTO := _ReassignmentTrailDTO{} - if err = json.Unmarshal(bytes, &varReassignmentTrailDTO); err == nil { + err = json.Unmarshal(data, &varReassignmentTrailDTO) + + if err != nil { + return err + } + *o = ReassignmentTrailDTO(varReassignmentTrailDTO) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "previousOwner") delete(additionalProperties, "newOwner") delete(additionalProperties, "reassignmentType") diff --git a/api_v3/model_reference.go b/api_v3/model_reference.go index 578bc7677..9c801955b 100644 --- a/api_v3/model_reference.go +++ b/api_v3/model_reference.go @@ -47,7 +47,7 @@ func NewReferenceWithDefaults() *Reference { // GetId returns the Id field value if set, zero value otherwise. func (o *Reference) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *Reference) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Reference) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -65,7 +65,7 @@ func (o *Reference) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Reference) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -79,7 +79,7 @@ func (o *Reference) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *Reference) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *Reference) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Reference) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -97,7 +97,7 @@ func (o *Reference) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *Reference) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -119,10 +119,10 @@ func (o Reference) MarshalJSON() ([]byte, error) { func (o Reference) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -133,16 +133,20 @@ func (o Reference) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Reference) UnmarshalJSON(bytes []byte) (err error) { +func (o *Reference) UnmarshalJSON(data []byte) (err error) { varReference := _Reference{} - if err = json.Unmarshal(bytes, &varReference); err == nil { + err = json.Unmarshal(data, &varReference) + + if err != nil { + return err + } + *o = Reference(varReference) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_remediation_item_details.go b/api_v3/model_remediation_item_details.go index 3bdfdc4fb..aa1175f57 100644 --- a/api_v3/model_remediation_item_details.go +++ b/api_v3/model_remediation_item_details.go @@ -61,7 +61,7 @@ func NewRemediationItemDetailsWithDefaults() *RemediationItemDetails { // GetId returns the Id field value if set, zero value otherwise. func (o *RemediationItemDetails) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -71,7 +71,7 @@ func (o *RemediationItemDetails) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItemDetails) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -79,7 +79,7 @@ func (o *RemediationItemDetails) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *RemediationItemDetails) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -93,7 +93,7 @@ func (o *RemediationItemDetails) SetId(v string) { // GetTargetId returns the TargetId field value if set, zero value otherwise. func (o *RemediationItemDetails) GetTargetId() string { - if o == nil || isNil(o.TargetId) { + if o == nil || IsNil(o.TargetId) { var ret string return ret } @@ -103,7 +103,7 @@ func (o *RemediationItemDetails) GetTargetId() string { // GetTargetIdOk returns a tuple with the TargetId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItemDetails) GetTargetIdOk() (*string, bool) { - if o == nil || isNil(o.TargetId) { + if o == nil || IsNil(o.TargetId) { return nil, false } return o.TargetId, true @@ -111,7 +111,7 @@ func (o *RemediationItemDetails) GetTargetIdOk() (*string, bool) { // HasTargetId returns a boolean if a field has been set. func (o *RemediationItemDetails) HasTargetId() bool { - if o != nil && !isNil(o.TargetId) { + if o != nil && !IsNil(o.TargetId) { return true } @@ -125,7 +125,7 @@ func (o *RemediationItemDetails) SetTargetId(v string) { // GetTargetName returns the TargetName field value if set, zero value otherwise. func (o *RemediationItemDetails) GetTargetName() string { - if o == nil || isNil(o.TargetName) { + if o == nil || IsNil(o.TargetName) { var ret string return ret } @@ -135,7 +135,7 @@ func (o *RemediationItemDetails) GetTargetName() string { // GetTargetNameOk returns a tuple with the TargetName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItemDetails) GetTargetNameOk() (*string, bool) { - if o == nil || isNil(o.TargetName) { + if o == nil || IsNil(o.TargetName) { return nil, false } return o.TargetName, true @@ -143,7 +143,7 @@ func (o *RemediationItemDetails) GetTargetNameOk() (*string, bool) { // HasTargetName returns a boolean if a field has been set. func (o *RemediationItemDetails) HasTargetName() bool { - if o != nil && !isNil(o.TargetName) { + if o != nil && !IsNil(o.TargetName) { return true } @@ -157,7 +157,7 @@ func (o *RemediationItemDetails) SetTargetName(v string) { // GetTargetDisplayName returns the TargetDisplayName field value if set, zero value otherwise. func (o *RemediationItemDetails) GetTargetDisplayName() string { - if o == nil || isNil(o.TargetDisplayName) { + if o == nil || IsNil(o.TargetDisplayName) { var ret string return ret } @@ -167,7 +167,7 @@ func (o *RemediationItemDetails) GetTargetDisplayName() string { // GetTargetDisplayNameOk returns a tuple with the TargetDisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItemDetails) GetTargetDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.TargetDisplayName) { + if o == nil || IsNil(o.TargetDisplayName) { return nil, false } return o.TargetDisplayName, true @@ -175,7 +175,7 @@ func (o *RemediationItemDetails) GetTargetDisplayNameOk() (*string, bool) { // HasTargetDisplayName returns a boolean if a field has been set. func (o *RemediationItemDetails) HasTargetDisplayName() bool { - if o != nil && !isNil(o.TargetDisplayName) { + if o != nil && !IsNil(o.TargetDisplayName) { return true } @@ -189,7 +189,7 @@ func (o *RemediationItemDetails) SetTargetDisplayName(v string) { // GetApplicationName returns the ApplicationName field value if set, zero value otherwise. func (o *RemediationItemDetails) GetApplicationName() string { - if o == nil || isNil(o.ApplicationName) { + if o == nil || IsNil(o.ApplicationName) { var ret string return ret } @@ -199,7 +199,7 @@ func (o *RemediationItemDetails) GetApplicationName() string { // GetApplicationNameOk returns a tuple with the ApplicationName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItemDetails) GetApplicationNameOk() (*string, bool) { - if o == nil || isNil(o.ApplicationName) { + if o == nil || IsNil(o.ApplicationName) { return nil, false } return o.ApplicationName, true @@ -207,7 +207,7 @@ func (o *RemediationItemDetails) GetApplicationNameOk() (*string, bool) { // HasApplicationName returns a boolean if a field has been set. func (o *RemediationItemDetails) HasApplicationName() bool { - if o != nil && !isNil(o.ApplicationName) { + if o != nil && !IsNil(o.ApplicationName) { return true } @@ -221,7 +221,7 @@ func (o *RemediationItemDetails) SetApplicationName(v string) { // GetAttributeName returns the AttributeName field value if set, zero value otherwise. func (o *RemediationItemDetails) GetAttributeName() string { - if o == nil || isNil(o.AttributeName) { + if o == nil || IsNil(o.AttributeName) { var ret string return ret } @@ -231,7 +231,7 @@ func (o *RemediationItemDetails) GetAttributeName() string { // GetAttributeNameOk returns a tuple with the AttributeName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItemDetails) GetAttributeNameOk() (*string, bool) { - if o == nil || isNil(o.AttributeName) { + if o == nil || IsNil(o.AttributeName) { return nil, false } return o.AttributeName, true @@ -239,7 +239,7 @@ func (o *RemediationItemDetails) GetAttributeNameOk() (*string, bool) { // HasAttributeName returns a boolean if a field has been set. func (o *RemediationItemDetails) HasAttributeName() bool { - if o != nil && !isNil(o.AttributeName) { + if o != nil && !IsNil(o.AttributeName) { return true } @@ -253,7 +253,7 @@ func (o *RemediationItemDetails) SetAttributeName(v string) { // GetAttributeOperation returns the AttributeOperation field value if set, zero value otherwise. func (o *RemediationItemDetails) GetAttributeOperation() string { - if o == nil || isNil(o.AttributeOperation) { + if o == nil || IsNil(o.AttributeOperation) { var ret string return ret } @@ -263,7 +263,7 @@ func (o *RemediationItemDetails) GetAttributeOperation() string { // GetAttributeOperationOk returns a tuple with the AttributeOperation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItemDetails) GetAttributeOperationOk() (*string, bool) { - if o == nil || isNil(o.AttributeOperation) { + if o == nil || IsNil(o.AttributeOperation) { return nil, false } return o.AttributeOperation, true @@ -271,7 +271,7 @@ func (o *RemediationItemDetails) GetAttributeOperationOk() (*string, bool) { // HasAttributeOperation returns a boolean if a field has been set. func (o *RemediationItemDetails) HasAttributeOperation() bool { - if o != nil && !isNil(o.AttributeOperation) { + if o != nil && !IsNil(o.AttributeOperation) { return true } @@ -285,7 +285,7 @@ func (o *RemediationItemDetails) SetAttributeOperation(v string) { // GetAttributeValue returns the AttributeValue field value if set, zero value otherwise. func (o *RemediationItemDetails) GetAttributeValue() string { - if o == nil || isNil(o.AttributeValue) { + if o == nil || IsNil(o.AttributeValue) { var ret string return ret } @@ -295,7 +295,7 @@ func (o *RemediationItemDetails) GetAttributeValue() string { // GetAttributeValueOk returns a tuple with the AttributeValue field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItemDetails) GetAttributeValueOk() (*string, bool) { - if o == nil || isNil(o.AttributeValue) { + if o == nil || IsNil(o.AttributeValue) { return nil, false } return o.AttributeValue, true @@ -303,7 +303,7 @@ func (o *RemediationItemDetails) GetAttributeValueOk() (*string, bool) { // HasAttributeValue returns a boolean if a field has been set. func (o *RemediationItemDetails) HasAttributeValue() bool { - if o != nil && !isNil(o.AttributeValue) { + if o != nil && !IsNil(o.AttributeValue) { return true } @@ -317,7 +317,7 @@ func (o *RemediationItemDetails) SetAttributeValue(v string) { // GetNativeIdentity returns the NativeIdentity field value if set, zero value otherwise. func (o *RemediationItemDetails) GetNativeIdentity() string { - if o == nil || isNil(o.NativeIdentity) { + if o == nil || IsNil(o.NativeIdentity) { var ret string return ret } @@ -327,7 +327,7 @@ func (o *RemediationItemDetails) GetNativeIdentity() string { // GetNativeIdentityOk returns a tuple with the NativeIdentity field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItemDetails) GetNativeIdentityOk() (*string, bool) { - if o == nil || isNil(o.NativeIdentity) { + if o == nil || IsNil(o.NativeIdentity) { return nil, false } return o.NativeIdentity, true @@ -335,7 +335,7 @@ func (o *RemediationItemDetails) GetNativeIdentityOk() (*string, bool) { // HasNativeIdentity returns a boolean if a field has been set. func (o *RemediationItemDetails) HasNativeIdentity() bool { - if o != nil && !isNil(o.NativeIdentity) { + if o != nil && !IsNil(o.NativeIdentity) { return true } @@ -357,31 +357,31 @@ func (o RemediationItemDetails) MarshalJSON() ([]byte, error) { func (o RemediationItemDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.TargetId) { + if !IsNil(o.TargetId) { toSerialize["targetId"] = o.TargetId } - if !isNil(o.TargetName) { + if !IsNil(o.TargetName) { toSerialize["targetName"] = o.TargetName } - if !isNil(o.TargetDisplayName) { + if !IsNil(o.TargetDisplayName) { toSerialize["targetDisplayName"] = o.TargetDisplayName } - if !isNil(o.ApplicationName) { + if !IsNil(o.ApplicationName) { toSerialize["applicationName"] = o.ApplicationName } - if !isNil(o.AttributeName) { + if !IsNil(o.AttributeName) { toSerialize["attributeName"] = o.AttributeName } - if !isNil(o.AttributeOperation) { + if !IsNil(o.AttributeOperation) { toSerialize["attributeOperation"] = o.AttributeOperation } - if !isNil(o.AttributeValue) { + if !IsNil(o.AttributeValue) { toSerialize["attributeValue"] = o.AttributeValue } - if !isNil(o.NativeIdentity) { + if !IsNil(o.NativeIdentity) { toSerialize["nativeIdentity"] = o.NativeIdentity } @@ -392,16 +392,20 @@ func (o RemediationItemDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RemediationItemDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *RemediationItemDetails) UnmarshalJSON(data []byte) (err error) { varRemediationItemDetails := _RemediationItemDetails{} - if err = json.Unmarshal(bytes, &varRemediationItemDetails); err == nil { + err = json.Unmarshal(data, &varRemediationItemDetails) + + if err != nil { + return err + } + *o = RemediationItemDetails(varRemediationItemDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "targetId") delete(additionalProperties, "targetName") diff --git a/api_v3/model_remediation_items.go b/api_v3/model_remediation_items.go index 048397df1..f53adb3de 100644 --- a/api_v3/model_remediation_items.go +++ b/api_v3/model_remediation_items.go @@ -61,7 +61,7 @@ func NewRemediationItemsWithDefaults() *RemediationItems { // GetId returns the Id field value if set, zero value otherwise. func (o *RemediationItems) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -71,7 +71,7 @@ func (o *RemediationItems) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItems) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -79,7 +79,7 @@ func (o *RemediationItems) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *RemediationItems) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -93,7 +93,7 @@ func (o *RemediationItems) SetId(v string) { // GetTargetId returns the TargetId field value if set, zero value otherwise. func (o *RemediationItems) GetTargetId() string { - if o == nil || isNil(o.TargetId) { + if o == nil || IsNil(o.TargetId) { var ret string return ret } @@ -103,7 +103,7 @@ func (o *RemediationItems) GetTargetId() string { // GetTargetIdOk returns a tuple with the TargetId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItems) GetTargetIdOk() (*string, bool) { - if o == nil || isNil(o.TargetId) { + if o == nil || IsNil(o.TargetId) { return nil, false } return o.TargetId, true @@ -111,7 +111,7 @@ func (o *RemediationItems) GetTargetIdOk() (*string, bool) { // HasTargetId returns a boolean if a field has been set. func (o *RemediationItems) HasTargetId() bool { - if o != nil && !isNil(o.TargetId) { + if o != nil && !IsNil(o.TargetId) { return true } @@ -125,7 +125,7 @@ func (o *RemediationItems) SetTargetId(v string) { // GetTargetName returns the TargetName field value if set, zero value otherwise. func (o *RemediationItems) GetTargetName() string { - if o == nil || isNil(o.TargetName) { + if o == nil || IsNil(o.TargetName) { var ret string return ret } @@ -135,7 +135,7 @@ func (o *RemediationItems) GetTargetName() string { // GetTargetNameOk returns a tuple with the TargetName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItems) GetTargetNameOk() (*string, bool) { - if o == nil || isNil(o.TargetName) { + if o == nil || IsNil(o.TargetName) { return nil, false } return o.TargetName, true @@ -143,7 +143,7 @@ func (o *RemediationItems) GetTargetNameOk() (*string, bool) { // HasTargetName returns a boolean if a field has been set. func (o *RemediationItems) HasTargetName() bool { - if o != nil && !isNil(o.TargetName) { + if o != nil && !IsNil(o.TargetName) { return true } @@ -157,7 +157,7 @@ func (o *RemediationItems) SetTargetName(v string) { // GetTargetDisplayName returns the TargetDisplayName field value if set, zero value otherwise. func (o *RemediationItems) GetTargetDisplayName() string { - if o == nil || isNil(o.TargetDisplayName) { + if o == nil || IsNil(o.TargetDisplayName) { var ret string return ret } @@ -167,7 +167,7 @@ func (o *RemediationItems) GetTargetDisplayName() string { // GetTargetDisplayNameOk returns a tuple with the TargetDisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItems) GetTargetDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.TargetDisplayName) { + if o == nil || IsNil(o.TargetDisplayName) { return nil, false } return o.TargetDisplayName, true @@ -175,7 +175,7 @@ func (o *RemediationItems) GetTargetDisplayNameOk() (*string, bool) { // HasTargetDisplayName returns a boolean if a field has been set. func (o *RemediationItems) HasTargetDisplayName() bool { - if o != nil && !isNil(o.TargetDisplayName) { + if o != nil && !IsNil(o.TargetDisplayName) { return true } @@ -189,7 +189,7 @@ func (o *RemediationItems) SetTargetDisplayName(v string) { // GetApplicationName returns the ApplicationName field value if set, zero value otherwise. func (o *RemediationItems) GetApplicationName() string { - if o == nil || isNil(o.ApplicationName) { + if o == nil || IsNil(o.ApplicationName) { var ret string return ret } @@ -199,7 +199,7 @@ func (o *RemediationItems) GetApplicationName() string { // GetApplicationNameOk returns a tuple with the ApplicationName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItems) GetApplicationNameOk() (*string, bool) { - if o == nil || isNil(o.ApplicationName) { + if o == nil || IsNil(o.ApplicationName) { return nil, false } return o.ApplicationName, true @@ -207,7 +207,7 @@ func (o *RemediationItems) GetApplicationNameOk() (*string, bool) { // HasApplicationName returns a boolean if a field has been set. func (o *RemediationItems) HasApplicationName() bool { - if o != nil && !isNil(o.ApplicationName) { + if o != nil && !IsNil(o.ApplicationName) { return true } @@ -221,7 +221,7 @@ func (o *RemediationItems) SetApplicationName(v string) { // GetAttributeName returns the AttributeName field value if set, zero value otherwise. func (o *RemediationItems) GetAttributeName() string { - if o == nil || isNil(o.AttributeName) { + if o == nil || IsNil(o.AttributeName) { var ret string return ret } @@ -231,7 +231,7 @@ func (o *RemediationItems) GetAttributeName() string { // GetAttributeNameOk returns a tuple with the AttributeName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItems) GetAttributeNameOk() (*string, bool) { - if o == nil || isNil(o.AttributeName) { + if o == nil || IsNil(o.AttributeName) { return nil, false } return o.AttributeName, true @@ -239,7 +239,7 @@ func (o *RemediationItems) GetAttributeNameOk() (*string, bool) { // HasAttributeName returns a boolean if a field has been set. func (o *RemediationItems) HasAttributeName() bool { - if o != nil && !isNil(o.AttributeName) { + if o != nil && !IsNil(o.AttributeName) { return true } @@ -253,7 +253,7 @@ func (o *RemediationItems) SetAttributeName(v string) { // GetAttributeOperation returns the AttributeOperation field value if set, zero value otherwise. func (o *RemediationItems) GetAttributeOperation() string { - if o == nil || isNil(o.AttributeOperation) { + if o == nil || IsNil(o.AttributeOperation) { var ret string return ret } @@ -263,7 +263,7 @@ func (o *RemediationItems) GetAttributeOperation() string { // GetAttributeOperationOk returns a tuple with the AttributeOperation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItems) GetAttributeOperationOk() (*string, bool) { - if o == nil || isNil(o.AttributeOperation) { + if o == nil || IsNil(o.AttributeOperation) { return nil, false } return o.AttributeOperation, true @@ -271,7 +271,7 @@ func (o *RemediationItems) GetAttributeOperationOk() (*string, bool) { // HasAttributeOperation returns a boolean if a field has been set. func (o *RemediationItems) HasAttributeOperation() bool { - if o != nil && !isNil(o.AttributeOperation) { + if o != nil && !IsNil(o.AttributeOperation) { return true } @@ -285,7 +285,7 @@ func (o *RemediationItems) SetAttributeOperation(v string) { // GetAttributeValue returns the AttributeValue field value if set, zero value otherwise. func (o *RemediationItems) GetAttributeValue() string { - if o == nil || isNil(o.AttributeValue) { + if o == nil || IsNil(o.AttributeValue) { var ret string return ret } @@ -295,7 +295,7 @@ func (o *RemediationItems) GetAttributeValue() string { // GetAttributeValueOk returns a tuple with the AttributeValue field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItems) GetAttributeValueOk() (*string, bool) { - if o == nil || isNil(o.AttributeValue) { + if o == nil || IsNil(o.AttributeValue) { return nil, false } return o.AttributeValue, true @@ -303,7 +303,7 @@ func (o *RemediationItems) GetAttributeValueOk() (*string, bool) { // HasAttributeValue returns a boolean if a field has been set. func (o *RemediationItems) HasAttributeValue() bool { - if o != nil && !isNil(o.AttributeValue) { + if o != nil && !IsNil(o.AttributeValue) { return true } @@ -317,7 +317,7 @@ func (o *RemediationItems) SetAttributeValue(v string) { // GetNativeIdentity returns the NativeIdentity field value if set, zero value otherwise. func (o *RemediationItems) GetNativeIdentity() string { - if o == nil || isNil(o.NativeIdentity) { + if o == nil || IsNil(o.NativeIdentity) { var ret string return ret } @@ -327,7 +327,7 @@ func (o *RemediationItems) GetNativeIdentity() string { // GetNativeIdentityOk returns a tuple with the NativeIdentity field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RemediationItems) GetNativeIdentityOk() (*string, bool) { - if o == nil || isNil(o.NativeIdentity) { + if o == nil || IsNil(o.NativeIdentity) { return nil, false } return o.NativeIdentity, true @@ -335,7 +335,7 @@ func (o *RemediationItems) GetNativeIdentityOk() (*string, bool) { // HasNativeIdentity returns a boolean if a field has been set. func (o *RemediationItems) HasNativeIdentity() bool { - if o != nil && !isNil(o.NativeIdentity) { + if o != nil && !IsNil(o.NativeIdentity) { return true } @@ -357,31 +357,31 @@ func (o RemediationItems) MarshalJSON() ([]byte, error) { func (o RemediationItems) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.TargetId) { + if !IsNil(o.TargetId) { toSerialize["targetId"] = o.TargetId } - if !isNil(o.TargetName) { + if !IsNil(o.TargetName) { toSerialize["targetName"] = o.TargetName } - if !isNil(o.TargetDisplayName) { + if !IsNil(o.TargetDisplayName) { toSerialize["targetDisplayName"] = o.TargetDisplayName } - if !isNil(o.ApplicationName) { + if !IsNil(o.ApplicationName) { toSerialize["applicationName"] = o.ApplicationName } - if !isNil(o.AttributeName) { + if !IsNil(o.AttributeName) { toSerialize["attributeName"] = o.AttributeName } - if !isNil(o.AttributeOperation) { + if !IsNil(o.AttributeOperation) { toSerialize["attributeOperation"] = o.AttributeOperation } - if !isNil(o.AttributeValue) { + if !IsNil(o.AttributeValue) { toSerialize["attributeValue"] = o.AttributeValue } - if !isNil(o.NativeIdentity) { + if !IsNil(o.NativeIdentity) { toSerialize["nativeIdentity"] = o.NativeIdentity } @@ -392,16 +392,20 @@ func (o RemediationItems) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RemediationItems) UnmarshalJSON(bytes []byte) (err error) { +func (o *RemediationItems) UnmarshalJSON(data []byte) (err error) { varRemediationItems := _RemediationItems{} - if err = json.Unmarshal(bytes, &varRemediationItems); err == nil { + err = json.Unmarshal(data, &varRemediationItems) + + if err != nil { + return err + } + *o = RemediationItems(varRemediationItems) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "targetId") delete(additionalProperties, "targetName") diff --git a/api_v3/model_report_details.go b/api_v3/model_report_details.go index 93dba3f55..1152a083c 100644 --- a/api_v3/model_report_details.go +++ b/api_v3/model_report_details.go @@ -46,7 +46,7 @@ func NewReportDetailsWithDefaults() *ReportDetails { // GetReportType returns the ReportType field value if set, zero value otherwise. func (o *ReportDetails) GetReportType() string { - if o == nil || isNil(o.ReportType) { + if o == nil || IsNil(o.ReportType) { var ret string return ret } @@ -56,7 +56,7 @@ func (o *ReportDetails) GetReportType() string { // GetReportTypeOk returns a tuple with the ReportType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReportDetails) GetReportTypeOk() (*string, bool) { - if o == nil || isNil(o.ReportType) { + if o == nil || IsNil(o.ReportType) { return nil, false } return o.ReportType, true @@ -64,7 +64,7 @@ func (o *ReportDetails) GetReportTypeOk() (*string, bool) { // HasReportType returns a boolean if a field has been set. func (o *ReportDetails) HasReportType() bool { - if o != nil && !isNil(o.ReportType) { + if o != nil && !IsNil(o.ReportType) { return true } @@ -78,7 +78,7 @@ func (o *ReportDetails) SetReportType(v string) { // GetArguments returns the Arguments field value if set, zero value otherwise. func (o *ReportDetails) GetArguments() ReportDetailsArguments { - if o == nil || isNil(o.Arguments) { + if o == nil || IsNil(o.Arguments) { var ret ReportDetailsArguments return ret } @@ -88,7 +88,7 @@ func (o *ReportDetails) GetArguments() ReportDetailsArguments { // GetArgumentsOk returns a tuple with the Arguments field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReportDetails) GetArgumentsOk() (*ReportDetailsArguments, bool) { - if o == nil || isNil(o.Arguments) { + if o == nil || IsNil(o.Arguments) { return nil, false } return o.Arguments, true @@ -96,7 +96,7 @@ func (o *ReportDetails) GetArgumentsOk() (*ReportDetailsArguments, bool) { // HasArguments returns a boolean if a field has been set. func (o *ReportDetails) HasArguments() bool { - if o != nil && !isNil(o.Arguments) { + if o != nil && !IsNil(o.Arguments) { return true } @@ -118,10 +118,10 @@ func (o ReportDetails) MarshalJSON() ([]byte, error) { func (o ReportDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.ReportType) { + if !IsNil(o.ReportType) { toSerialize["reportType"] = o.ReportType } - if !isNil(o.Arguments) { + if !IsNil(o.Arguments) { toSerialize["arguments"] = o.Arguments } @@ -132,16 +132,20 @@ func (o ReportDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ReportDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *ReportDetails) UnmarshalJSON(data []byte) (err error) { varReportDetails := _ReportDetails{} - if err = json.Unmarshal(bytes, &varReportDetails); err == nil { + err = json.Unmarshal(data, &varReportDetails) + + if err != nil { + return err + } + *o = ReportDetails(varReportDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "reportType") delete(additionalProperties, "arguments") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_report_details_arguments.go b/api_v3/model_report_details_arguments.go index 68e8a8a40..04cbf08ab 100644 --- a/api_v3/model_report_details_arguments.go +++ b/api_v3/model_report_details_arguments.go @@ -12,6 +12,7 @@ package api_v3 import ( "encoding/json" + "gopkg.in/validator.v2" "fmt" ) @@ -79,7 +80,11 @@ func (dst *ReportDetailsArguments) UnmarshalJSON(data []byte) error { if string(jsonAccountsExportReportArguments) == "{}" { // empty struct dst.AccountsExportReportArguments = nil } else { - match++ + if err = validator.Validate(dst.AccountsExportReportArguments); err != nil { + dst.AccountsExportReportArguments = nil + } else { + match++ + } } } else { dst.AccountsExportReportArguments = nil @@ -92,7 +97,11 @@ func (dst *ReportDetailsArguments) UnmarshalJSON(data []byte) error { if string(jsonIdentitiesDetailsReportArguments) == "{}" { // empty struct dst.IdentitiesDetailsReportArguments = nil } else { - match++ + if err = validator.Validate(dst.IdentitiesDetailsReportArguments); err != nil { + dst.IdentitiesDetailsReportArguments = nil + } else { + match++ + } } } else { dst.IdentitiesDetailsReportArguments = nil @@ -105,7 +114,11 @@ func (dst *ReportDetailsArguments) UnmarshalJSON(data []byte) error { if string(jsonIdentitiesReportArguments) == "{}" { // empty struct dst.IdentitiesReportArguments = nil } else { - match++ + if err = validator.Validate(dst.IdentitiesReportArguments); err != nil { + dst.IdentitiesReportArguments = nil + } else { + match++ + } } } else { dst.IdentitiesReportArguments = nil @@ -118,7 +131,11 @@ func (dst *ReportDetailsArguments) UnmarshalJSON(data []byte) error { if string(jsonIdentityProfileIdentityErrorReportArguments) == "{}" { // empty struct dst.IdentityProfileIdentityErrorReportArguments = nil } else { - match++ + if err = validator.Validate(dst.IdentityProfileIdentityErrorReportArguments); err != nil { + dst.IdentityProfileIdentityErrorReportArguments = nil + } else { + match++ + } } } else { dst.IdentityProfileIdentityErrorReportArguments = nil @@ -131,7 +148,11 @@ func (dst *ReportDetailsArguments) UnmarshalJSON(data []byte) error { if string(jsonOrphanUncorrelatedReportArguments) == "{}" { // empty struct dst.OrphanUncorrelatedReportArguments = nil } else { - match++ + if err = validator.Validate(dst.OrphanUncorrelatedReportArguments); err != nil { + dst.OrphanUncorrelatedReportArguments = nil + } else { + match++ + } } } else { dst.OrphanUncorrelatedReportArguments = nil @@ -144,7 +165,11 @@ func (dst *ReportDetailsArguments) UnmarshalJSON(data []byte) error { if string(jsonSearchExportReportArguments) == "{}" { // empty struct dst.SearchExportReportArguments = nil } else { - match++ + if err = validator.Validate(dst.SearchExportReportArguments); err != nil { + dst.SearchExportReportArguments = nil + } else { + match++ + } } } else { dst.SearchExportReportArguments = nil diff --git a/api_v3/model_report_result_reference.go b/api_v3/model_report_result_reference.go index 1d59b0de7..4132c1555 100644 --- a/api_v3/model_report_result_reference.go +++ b/api_v3/model_report_result_reference.go @@ -51,7 +51,7 @@ func NewReportResultReferenceWithDefaults() *ReportResultReference { // GetType returns the Type field value if set, zero value otherwise. func (o *ReportResultReference) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -61,7 +61,7 @@ func (o *ReportResultReference) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReportResultReference) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -69,7 +69,7 @@ func (o *ReportResultReference) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *ReportResultReference) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -83,7 +83,7 @@ func (o *ReportResultReference) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *ReportResultReference) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -93,7 +93,7 @@ func (o *ReportResultReference) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReportResultReference) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -101,7 +101,7 @@ func (o *ReportResultReference) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ReportResultReference) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -115,7 +115,7 @@ func (o *ReportResultReference) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *ReportResultReference) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -125,7 +125,7 @@ func (o *ReportResultReference) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReportResultReference) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -133,7 +133,7 @@ func (o *ReportResultReference) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ReportResultReference) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -147,7 +147,7 @@ func (o *ReportResultReference) SetName(v string) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *ReportResultReference) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -157,7 +157,7 @@ func (o *ReportResultReference) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReportResultReference) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -165,7 +165,7 @@ func (o *ReportResultReference) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *ReportResultReference) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -187,16 +187,16 @@ func (o ReportResultReference) MarshalJSON() ([]byte, error) { func (o ReportResultReference) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -207,16 +207,20 @@ func (o ReportResultReference) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ReportResultReference) UnmarshalJSON(bytes []byte) (err error) { +func (o *ReportResultReference) UnmarshalJSON(data []byte) (err error) { varReportResultReference := _ReportResultReference{} - if err = json.Unmarshal(bytes, &varReportResultReference); err == nil { + err = json.Unmarshal(data, &varReportResultReference) + + if err != nil { + return err + } + *o = ReportResultReference(varReportResultReference) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_report_results.go b/api_v3/model_report_results.go index 6d0184d26..cb863ba59 100644 --- a/api_v3/model_report_results.go +++ b/api_v3/model_report_results.go @@ -60,7 +60,7 @@ func NewReportResultsWithDefaults() *ReportResults { // GetReportType returns the ReportType field value if set, zero value otherwise. func (o *ReportResults) GetReportType() string { - if o == nil || isNil(o.ReportType) { + if o == nil || IsNil(o.ReportType) { var ret string return ret } @@ -70,7 +70,7 @@ func (o *ReportResults) GetReportType() string { // GetReportTypeOk returns a tuple with the ReportType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReportResults) GetReportTypeOk() (*string, bool) { - if o == nil || isNil(o.ReportType) { + if o == nil || IsNil(o.ReportType) { return nil, false } return o.ReportType, true @@ -78,7 +78,7 @@ func (o *ReportResults) GetReportTypeOk() (*string, bool) { // HasReportType returns a boolean if a field has been set. func (o *ReportResults) HasReportType() bool { - if o != nil && !isNil(o.ReportType) { + if o != nil && !IsNil(o.ReportType) { return true } @@ -92,7 +92,7 @@ func (o *ReportResults) SetReportType(v string) { // GetTaskDefName returns the TaskDefName field value if set, zero value otherwise. func (o *ReportResults) GetTaskDefName() string { - if o == nil || isNil(o.TaskDefName) { + if o == nil || IsNil(o.TaskDefName) { var ret string return ret } @@ -102,7 +102,7 @@ func (o *ReportResults) GetTaskDefName() string { // GetTaskDefNameOk returns a tuple with the TaskDefName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReportResults) GetTaskDefNameOk() (*string, bool) { - if o == nil || isNil(o.TaskDefName) { + if o == nil || IsNil(o.TaskDefName) { return nil, false } return o.TaskDefName, true @@ -110,7 +110,7 @@ func (o *ReportResults) GetTaskDefNameOk() (*string, bool) { // HasTaskDefName returns a boolean if a field has been set. func (o *ReportResults) HasTaskDefName() bool { - if o != nil && !isNil(o.TaskDefName) { + if o != nil && !IsNil(o.TaskDefName) { return true } @@ -124,7 +124,7 @@ func (o *ReportResults) SetTaskDefName(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *ReportResults) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -134,7 +134,7 @@ func (o *ReportResults) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReportResults) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -142,7 +142,7 @@ func (o *ReportResults) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ReportResults) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -156,7 +156,7 @@ func (o *ReportResults) SetId(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *ReportResults) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -166,7 +166,7 @@ func (o *ReportResults) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReportResults) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -174,7 +174,7 @@ func (o *ReportResults) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *ReportResults) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -188,7 +188,7 @@ func (o *ReportResults) SetCreated(v time.Time) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *ReportResults) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -198,7 +198,7 @@ func (o *ReportResults) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReportResults) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -206,7 +206,7 @@ func (o *ReportResults) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *ReportResults) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -220,7 +220,7 @@ func (o *ReportResults) SetStatus(v string) { // GetDuration returns the Duration field value if set, zero value otherwise. func (o *ReportResults) GetDuration() int64 { - if o == nil || isNil(o.Duration) { + if o == nil || IsNil(o.Duration) { var ret int64 return ret } @@ -230,7 +230,7 @@ func (o *ReportResults) GetDuration() int64 { // GetDurationOk returns a tuple with the Duration field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReportResults) GetDurationOk() (*int64, bool) { - if o == nil || isNil(o.Duration) { + if o == nil || IsNil(o.Duration) { return nil, false } return o.Duration, true @@ -238,7 +238,7 @@ func (o *ReportResults) GetDurationOk() (*int64, bool) { // HasDuration returns a boolean if a field has been set. func (o *ReportResults) HasDuration() bool { - if o != nil && !isNil(o.Duration) { + if o != nil && !IsNil(o.Duration) { return true } @@ -252,7 +252,7 @@ func (o *ReportResults) SetDuration(v int64) { // GetRows returns the Rows field value if set, zero value otherwise. func (o *ReportResults) GetRows() int64 { - if o == nil || isNil(o.Rows) { + if o == nil || IsNil(o.Rows) { var ret int64 return ret } @@ -262,7 +262,7 @@ func (o *ReportResults) GetRows() int64 { // GetRowsOk returns a tuple with the Rows field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReportResults) GetRowsOk() (*int64, bool) { - if o == nil || isNil(o.Rows) { + if o == nil || IsNil(o.Rows) { return nil, false } return o.Rows, true @@ -270,7 +270,7 @@ func (o *ReportResults) GetRowsOk() (*int64, bool) { // HasRows returns a boolean if a field has been set. func (o *ReportResults) HasRows() bool { - if o != nil && !isNil(o.Rows) { + if o != nil && !IsNil(o.Rows) { return true } @@ -284,7 +284,7 @@ func (o *ReportResults) SetRows(v int64) { // GetAvailableFormats returns the AvailableFormats field value if set, zero value otherwise. func (o *ReportResults) GetAvailableFormats() []string { - if o == nil || isNil(o.AvailableFormats) { + if o == nil || IsNil(o.AvailableFormats) { var ret []string return ret } @@ -294,7 +294,7 @@ func (o *ReportResults) GetAvailableFormats() []string { // GetAvailableFormatsOk returns a tuple with the AvailableFormats field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReportResults) GetAvailableFormatsOk() ([]string, bool) { - if o == nil || isNil(o.AvailableFormats) { + if o == nil || IsNil(o.AvailableFormats) { return nil, false } return o.AvailableFormats, true @@ -302,7 +302,7 @@ func (o *ReportResults) GetAvailableFormatsOk() ([]string, bool) { // HasAvailableFormats returns a boolean if a field has been set. func (o *ReportResults) HasAvailableFormats() bool { - if o != nil && !isNil(o.AvailableFormats) { + if o != nil && !IsNil(o.AvailableFormats) { return true } @@ -324,28 +324,28 @@ func (o ReportResults) MarshalJSON() ([]byte, error) { func (o ReportResults) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.ReportType) { + if !IsNil(o.ReportType) { toSerialize["reportType"] = o.ReportType } - if !isNil(o.TaskDefName) { + if !IsNil(o.TaskDefName) { toSerialize["taskDefName"] = o.TaskDefName } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } - if !isNil(o.Duration) { + if !IsNil(o.Duration) { toSerialize["duration"] = o.Duration } - if !isNil(o.Rows) { + if !IsNil(o.Rows) { toSerialize["rows"] = o.Rows } - if !isNil(o.AvailableFormats) { + if !IsNil(o.AvailableFormats) { toSerialize["availableFormats"] = o.AvailableFormats } @@ -356,16 +356,20 @@ func (o ReportResults) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ReportResults) UnmarshalJSON(bytes []byte) (err error) { +func (o *ReportResults) UnmarshalJSON(data []byte) (err error) { varReportResults := _ReportResults{} - if err = json.Unmarshal(bytes, &varReportResults); err == nil { + err = json.Unmarshal(data, &varReportResults) + + if err != nil { + return err + } + *o = ReportResults(varReportResults) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "reportType") delete(additionalProperties, "taskDefName") delete(additionalProperties, "id") diff --git a/api_v3/model_request_on_behalf_of_config.go b/api_v3/model_request_on_behalf_of_config.go index bd863b272..98909b6cf 100644 --- a/api_v3/model_request_on_behalf_of_config.go +++ b/api_v3/model_request_on_behalf_of_config.go @@ -55,7 +55,7 @@ func NewRequestOnBehalfOfConfigWithDefaults() *RequestOnBehalfOfConfig { // GetAllowRequestOnBehalfOfAnyoneByAnyone returns the AllowRequestOnBehalfOfAnyoneByAnyone field value if set, zero value otherwise. func (o *RequestOnBehalfOfConfig) GetAllowRequestOnBehalfOfAnyoneByAnyone() bool { - if o == nil || isNil(o.AllowRequestOnBehalfOfAnyoneByAnyone) { + if o == nil || IsNil(o.AllowRequestOnBehalfOfAnyoneByAnyone) { var ret bool return ret } @@ -65,7 +65,7 @@ func (o *RequestOnBehalfOfConfig) GetAllowRequestOnBehalfOfAnyoneByAnyone() bool // GetAllowRequestOnBehalfOfAnyoneByAnyoneOk returns a tuple with the AllowRequestOnBehalfOfAnyoneByAnyone field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestOnBehalfOfConfig) GetAllowRequestOnBehalfOfAnyoneByAnyoneOk() (*bool, bool) { - if o == nil || isNil(o.AllowRequestOnBehalfOfAnyoneByAnyone) { + if o == nil || IsNil(o.AllowRequestOnBehalfOfAnyoneByAnyone) { return nil, false } return o.AllowRequestOnBehalfOfAnyoneByAnyone, true @@ -73,7 +73,7 @@ func (o *RequestOnBehalfOfConfig) GetAllowRequestOnBehalfOfAnyoneByAnyoneOk() (* // HasAllowRequestOnBehalfOfAnyoneByAnyone returns a boolean if a field has been set. func (o *RequestOnBehalfOfConfig) HasAllowRequestOnBehalfOfAnyoneByAnyone() bool { - if o != nil && !isNil(o.AllowRequestOnBehalfOfAnyoneByAnyone) { + if o != nil && !IsNil(o.AllowRequestOnBehalfOfAnyoneByAnyone) { return true } @@ -87,7 +87,7 @@ func (o *RequestOnBehalfOfConfig) SetAllowRequestOnBehalfOfAnyoneByAnyone(v bool // GetAllowRequestOnBehalfOfEmployeeByManager returns the AllowRequestOnBehalfOfEmployeeByManager field value if set, zero value otherwise. func (o *RequestOnBehalfOfConfig) GetAllowRequestOnBehalfOfEmployeeByManager() bool { - if o == nil || isNil(o.AllowRequestOnBehalfOfEmployeeByManager) { + if o == nil || IsNil(o.AllowRequestOnBehalfOfEmployeeByManager) { var ret bool return ret } @@ -97,7 +97,7 @@ func (o *RequestOnBehalfOfConfig) GetAllowRequestOnBehalfOfEmployeeByManager() b // GetAllowRequestOnBehalfOfEmployeeByManagerOk returns a tuple with the AllowRequestOnBehalfOfEmployeeByManager field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestOnBehalfOfConfig) GetAllowRequestOnBehalfOfEmployeeByManagerOk() (*bool, bool) { - if o == nil || isNil(o.AllowRequestOnBehalfOfEmployeeByManager) { + if o == nil || IsNil(o.AllowRequestOnBehalfOfEmployeeByManager) { return nil, false } return o.AllowRequestOnBehalfOfEmployeeByManager, true @@ -105,7 +105,7 @@ func (o *RequestOnBehalfOfConfig) GetAllowRequestOnBehalfOfEmployeeByManagerOk() // HasAllowRequestOnBehalfOfEmployeeByManager returns a boolean if a field has been set. func (o *RequestOnBehalfOfConfig) HasAllowRequestOnBehalfOfEmployeeByManager() bool { - if o != nil && !isNil(o.AllowRequestOnBehalfOfEmployeeByManager) { + if o != nil && !IsNil(o.AllowRequestOnBehalfOfEmployeeByManager) { return true } @@ -127,10 +127,10 @@ func (o RequestOnBehalfOfConfig) MarshalJSON() ([]byte, error) { func (o RequestOnBehalfOfConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.AllowRequestOnBehalfOfAnyoneByAnyone) { + if !IsNil(o.AllowRequestOnBehalfOfAnyoneByAnyone) { toSerialize["allowRequestOnBehalfOfAnyoneByAnyone"] = o.AllowRequestOnBehalfOfAnyoneByAnyone } - if !isNil(o.AllowRequestOnBehalfOfEmployeeByManager) { + if !IsNil(o.AllowRequestOnBehalfOfEmployeeByManager) { toSerialize["allowRequestOnBehalfOfEmployeeByManager"] = o.AllowRequestOnBehalfOfEmployeeByManager } @@ -141,16 +141,20 @@ func (o RequestOnBehalfOfConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RequestOnBehalfOfConfig) UnmarshalJSON(bytes []byte) (err error) { +func (o *RequestOnBehalfOfConfig) UnmarshalJSON(data []byte) (err error) { varRequestOnBehalfOfConfig := _RequestOnBehalfOfConfig{} - if err = json.Unmarshal(bytes, &varRequestOnBehalfOfConfig); err == nil { + err = json.Unmarshal(data, &varRequestOnBehalfOfConfig) + + if err != nil { + return err + } + *o = RequestOnBehalfOfConfig(varRequestOnBehalfOfConfig) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "allowRequestOnBehalfOfAnyoneByAnyone") delete(additionalProperties, "allowRequestOnBehalfOfEmployeeByManager") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_requestability.go b/api_v3/model_requestability.go index 8b0c3b070..acb2e30c5 100644 --- a/api_v3/model_requestability.go +++ b/api_v3/model_requestability.go @@ -57,7 +57,7 @@ func NewRequestabilityWithDefaults() *Requestability { // GetCommentsRequired returns the CommentsRequired field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Requestability) GetCommentsRequired() bool { - if o == nil || isNil(o.CommentsRequired.Get()) { + if o == nil || IsNil(o.CommentsRequired.Get()) { var ret bool return ret } @@ -99,7 +99,7 @@ func (o *Requestability) UnsetCommentsRequired() { // GetDenialCommentsRequired returns the DenialCommentsRequired field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Requestability) GetDenialCommentsRequired() bool { - if o == nil || isNil(o.DenialCommentsRequired.Get()) { + if o == nil || IsNil(o.DenialCommentsRequired.Get()) { var ret bool return ret } @@ -152,7 +152,7 @@ func (o *Requestability) GetApprovalSchemes() []AccessProfileApprovalScheme { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Requestability) GetApprovalSchemesOk() ([]AccessProfileApprovalScheme, bool) { - if o == nil || isNil(o.ApprovalSchemes) { + if o == nil || IsNil(o.ApprovalSchemes) { return nil, false } return o.ApprovalSchemes, true @@ -160,7 +160,7 @@ func (o *Requestability) GetApprovalSchemesOk() ([]AccessProfileApprovalScheme, // HasApprovalSchemes returns a boolean if a field has been set. func (o *Requestability) HasApprovalSchemes() bool { - if o != nil && isNil(o.ApprovalSchemes) { + if o != nil && !IsNil(o.ApprovalSchemes) { return true } @@ -199,16 +199,20 @@ func (o Requestability) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Requestability) UnmarshalJSON(bytes []byte) (err error) { +func (o *Requestability) UnmarshalJSON(data []byte) (err error) { varRequestability := _Requestability{} - if err = json.Unmarshal(bytes, &varRequestability); err == nil { + err = json.Unmarshal(data, &varRequestability) + + if err != nil { + return err + } + *o = Requestability(varRequestability) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "commentsRequired") delete(additionalProperties, "denialCommentsRequired") delete(additionalProperties, "approvalSchemes") diff --git a/api_v3/model_requestability_for_role.go b/api_v3/model_requestability_for_role.go index 93b0ad83c..3285fa9c9 100644 --- a/api_v3/model_requestability_for_role.go +++ b/api_v3/model_requestability_for_role.go @@ -57,7 +57,7 @@ func NewRequestabilityForRoleWithDefaults() *RequestabilityForRole { // GetCommentsRequired returns the CommentsRequired field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestabilityForRole) GetCommentsRequired() bool { - if o == nil || isNil(o.CommentsRequired.Get()) { + if o == nil || IsNil(o.CommentsRequired.Get()) { var ret bool return ret } @@ -99,7 +99,7 @@ func (o *RequestabilityForRole) UnsetCommentsRequired() { // GetDenialCommentsRequired returns the DenialCommentsRequired field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestabilityForRole) GetDenialCommentsRequired() bool { - if o == nil || isNil(o.DenialCommentsRequired.Get()) { + if o == nil || IsNil(o.DenialCommentsRequired.Get()) { var ret bool return ret } @@ -141,7 +141,7 @@ func (o *RequestabilityForRole) UnsetDenialCommentsRequired() { // GetApprovalSchemes returns the ApprovalSchemes field value if set, zero value otherwise. func (o *RequestabilityForRole) GetApprovalSchemes() []ApprovalSchemeForRole { - if o == nil || isNil(o.ApprovalSchemes) { + if o == nil || IsNil(o.ApprovalSchemes) { var ret []ApprovalSchemeForRole return ret } @@ -151,7 +151,7 @@ func (o *RequestabilityForRole) GetApprovalSchemes() []ApprovalSchemeForRole { // GetApprovalSchemesOk returns a tuple with the ApprovalSchemes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestabilityForRole) GetApprovalSchemesOk() ([]ApprovalSchemeForRole, bool) { - if o == nil || isNil(o.ApprovalSchemes) { + if o == nil || IsNil(o.ApprovalSchemes) { return nil, false } return o.ApprovalSchemes, true @@ -159,7 +159,7 @@ func (o *RequestabilityForRole) GetApprovalSchemesOk() ([]ApprovalSchemeForRole, // HasApprovalSchemes returns a boolean if a field has been set. func (o *RequestabilityForRole) HasApprovalSchemes() bool { - if o != nil && !isNil(o.ApprovalSchemes) { + if o != nil && !IsNil(o.ApprovalSchemes) { return true } @@ -187,7 +187,7 @@ func (o RequestabilityForRole) ToMap() (map[string]interface{}, error) { if o.DenialCommentsRequired.IsSet() { toSerialize["denialCommentsRequired"] = o.DenialCommentsRequired.Get() } - if !isNil(o.ApprovalSchemes) { + if !IsNil(o.ApprovalSchemes) { toSerialize["approvalSchemes"] = o.ApprovalSchemes } @@ -198,16 +198,20 @@ func (o RequestabilityForRole) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RequestabilityForRole) UnmarshalJSON(bytes []byte) (err error) { +func (o *RequestabilityForRole) UnmarshalJSON(data []byte) (err error) { varRequestabilityForRole := _RequestabilityForRole{} - if err = json.Unmarshal(bytes, &varRequestabilityForRole); err == nil { + err = json.Unmarshal(data, &varRequestabilityForRole) + + if err != nil { + return err + } + *o = RequestabilityForRole(varRequestabilityForRole) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "commentsRequired") delete(additionalProperties, "denialCommentsRequired") delete(additionalProperties, "approvalSchemes") diff --git a/api_v3/model_requestable_object.go b/api_v3/model_requestable_object.go index 7ee4e5606..16daca122 100644 --- a/api_v3/model_requestable_object.go +++ b/api_v3/model_requestable_object.go @@ -61,7 +61,7 @@ func NewRequestableObjectWithDefaults() *RequestableObject { // GetId returns the Id field value if set, zero value otherwise. func (o *RequestableObject) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -71,7 +71,7 @@ func (o *RequestableObject) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestableObject) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -79,7 +79,7 @@ func (o *RequestableObject) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *RequestableObject) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -93,7 +93,7 @@ func (o *RequestableObject) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *RequestableObject) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -103,7 +103,7 @@ func (o *RequestableObject) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestableObject) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -111,7 +111,7 @@ func (o *RequestableObject) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *RequestableObject) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -125,7 +125,7 @@ func (o *RequestableObject) SetName(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *RequestableObject) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -135,7 +135,7 @@ func (o *RequestableObject) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestableObject) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -143,7 +143,7 @@ func (o *RequestableObject) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *RequestableObject) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -157,7 +157,7 @@ func (o *RequestableObject) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestableObject) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -199,7 +199,7 @@ func (o *RequestableObject) UnsetModified() { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestableObject) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -241,7 +241,7 @@ func (o *RequestableObject) UnsetDescription() { // GetType returns the Type field value if set, zero value otherwise. func (o *RequestableObject) GetType() RequestableObjectType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret RequestableObjectType return ret } @@ -251,7 +251,7 @@ func (o *RequestableObject) GetType() RequestableObjectType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestableObject) GetTypeOk() (*RequestableObjectType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -259,7 +259,7 @@ func (o *RequestableObject) GetTypeOk() (*RequestableObjectType, bool) { // HasType returns a boolean if a field has been set. func (o *RequestableObject) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -273,7 +273,7 @@ func (o *RequestableObject) SetType(v RequestableObjectType) { // GetRequestStatus returns the RequestStatus field value if set, zero value otherwise. func (o *RequestableObject) GetRequestStatus() RequestableObjectRequestStatus { - if o == nil || isNil(o.RequestStatus) { + if o == nil || IsNil(o.RequestStatus) { var ret RequestableObjectRequestStatus return ret } @@ -283,7 +283,7 @@ func (o *RequestableObject) GetRequestStatus() RequestableObjectRequestStatus { // GetRequestStatusOk returns a tuple with the RequestStatus field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestableObject) GetRequestStatusOk() (*RequestableObjectRequestStatus, bool) { - if o == nil || isNil(o.RequestStatus) { + if o == nil || IsNil(o.RequestStatus) { return nil, false } return o.RequestStatus, true @@ -291,7 +291,7 @@ func (o *RequestableObject) GetRequestStatusOk() (*RequestableObjectRequestStatu // HasRequestStatus returns a boolean if a field has been set. func (o *RequestableObject) HasRequestStatus() bool { - if o != nil && !isNil(o.RequestStatus) { + if o != nil && !IsNil(o.RequestStatus) { return true } @@ -305,7 +305,7 @@ func (o *RequestableObject) SetRequestStatus(v RequestableObjectRequestStatus) { // GetIdentityRequestId returns the IdentityRequestId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestableObject) GetIdentityRequestId() string { - if o == nil || isNil(o.IdentityRequestId.Get()) { + if o == nil || IsNil(o.IdentityRequestId.Get()) { var ret string return ret } @@ -347,7 +347,7 @@ func (o *RequestableObject) UnsetIdentityRequestId() { // GetOwnerRef returns the OwnerRef field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestableObject) GetOwnerRef() IdentityReferenceWithNameAndEmail { - if o == nil || isNil(o.OwnerRef.Get()) { + if o == nil || IsNil(o.OwnerRef.Get()) { var ret IdentityReferenceWithNameAndEmail return ret } @@ -389,7 +389,7 @@ func (o *RequestableObject) UnsetOwnerRef() { // GetRequestCommentsRequired returns the RequestCommentsRequired field value if set, zero value otherwise. func (o *RequestableObject) GetRequestCommentsRequired() bool { - if o == nil || isNil(o.RequestCommentsRequired) { + if o == nil || IsNil(o.RequestCommentsRequired) { var ret bool return ret } @@ -399,7 +399,7 @@ func (o *RequestableObject) GetRequestCommentsRequired() bool { // GetRequestCommentsRequiredOk returns a tuple with the RequestCommentsRequired field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestableObject) GetRequestCommentsRequiredOk() (*bool, bool) { - if o == nil || isNil(o.RequestCommentsRequired) { + if o == nil || IsNil(o.RequestCommentsRequired) { return nil, false } return o.RequestCommentsRequired, true @@ -407,7 +407,7 @@ func (o *RequestableObject) GetRequestCommentsRequiredOk() (*bool, bool) { // HasRequestCommentsRequired returns a boolean if a field has been set. func (o *RequestableObject) HasRequestCommentsRequired() bool { - if o != nil && !isNil(o.RequestCommentsRequired) { + if o != nil && !IsNil(o.RequestCommentsRequired) { return true } @@ -429,13 +429,13 @@ func (o RequestableObject) MarshalJSON() ([]byte, error) { func (o RequestableObject) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } if o.Modified.IsSet() { @@ -444,10 +444,10 @@ func (o RequestableObject) ToMap() (map[string]interface{}, error) { if o.Description.IsSet() { toSerialize["description"] = o.Description.Get() } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.RequestStatus) { + if !IsNil(o.RequestStatus) { toSerialize["requestStatus"] = o.RequestStatus } if o.IdentityRequestId.IsSet() { @@ -456,7 +456,7 @@ func (o RequestableObject) ToMap() (map[string]interface{}, error) { if o.OwnerRef.IsSet() { toSerialize["ownerRef"] = o.OwnerRef.Get() } - if !isNil(o.RequestCommentsRequired) { + if !IsNil(o.RequestCommentsRequired) { toSerialize["requestCommentsRequired"] = o.RequestCommentsRequired } @@ -467,16 +467,20 @@ func (o RequestableObject) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RequestableObject) UnmarshalJSON(bytes []byte) (err error) { +func (o *RequestableObject) UnmarshalJSON(data []byte) (err error) { varRequestableObject := _RequestableObject{} - if err = json.Unmarshal(bytes, &varRequestableObject); err == nil { + err = json.Unmarshal(data, &varRequestableObject) + + if err != nil { + return err + } + *o = RequestableObject(varRequestableObject) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "created") diff --git a/api_v3/model_requestable_object_reference.go b/api_v3/model_requestable_object_reference.go index 769762fc3..fa1aa8177 100644 --- a/api_v3/model_requestable_object_reference.go +++ b/api_v3/model_requestable_object_reference.go @@ -51,7 +51,7 @@ func NewRequestableObjectReferenceWithDefaults() *RequestableObjectReference { // GetId returns the Id field value if set, zero value otherwise. func (o *RequestableObjectReference) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -61,7 +61,7 @@ func (o *RequestableObjectReference) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestableObjectReference) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -69,7 +69,7 @@ func (o *RequestableObjectReference) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *RequestableObjectReference) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -83,7 +83,7 @@ func (o *RequestableObjectReference) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *RequestableObjectReference) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -93,7 +93,7 @@ func (o *RequestableObjectReference) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestableObjectReference) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -101,7 +101,7 @@ func (o *RequestableObjectReference) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *RequestableObjectReference) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -115,7 +115,7 @@ func (o *RequestableObjectReference) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *RequestableObjectReference) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -125,7 +125,7 @@ func (o *RequestableObjectReference) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestableObjectReference) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -133,7 +133,7 @@ func (o *RequestableObjectReference) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *RequestableObjectReference) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -147,7 +147,7 @@ func (o *RequestableObjectReference) SetDescription(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *RequestableObjectReference) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -157,7 +157,7 @@ func (o *RequestableObjectReference) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestableObjectReference) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -165,7 +165,7 @@ func (o *RequestableObjectReference) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *RequestableObjectReference) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -187,16 +187,16 @@ func (o RequestableObjectReference) MarshalJSON() ([]byte, error) { func (o RequestableObjectReference) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } @@ -207,16 +207,20 @@ func (o RequestableObjectReference) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RequestableObjectReference) UnmarshalJSON(bytes []byte) (err error) { +func (o *RequestableObjectReference) UnmarshalJSON(data []byte) (err error) { varRequestableObjectReference := _RequestableObjectReference{} - if err = json.Unmarshal(bytes, &varRequestableObjectReference); err == nil { + err = json.Unmarshal(data, &varRequestableObjectReference) + + if err != nil { + return err + } + *o = RequestableObjectReference(varRequestableObjectReference) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/api_v3/model_requested_item_status.go b/api_v3/model_requested_item_status.go index 935e7908c..de80d60df 100644 --- a/api_v3/model_requested_item_status.go +++ b/api_v3/model_requested_item_status.go @@ -85,7 +85,7 @@ func NewRequestedItemStatusWithDefaults() *RequestedItemStatus { // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestedItemStatus) GetName() string { - if o == nil || isNil(o.Name.Get()) { + if o == nil || IsNil(o.Name.Get()) { var ret string return ret } @@ -127,7 +127,7 @@ func (o *RequestedItemStatus) UnsetName() { // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestedItemStatus) GetType() string { - if o == nil || isNil(o.Type.Get()) { + if o == nil || IsNil(o.Type.Get()) { var ret string return ret } @@ -169,7 +169,7 @@ func (o *RequestedItemStatus) UnsetType() { // GetCancelledRequestDetails returns the CancelledRequestDetails field value if set, zero value otherwise. func (o *RequestedItemStatus) GetCancelledRequestDetails() RequestedItemStatusCancelledRequestDetails { - if o == nil || isNil(o.CancelledRequestDetails) { + if o == nil || IsNil(o.CancelledRequestDetails) { var ret RequestedItemStatusCancelledRequestDetails return ret } @@ -179,7 +179,7 @@ func (o *RequestedItemStatus) GetCancelledRequestDetails() RequestedItemStatusCa // GetCancelledRequestDetailsOk returns a tuple with the CancelledRequestDetails field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatus) GetCancelledRequestDetailsOk() (*RequestedItemStatusCancelledRequestDetails, bool) { - if o == nil || isNil(o.CancelledRequestDetails) { + if o == nil || IsNil(o.CancelledRequestDetails) { return nil, false } return o.CancelledRequestDetails, true @@ -187,7 +187,7 @@ func (o *RequestedItemStatus) GetCancelledRequestDetailsOk() (*RequestedItemStat // HasCancelledRequestDetails returns a boolean if a field has been set. func (o *RequestedItemStatus) HasCancelledRequestDetails() bool { - if o != nil && !isNil(o.CancelledRequestDetails) { + if o != nil && !IsNil(o.CancelledRequestDetails) { return true } @@ -212,7 +212,7 @@ func (o *RequestedItemStatus) GetErrorMessages() [][]ErrorMessageDto { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestedItemStatus) GetErrorMessagesOk() ([][]ErrorMessageDto, bool) { - if o == nil || isNil(o.ErrorMessages) { + if o == nil || IsNil(o.ErrorMessages) { return nil, false } return o.ErrorMessages, true @@ -220,7 +220,7 @@ func (o *RequestedItemStatus) GetErrorMessagesOk() ([][]ErrorMessageDto, bool) { // HasErrorMessages returns a boolean if a field has been set. func (o *RequestedItemStatus) HasErrorMessages() bool { - if o != nil && isNil(o.ErrorMessages) { + if o != nil && !IsNil(o.ErrorMessages) { return true } @@ -234,7 +234,7 @@ func (o *RequestedItemStatus) SetErrorMessages(v [][]ErrorMessageDto) { // GetState returns the State field value if set, zero value otherwise. func (o *RequestedItemStatus) GetState() RequestedItemStatusRequestState { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { var ret RequestedItemStatusRequestState return ret } @@ -244,7 +244,7 @@ func (o *RequestedItemStatus) GetState() RequestedItemStatusRequestState { // GetStateOk returns a tuple with the State field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatus) GetStateOk() (*RequestedItemStatusRequestState, bool) { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { return nil, false } return o.State, true @@ -252,7 +252,7 @@ func (o *RequestedItemStatus) GetStateOk() (*RequestedItemStatusRequestState, bo // HasState returns a boolean if a field has been set. func (o *RequestedItemStatus) HasState() bool { - if o != nil && !isNil(o.State) { + if o != nil && !IsNil(o.State) { return true } @@ -266,7 +266,7 @@ func (o *RequestedItemStatus) SetState(v RequestedItemStatusRequestState) { // GetApprovalDetails returns the ApprovalDetails field value if set, zero value otherwise. func (o *RequestedItemStatus) GetApprovalDetails() []ApprovalStatusDto { - if o == nil || isNil(o.ApprovalDetails) { + if o == nil || IsNil(o.ApprovalDetails) { var ret []ApprovalStatusDto return ret } @@ -276,7 +276,7 @@ func (o *RequestedItemStatus) GetApprovalDetails() []ApprovalStatusDto { // GetApprovalDetailsOk returns a tuple with the ApprovalDetails field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatus) GetApprovalDetailsOk() ([]ApprovalStatusDto, bool) { - if o == nil || isNil(o.ApprovalDetails) { + if o == nil || IsNil(o.ApprovalDetails) { return nil, false } return o.ApprovalDetails, true @@ -284,7 +284,7 @@ func (o *RequestedItemStatus) GetApprovalDetailsOk() ([]ApprovalStatusDto, bool) // HasApprovalDetails returns a boolean if a field has been set. func (o *RequestedItemStatus) HasApprovalDetails() bool { - if o != nil && !isNil(o.ApprovalDetails) { + if o != nil && !IsNil(o.ApprovalDetails) { return true } @@ -309,7 +309,7 @@ func (o *RequestedItemStatus) GetManualWorkItemDetails() []ManualWorkItemDetails // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestedItemStatus) GetManualWorkItemDetailsOk() ([]ManualWorkItemDetails, bool) { - if o == nil || isNil(o.ManualWorkItemDetails) { + if o == nil || IsNil(o.ManualWorkItemDetails) { return nil, false } return o.ManualWorkItemDetails, true @@ -317,7 +317,7 @@ func (o *RequestedItemStatus) GetManualWorkItemDetailsOk() ([]ManualWorkItemDeta // HasManualWorkItemDetails returns a boolean if a field has been set. func (o *RequestedItemStatus) HasManualWorkItemDetails() bool { - if o != nil && isNil(o.ManualWorkItemDetails) { + if o != nil && !IsNil(o.ManualWorkItemDetails) { return true } @@ -331,7 +331,7 @@ func (o *RequestedItemStatus) SetManualWorkItemDetails(v []ManualWorkItemDetails // GetAccountActivityItemId returns the AccountActivityItemId field value if set, zero value otherwise. func (o *RequestedItemStatus) GetAccountActivityItemId() string { - if o == nil || isNil(o.AccountActivityItemId) { + if o == nil || IsNil(o.AccountActivityItemId) { var ret string return ret } @@ -341,7 +341,7 @@ func (o *RequestedItemStatus) GetAccountActivityItemId() string { // GetAccountActivityItemIdOk returns a tuple with the AccountActivityItemId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatus) GetAccountActivityItemIdOk() (*string, bool) { - if o == nil || isNil(o.AccountActivityItemId) { + if o == nil || IsNil(o.AccountActivityItemId) { return nil, false } return o.AccountActivityItemId, true @@ -349,7 +349,7 @@ func (o *RequestedItemStatus) GetAccountActivityItemIdOk() (*string, bool) { // HasAccountActivityItemId returns a boolean if a field has been set. func (o *RequestedItemStatus) HasAccountActivityItemId() bool { - if o != nil && !isNil(o.AccountActivityItemId) { + if o != nil && !IsNil(o.AccountActivityItemId) { return true } @@ -363,7 +363,7 @@ func (o *RequestedItemStatus) SetAccountActivityItemId(v string) { // GetRequestType returns the RequestType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestedItemStatus) GetRequestType() AccessRequestType { - if o == nil || isNil(o.RequestType.Get()) { + if o == nil || IsNil(o.RequestType.Get()) { var ret AccessRequestType return ret } @@ -405,7 +405,7 @@ func (o *RequestedItemStatus) UnsetRequestType() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestedItemStatus) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -447,7 +447,7 @@ func (o *RequestedItemStatus) UnsetModified() { // GetCreated returns the Created field value if set, zero value otherwise. func (o *RequestedItemStatus) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -457,7 +457,7 @@ func (o *RequestedItemStatus) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatus) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -465,7 +465,7 @@ func (o *RequestedItemStatus) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *RequestedItemStatus) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -479,7 +479,7 @@ func (o *RequestedItemStatus) SetCreated(v time.Time) { // GetRequester returns the Requester field value if set, zero value otherwise. func (o *RequestedItemStatus) GetRequester() AccessItemRequester { - if o == nil || isNil(o.Requester) { + if o == nil || IsNil(o.Requester) { var ret AccessItemRequester return ret } @@ -489,7 +489,7 @@ func (o *RequestedItemStatus) GetRequester() AccessItemRequester { // GetRequesterOk returns a tuple with the Requester field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatus) GetRequesterOk() (*AccessItemRequester, bool) { - if o == nil || isNil(o.Requester) { + if o == nil || IsNil(o.Requester) { return nil, false } return o.Requester, true @@ -497,7 +497,7 @@ func (o *RequestedItemStatus) GetRequesterOk() (*AccessItemRequester, bool) { // HasRequester returns a boolean if a field has been set. func (o *RequestedItemStatus) HasRequester() bool { - if o != nil && !isNil(o.Requester) { + if o != nil && !IsNil(o.Requester) { return true } @@ -511,7 +511,7 @@ func (o *RequestedItemStatus) SetRequester(v AccessItemRequester) { // GetRequestedFor returns the RequestedFor field value if set, zero value otherwise. func (o *RequestedItemStatus) GetRequestedFor() RequestedItemStatusRequestedFor { - if o == nil || isNil(o.RequestedFor) { + if o == nil || IsNil(o.RequestedFor) { var ret RequestedItemStatusRequestedFor return ret } @@ -521,7 +521,7 @@ func (o *RequestedItemStatus) GetRequestedFor() RequestedItemStatusRequestedFor // GetRequestedForOk returns a tuple with the RequestedFor field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatus) GetRequestedForOk() (*RequestedItemStatusRequestedFor, bool) { - if o == nil || isNil(o.RequestedFor) { + if o == nil || IsNil(o.RequestedFor) { return nil, false } return o.RequestedFor, true @@ -529,7 +529,7 @@ func (o *RequestedItemStatus) GetRequestedForOk() (*RequestedItemStatusRequested // HasRequestedFor returns a boolean if a field has been set. func (o *RequestedItemStatus) HasRequestedFor() bool { - if o != nil && !isNil(o.RequestedFor) { + if o != nil && !IsNil(o.RequestedFor) { return true } @@ -543,7 +543,7 @@ func (o *RequestedItemStatus) SetRequestedFor(v RequestedItemStatusRequestedFor) // GetRequesterComment returns the RequesterComment field value if set, zero value otherwise. func (o *RequestedItemStatus) GetRequesterComment() RequestedItemStatusRequesterComment { - if o == nil || isNil(o.RequesterComment) { + if o == nil || IsNil(o.RequesterComment) { var ret RequestedItemStatusRequesterComment return ret } @@ -553,7 +553,7 @@ func (o *RequestedItemStatus) GetRequesterComment() RequestedItemStatusRequester // GetRequesterCommentOk returns a tuple with the RequesterComment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatus) GetRequesterCommentOk() (*RequestedItemStatusRequesterComment, bool) { - if o == nil || isNil(o.RequesterComment) { + if o == nil || IsNil(o.RequesterComment) { return nil, false } return o.RequesterComment, true @@ -561,7 +561,7 @@ func (o *RequestedItemStatus) GetRequesterCommentOk() (*RequestedItemStatusReque // HasRequesterComment returns a boolean if a field has been set. func (o *RequestedItemStatus) HasRequesterComment() bool { - if o != nil && !isNil(o.RequesterComment) { + if o != nil && !IsNil(o.RequesterComment) { return true } @@ -575,7 +575,7 @@ func (o *RequestedItemStatus) SetRequesterComment(v RequestedItemStatusRequester // GetSodViolationContext returns the SodViolationContext field value if set, zero value otherwise. func (o *RequestedItemStatus) GetSodViolationContext() RequestedItemStatusSodViolationContext { - if o == nil || isNil(o.SodViolationContext) { + if o == nil || IsNil(o.SodViolationContext) { var ret RequestedItemStatusSodViolationContext return ret } @@ -585,7 +585,7 @@ func (o *RequestedItemStatus) GetSodViolationContext() RequestedItemStatusSodVio // GetSodViolationContextOk returns a tuple with the SodViolationContext field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatus) GetSodViolationContextOk() (*RequestedItemStatusSodViolationContext, bool) { - if o == nil || isNil(o.SodViolationContext) { + if o == nil || IsNil(o.SodViolationContext) { return nil, false } return o.SodViolationContext, true @@ -593,7 +593,7 @@ func (o *RequestedItemStatus) GetSodViolationContextOk() (*RequestedItemStatusSo // HasSodViolationContext returns a boolean if a field has been set. func (o *RequestedItemStatus) HasSodViolationContext() bool { - if o != nil && !isNil(o.SodViolationContext) { + if o != nil && !IsNil(o.SodViolationContext) { return true } @@ -607,7 +607,7 @@ func (o *RequestedItemStatus) SetSodViolationContext(v RequestedItemStatusSodVio // GetProvisioningDetails returns the ProvisioningDetails field value if set, zero value otherwise. func (o *RequestedItemStatus) GetProvisioningDetails() RequestedItemStatusProvisioningDetails { - if o == nil || isNil(o.ProvisioningDetails) { + if o == nil || IsNil(o.ProvisioningDetails) { var ret RequestedItemStatusProvisioningDetails return ret } @@ -617,7 +617,7 @@ func (o *RequestedItemStatus) GetProvisioningDetails() RequestedItemStatusProvis // GetProvisioningDetailsOk returns a tuple with the ProvisioningDetails field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatus) GetProvisioningDetailsOk() (*RequestedItemStatusProvisioningDetails, bool) { - if o == nil || isNil(o.ProvisioningDetails) { + if o == nil || IsNil(o.ProvisioningDetails) { return nil, false } return o.ProvisioningDetails, true @@ -625,7 +625,7 @@ func (o *RequestedItemStatus) GetProvisioningDetailsOk() (*RequestedItemStatusPr // HasProvisioningDetails returns a boolean if a field has been set. func (o *RequestedItemStatus) HasProvisioningDetails() bool { - if o != nil && !isNil(o.ProvisioningDetails) { + if o != nil && !IsNil(o.ProvisioningDetails) { return true } @@ -639,7 +639,7 @@ func (o *RequestedItemStatus) SetProvisioningDetails(v RequestedItemStatusProvis // GetPreApprovalTriggerDetails returns the PreApprovalTriggerDetails field value if set, zero value otherwise. func (o *RequestedItemStatus) GetPreApprovalTriggerDetails() RequestedItemStatusPreApprovalTriggerDetails { - if o == nil || isNil(o.PreApprovalTriggerDetails) { + if o == nil || IsNil(o.PreApprovalTriggerDetails) { var ret RequestedItemStatusPreApprovalTriggerDetails return ret } @@ -649,7 +649,7 @@ func (o *RequestedItemStatus) GetPreApprovalTriggerDetails() RequestedItemStatus // GetPreApprovalTriggerDetailsOk returns a tuple with the PreApprovalTriggerDetails field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatus) GetPreApprovalTriggerDetailsOk() (*RequestedItemStatusPreApprovalTriggerDetails, bool) { - if o == nil || isNil(o.PreApprovalTriggerDetails) { + if o == nil || IsNil(o.PreApprovalTriggerDetails) { return nil, false } return o.PreApprovalTriggerDetails, true @@ -657,7 +657,7 @@ func (o *RequestedItemStatus) GetPreApprovalTriggerDetailsOk() (*RequestedItemSt // HasPreApprovalTriggerDetails returns a boolean if a field has been set. func (o *RequestedItemStatus) HasPreApprovalTriggerDetails() bool { - if o != nil && !isNil(o.PreApprovalTriggerDetails) { + if o != nil && !IsNil(o.PreApprovalTriggerDetails) { return true } @@ -682,7 +682,7 @@ func (o *RequestedItemStatus) GetAccessRequestPhases() []AccessRequestPhases { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestedItemStatus) GetAccessRequestPhasesOk() ([]AccessRequestPhases, bool) { - if o == nil || isNil(o.AccessRequestPhases) { + if o == nil || IsNil(o.AccessRequestPhases) { return nil, false } return o.AccessRequestPhases, true @@ -690,7 +690,7 @@ func (o *RequestedItemStatus) GetAccessRequestPhasesOk() ([]AccessRequestPhases, // HasAccessRequestPhases returns a boolean if a field has been set. func (o *RequestedItemStatus) HasAccessRequestPhases() bool { - if o != nil && isNil(o.AccessRequestPhases) { + if o != nil && !IsNil(o.AccessRequestPhases) { return true } @@ -704,7 +704,7 @@ func (o *RequestedItemStatus) SetAccessRequestPhases(v []AccessRequestPhases) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestedItemStatus) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -746,7 +746,7 @@ func (o *RequestedItemStatus) UnsetDescription() { // GetRemoveDate returns the RemoveDate field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestedItemStatus) GetRemoveDate() time.Time { - if o == nil || isNil(o.RemoveDate.Get()) { + if o == nil || IsNil(o.RemoveDate.Get()) { var ret time.Time return ret } @@ -788,7 +788,7 @@ func (o *RequestedItemStatus) UnsetRemoveDate() { // GetCancelable returns the Cancelable field value if set, zero value otherwise. func (o *RequestedItemStatus) GetCancelable() bool { - if o == nil || isNil(o.Cancelable) { + if o == nil || IsNil(o.Cancelable) { var ret bool return ret } @@ -798,7 +798,7 @@ func (o *RequestedItemStatus) GetCancelable() bool { // GetCancelableOk returns a tuple with the Cancelable field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatus) GetCancelableOk() (*bool, bool) { - if o == nil || isNil(o.Cancelable) { + if o == nil || IsNil(o.Cancelable) { return nil, false } return o.Cancelable, true @@ -806,7 +806,7 @@ func (o *RequestedItemStatus) GetCancelableOk() (*bool, bool) { // HasCancelable returns a boolean if a field has been set. func (o *RequestedItemStatus) HasCancelable() bool { - if o != nil && !isNil(o.Cancelable) { + if o != nil && !IsNil(o.Cancelable) { return true } @@ -820,7 +820,7 @@ func (o *RequestedItemStatus) SetCancelable(v bool) { // GetAccessRequestId returns the AccessRequestId field value if set, zero value otherwise. func (o *RequestedItemStatus) GetAccessRequestId() string { - if o == nil || isNil(o.AccessRequestId) { + if o == nil || IsNil(o.AccessRequestId) { var ret string return ret } @@ -830,7 +830,7 @@ func (o *RequestedItemStatus) GetAccessRequestId() string { // GetAccessRequestIdOk returns a tuple with the AccessRequestId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatus) GetAccessRequestIdOk() (*string, bool) { - if o == nil || isNil(o.AccessRequestId) { + if o == nil || IsNil(o.AccessRequestId) { return nil, false } return o.AccessRequestId, true @@ -838,7 +838,7 @@ func (o *RequestedItemStatus) GetAccessRequestIdOk() (*string, bool) { // HasAccessRequestId returns a boolean if a field has been set. func (o *RequestedItemStatus) HasAccessRequestId() bool { - if o != nil && !isNil(o.AccessRequestId) { + if o != nil && !IsNil(o.AccessRequestId) { return true } @@ -863,7 +863,7 @@ func (o *RequestedItemStatus) GetClientMetadata() map[string]string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestedItemStatus) GetClientMetadataOk() (*map[string]string, bool) { - if o == nil || isNil(o.ClientMetadata) { + if o == nil || IsNil(o.ClientMetadata) { return nil, false } return &o.ClientMetadata, true @@ -871,7 +871,7 @@ func (o *RequestedItemStatus) GetClientMetadataOk() (*map[string]string, bool) { // HasClientMetadata returns a boolean if a field has been set. func (o *RequestedItemStatus) HasClientMetadata() bool { - if o != nil && isNil(o.ClientMetadata) { + if o != nil && !IsNil(o.ClientMetadata) { return true } @@ -899,22 +899,22 @@ func (o RequestedItemStatus) ToMap() (map[string]interface{}, error) { if o.Type.IsSet() { toSerialize["type"] = o.Type.Get() } - if !isNil(o.CancelledRequestDetails) { + if !IsNil(o.CancelledRequestDetails) { toSerialize["cancelledRequestDetails"] = o.CancelledRequestDetails } if o.ErrorMessages != nil { toSerialize["errorMessages"] = o.ErrorMessages } - if !isNil(o.State) { + if !IsNil(o.State) { toSerialize["state"] = o.State } - if !isNil(o.ApprovalDetails) { + if !IsNil(o.ApprovalDetails) { toSerialize["approvalDetails"] = o.ApprovalDetails } if o.ManualWorkItemDetails != nil { toSerialize["manualWorkItemDetails"] = o.ManualWorkItemDetails } - if !isNil(o.AccountActivityItemId) { + if !IsNil(o.AccountActivityItemId) { toSerialize["accountActivityItemId"] = o.AccountActivityItemId } if o.RequestType.IsSet() { @@ -923,25 +923,25 @@ func (o RequestedItemStatus) ToMap() (map[string]interface{}, error) { if o.Modified.IsSet() { toSerialize["modified"] = o.Modified.Get() } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Requester) { + if !IsNil(o.Requester) { toSerialize["requester"] = o.Requester } - if !isNil(o.RequestedFor) { + if !IsNil(o.RequestedFor) { toSerialize["requestedFor"] = o.RequestedFor } - if !isNil(o.RequesterComment) { + if !IsNil(o.RequesterComment) { toSerialize["requesterComment"] = o.RequesterComment } - if !isNil(o.SodViolationContext) { + if !IsNil(o.SodViolationContext) { toSerialize["sodViolationContext"] = o.SodViolationContext } - if !isNil(o.ProvisioningDetails) { + if !IsNil(o.ProvisioningDetails) { toSerialize["provisioningDetails"] = o.ProvisioningDetails } - if !isNil(o.PreApprovalTriggerDetails) { + if !IsNil(o.PreApprovalTriggerDetails) { toSerialize["preApprovalTriggerDetails"] = o.PreApprovalTriggerDetails } if o.AccessRequestPhases != nil { @@ -953,10 +953,10 @@ func (o RequestedItemStatus) ToMap() (map[string]interface{}, error) { if o.RemoveDate.IsSet() { toSerialize["removeDate"] = o.RemoveDate.Get() } - if !isNil(o.Cancelable) { + if !IsNil(o.Cancelable) { toSerialize["cancelable"] = o.Cancelable } - if !isNil(o.AccessRequestId) { + if !IsNil(o.AccessRequestId) { toSerialize["accessRequestId"] = o.AccessRequestId } if o.ClientMetadata != nil { @@ -970,16 +970,20 @@ func (o RequestedItemStatus) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RequestedItemStatus) UnmarshalJSON(bytes []byte) (err error) { +func (o *RequestedItemStatus) UnmarshalJSON(data []byte) (err error) { varRequestedItemStatus := _RequestedItemStatus{} - if err = json.Unmarshal(bytes, &varRequestedItemStatus); err == nil { + err = json.Unmarshal(data, &varRequestedItemStatus) + + if err != nil { + return err + } + *o = RequestedItemStatus(varRequestedItemStatus) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "type") delete(additionalProperties, "cancelledRequestDetails") diff --git a/api_v3/model_requested_item_status_cancelled_request_details.go b/api_v3/model_requested_item_status_cancelled_request_details.go index d797c2487..e72aea2e8 100644 --- a/api_v3/model_requested_item_status_cancelled_request_details.go +++ b/api_v3/model_requested_item_status_cancelled_request_details.go @@ -49,7 +49,7 @@ func NewRequestedItemStatusCancelledRequestDetailsWithDefaults() *RequestedItemS // GetComment returns the Comment field value if set, zero value otherwise. func (o *RequestedItemStatusCancelledRequestDetails) GetComment() string { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *RequestedItemStatusCancelledRequestDetails) GetComment() string { // GetCommentOk returns a tuple with the Comment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatusCancelledRequestDetails) GetCommentOk() (*string, bool) { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { return nil, false } return o.Comment, true @@ -67,7 +67,7 @@ func (o *RequestedItemStatusCancelledRequestDetails) GetCommentOk() (*string, bo // HasComment returns a boolean if a field has been set. func (o *RequestedItemStatusCancelledRequestDetails) HasComment() bool { - if o != nil && !isNil(o.Comment) { + if o != nil && !IsNil(o.Comment) { return true } @@ -81,7 +81,7 @@ func (o *RequestedItemStatusCancelledRequestDetails) SetComment(v string) { // GetOwner returns the Owner field value if set, zero value otherwise. func (o *RequestedItemStatusCancelledRequestDetails) GetOwner() OwnerDto { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { var ret OwnerDto return ret } @@ -91,7 +91,7 @@ func (o *RequestedItemStatusCancelledRequestDetails) GetOwner() OwnerDto { // GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatusCancelledRequestDetails) GetOwnerOk() (*OwnerDto, bool) { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { return nil, false } return o.Owner, true @@ -99,7 +99,7 @@ func (o *RequestedItemStatusCancelledRequestDetails) GetOwnerOk() (*OwnerDto, bo // HasOwner returns a boolean if a field has been set. func (o *RequestedItemStatusCancelledRequestDetails) HasOwner() bool { - if o != nil && !isNil(o.Owner) { + if o != nil && !IsNil(o.Owner) { return true } @@ -113,7 +113,7 @@ func (o *RequestedItemStatusCancelledRequestDetails) SetOwner(v OwnerDto) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *RequestedItemStatusCancelledRequestDetails) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -123,7 +123,7 @@ func (o *RequestedItemStatusCancelledRequestDetails) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatusCancelledRequestDetails) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -131,7 +131,7 @@ func (o *RequestedItemStatusCancelledRequestDetails) GetModifiedOk() (*time.Time // HasModified returns a boolean if a field has been set. func (o *RequestedItemStatusCancelledRequestDetails) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -153,13 +153,13 @@ func (o RequestedItemStatusCancelledRequestDetails) MarshalJSON() ([]byte, error func (o RequestedItemStatusCancelledRequestDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Comment) { + if !IsNil(o.Comment) { toSerialize["comment"] = o.Comment } - if !isNil(o.Owner) { + if !IsNil(o.Owner) { toSerialize["owner"] = o.Owner } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } @@ -170,16 +170,20 @@ func (o RequestedItemStatusCancelledRequestDetails) ToMap() (map[string]interfac return toSerialize, nil } -func (o *RequestedItemStatusCancelledRequestDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *RequestedItemStatusCancelledRequestDetails) UnmarshalJSON(data []byte) (err error) { varRequestedItemStatusCancelledRequestDetails := _RequestedItemStatusCancelledRequestDetails{} - if err = json.Unmarshal(bytes, &varRequestedItemStatusCancelledRequestDetails); err == nil { + err = json.Unmarshal(data, &varRequestedItemStatusCancelledRequestDetails) + + if err != nil { + return err + } + *o = RequestedItemStatusCancelledRequestDetails(varRequestedItemStatusCancelledRequestDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "comment") delete(additionalProperties, "owner") delete(additionalProperties, "modified") diff --git a/api_v3/model_requested_item_status_pre_approval_trigger_details.go b/api_v3/model_requested_item_status_pre_approval_trigger_details.go index e90466f1c..2bc9aefac 100644 --- a/api_v3/model_requested_item_status_pre_approval_trigger_details.go +++ b/api_v3/model_requested_item_status_pre_approval_trigger_details.go @@ -49,7 +49,7 @@ func NewRequestedItemStatusPreApprovalTriggerDetailsWithDefaults() *RequestedIte // GetComment returns the Comment field value if set, zero value otherwise. func (o *RequestedItemStatusPreApprovalTriggerDetails) GetComment() string { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *RequestedItemStatusPreApprovalTriggerDetails) GetComment() string { // GetCommentOk returns a tuple with the Comment field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatusPreApprovalTriggerDetails) GetCommentOk() (*string, bool) { - if o == nil || isNil(o.Comment) { + if o == nil || IsNil(o.Comment) { return nil, false } return o.Comment, true @@ -67,7 +67,7 @@ func (o *RequestedItemStatusPreApprovalTriggerDetails) GetCommentOk() (*string, // HasComment returns a boolean if a field has been set. func (o *RequestedItemStatusPreApprovalTriggerDetails) HasComment() bool { - if o != nil && !isNil(o.Comment) { + if o != nil && !IsNil(o.Comment) { return true } @@ -81,7 +81,7 @@ func (o *RequestedItemStatusPreApprovalTriggerDetails) SetComment(v string) { // GetReviewer returns the Reviewer field value if set, zero value otherwise. func (o *RequestedItemStatusPreApprovalTriggerDetails) GetReviewer() string { - if o == nil || isNil(o.Reviewer) { + if o == nil || IsNil(o.Reviewer) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *RequestedItemStatusPreApprovalTriggerDetails) GetReviewer() string { // GetReviewerOk returns a tuple with the Reviewer field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatusPreApprovalTriggerDetails) GetReviewerOk() (*string, bool) { - if o == nil || isNil(o.Reviewer) { + if o == nil || IsNil(o.Reviewer) { return nil, false } return o.Reviewer, true @@ -99,7 +99,7 @@ func (o *RequestedItemStatusPreApprovalTriggerDetails) GetReviewerOk() (*string, // HasReviewer returns a boolean if a field has been set. func (o *RequestedItemStatusPreApprovalTriggerDetails) HasReviewer() bool { - if o != nil && !isNil(o.Reviewer) { + if o != nil && !IsNil(o.Reviewer) { return true } @@ -113,7 +113,7 @@ func (o *RequestedItemStatusPreApprovalTriggerDetails) SetReviewer(v string) { // GetDecision returns the Decision field value if set, zero value otherwise. func (o *RequestedItemStatusPreApprovalTriggerDetails) GetDecision() string { - if o == nil || isNil(o.Decision) { + if o == nil || IsNil(o.Decision) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *RequestedItemStatusPreApprovalTriggerDetails) GetDecision() string { // GetDecisionOk returns a tuple with the Decision field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatusPreApprovalTriggerDetails) GetDecisionOk() (*string, bool) { - if o == nil || isNil(o.Decision) { + if o == nil || IsNil(o.Decision) { return nil, false } return o.Decision, true @@ -131,7 +131,7 @@ func (o *RequestedItemStatusPreApprovalTriggerDetails) GetDecisionOk() (*string, // HasDecision returns a boolean if a field has been set. func (o *RequestedItemStatusPreApprovalTriggerDetails) HasDecision() bool { - if o != nil && !isNil(o.Decision) { + if o != nil && !IsNil(o.Decision) { return true } @@ -153,13 +153,13 @@ func (o RequestedItemStatusPreApprovalTriggerDetails) MarshalJSON() ([]byte, err func (o RequestedItemStatusPreApprovalTriggerDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Comment) { + if !IsNil(o.Comment) { toSerialize["comment"] = o.Comment } - if !isNil(o.Reviewer) { + if !IsNil(o.Reviewer) { toSerialize["reviewer"] = o.Reviewer } - if !isNil(o.Decision) { + if !IsNil(o.Decision) { toSerialize["decision"] = o.Decision } @@ -170,16 +170,20 @@ func (o RequestedItemStatusPreApprovalTriggerDetails) ToMap() (map[string]interf return toSerialize, nil } -func (o *RequestedItemStatusPreApprovalTriggerDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *RequestedItemStatusPreApprovalTriggerDetails) UnmarshalJSON(data []byte) (err error) { varRequestedItemStatusPreApprovalTriggerDetails := _RequestedItemStatusPreApprovalTriggerDetails{} - if err = json.Unmarshal(bytes, &varRequestedItemStatusPreApprovalTriggerDetails); err == nil { + err = json.Unmarshal(data, &varRequestedItemStatusPreApprovalTriggerDetails) + + if err != nil { + return err + } + *o = RequestedItemStatusPreApprovalTriggerDetails(varRequestedItemStatusPreApprovalTriggerDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "comment") delete(additionalProperties, "reviewer") delete(additionalProperties, "decision") diff --git a/api_v3/model_requested_item_status_provisioning_details.go b/api_v3/model_requested_item_status_provisioning_details.go index 5ceba7af3..441ba15ea 100644 --- a/api_v3/model_requested_item_status_provisioning_details.go +++ b/api_v3/model_requested_item_status_provisioning_details.go @@ -45,7 +45,7 @@ func NewRequestedItemStatusProvisioningDetailsWithDefaults() *RequestedItemStatu // GetOrderedSubPhaseReferences returns the OrderedSubPhaseReferences field value if set, zero value otherwise. func (o *RequestedItemStatusProvisioningDetails) GetOrderedSubPhaseReferences() string { - if o == nil || isNil(o.OrderedSubPhaseReferences) { + if o == nil || IsNil(o.OrderedSubPhaseReferences) { var ret string return ret } @@ -55,7 +55,7 @@ func (o *RequestedItemStatusProvisioningDetails) GetOrderedSubPhaseReferences() // GetOrderedSubPhaseReferencesOk returns a tuple with the OrderedSubPhaseReferences field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatusProvisioningDetails) GetOrderedSubPhaseReferencesOk() (*string, bool) { - if o == nil || isNil(o.OrderedSubPhaseReferences) { + if o == nil || IsNil(o.OrderedSubPhaseReferences) { return nil, false } return o.OrderedSubPhaseReferences, true @@ -63,7 +63,7 @@ func (o *RequestedItemStatusProvisioningDetails) GetOrderedSubPhaseReferencesOk( // HasOrderedSubPhaseReferences returns a boolean if a field has been set. func (o *RequestedItemStatusProvisioningDetails) HasOrderedSubPhaseReferences() bool { - if o != nil && !isNil(o.OrderedSubPhaseReferences) { + if o != nil && !IsNil(o.OrderedSubPhaseReferences) { return true } @@ -85,7 +85,7 @@ func (o RequestedItemStatusProvisioningDetails) MarshalJSON() ([]byte, error) { func (o RequestedItemStatusProvisioningDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.OrderedSubPhaseReferences) { + if !IsNil(o.OrderedSubPhaseReferences) { toSerialize["orderedSubPhaseReferences"] = o.OrderedSubPhaseReferences } @@ -96,16 +96,20 @@ func (o RequestedItemStatusProvisioningDetails) ToMap() (map[string]interface{}, return toSerialize, nil } -func (o *RequestedItemStatusProvisioningDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *RequestedItemStatusProvisioningDetails) UnmarshalJSON(data []byte) (err error) { varRequestedItemStatusProvisioningDetails := _RequestedItemStatusProvisioningDetails{} - if err = json.Unmarshal(bytes, &varRequestedItemStatusProvisioningDetails); err == nil { + err = json.Unmarshal(data, &varRequestedItemStatusProvisioningDetails) + + if err != nil { + return err + } + *o = RequestedItemStatusProvisioningDetails(varRequestedItemStatusProvisioningDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "orderedSubPhaseReferences") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_requested_item_status_requested_for.go b/api_v3/model_requested_item_status_requested_for.go index ac1c6efba..cb5ee7546 100644 --- a/api_v3/model_requested_item_status_requested_for.go +++ b/api_v3/model_requested_item_status_requested_for.go @@ -49,7 +49,7 @@ func NewRequestedItemStatusRequestedForWithDefaults() *RequestedItemStatusReques // GetType returns the Type field value if set, zero value otherwise. func (o *RequestedItemStatusRequestedFor) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *RequestedItemStatusRequestedFor) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatusRequestedFor) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *RequestedItemStatusRequestedFor) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *RequestedItemStatusRequestedFor) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *RequestedItemStatusRequestedFor) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *RequestedItemStatusRequestedFor) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *RequestedItemStatusRequestedFor) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatusRequestedFor) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *RequestedItemStatusRequestedFor) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *RequestedItemStatusRequestedFor) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *RequestedItemStatusRequestedFor) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *RequestedItemStatusRequestedFor) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *RequestedItemStatusRequestedFor) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatusRequestedFor) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *RequestedItemStatusRequestedFor) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *RequestedItemStatusRequestedFor) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o RequestedItemStatusRequestedFor) MarshalJSON() ([]byte, error) { func (o RequestedItemStatusRequestedFor) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o RequestedItemStatusRequestedFor) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *RequestedItemStatusRequestedFor) UnmarshalJSON(bytes []byte) (err error) { +func (o *RequestedItemStatusRequestedFor) UnmarshalJSON(data []byte) (err error) { varRequestedItemStatusRequestedFor := _RequestedItemStatusRequestedFor{} - if err = json.Unmarshal(bytes, &varRequestedItemStatusRequestedFor); err == nil { + err = json.Unmarshal(data, &varRequestedItemStatusRequestedFor) + + if err != nil { + return err + } + *o = RequestedItemStatusRequestedFor(varRequestedItemStatusRequestedFor) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_requested_item_status_requester_comment.go b/api_v3/model_requested_item_status_requester_comment.go index 3aac687be..7827534de 100644 --- a/api_v3/model_requested_item_status_requester_comment.go +++ b/api_v3/model_requested_item_status_requester_comment.go @@ -49,7 +49,7 @@ func NewRequestedItemStatusRequesterCommentWithDefaults() *RequestedItemStatusRe // GetComment returns the Comment field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestedItemStatusRequesterComment) GetComment() string { - if o == nil || isNil(o.Comment.Get()) { + if o == nil || IsNil(o.Comment.Get()) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *RequestedItemStatusRequesterComment) UnsetComment() { // GetCreated returns the Created field value if set, zero value otherwise. func (o *RequestedItemStatusRequesterComment) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -101,7 +101,7 @@ func (o *RequestedItemStatusRequesterComment) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatusRequesterComment) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -109,7 +109,7 @@ func (o *RequestedItemStatusRequesterComment) GetCreatedOk() (*time.Time, bool) // HasCreated returns a boolean if a field has been set. func (o *RequestedItemStatusRequesterComment) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -123,7 +123,7 @@ func (o *RequestedItemStatusRequesterComment) SetCreated(v time.Time) { // GetAuthor returns the Author field value if set, zero value otherwise. func (o *RequestedItemStatusRequesterComment) GetAuthor() CommentDtoAuthor { - if o == nil || isNil(o.Author) { + if o == nil || IsNil(o.Author) { var ret CommentDtoAuthor return ret } @@ -133,7 +133,7 @@ func (o *RequestedItemStatusRequesterComment) GetAuthor() CommentDtoAuthor { // GetAuthorOk returns a tuple with the Author field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatusRequesterComment) GetAuthorOk() (*CommentDtoAuthor, bool) { - if o == nil || isNil(o.Author) { + if o == nil || IsNil(o.Author) { return nil, false } return o.Author, true @@ -141,7 +141,7 @@ func (o *RequestedItemStatusRequesterComment) GetAuthorOk() (*CommentDtoAuthor, // HasAuthor returns a boolean if a field has been set. func (o *RequestedItemStatusRequesterComment) HasAuthor() bool { - if o != nil && !isNil(o.Author) { + if o != nil && !IsNil(o.Author) { return true } @@ -166,10 +166,10 @@ func (o RequestedItemStatusRequesterComment) ToMap() (map[string]interface{}, er if o.Comment.IsSet() { toSerialize["comment"] = o.Comment.Get() } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Author) { + if !IsNil(o.Author) { toSerialize["author"] = o.Author } @@ -180,16 +180,20 @@ func (o RequestedItemStatusRequesterComment) ToMap() (map[string]interface{}, er return toSerialize, nil } -func (o *RequestedItemStatusRequesterComment) UnmarshalJSON(bytes []byte) (err error) { +func (o *RequestedItemStatusRequesterComment) UnmarshalJSON(data []byte) (err error) { varRequestedItemStatusRequesterComment := _RequestedItemStatusRequesterComment{} - if err = json.Unmarshal(bytes, &varRequestedItemStatusRequesterComment); err == nil { + err = json.Unmarshal(data, &varRequestedItemStatusRequesterComment) + + if err != nil { + return err + } + *o = RequestedItemStatusRequesterComment(varRequestedItemStatusRequesterComment) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "comment") delete(additionalProperties, "created") delete(additionalProperties, "author") diff --git a/api_v3/model_requested_item_status_sod_violation_context.go b/api_v3/model_requested_item_status_sod_violation_context.go index 08bd32c5c..b0a08cc04 100644 --- a/api_v3/model_requested_item_status_sod_violation_context.go +++ b/api_v3/model_requested_item_status_sod_violation_context.go @@ -48,7 +48,7 @@ func NewRequestedItemStatusSodViolationContextWithDefaults() *RequestedItemStatu // GetState returns the State field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestedItemStatusSodViolationContext) GetState() string { - if o == nil || isNil(o.State.Get()) { + if o == nil || IsNil(o.State.Get()) { var ret string return ret } @@ -90,7 +90,7 @@ func (o *RequestedItemStatusSodViolationContext) UnsetState() { // GetUuid returns the Uuid field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestedItemStatusSodViolationContext) GetUuid() string { - if o == nil || isNil(o.Uuid.Get()) { + if o == nil || IsNil(o.Uuid.Get()) { var ret string return ret } @@ -132,7 +132,7 @@ func (o *RequestedItemStatusSodViolationContext) UnsetUuid() { // GetViolationCheckResult returns the ViolationCheckResult field value if set, zero value otherwise. func (o *RequestedItemStatusSodViolationContext) GetViolationCheckResult() SodViolationCheckResult { - if o == nil || isNil(o.ViolationCheckResult) { + if o == nil || IsNil(o.ViolationCheckResult) { var ret SodViolationCheckResult return ret } @@ -142,7 +142,7 @@ func (o *RequestedItemStatusSodViolationContext) GetViolationCheckResult() SodVi // GetViolationCheckResultOk returns a tuple with the ViolationCheckResult field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RequestedItemStatusSodViolationContext) GetViolationCheckResultOk() (*SodViolationCheckResult, bool) { - if o == nil || isNil(o.ViolationCheckResult) { + if o == nil || IsNil(o.ViolationCheckResult) { return nil, false } return o.ViolationCheckResult, true @@ -150,7 +150,7 @@ func (o *RequestedItemStatusSodViolationContext) GetViolationCheckResultOk() (*S // HasViolationCheckResult returns a boolean if a field has been set. func (o *RequestedItemStatusSodViolationContext) HasViolationCheckResult() bool { - if o != nil && !isNil(o.ViolationCheckResult) { + if o != nil && !IsNil(o.ViolationCheckResult) { return true } @@ -178,7 +178,7 @@ func (o RequestedItemStatusSodViolationContext) ToMap() (map[string]interface{}, if o.Uuid.IsSet() { toSerialize["uuid"] = o.Uuid.Get() } - if !isNil(o.ViolationCheckResult) { + if !IsNil(o.ViolationCheckResult) { toSerialize["violationCheckResult"] = o.ViolationCheckResult } @@ -189,16 +189,20 @@ func (o RequestedItemStatusSodViolationContext) ToMap() (map[string]interface{}, return toSerialize, nil } -func (o *RequestedItemStatusSodViolationContext) UnmarshalJSON(bytes []byte) (err error) { +func (o *RequestedItemStatusSodViolationContext) UnmarshalJSON(data []byte) (err error) { varRequestedItemStatusSodViolationContext := _RequestedItemStatusSodViolationContext{} - if err = json.Unmarshal(bytes, &varRequestedItemStatusSodViolationContext); err == nil { + err = json.Unmarshal(data, &varRequestedItemStatusSodViolationContext) + + if err != nil { + return err + } + *o = RequestedItemStatusSodViolationContext(varRequestedItemStatusSodViolationContext) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "state") delete(additionalProperties, "uuid") delete(additionalProperties, "violationCheckResult") diff --git a/api_v3/model_review_decision.go b/api_v3/model_review_decision.go index a0e0efed9..cb7d254b6 100644 --- a/api_v3/model_review_decision.go +++ b/api_v3/model_review_decision.go @@ -106,7 +106,7 @@ func (o *ReviewDecision) SetDecision(v CertificationDecision) { // GetProposedEndDate returns the ProposedEndDate field value if set, zero value otherwise. func (o *ReviewDecision) GetProposedEndDate() time.Time { - if o == nil || isNil(o.ProposedEndDate) { + if o == nil || IsNil(o.ProposedEndDate) { var ret time.Time return ret } @@ -116,7 +116,7 @@ func (o *ReviewDecision) GetProposedEndDate() time.Time { // GetProposedEndDateOk returns a tuple with the ProposedEndDate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewDecision) GetProposedEndDateOk() (*time.Time, bool) { - if o == nil || isNil(o.ProposedEndDate) { + if o == nil || IsNil(o.ProposedEndDate) { return nil, false } return o.ProposedEndDate, true @@ -124,7 +124,7 @@ func (o *ReviewDecision) GetProposedEndDateOk() (*time.Time, bool) { // HasProposedEndDate returns a boolean if a field has been set. func (o *ReviewDecision) HasProposedEndDate() bool { - if o != nil && !isNil(o.ProposedEndDate) { + if o != nil && !IsNil(o.ProposedEndDate) { return true } @@ -162,7 +162,7 @@ func (o *ReviewDecision) SetBulk(v bool) { // GetRecommendation returns the Recommendation field value if set, zero value otherwise. func (o *ReviewDecision) GetRecommendation() ReviewRecommendation { - if o == nil || isNil(o.Recommendation) { + if o == nil || IsNil(o.Recommendation) { var ret ReviewRecommendation return ret } @@ -172,7 +172,7 @@ func (o *ReviewDecision) GetRecommendation() ReviewRecommendation { // GetRecommendationOk returns a tuple with the Recommendation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewDecision) GetRecommendationOk() (*ReviewRecommendation, bool) { - if o == nil || isNil(o.Recommendation) { + if o == nil || IsNil(o.Recommendation) { return nil, false } return o.Recommendation, true @@ -180,7 +180,7 @@ func (o *ReviewDecision) GetRecommendationOk() (*ReviewRecommendation, bool) { // HasRecommendation returns a boolean if a field has been set. func (o *ReviewDecision) HasRecommendation() bool { - if o != nil && !isNil(o.Recommendation) { + if o != nil && !IsNil(o.Recommendation) { return true } @@ -194,7 +194,7 @@ func (o *ReviewDecision) SetRecommendation(v ReviewRecommendation) { // GetComments returns the Comments field value if set, zero value otherwise. func (o *ReviewDecision) GetComments() string { - if o == nil || isNil(o.Comments) { + if o == nil || IsNil(o.Comments) { var ret string return ret } @@ -204,7 +204,7 @@ func (o *ReviewDecision) GetComments() string { // GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewDecision) GetCommentsOk() (*string, bool) { - if o == nil || isNil(o.Comments) { + if o == nil || IsNil(o.Comments) { return nil, false } return o.Comments, true @@ -212,7 +212,7 @@ func (o *ReviewDecision) GetCommentsOk() (*string, bool) { // HasComments returns a boolean if a field has been set. func (o *ReviewDecision) HasComments() bool { - if o != nil && !isNil(o.Comments) { + if o != nil && !IsNil(o.Comments) { return true } @@ -236,14 +236,14 @@ func (o ReviewDecision) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["decision"] = o.Decision - if !isNil(o.ProposedEndDate) { + if !IsNil(o.ProposedEndDate) { toSerialize["proposedEndDate"] = o.ProposedEndDate } toSerialize["bulk"] = o.Bulk - if !isNil(o.Recommendation) { + if !IsNil(o.Recommendation) { toSerialize["recommendation"] = o.Recommendation } - if !isNil(o.Comments) { + if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } @@ -254,8 +254,8 @@ func (o ReviewDecision) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ReviewDecision) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ReviewDecision) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -266,7 +266,7 @@ func (o *ReviewDecision) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -280,13 +280,17 @@ func (o *ReviewDecision) UnmarshalJSON(bytes []byte) (err error) { varReviewDecision := _ReviewDecision{} - if err = json.Unmarshal(bytes, &varReviewDecision); err == nil { + err = json.Unmarshal(data, &varReviewDecision) + + if err != nil { + return err + } + *o = ReviewDecision(varReviewDecision) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "decision") delete(additionalProperties, "proposedEndDate") diff --git a/api_v3/model_review_reassign.go b/api_v3/model_review_reassign.go index d4cb6b03b..174c60b8b 100644 --- a/api_v3/model_review_reassign.go +++ b/api_v3/model_review_reassign.go @@ -143,8 +143,8 @@ func (o ReviewReassign) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ReviewReassign) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ReviewReassign) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -155,7 +155,7 @@ func (o *ReviewReassign) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -169,13 +169,17 @@ func (o *ReviewReassign) UnmarshalJSON(bytes []byte) (err error) { varReviewReassign := _ReviewReassign{} - if err = json.Unmarshal(bytes, &varReviewReassign); err == nil { + err = json.Unmarshal(data, &varReviewReassign) + + if err != nil { + return err + } + *o = ReviewReassign(varReviewReassign) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "reassign") delete(additionalProperties, "reassignTo") delete(additionalProperties, "reason") diff --git a/api_v3/model_review_recommendation.go b/api_v3/model_review_recommendation.go index 7275be8df..35bb86bce 100644 --- a/api_v3/model_review_recommendation.go +++ b/api_v3/model_review_recommendation.go @@ -50,7 +50,7 @@ func NewReviewRecommendationWithDefaults() *ReviewRecommendation { // GetRecommendation returns the Recommendation field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ReviewRecommendation) GetRecommendation() string { - if o == nil || isNil(o.Recommendation.Get()) { + if o == nil || IsNil(o.Recommendation.Get()) { var ret string return ret } @@ -92,7 +92,7 @@ func (o *ReviewRecommendation) UnsetRecommendation() { // GetReasons returns the Reasons field value if set, zero value otherwise. func (o *ReviewRecommendation) GetReasons() []string { - if o == nil || isNil(o.Reasons) { + if o == nil || IsNil(o.Reasons) { var ret []string return ret } @@ -102,7 +102,7 @@ func (o *ReviewRecommendation) GetReasons() []string { // GetReasonsOk returns a tuple with the Reasons field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewRecommendation) GetReasonsOk() ([]string, bool) { - if o == nil || isNil(o.Reasons) { + if o == nil || IsNil(o.Reasons) { return nil, false } return o.Reasons, true @@ -110,7 +110,7 @@ func (o *ReviewRecommendation) GetReasonsOk() ([]string, bool) { // HasReasons returns a boolean if a field has been set. func (o *ReviewRecommendation) HasReasons() bool { - if o != nil && !isNil(o.Reasons) { + if o != nil && !IsNil(o.Reasons) { return true } @@ -124,7 +124,7 @@ func (o *ReviewRecommendation) SetReasons(v []string) { // GetTimestamp returns the Timestamp field value if set, zero value otherwise. func (o *ReviewRecommendation) GetTimestamp() time.Time { - if o == nil || isNil(o.Timestamp) { + if o == nil || IsNil(o.Timestamp) { var ret time.Time return ret } @@ -134,7 +134,7 @@ func (o *ReviewRecommendation) GetTimestamp() time.Time { // GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewRecommendation) GetTimestampOk() (*time.Time, bool) { - if o == nil || isNil(o.Timestamp) { + if o == nil || IsNil(o.Timestamp) { return nil, false } return o.Timestamp, true @@ -142,7 +142,7 @@ func (o *ReviewRecommendation) GetTimestampOk() (*time.Time, bool) { // HasTimestamp returns a boolean if a field has been set. func (o *ReviewRecommendation) HasTimestamp() bool { - if o != nil && !isNil(o.Timestamp) { + if o != nil && !IsNil(o.Timestamp) { return true } @@ -167,10 +167,10 @@ func (o ReviewRecommendation) ToMap() (map[string]interface{}, error) { if o.Recommendation.IsSet() { toSerialize["recommendation"] = o.Recommendation.Get() } - if !isNil(o.Reasons) { + if !IsNil(o.Reasons) { toSerialize["reasons"] = o.Reasons } - if !isNil(o.Timestamp) { + if !IsNil(o.Timestamp) { toSerialize["timestamp"] = o.Timestamp } @@ -181,16 +181,20 @@ func (o ReviewRecommendation) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ReviewRecommendation) UnmarshalJSON(bytes []byte) (err error) { +func (o *ReviewRecommendation) UnmarshalJSON(data []byte) (err error) { varReviewRecommendation := _ReviewRecommendation{} - if err = json.Unmarshal(bytes, &varReviewRecommendation); err == nil { + err = json.Unmarshal(data, &varReviewRecommendation) + + if err != nil { + return err + } + *o = ReviewRecommendation(varReviewRecommendation) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "recommendation") delete(additionalProperties, "reasons") delete(additionalProperties, "timestamp") diff --git a/api_v3/model_reviewable_access_profile.go b/api_v3/model_reviewable_access_profile.go index 555157d9a..6a4029b1a 100644 --- a/api_v3/model_reviewable_access_profile.go +++ b/api_v3/model_reviewable_access_profile.go @@ -63,7 +63,7 @@ func NewReviewableAccessProfileWithDefaults() *ReviewableAccessProfile { // GetId returns the Id field value if set, zero value otherwise. func (o *ReviewableAccessProfile) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -73,7 +73,7 @@ func (o *ReviewableAccessProfile) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableAccessProfile) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -81,7 +81,7 @@ func (o *ReviewableAccessProfile) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ReviewableAccessProfile) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -95,7 +95,7 @@ func (o *ReviewableAccessProfile) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *ReviewableAccessProfile) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -105,7 +105,7 @@ func (o *ReviewableAccessProfile) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableAccessProfile) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -113,7 +113,7 @@ func (o *ReviewableAccessProfile) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ReviewableAccessProfile) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -127,7 +127,7 @@ func (o *ReviewableAccessProfile) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *ReviewableAccessProfile) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -137,7 +137,7 @@ func (o *ReviewableAccessProfile) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableAccessProfile) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -145,7 +145,7 @@ func (o *ReviewableAccessProfile) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *ReviewableAccessProfile) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -159,7 +159,7 @@ func (o *ReviewableAccessProfile) SetDescription(v string) { // GetPrivileged returns the Privileged field value if set, zero value otherwise. func (o *ReviewableAccessProfile) GetPrivileged() bool { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { var ret bool return ret } @@ -169,7 +169,7 @@ func (o *ReviewableAccessProfile) GetPrivileged() bool { // GetPrivilegedOk returns a tuple with the Privileged field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableAccessProfile) GetPrivilegedOk() (*bool, bool) { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { return nil, false } return o.Privileged, true @@ -177,7 +177,7 @@ func (o *ReviewableAccessProfile) GetPrivilegedOk() (*bool, bool) { // HasPrivileged returns a boolean if a field has been set. func (o *ReviewableAccessProfile) HasPrivileged() bool { - if o != nil && !isNil(o.Privileged) { + if o != nil && !IsNil(o.Privileged) { return true } @@ -191,7 +191,7 @@ func (o *ReviewableAccessProfile) SetPrivileged(v bool) { // GetCloudGoverned returns the CloudGoverned field value if set, zero value otherwise. func (o *ReviewableAccessProfile) GetCloudGoverned() bool { - if o == nil || isNil(o.CloudGoverned) { + if o == nil || IsNil(o.CloudGoverned) { var ret bool return ret } @@ -201,7 +201,7 @@ func (o *ReviewableAccessProfile) GetCloudGoverned() bool { // GetCloudGovernedOk returns a tuple with the CloudGoverned field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableAccessProfile) GetCloudGovernedOk() (*bool, bool) { - if o == nil || isNil(o.CloudGoverned) { + if o == nil || IsNil(o.CloudGoverned) { return nil, false } return o.CloudGoverned, true @@ -209,7 +209,7 @@ func (o *ReviewableAccessProfile) GetCloudGovernedOk() (*bool, bool) { // HasCloudGoverned returns a boolean if a field has been set. func (o *ReviewableAccessProfile) HasCloudGoverned() bool { - if o != nil && !isNil(o.CloudGoverned) { + if o != nil && !IsNil(o.CloudGoverned) { return true } @@ -223,7 +223,7 @@ func (o *ReviewableAccessProfile) SetCloudGoverned(v bool) { // GetEndDate returns the EndDate field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ReviewableAccessProfile) GetEndDate() time.Time { - if o == nil || isNil(o.EndDate.Get()) { + if o == nil || IsNil(o.EndDate.Get()) { var ret time.Time return ret } @@ -265,7 +265,7 @@ func (o *ReviewableAccessProfile) UnsetEndDate() { // GetOwner returns the Owner field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ReviewableAccessProfile) GetOwner() IdentityReferenceWithNameAndEmail { - if o == nil || isNil(o.Owner.Get()) { + if o == nil || IsNil(o.Owner.Get()) { var ret IdentityReferenceWithNameAndEmail return ret } @@ -307,7 +307,7 @@ func (o *ReviewableAccessProfile) UnsetOwner() { // GetEntitlements returns the Entitlements field value if set, zero value otherwise. func (o *ReviewableAccessProfile) GetEntitlements() []ReviewableEntitlement { - if o == nil || isNil(o.Entitlements) { + if o == nil || IsNil(o.Entitlements) { var ret []ReviewableEntitlement return ret } @@ -317,7 +317,7 @@ func (o *ReviewableAccessProfile) GetEntitlements() []ReviewableEntitlement { // GetEntitlementsOk returns a tuple with the Entitlements field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableAccessProfile) GetEntitlementsOk() ([]ReviewableEntitlement, bool) { - if o == nil || isNil(o.Entitlements) { + if o == nil || IsNil(o.Entitlements) { return nil, false } return o.Entitlements, true @@ -325,7 +325,7 @@ func (o *ReviewableAccessProfile) GetEntitlementsOk() ([]ReviewableEntitlement, // HasEntitlements returns a boolean if a field has been set. func (o *ReviewableAccessProfile) HasEntitlements() bool { - if o != nil && !isNil(o.Entitlements) { + if o != nil && !IsNil(o.Entitlements) { return true } @@ -339,7 +339,7 @@ func (o *ReviewableAccessProfile) SetEntitlements(v []ReviewableEntitlement) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *ReviewableAccessProfile) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -349,7 +349,7 @@ func (o *ReviewableAccessProfile) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableAccessProfile) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -357,7 +357,7 @@ func (o *ReviewableAccessProfile) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *ReviewableAccessProfile) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -371,7 +371,7 @@ func (o *ReviewableAccessProfile) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *ReviewableAccessProfile) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -381,7 +381,7 @@ func (o *ReviewableAccessProfile) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableAccessProfile) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -389,7 +389,7 @@ func (o *ReviewableAccessProfile) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *ReviewableAccessProfile) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -411,19 +411,19 @@ func (o ReviewableAccessProfile) MarshalJSON() ([]byte, error) { func (o ReviewableAccessProfile) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.Privileged) { + if !IsNil(o.Privileged) { toSerialize["privileged"] = o.Privileged } - if !isNil(o.CloudGoverned) { + if !IsNil(o.CloudGoverned) { toSerialize["cloudGoverned"] = o.CloudGoverned } if o.EndDate.IsSet() { @@ -432,13 +432,13 @@ func (o ReviewableAccessProfile) ToMap() (map[string]interface{}, error) { if o.Owner.IsSet() { toSerialize["owner"] = o.Owner.Get() } - if !isNil(o.Entitlements) { + if !IsNil(o.Entitlements) { toSerialize["entitlements"] = o.Entitlements } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } @@ -449,16 +449,20 @@ func (o ReviewableAccessProfile) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ReviewableAccessProfile) UnmarshalJSON(bytes []byte) (err error) { +func (o *ReviewableAccessProfile) UnmarshalJSON(data []byte) (err error) { varReviewableAccessProfile := _ReviewableAccessProfile{} - if err = json.Unmarshal(bytes, &varReviewableAccessProfile); err == nil { + err = json.Unmarshal(data, &varReviewableAccessProfile) + + if err != nil { + return err + } + *o = ReviewableAccessProfile(varReviewableAccessProfile) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/api_v3/model_reviewable_entitlement.go b/api_v3/model_reviewable_entitlement.go index b0758bd43..88cc13b89 100644 --- a/api_v3/model_reviewable_entitlement.go +++ b/api_v3/model_reviewable_entitlement.go @@ -100,7 +100,7 @@ func NewReviewableEntitlementWithDefaults() *ReviewableEntitlement { // GetId returns the Id field value if set, zero value otherwise. func (o *ReviewableEntitlement) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -110,7 +110,7 @@ func (o *ReviewableEntitlement) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlement) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -118,7 +118,7 @@ func (o *ReviewableEntitlement) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ReviewableEntitlement) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -132,7 +132,7 @@ func (o *ReviewableEntitlement) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *ReviewableEntitlement) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -142,7 +142,7 @@ func (o *ReviewableEntitlement) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlement) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -150,7 +150,7 @@ func (o *ReviewableEntitlement) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ReviewableEntitlement) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -164,7 +164,7 @@ func (o *ReviewableEntitlement) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ReviewableEntitlement) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -206,7 +206,7 @@ func (o *ReviewableEntitlement) UnsetDescription() { // GetPrivileged returns the Privileged field value if set, zero value otherwise. func (o *ReviewableEntitlement) GetPrivileged() bool { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { var ret bool return ret } @@ -216,7 +216,7 @@ func (o *ReviewableEntitlement) GetPrivileged() bool { // GetPrivilegedOk returns a tuple with the Privileged field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlement) GetPrivilegedOk() (*bool, bool) { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { return nil, false } return o.Privileged, true @@ -224,7 +224,7 @@ func (o *ReviewableEntitlement) GetPrivilegedOk() (*bool, bool) { // HasPrivileged returns a boolean if a field has been set. func (o *ReviewableEntitlement) HasPrivileged() bool { - if o != nil && !isNil(o.Privileged) { + if o != nil && !IsNil(o.Privileged) { return true } @@ -238,7 +238,7 @@ func (o *ReviewableEntitlement) SetPrivileged(v bool) { // GetOwner returns the Owner field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ReviewableEntitlement) GetOwner() IdentityReferenceWithNameAndEmail { - if o == nil || isNil(o.Owner.Get()) { + if o == nil || IsNil(o.Owner.Get()) { var ret IdentityReferenceWithNameAndEmail return ret } @@ -280,7 +280,7 @@ func (o *ReviewableEntitlement) UnsetOwner() { // GetAttributeName returns the AttributeName field value if set, zero value otherwise. func (o *ReviewableEntitlement) GetAttributeName() string { - if o == nil || isNil(o.AttributeName) { + if o == nil || IsNil(o.AttributeName) { var ret string return ret } @@ -290,7 +290,7 @@ func (o *ReviewableEntitlement) GetAttributeName() string { // GetAttributeNameOk returns a tuple with the AttributeName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlement) GetAttributeNameOk() (*string, bool) { - if o == nil || isNil(o.AttributeName) { + if o == nil || IsNil(o.AttributeName) { return nil, false } return o.AttributeName, true @@ -298,7 +298,7 @@ func (o *ReviewableEntitlement) GetAttributeNameOk() (*string, bool) { // HasAttributeName returns a boolean if a field has been set. func (o *ReviewableEntitlement) HasAttributeName() bool { - if o != nil && !isNil(o.AttributeName) { + if o != nil && !IsNil(o.AttributeName) { return true } @@ -312,7 +312,7 @@ func (o *ReviewableEntitlement) SetAttributeName(v string) { // GetAttributeValue returns the AttributeValue field value if set, zero value otherwise. func (o *ReviewableEntitlement) GetAttributeValue() string { - if o == nil || isNil(o.AttributeValue) { + if o == nil || IsNil(o.AttributeValue) { var ret string return ret } @@ -322,7 +322,7 @@ func (o *ReviewableEntitlement) GetAttributeValue() string { // GetAttributeValueOk returns a tuple with the AttributeValue field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlement) GetAttributeValueOk() (*string, bool) { - if o == nil || isNil(o.AttributeValue) { + if o == nil || IsNil(o.AttributeValue) { return nil, false } return o.AttributeValue, true @@ -330,7 +330,7 @@ func (o *ReviewableEntitlement) GetAttributeValueOk() (*string, bool) { // HasAttributeValue returns a boolean if a field has been set. func (o *ReviewableEntitlement) HasAttributeValue() bool { - if o != nil && !isNil(o.AttributeValue) { + if o != nil && !IsNil(o.AttributeValue) { return true } @@ -344,7 +344,7 @@ func (o *ReviewableEntitlement) SetAttributeValue(v string) { // GetSourceSchemaObjectType returns the SourceSchemaObjectType field value if set, zero value otherwise. func (o *ReviewableEntitlement) GetSourceSchemaObjectType() string { - if o == nil || isNil(o.SourceSchemaObjectType) { + if o == nil || IsNil(o.SourceSchemaObjectType) { var ret string return ret } @@ -354,7 +354,7 @@ func (o *ReviewableEntitlement) GetSourceSchemaObjectType() string { // GetSourceSchemaObjectTypeOk returns a tuple with the SourceSchemaObjectType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlement) GetSourceSchemaObjectTypeOk() (*string, bool) { - if o == nil || isNil(o.SourceSchemaObjectType) { + if o == nil || IsNil(o.SourceSchemaObjectType) { return nil, false } return o.SourceSchemaObjectType, true @@ -362,7 +362,7 @@ func (o *ReviewableEntitlement) GetSourceSchemaObjectTypeOk() (*string, bool) { // HasSourceSchemaObjectType returns a boolean if a field has been set. func (o *ReviewableEntitlement) HasSourceSchemaObjectType() bool { - if o != nil && !isNil(o.SourceSchemaObjectType) { + if o != nil && !IsNil(o.SourceSchemaObjectType) { return true } @@ -376,7 +376,7 @@ func (o *ReviewableEntitlement) SetSourceSchemaObjectType(v string) { // GetSourceName returns the SourceName field value if set, zero value otherwise. func (o *ReviewableEntitlement) GetSourceName() string { - if o == nil || isNil(o.SourceName) { + if o == nil || IsNil(o.SourceName) { var ret string return ret } @@ -386,7 +386,7 @@ func (o *ReviewableEntitlement) GetSourceName() string { // GetSourceNameOk returns a tuple with the SourceName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlement) GetSourceNameOk() (*string, bool) { - if o == nil || isNil(o.SourceName) { + if o == nil || IsNil(o.SourceName) { return nil, false } return o.SourceName, true @@ -394,7 +394,7 @@ func (o *ReviewableEntitlement) GetSourceNameOk() (*string, bool) { // HasSourceName returns a boolean if a field has been set. func (o *ReviewableEntitlement) HasSourceName() bool { - if o != nil && !isNil(o.SourceName) { + if o != nil && !IsNil(o.SourceName) { return true } @@ -408,7 +408,7 @@ func (o *ReviewableEntitlement) SetSourceName(v string) { // GetSourceType returns the SourceType field value if set, zero value otherwise. func (o *ReviewableEntitlement) GetSourceType() string { - if o == nil || isNil(o.SourceType) { + if o == nil || IsNil(o.SourceType) { var ret string return ret } @@ -418,7 +418,7 @@ func (o *ReviewableEntitlement) GetSourceType() string { // GetSourceTypeOk returns a tuple with the SourceType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlement) GetSourceTypeOk() (*string, bool) { - if o == nil || isNil(o.SourceType) { + if o == nil || IsNil(o.SourceType) { return nil, false } return o.SourceType, true @@ -426,7 +426,7 @@ func (o *ReviewableEntitlement) GetSourceTypeOk() (*string, bool) { // HasSourceType returns a boolean if a field has been set. func (o *ReviewableEntitlement) HasSourceType() bool { - if o != nil && !isNil(o.SourceType) { + if o != nil && !IsNil(o.SourceType) { return true } @@ -440,7 +440,7 @@ func (o *ReviewableEntitlement) SetSourceType(v string) { // GetSourceId returns the SourceId field value if set, zero value otherwise. func (o *ReviewableEntitlement) GetSourceId() string { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { var ret string return ret } @@ -450,7 +450,7 @@ func (o *ReviewableEntitlement) GetSourceId() string { // GetSourceIdOk returns a tuple with the SourceId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlement) GetSourceIdOk() (*string, bool) { - if o == nil || isNil(o.SourceId) { + if o == nil || IsNil(o.SourceId) { return nil, false } return o.SourceId, true @@ -458,7 +458,7 @@ func (o *ReviewableEntitlement) GetSourceIdOk() (*string, bool) { // HasSourceId returns a boolean if a field has been set. func (o *ReviewableEntitlement) HasSourceId() bool { - if o != nil && !isNil(o.SourceId) { + if o != nil && !IsNil(o.SourceId) { return true } @@ -472,7 +472,7 @@ func (o *ReviewableEntitlement) SetSourceId(v string) { // GetHasPermissions returns the HasPermissions field value if set, zero value otherwise. func (o *ReviewableEntitlement) GetHasPermissions() bool { - if o == nil || isNil(o.HasPermissions) { + if o == nil || IsNil(o.HasPermissions) { var ret bool return ret } @@ -482,7 +482,7 @@ func (o *ReviewableEntitlement) GetHasPermissions() bool { // GetHasPermissionsOk returns a tuple with the HasPermissions field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlement) GetHasPermissionsOk() (*bool, bool) { - if o == nil || isNil(o.HasPermissions) { + if o == nil || IsNil(o.HasPermissions) { return nil, false } return o.HasPermissions, true @@ -490,7 +490,7 @@ func (o *ReviewableEntitlement) GetHasPermissionsOk() (*bool, bool) { // HasHasPermissions returns a boolean if a field has been set. func (o *ReviewableEntitlement) HasHasPermissions() bool { - if o != nil && !isNil(o.HasPermissions) { + if o != nil && !IsNil(o.HasPermissions) { return true } @@ -504,7 +504,7 @@ func (o *ReviewableEntitlement) SetHasPermissions(v bool) { // GetIsPermission returns the IsPermission field value if set, zero value otherwise. func (o *ReviewableEntitlement) GetIsPermission() bool { - if o == nil || isNil(o.IsPermission) { + if o == nil || IsNil(o.IsPermission) { var ret bool return ret } @@ -514,7 +514,7 @@ func (o *ReviewableEntitlement) GetIsPermission() bool { // GetIsPermissionOk returns a tuple with the IsPermission field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlement) GetIsPermissionOk() (*bool, bool) { - if o == nil || isNil(o.IsPermission) { + if o == nil || IsNil(o.IsPermission) { return nil, false } return o.IsPermission, true @@ -522,7 +522,7 @@ func (o *ReviewableEntitlement) GetIsPermissionOk() (*bool, bool) { // HasIsPermission returns a boolean if a field has been set. func (o *ReviewableEntitlement) HasIsPermission() bool { - if o != nil && !isNil(o.IsPermission) { + if o != nil && !IsNil(o.IsPermission) { return true } @@ -536,7 +536,7 @@ func (o *ReviewableEntitlement) SetIsPermission(v bool) { // GetRevocable returns the Revocable field value if set, zero value otherwise. func (o *ReviewableEntitlement) GetRevocable() bool { - if o == nil || isNil(o.Revocable) { + if o == nil || IsNil(o.Revocable) { var ret bool return ret } @@ -546,7 +546,7 @@ func (o *ReviewableEntitlement) GetRevocable() bool { // GetRevocableOk returns a tuple with the Revocable field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlement) GetRevocableOk() (*bool, bool) { - if o == nil || isNil(o.Revocable) { + if o == nil || IsNil(o.Revocable) { return nil, false } return o.Revocable, true @@ -554,7 +554,7 @@ func (o *ReviewableEntitlement) GetRevocableOk() (*bool, bool) { // HasRevocable returns a boolean if a field has been set. func (o *ReviewableEntitlement) HasRevocable() bool { - if o != nil && !isNil(o.Revocable) { + if o != nil && !IsNil(o.Revocable) { return true } @@ -568,7 +568,7 @@ func (o *ReviewableEntitlement) SetRevocable(v bool) { // GetCloudGoverned returns the CloudGoverned field value if set, zero value otherwise. func (o *ReviewableEntitlement) GetCloudGoverned() bool { - if o == nil || isNil(o.CloudGoverned) { + if o == nil || IsNil(o.CloudGoverned) { var ret bool return ret } @@ -578,7 +578,7 @@ func (o *ReviewableEntitlement) GetCloudGoverned() bool { // GetCloudGovernedOk returns a tuple with the CloudGoverned field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlement) GetCloudGovernedOk() (*bool, bool) { - if o == nil || isNil(o.CloudGoverned) { + if o == nil || IsNil(o.CloudGoverned) { return nil, false } return o.CloudGoverned, true @@ -586,7 +586,7 @@ func (o *ReviewableEntitlement) GetCloudGovernedOk() (*bool, bool) { // HasCloudGoverned returns a boolean if a field has been set. func (o *ReviewableEntitlement) HasCloudGoverned() bool { - if o != nil && !isNil(o.CloudGoverned) { + if o != nil && !IsNil(o.CloudGoverned) { return true } @@ -600,7 +600,7 @@ func (o *ReviewableEntitlement) SetCloudGoverned(v bool) { // GetContainsDataAccess returns the ContainsDataAccess field value if set, zero value otherwise. func (o *ReviewableEntitlement) GetContainsDataAccess() bool { - if o == nil || isNil(o.ContainsDataAccess) { + if o == nil || IsNil(o.ContainsDataAccess) { var ret bool return ret } @@ -610,7 +610,7 @@ func (o *ReviewableEntitlement) GetContainsDataAccess() bool { // GetContainsDataAccessOk returns a tuple with the ContainsDataAccess field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlement) GetContainsDataAccessOk() (*bool, bool) { - if o == nil || isNil(o.ContainsDataAccess) { + if o == nil || IsNil(o.ContainsDataAccess) { return nil, false } return o.ContainsDataAccess, true @@ -618,7 +618,7 @@ func (o *ReviewableEntitlement) GetContainsDataAccessOk() (*bool, bool) { // HasContainsDataAccess returns a boolean if a field has been set. func (o *ReviewableEntitlement) HasContainsDataAccess() bool { - if o != nil && !isNil(o.ContainsDataAccess) { + if o != nil && !IsNil(o.ContainsDataAccess) { return true } @@ -632,7 +632,7 @@ func (o *ReviewableEntitlement) SetContainsDataAccess(v bool) { // GetDataAccess returns the DataAccess field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ReviewableEntitlement) GetDataAccess() DataAccess { - if o == nil || isNil(o.DataAccess.Get()) { + if o == nil || IsNil(o.DataAccess.Get()) { var ret DataAccess return ret } @@ -674,7 +674,7 @@ func (o *ReviewableEntitlement) UnsetDataAccess() { // GetAccount returns the Account field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ReviewableEntitlement) GetAccount() ReviewableEntitlementAccount { - if o == nil || isNil(o.Account.Get()) { + if o == nil || IsNil(o.Account.Get()) { var ret ReviewableEntitlementAccount return ret } @@ -724,52 +724,52 @@ func (o ReviewableEntitlement) MarshalJSON() ([]byte, error) { func (o ReviewableEntitlement) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } if o.Description.IsSet() { toSerialize["description"] = o.Description.Get() } - if !isNil(o.Privileged) { + if !IsNil(o.Privileged) { toSerialize["privileged"] = o.Privileged } if o.Owner.IsSet() { toSerialize["owner"] = o.Owner.Get() } - if !isNil(o.AttributeName) { + if !IsNil(o.AttributeName) { toSerialize["attributeName"] = o.AttributeName } - if !isNil(o.AttributeValue) { + if !IsNil(o.AttributeValue) { toSerialize["attributeValue"] = o.AttributeValue } - if !isNil(o.SourceSchemaObjectType) { + if !IsNil(o.SourceSchemaObjectType) { toSerialize["sourceSchemaObjectType"] = o.SourceSchemaObjectType } - if !isNil(o.SourceName) { + if !IsNil(o.SourceName) { toSerialize["sourceName"] = o.SourceName } - if !isNil(o.SourceType) { + if !IsNil(o.SourceType) { toSerialize["sourceType"] = o.SourceType } - if !isNil(o.SourceId) { + if !IsNil(o.SourceId) { toSerialize["sourceId"] = o.SourceId } - if !isNil(o.HasPermissions) { + if !IsNil(o.HasPermissions) { toSerialize["hasPermissions"] = o.HasPermissions } - if !isNil(o.IsPermission) { + if !IsNil(o.IsPermission) { toSerialize["isPermission"] = o.IsPermission } - if !isNil(o.Revocable) { + if !IsNil(o.Revocable) { toSerialize["revocable"] = o.Revocable } - if !isNil(o.CloudGoverned) { + if !IsNil(o.CloudGoverned) { toSerialize["cloudGoverned"] = o.CloudGoverned } - if !isNil(o.ContainsDataAccess) { + if !IsNil(o.ContainsDataAccess) { toSerialize["containsDataAccess"] = o.ContainsDataAccess } if o.DataAccess.IsSet() { @@ -786,16 +786,20 @@ func (o ReviewableEntitlement) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ReviewableEntitlement) UnmarshalJSON(bytes []byte) (err error) { +func (o *ReviewableEntitlement) UnmarshalJSON(data []byte) (err error) { varReviewableEntitlement := _ReviewableEntitlement{} - if err = json.Unmarshal(bytes, &varReviewableEntitlement); err == nil { + err = json.Unmarshal(data, &varReviewableEntitlement) + + if err != nil { + return err + } + *o = ReviewableEntitlement(varReviewableEntitlement) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/api_v3/model_reviewable_entitlement_account.go b/api_v3/model_reviewable_entitlement_account.go index dbcf16061..a2888c5df 100644 --- a/api_v3/model_reviewable_entitlement_account.go +++ b/api_v3/model_reviewable_entitlement_account.go @@ -68,7 +68,7 @@ func NewReviewableEntitlementAccountWithDefaults() *ReviewableEntitlementAccount // GetNativeIdentity returns the NativeIdentity field value if set, zero value otherwise. func (o *ReviewableEntitlementAccount) GetNativeIdentity() string { - if o == nil || isNil(o.NativeIdentity) { + if o == nil || IsNil(o.NativeIdentity) { var ret string return ret } @@ -78,7 +78,7 @@ func (o *ReviewableEntitlementAccount) GetNativeIdentity() string { // GetNativeIdentityOk returns a tuple with the NativeIdentity field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlementAccount) GetNativeIdentityOk() (*string, bool) { - if o == nil || isNil(o.NativeIdentity) { + if o == nil || IsNil(o.NativeIdentity) { return nil, false } return o.NativeIdentity, true @@ -86,7 +86,7 @@ func (o *ReviewableEntitlementAccount) GetNativeIdentityOk() (*string, bool) { // HasNativeIdentity returns a boolean if a field has been set. func (o *ReviewableEntitlementAccount) HasNativeIdentity() bool { - if o != nil && !isNil(o.NativeIdentity) { + if o != nil && !IsNil(o.NativeIdentity) { return true } @@ -100,7 +100,7 @@ func (o *ReviewableEntitlementAccount) SetNativeIdentity(v string) { // GetDisabled returns the Disabled field value if set, zero value otherwise. func (o *ReviewableEntitlementAccount) GetDisabled() bool { - if o == nil || isNil(o.Disabled) { + if o == nil || IsNil(o.Disabled) { var ret bool return ret } @@ -110,7 +110,7 @@ func (o *ReviewableEntitlementAccount) GetDisabled() bool { // GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlementAccount) GetDisabledOk() (*bool, bool) { - if o == nil || isNil(o.Disabled) { + if o == nil || IsNil(o.Disabled) { return nil, false } return o.Disabled, true @@ -118,7 +118,7 @@ func (o *ReviewableEntitlementAccount) GetDisabledOk() (*bool, bool) { // HasDisabled returns a boolean if a field has been set. func (o *ReviewableEntitlementAccount) HasDisabled() bool { - if o != nil && !isNil(o.Disabled) { + if o != nil && !IsNil(o.Disabled) { return true } @@ -132,7 +132,7 @@ func (o *ReviewableEntitlementAccount) SetDisabled(v bool) { // GetLocked returns the Locked field value if set, zero value otherwise. func (o *ReviewableEntitlementAccount) GetLocked() bool { - if o == nil || isNil(o.Locked) { + if o == nil || IsNil(o.Locked) { var ret bool return ret } @@ -142,7 +142,7 @@ func (o *ReviewableEntitlementAccount) GetLocked() bool { // GetLockedOk returns a tuple with the Locked field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlementAccount) GetLockedOk() (*bool, bool) { - if o == nil || isNil(o.Locked) { + if o == nil || IsNil(o.Locked) { return nil, false } return o.Locked, true @@ -150,7 +150,7 @@ func (o *ReviewableEntitlementAccount) GetLockedOk() (*bool, bool) { // HasLocked returns a boolean if a field has been set. func (o *ReviewableEntitlementAccount) HasLocked() bool { - if o != nil && !isNil(o.Locked) { + if o != nil && !IsNil(o.Locked) { return true } @@ -164,7 +164,7 @@ func (o *ReviewableEntitlementAccount) SetLocked(v bool) { // GetType returns the Type field value if set, zero value otherwise. func (o *ReviewableEntitlementAccount) GetType() DtoType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret DtoType return ret } @@ -174,7 +174,7 @@ func (o *ReviewableEntitlementAccount) GetType() DtoType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlementAccount) GetTypeOk() (*DtoType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -182,7 +182,7 @@ func (o *ReviewableEntitlementAccount) GetTypeOk() (*DtoType, bool) { // HasType returns a boolean if a field has been set. func (o *ReviewableEntitlementAccount) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -196,7 +196,7 @@ func (o *ReviewableEntitlementAccount) SetType(v DtoType) { // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ReviewableEntitlementAccount) GetId() string { - if o == nil || isNil(o.Id.Get()) { + if o == nil || IsNil(o.Id.Get()) { var ret string return ret } @@ -238,7 +238,7 @@ func (o *ReviewableEntitlementAccount) UnsetId() { // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ReviewableEntitlementAccount) GetName() string { - if o == nil || isNil(o.Name.Get()) { + if o == nil || IsNil(o.Name.Get()) { var ret string return ret } @@ -280,7 +280,7 @@ func (o *ReviewableEntitlementAccount) UnsetName() { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ReviewableEntitlementAccount) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -322,7 +322,7 @@ func (o *ReviewableEntitlementAccount) UnsetCreated() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ReviewableEntitlementAccount) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -364,7 +364,7 @@ func (o *ReviewableEntitlementAccount) UnsetModified() { // GetActivityInsights returns the ActivityInsights field value if set, zero value otherwise. func (o *ReviewableEntitlementAccount) GetActivityInsights() ActivityInsights { - if o == nil || isNil(o.ActivityInsights) { + if o == nil || IsNil(o.ActivityInsights) { var ret ActivityInsights return ret } @@ -374,7 +374,7 @@ func (o *ReviewableEntitlementAccount) GetActivityInsights() ActivityInsights { // GetActivityInsightsOk returns a tuple with the ActivityInsights field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableEntitlementAccount) GetActivityInsightsOk() (*ActivityInsights, bool) { - if o == nil || isNil(o.ActivityInsights) { + if o == nil || IsNil(o.ActivityInsights) { return nil, false } return o.ActivityInsights, true @@ -382,7 +382,7 @@ func (o *ReviewableEntitlementAccount) GetActivityInsightsOk() (*ActivityInsight // HasActivityInsights returns a boolean if a field has been set. func (o *ReviewableEntitlementAccount) HasActivityInsights() bool { - if o != nil && !isNil(o.ActivityInsights) { + if o != nil && !IsNil(o.ActivityInsights) { return true } @@ -404,16 +404,16 @@ func (o ReviewableEntitlementAccount) MarshalJSON() ([]byte, error) { func (o ReviewableEntitlementAccount) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.NativeIdentity) { + if !IsNil(o.NativeIdentity) { toSerialize["nativeIdentity"] = o.NativeIdentity } - if !isNil(o.Disabled) { + if !IsNil(o.Disabled) { toSerialize["disabled"] = o.Disabled } - if !isNil(o.Locked) { + if !IsNil(o.Locked) { toSerialize["locked"] = o.Locked } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } if o.Id.IsSet() { @@ -428,7 +428,7 @@ func (o ReviewableEntitlementAccount) ToMap() (map[string]interface{}, error) { if o.Modified.IsSet() { toSerialize["modified"] = o.Modified.Get() } - if !isNil(o.ActivityInsights) { + if !IsNil(o.ActivityInsights) { toSerialize["activityInsights"] = o.ActivityInsights } @@ -439,16 +439,20 @@ func (o ReviewableEntitlementAccount) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ReviewableEntitlementAccount) UnmarshalJSON(bytes []byte) (err error) { +func (o *ReviewableEntitlementAccount) UnmarshalJSON(data []byte) (err error) { varReviewableEntitlementAccount := _ReviewableEntitlementAccount{} - if err = json.Unmarshal(bytes, &varReviewableEntitlementAccount); err == nil { + err = json.Unmarshal(data, &varReviewableEntitlementAccount) + + if err != nil { + return err + } + *o = ReviewableEntitlementAccount(varReviewableEntitlementAccount) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "nativeIdentity") delete(additionalProperties, "disabled") delete(additionalProperties, "locked") diff --git a/api_v3/model_reviewable_role.go b/api_v3/model_reviewable_role.go index 8b2b843ec..c45676c73 100644 --- a/api_v3/model_reviewable_role.go +++ b/api_v3/model_reviewable_role.go @@ -61,7 +61,7 @@ func NewReviewableRoleWithDefaults() *ReviewableRole { // GetId returns the Id field value if set, zero value otherwise. func (o *ReviewableRole) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -71,7 +71,7 @@ func (o *ReviewableRole) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableRole) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -79,7 +79,7 @@ func (o *ReviewableRole) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ReviewableRole) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -93,7 +93,7 @@ func (o *ReviewableRole) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *ReviewableRole) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -103,7 +103,7 @@ func (o *ReviewableRole) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableRole) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -111,7 +111,7 @@ func (o *ReviewableRole) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ReviewableRole) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -125,7 +125,7 @@ func (o *ReviewableRole) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *ReviewableRole) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -135,7 +135,7 @@ func (o *ReviewableRole) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableRole) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -143,7 +143,7 @@ func (o *ReviewableRole) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *ReviewableRole) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -157,7 +157,7 @@ func (o *ReviewableRole) SetDescription(v string) { // GetPrivileged returns the Privileged field value if set, zero value otherwise. func (o *ReviewableRole) GetPrivileged() bool { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { var ret bool return ret } @@ -167,7 +167,7 @@ func (o *ReviewableRole) GetPrivileged() bool { // GetPrivilegedOk returns a tuple with the Privileged field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableRole) GetPrivilegedOk() (*bool, bool) { - if o == nil || isNil(o.Privileged) { + if o == nil || IsNil(o.Privileged) { return nil, false } return o.Privileged, true @@ -175,7 +175,7 @@ func (o *ReviewableRole) GetPrivilegedOk() (*bool, bool) { // HasPrivileged returns a boolean if a field has been set. func (o *ReviewableRole) HasPrivileged() bool { - if o != nil && !isNil(o.Privileged) { + if o != nil && !IsNil(o.Privileged) { return true } @@ -189,7 +189,7 @@ func (o *ReviewableRole) SetPrivileged(v bool) { // GetOwner returns the Owner field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ReviewableRole) GetOwner() IdentityReferenceWithNameAndEmail { - if o == nil || isNil(o.Owner.Get()) { + if o == nil || IsNil(o.Owner.Get()) { var ret IdentityReferenceWithNameAndEmail return ret } @@ -231,7 +231,7 @@ func (o *ReviewableRole) UnsetOwner() { // GetRevocable returns the Revocable field value if set, zero value otherwise. func (o *ReviewableRole) GetRevocable() bool { - if o == nil || isNil(o.Revocable) { + if o == nil || IsNil(o.Revocable) { var ret bool return ret } @@ -241,7 +241,7 @@ func (o *ReviewableRole) GetRevocable() bool { // GetRevocableOk returns a tuple with the Revocable field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableRole) GetRevocableOk() (*bool, bool) { - if o == nil || isNil(o.Revocable) { + if o == nil || IsNil(o.Revocable) { return nil, false } return o.Revocable, true @@ -249,7 +249,7 @@ func (o *ReviewableRole) GetRevocableOk() (*bool, bool) { // HasRevocable returns a boolean if a field has been set. func (o *ReviewableRole) HasRevocable() bool { - if o != nil && !isNil(o.Revocable) { + if o != nil && !IsNil(o.Revocable) { return true } @@ -263,7 +263,7 @@ func (o *ReviewableRole) SetRevocable(v bool) { // GetEndDate returns the EndDate field value if set, zero value otherwise. func (o *ReviewableRole) GetEndDate() time.Time { - if o == nil || isNil(o.EndDate) { + if o == nil || IsNil(o.EndDate) { var ret time.Time return ret } @@ -273,7 +273,7 @@ func (o *ReviewableRole) GetEndDate() time.Time { // GetEndDateOk returns a tuple with the EndDate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableRole) GetEndDateOk() (*time.Time, bool) { - if o == nil || isNil(o.EndDate) { + if o == nil || IsNil(o.EndDate) { return nil, false } return o.EndDate, true @@ -281,7 +281,7 @@ func (o *ReviewableRole) GetEndDateOk() (*time.Time, bool) { // HasEndDate returns a boolean if a field has been set. func (o *ReviewableRole) HasEndDate() bool { - if o != nil && !isNil(o.EndDate) { + if o != nil && !IsNil(o.EndDate) { return true } @@ -295,7 +295,7 @@ func (o *ReviewableRole) SetEndDate(v time.Time) { // GetAccessProfiles returns the AccessProfiles field value if set, zero value otherwise. func (o *ReviewableRole) GetAccessProfiles() []ReviewableAccessProfile { - if o == nil || isNil(o.AccessProfiles) { + if o == nil || IsNil(o.AccessProfiles) { var ret []ReviewableAccessProfile return ret } @@ -305,7 +305,7 @@ func (o *ReviewableRole) GetAccessProfiles() []ReviewableAccessProfile { // GetAccessProfilesOk returns a tuple with the AccessProfiles field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableRole) GetAccessProfilesOk() ([]ReviewableAccessProfile, bool) { - if o == nil || isNil(o.AccessProfiles) { + if o == nil || IsNil(o.AccessProfiles) { return nil, false } return o.AccessProfiles, true @@ -313,7 +313,7 @@ func (o *ReviewableRole) GetAccessProfilesOk() ([]ReviewableAccessProfile, bool) // HasAccessProfiles returns a boolean if a field has been set. func (o *ReviewableRole) HasAccessProfiles() bool { - if o != nil && !isNil(o.AccessProfiles) { + if o != nil && !IsNil(o.AccessProfiles) { return true } @@ -327,7 +327,7 @@ func (o *ReviewableRole) SetAccessProfiles(v []ReviewableAccessProfile) { // GetEntitlements returns the Entitlements field value if set, zero value otherwise. func (o *ReviewableRole) GetEntitlements() []ReviewableEntitlement { - if o == nil || isNil(o.Entitlements) { + if o == nil || IsNil(o.Entitlements) { var ret []ReviewableEntitlement return ret } @@ -337,7 +337,7 @@ func (o *ReviewableRole) GetEntitlements() []ReviewableEntitlement { // GetEntitlementsOk returns a tuple with the Entitlements field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ReviewableRole) GetEntitlementsOk() ([]ReviewableEntitlement, bool) { - if o == nil || isNil(o.Entitlements) { + if o == nil || IsNil(o.Entitlements) { return nil, false } return o.Entitlements, true @@ -345,7 +345,7 @@ func (o *ReviewableRole) GetEntitlementsOk() ([]ReviewableEntitlement, bool) { // HasEntitlements returns a boolean if a field has been set. func (o *ReviewableRole) HasEntitlements() bool { - if o != nil && !isNil(o.Entitlements) { + if o != nil && !IsNil(o.Entitlements) { return true } @@ -367,31 +367,31 @@ func (o ReviewableRole) MarshalJSON() ([]byte, error) { func (o ReviewableRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.Privileged) { + if !IsNil(o.Privileged) { toSerialize["privileged"] = o.Privileged } if o.Owner.IsSet() { toSerialize["owner"] = o.Owner.Get() } - if !isNil(o.Revocable) { + if !IsNil(o.Revocable) { toSerialize["revocable"] = o.Revocable } - if !isNil(o.EndDate) { + if !IsNil(o.EndDate) { toSerialize["endDate"] = o.EndDate } - if !isNil(o.AccessProfiles) { + if !IsNil(o.AccessProfiles) { toSerialize["accessProfiles"] = o.AccessProfiles } - if !isNil(o.Entitlements) { + if !IsNil(o.Entitlements) { toSerialize["entitlements"] = o.Entitlements } @@ -402,16 +402,20 @@ func (o ReviewableRole) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ReviewableRole) UnmarshalJSON(bytes []byte) (err error) { +func (o *ReviewableRole) UnmarshalJSON(data []byte) (err error) { varReviewableRole := _ReviewableRole{} - if err = json.Unmarshal(bytes, &varReviewableRole); err == nil { + err = json.Unmarshal(data, &varReviewableRole) + + if err != nil { + return err + } + *o = ReviewableRole(varReviewableRole) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/api_v3/model_reviewer.go b/api_v3/model_reviewer.go index c32e04428..d761e0533 100644 --- a/api_v3/model_reviewer.go +++ b/api_v3/model_reviewer.go @@ -56,7 +56,7 @@ func NewReviewerWithDefaults() *Reviewer { // GetId returns the Id field value if set, zero value otherwise. func (o *Reviewer) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -66,7 +66,7 @@ func (o *Reviewer) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Reviewer) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -74,7 +74,7 @@ func (o *Reviewer) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Reviewer) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -88,7 +88,7 @@ func (o *Reviewer) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *Reviewer) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -98,7 +98,7 @@ func (o *Reviewer) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Reviewer) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -106,7 +106,7 @@ func (o *Reviewer) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *Reviewer) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -120,7 +120,7 @@ func (o *Reviewer) SetName(v string) { // GetEmail returns the Email field value if set, zero value otherwise. func (o *Reviewer) GetEmail() string { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { var ret string return ret } @@ -130,7 +130,7 @@ func (o *Reviewer) GetEmail() string { // GetEmailOk returns a tuple with the Email field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Reviewer) GetEmailOk() (*string, bool) { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { return nil, false } return o.Email, true @@ -138,7 +138,7 @@ func (o *Reviewer) GetEmailOk() (*string, bool) { // HasEmail returns a boolean if a field has been set. func (o *Reviewer) HasEmail() bool { - if o != nil && !isNil(o.Email) { + if o != nil && !IsNil(o.Email) { return true } @@ -152,7 +152,7 @@ func (o *Reviewer) SetEmail(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *Reviewer) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -162,7 +162,7 @@ func (o *Reviewer) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Reviewer) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -170,7 +170,7 @@ func (o *Reviewer) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *Reviewer) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -184,7 +184,7 @@ func (o *Reviewer) SetType(v string) { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Reviewer) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -226,7 +226,7 @@ func (o *Reviewer) UnsetCreated() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Reviewer) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -276,16 +276,16 @@ func (o Reviewer) MarshalJSON() ([]byte, error) { func (o Reviewer) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Email) { + if !IsNil(o.Email) { toSerialize["email"] = o.Email } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } if o.Created.IsSet() { @@ -302,16 +302,20 @@ func (o Reviewer) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Reviewer) UnmarshalJSON(bytes []byte) (err error) { +func (o *Reviewer) UnmarshalJSON(data []byte) (err error) { varReviewer := _Reviewer{} - if err = json.Unmarshal(bytes, &varReviewer); err == nil { + err = json.Unmarshal(data, &varReviewer) + + if err != nil { + return err + } + *o = Reviewer(varReviewer) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "email") diff --git a/api_v3/model_revocability.go b/api_v3/model_revocability.go index 24dafa1c0..e86f31a41 100644 --- a/api_v3/model_revocability.go +++ b/api_v3/model_revocability.go @@ -56,7 +56,7 @@ func (o *Revocability) GetApprovalSchemes() []AccessProfileApprovalScheme { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Revocability) GetApprovalSchemesOk() ([]AccessProfileApprovalScheme, bool) { - if o == nil || isNil(o.ApprovalSchemes) { + if o == nil || IsNil(o.ApprovalSchemes) { return nil, false } return o.ApprovalSchemes, true @@ -64,7 +64,7 @@ func (o *Revocability) GetApprovalSchemesOk() ([]AccessProfileApprovalScheme, bo // HasApprovalSchemes returns a boolean if a field has been set. func (o *Revocability) HasApprovalSchemes() bool { - if o != nil && isNil(o.ApprovalSchemes) { + if o != nil && !IsNil(o.ApprovalSchemes) { return true } @@ -97,16 +97,20 @@ func (o Revocability) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Revocability) UnmarshalJSON(bytes []byte) (err error) { +func (o *Revocability) UnmarshalJSON(data []byte) (err error) { varRevocability := _Revocability{} - if err = json.Unmarshal(bytes, &varRevocability); err == nil { + err = json.Unmarshal(data, &varRevocability) + + if err != nil { + return err + } + *o = Revocability(varRevocability) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "approvalSchemes") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_revocability_for_role.go b/api_v3/model_revocability_for_role.go index d6ee50005..8a411462a 100644 --- a/api_v3/model_revocability_for_role.go +++ b/api_v3/model_revocability_for_role.go @@ -57,7 +57,7 @@ func NewRevocabilityForRoleWithDefaults() *RevocabilityForRole { // GetCommentsRequired returns the CommentsRequired field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RevocabilityForRole) GetCommentsRequired() bool { - if o == nil || isNil(o.CommentsRequired.Get()) { + if o == nil || IsNil(o.CommentsRequired.Get()) { var ret bool return ret } @@ -99,7 +99,7 @@ func (o *RevocabilityForRole) UnsetCommentsRequired() { // GetDenialCommentsRequired returns the DenialCommentsRequired field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RevocabilityForRole) GetDenialCommentsRequired() bool { - if o == nil || isNil(o.DenialCommentsRequired.Get()) { + if o == nil || IsNil(o.DenialCommentsRequired.Get()) { var ret bool return ret } @@ -141,7 +141,7 @@ func (o *RevocabilityForRole) UnsetDenialCommentsRequired() { // GetApprovalSchemes returns the ApprovalSchemes field value if set, zero value otherwise. func (o *RevocabilityForRole) GetApprovalSchemes() []ApprovalSchemeForRole { - if o == nil || isNil(o.ApprovalSchemes) { + if o == nil || IsNil(o.ApprovalSchemes) { var ret []ApprovalSchemeForRole return ret } @@ -151,7 +151,7 @@ func (o *RevocabilityForRole) GetApprovalSchemes() []ApprovalSchemeForRole { // GetApprovalSchemesOk returns a tuple with the ApprovalSchemes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RevocabilityForRole) GetApprovalSchemesOk() ([]ApprovalSchemeForRole, bool) { - if o == nil || isNil(o.ApprovalSchemes) { + if o == nil || IsNil(o.ApprovalSchemes) { return nil, false } return o.ApprovalSchemes, true @@ -159,7 +159,7 @@ func (o *RevocabilityForRole) GetApprovalSchemesOk() ([]ApprovalSchemeForRole, b // HasApprovalSchemes returns a boolean if a field has been set. func (o *RevocabilityForRole) HasApprovalSchemes() bool { - if o != nil && !isNil(o.ApprovalSchemes) { + if o != nil && !IsNil(o.ApprovalSchemes) { return true } @@ -187,7 +187,7 @@ func (o RevocabilityForRole) ToMap() (map[string]interface{}, error) { if o.DenialCommentsRequired.IsSet() { toSerialize["denialCommentsRequired"] = o.DenialCommentsRequired.Get() } - if !isNil(o.ApprovalSchemes) { + if !IsNil(o.ApprovalSchemes) { toSerialize["approvalSchemes"] = o.ApprovalSchemes } @@ -198,16 +198,20 @@ func (o RevocabilityForRole) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RevocabilityForRole) UnmarshalJSON(bytes []byte) (err error) { +func (o *RevocabilityForRole) UnmarshalJSON(data []byte) (err error) { varRevocabilityForRole := _RevocabilityForRole{} - if err = json.Unmarshal(bytes, &varRevocabilityForRole); err == nil { + err = json.Unmarshal(data, &varRevocabilityForRole) + + if err != nil { + return err + } + *o = RevocabilityForRole(varRevocabilityForRole) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "commentsRequired") delete(additionalProperties, "denialCommentsRequired") delete(additionalProperties, "approvalSchemes") diff --git a/api_v3/model_role.go b/api_v3/model_role.go index d97b7ac33..3de939328 100644 --- a/api_v3/model_role.go +++ b/api_v3/model_role.go @@ -81,7 +81,7 @@ func NewRoleWithDefaults() *Role { // GetId returns the Id field value if set, zero value otherwise. func (o *Role) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *Role) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Role) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *Role) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Role) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -137,7 +137,7 @@ func (o *Role) SetName(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *Role) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -147,7 +147,7 @@ func (o *Role) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Role) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -155,7 +155,7 @@ func (o *Role) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *Role) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -169,7 +169,7 @@ func (o *Role) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *Role) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -179,7 +179,7 @@ func (o *Role) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Role) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -187,7 +187,7 @@ func (o *Role) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *Role) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -201,7 +201,7 @@ func (o *Role) SetModified(v time.Time) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Role) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -278,7 +278,7 @@ func (o *Role) GetAccessProfiles() []AccessProfileRef { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Role) GetAccessProfilesOk() ([]AccessProfileRef, bool) { - if o == nil || isNil(o.AccessProfiles) { + if o == nil || IsNil(o.AccessProfiles) { return nil, false } return o.AccessProfiles, true @@ -286,7 +286,7 @@ func (o *Role) GetAccessProfilesOk() ([]AccessProfileRef, bool) { // HasAccessProfiles returns a boolean if a field has been set. func (o *Role) HasAccessProfiles() bool { - if o != nil && isNil(o.AccessProfiles) { + if o != nil && !IsNil(o.AccessProfiles) { return true } @@ -300,7 +300,7 @@ func (o *Role) SetAccessProfiles(v []AccessProfileRef) { // GetEntitlements returns the Entitlements field value if set, zero value otherwise. func (o *Role) GetEntitlements() []EntitlementRef { - if o == nil || isNil(o.Entitlements) { + if o == nil || IsNil(o.Entitlements) { var ret []EntitlementRef return ret } @@ -310,7 +310,7 @@ func (o *Role) GetEntitlements() []EntitlementRef { // GetEntitlementsOk returns a tuple with the Entitlements field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Role) GetEntitlementsOk() ([]EntitlementRef, bool) { - if o == nil || isNil(o.Entitlements) { + if o == nil || IsNil(o.Entitlements) { return nil, false } return o.Entitlements, true @@ -318,7 +318,7 @@ func (o *Role) GetEntitlementsOk() ([]EntitlementRef, bool) { // HasEntitlements returns a boolean if a field has been set. func (o *Role) HasEntitlements() bool { - if o != nil && !isNil(o.Entitlements) { + if o != nil && !IsNil(o.Entitlements) { return true } @@ -332,7 +332,7 @@ func (o *Role) SetEntitlements(v []EntitlementRef) { // GetMembership returns the Membership field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Role) GetMembership() RoleMembershipSelector { - if o == nil || isNil(o.Membership.Get()) { + if o == nil || IsNil(o.Membership.Get()) { var ret RoleMembershipSelector return ret } @@ -385,7 +385,7 @@ func (o *Role) GetLegacyMembershipInfo() map[string]interface{} { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Role) GetLegacyMembershipInfoOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.LegacyMembershipInfo) { + if o == nil || IsNil(o.LegacyMembershipInfo) { return map[string]interface{}{}, false } return o.LegacyMembershipInfo, true @@ -393,7 +393,7 @@ func (o *Role) GetLegacyMembershipInfoOk() (map[string]interface{}, bool) { // HasLegacyMembershipInfo returns a boolean if a field has been set. func (o *Role) HasLegacyMembershipInfo() bool { - if o != nil && isNil(o.LegacyMembershipInfo) { + if o != nil && !IsNil(o.LegacyMembershipInfo) { return true } @@ -407,7 +407,7 @@ func (o *Role) SetLegacyMembershipInfo(v map[string]interface{}) { // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *Role) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -417,7 +417,7 @@ func (o *Role) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Role) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -425,7 +425,7 @@ func (o *Role) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *Role) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -439,7 +439,7 @@ func (o *Role) SetEnabled(v bool) { // GetRequestable returns the Requestable field value if set, zero value otherwise. func (o *Role) GetRequestable() bool { - if o == nil || isNil(o.Requestable) { + if o == nil || IsNil(o.Requestable) { var ret bool return ret } @@ -449,7 +449,7 @@ func (o *Role) GetRequestable() bool { // GetRequestableOk returns a tuple with the Requestable field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Role) GetRequestableOk() (*bool, bool) { - if o == nil || isNil(o.Requestable) { + if o == nil || IsNil(o.Requestable) { return nil, false } return o.Requestable, true @@ -457,7 +457,7 @@ func (o *Role) GetRequestableOk() (*bool, bool) { // HasRequestable returns a boolean if a field has been set. func (o *Role) HasRequestable() bool { - if o != nil && !isNil(o.Requestable) { + if o != nil && !IsNil(o.Requestable) { return true } @@ -471,7 +471,7 @@ func (o *Role) SetRequestable(v bool) { // GetAccessRequestConfig returns the AccessRequestConfig field value if set, zero value otherwise. func (o *Role) GetAccessRequestConfig() RequestabilityForRole { - if o == nil || isNil(o.AccessRequestConfig) { + if o == nil || IsNil(o.AccessRequestConfig) { var ret RequestabilityForRole return ret } @@ -481,7 +481,7 @@ func (o *Role) GetAccessRequestConfig() RequestabilityForRole { // GetAccessRequestConfigOk returns a tuple with the AccessRequestConfig field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Role) GetAccessRequestConfigOk() (*RequestabilityForRole, bool) { - if o == nil || isNil(o.AccessRequestConfig) { + if o == nil || IsNil(o.AccessRequestConfig) { return nil, false } return o.AccessRequestConfig, true @@ -489,7 +489,7 @@ func (o *Role) GetAccessRequestConfigOk() (*RequestabilityForRole, bool) { // HasAccessRequestConfig returns a boolean if a field has been set. func (o *Role) HasAccessRequestConfig() bool { - if o != nil && !isNil(o.AccessRequestConfig) { + if o != nil && !IsNil(o.AccessRequestConfig) { return true } @@ -503,7 +503,7 @@ func (o *Role) SetAccessRequestConfig(v RequestabilityForRole) { // GetRevocationRequestConfig returns the RevocationRequestConfig field value if set, zero value otherwise. func (o *Role) GetRevocationRequestConfig() RevocabilityForRole { - if o == nil || isNil(o.RevocationRequestConfig) { + if o == nil || IsNil(o.RevocationRequestConfig) { var ret RevocabilityForRole return ret } @@ -513,7 +513,7 @@ func (o *Role) GetRevocationRequestConfig() RevocabilityForRole { // GetRevocationRequestConfigOk returns a tuple with the RevocationRequestConfig field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Role) GetRevocationRequestConfigOk() (*RevocabilityForRole, bool) { - if o == nil || isNil(o.RevocationRequestConfig) { + if o == nil || IsNil(o.RevocationRequestConfig) { return nil, false } return o.RevocationRequestConfig, true @@ -521,7 +521,7 @@ func (o *Role) GetRevocationRequestConfigOk() (*RevocabilityForRole, bool) { // HasRevocationRequestConfig returns a boolean if a field has been set. func (o *Role) HasRevocationRequestConfig() bool { - if o != nil && !isNil(o.RevocationRequestConfig) { + if o != nil && !IsNil(o.RevocationRequestConfig) { return true } @@ -546,7 +546,7 @@ func (o *Role) GetSegments() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Role) GetSegmentsOk() ([]string, bool) { - if o == nil || isNil(o.Segments) { + if o == nil || IsNil(o.Segments) { return nil, false } return o.Segments, true @@ -554,7 +554,7 @@ func (o *Role) GetSegmentsOk() ([]string, bool) { // HasSegments returns a boolean if a field has been set. func (o *Role) HasSegments() bool { - if o != nil && isNil(o.Segments) { + if o != nil && !IsNil(o.Segments) { return true } @@ -568,7 +568,7 @@ func (o *Role) SetSegments(v []string) { // GetDimensional returns the Dimensional field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Role) GetDimensional() bool { - if o == nil || isNil(o.Dimensional.Get()) { + if o == nil || IsNil(o.Dimensional.Get()) { var ret bool return ret } @@ -610,7 +610,7 @@ func (o *Role) UnsetDimensional() { // GetDimensionRefs returns the DimensionRefs field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Role) GetDimensionRefs() string { - if o == nil || isNil(o.DimensionRefs.Get()) { + if o == nil || IsNil(o.DimensionRefs.Get()) { var ret string return ret } @@ -660,12 +660,16 @@ func (o Role) MarshalJSON() ([]byte, error) { func (o Role) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } toSerialize["name"] = o.Name - // skip: created is readOnly - // skip: modified is readOnly + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } + if !IsNil(o.Modified) { + toSerialize["modified"] = o.Modified + } if o.Description.IsSet() { toSerialize["description"] = o.Description.Get() } @@ -673,7 +677,7 @@ func (o Role) ToMap() (map[string]interface{}, error) { if o.AccessProfiles != nil { toSerialize["accessProfiles"] = o.AccessProfiles } - if !isNil(o.Entitlements) { + if !IsNil(o.Entitlements) { toSerialize["entitlements"] = o.Entitlements } if o.Membership.IsSet() { @@ -682,16 +686,16 @@ func (o Role) ToMap() (map[string]interface{}, error) { if o.LegacyMembershipInfo != nil { toSerialize["legacyMembershipInfo"] = o.LegacyMembershipInfo } - if !isNil(o.Enabled) { + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - if !isNil(o.Requestable) { + if !IsNil(o.Requestable) { toSerialize["requestable"] = o.Requestable } - if !isNil(o.AccessRequestConfig) { + if !IsNil(o.AccessRequestConfig) { toSerialize["accessRequestConfig"] = o.AccessRequestConfig } - if !isNil(o.RevocationRequestConfig) { + if !IsNil(o.RevocationRequestConfig) { toSerialize["revocationRequestConfig"] = o.RevocationRequestConfig } if o.Segments != nil { @@ -711,8 +715,8 @@ func (o Role) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Role) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *Role) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -722,7 +726,7 @@ func (o *Role) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -736,13 +740,17 @@ func (o *Role) UnmarshalJSON(bytes []byte) (err error) { varRole := _Role{} - if err = json.Unmarshal(bytes, &varRole); err == nil { + err = json.Unmarshal(data, &varRole) + + if err != nil { + return err + } + *o = Role(varRole) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "created") diff --git a/api_v3/model_role_bulk_delete_request.go b/api_v3/model_role_bulk_delete_request.go index c3b5ff7a4..e1c169e3d 100644 --- a/api_v3/model_role_bulk_delete_request.go +++ b/api_v3/model_role_bulk_delete_request.go @@ -88,8 +88,8 @@ func (o RoleBulkDeleteRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RoleBulkDeleteRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *RoleBulkDeleteRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -98,7 +98,7 @@ func (o *RoleBulkDeleteRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -112,13 +112,17 @@ func (o *RoleBulkDeleteRequest) UnmarshalJSON(bytes []byte) (err error) { varRoleBulkDeleteRequest := _RoleBulkDeleteRequest{} - if err = json.Unmarshal(bytes, &varRoleBulkDeleteRequest); err == nil { + err = json.Unmarshal(data, &varRoleBulkDeleteRequest) + + if err != nil { + return err + } + *o = RoleBulkDeleteRequest(varRoleBulkDeleteRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "roleIds") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_role_criteria_key.go b/api_v3/model_role_criteria_key.go index 03fc11333..f8c9b81b1 100644 --- a/api_v3/model_role_criteria_key.go +++ b/api_v3/model_role_criteria_key.go @@ -99,7 +99,7 @@ func (o *RoleCriteriaKey) SetProperty(v string) { // GetSourceId returns the SourceId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RoleCriteriaKey) GetSourceId() string { - if o == nil || isNil(o.SourceId.Get()) { + if o == nil || IsNil(o.SourceId.Get()) { var ret string return ret } @@ -162,8 +162,8 @@ func (o RoleCriteriaKey) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RoleCriteriaKey) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *RoleCriteriaKey) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -173,7 +173,7 @@ func (o *RoleCriteriaKey) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -187,13 +187,17 @@ func (o *RoleCriteriaKey) UnmarshalJSON(bytes []byte) (err error) { varRoleCriteriaKey := _RoleCriteriaKey{} - if err = json.Unmarshal(bytes, &varRoleCriteriaKey); err == nil { + err = json.Unmarshal(data, &varRoleCriteriaKey) + + if err != nil { + return err + } + *o = RoleCriteriaKey(varRoleCriteriaKey) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "property") delete(additionalProperties, "sourceId") diff --git a/api_v3/model_role_criteria_level1.go b/api_v3/model_role_criteria_level1.go index dcb55356a..7b23db2f8 100644 --- a/api_v3/model_role_criteria_level1.go +++ b/api_v3/model_role_criteria_level1.go @@ -49,7 +49,7 @@ func NewRoleCriteriaLevel1WithDefaults() *RoleCriteriaLevel1 { // GetOperation returns the Operation field value if set, zero value otherwise. func (o *RoleCriteriaLevel1) GetOperation() RoleCriteriaOperation { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { var ret RoleCriteriaOperation return ret } @@ -59,7 +59,7 @@ func (o *RoleCriteriaLevel1) GetOperation() RoleCriteriaOperation { // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleCriteriaLevel1) GetOperationOk() (*RoleCriteriaOperation, bool) { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { return nil, false } return o.Operation, true @@ -67,7 +67,7 @@ func (o *RoleCriteriaLevel1) GetOperationOk() (*RoleCriteriaOperation, bool) { // HasOperation returns a boolean if a field has been set. func (o *RoleCriteriaLevel1) HasOperation() bool { - if o != nil && !isNil(o.Operation) { + if o != nil && !IsNil(o.Operation) { return true } @@ -81,7 +81,7 @@ func (o *RoleCriteriaLevel1) SetOperation(v RoleCriteriaOperation) { // GetKey returns the Key field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RoleCriteriaLevel1) GetKey() RoleCriteriaKey { - if o == nil || isNil(o.Key.Get()) { + if o == nil || IsNil(o.Key.Get()) { var ret RoleCriteriaKey return ret } @@ -123,7 +123,7 @@ func (o *RoleCriteriaLevel1) UnsetKey() { // GetStringValue returns the StringValue field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RoleCriteriaLevel1) GetStringValue() string { - if o == nil || isNil(o.StringValue.Get()) { + if o == nil || IsNil(o.StringValue.Get()) { var ret string return ret } @@ -176,7 +176,7 @@ func (o *RoleCriteriaLevel1) GetChildren() []RoleCriteriaLevel2 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RoleCriteriaLevel1) GetChildrenOk() ([]RoleCriteriaLevel2, bool) { - if o == nil || isNil(o.Children) { + if o == nil || IsNil(o.Children) { return nil, false } return o.Children, true @@ -184,7 +184,7 @@ func (o *RoleCriteriaLevel1) GetChildrenOk() ([]RoleCriteriaLevel2, bool) { // HasChildren returns a boolean if a field has been set. func (o *RoleCriteriaLevel1) HasChildren() bool { - if o != nil && isNil(o.Children) { + if o != nil && !IsNil(o.Children) { return true } @@ -206,7 +206,7 @@ func (o RoleCriteriaLevel1) MarshalJSON() ([]byte, error) { func (o RoleCriteriaLevel1) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Operation) { + if !IsNil(o.Operation) { toSerialize["operation"] = o.Operation } if o.Key.IsSet() { @@ -226,16 +226,20 @@ func (o RoleCriteriaLevel1) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RoleCriteriaLevel1) UnmarshalJSON(bytes []byte) (err error) { +func (o *RoleCriteriaLevel1) UnmarshalJSON(data []byte) (err error) { varRoleCriteriaLevel1 := _RoleCriteriaLevel1{} - if err = json.Unmarshal(bytes, &varRoleCriteriaLevel1); err == nil { + err = json.Unmarshal(data, &varRoleCriteriaLevel1) + + if err != nil { + return err + } + *o = RoleCriteriaLevel1(varRoleCriteriaLevel1) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "operation") delete(additionalProperties, "key") delete(additionalProperties, "stringValue") diff --git a/api_v3/model_role_criteria_level2.go b/api_v3/model_role_criteria_level2.go index 569fc834f..a7976c7c1 100644 --- a/api_v3/model_role_criteria_level2.go +++ b/api_v3/model_role_criteria_level2.go @@ -49,7 +49,7 @@ func NewRoleCriteriaLevel2WithDefaults() *RoleCriteriaLevel2 { // GetOperation returns the Operation field value if set, zero value otherwise. func (o *RoleCriteriaLevel2) GetOperation() RoleCriteriaOperation { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { var ret RoleCriteriaOperation return ret } @@ -59,7 +59,7 @@ func (o *RoleCriteriaLevel2) GetOperation() RoleCriteriaOperation { // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleCriteriaLevel2) GetOperationOk() (*RoleCriteriaOperation, bool) { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { return nil, false } return o.Operation, true @@ -67,7 +67,7 @@ func (o *RoleCriteriaLevel2) GetOperationOk() (*RoleCriteriaOperation, bool) { // HasOperation returns a boolean if a field has been set. func (o *RoleCriteriaLevel2) HasOperation() bool { - if o != nil && !isNil(o.Operation) { + if o != nil && !IsNil(o.Operation) { return true } @@ -81,7 +81,7 @@ func (o *RoleCriteriaLevel2) SetOperation(v RoleCriteriaOperation) { // GetKey returns the Key field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RoleCriteriaLevel2) GetKey() RoleCriteriaKey { - if o == nil || isNil(o.Key.Get()) { + if o == nil || IsNil(o.Key.Get()) { var ret RoleCriteriaKey return ret } @@ -123,7 +123,7 @@ func (o *RoleCriteriaLevel2) UnsetKey() { // GetStringValue returns the StringValue field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RoleCriteriaLevel2) GetStringValue() string { - if o == nil || isNil(o.StringValue.Get()) { + if o == nil || IsNil(o.StringValue.Get()) { var ret string return ret } @@ -176,7 +176,7 @@ func (o *RoleCriteriaLevel2) GetChildren() []RoleCriteriaLevel3 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RoleCriteriaLevel2) GetChildrenOk() ([]RoleCriteriaLevel3, bool) { - if o == nil || isNil(o.Children) { + if o == nil || IsNil(o.Children) { return nil, false } return o.Children, true @@ -184,7 +184,7 @@ func (o *RoleCriteriaLevel2) GetChildrenOk() ([]RoleCriteriaLevel3, bool) { // HasChildren returns a boolean if a field has been set. func (o *RoleCriteriaLevel2) HasChildren() bool { - if o != nil && isNil(o.Children) { + if o != nil && !IsNil(o.Children) { return true } @@ -206,7 +206,7 @@ func (o RoleCriteriaLevel2) MarshalJSON() ([]byte, error) { func (o RoleCriteriaLevel2) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Operation) { + if !IsNil(o.Operation) { toSerialize["operation"] = o.Operation } if o.Key.IsSet() { @@ -226,16 +226,20 @@ func (o RoleCriteriaLevel2) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RoleCriteriaLevel2) UnmarshalJSON(bytes []byte) (err error) { +func (o *RoleCriteriaLevel2) UnmarshalJSON(data []byte) (err error) { varRoleCriteriaLevel2 := _RoleCriteriaLevel2{} - if err = json.Unmarshal(bytes, &varRoleCriteriaLevel2); err == nil { + err = json.Unmarshal(data, &varRoleCriteriaLevel2) + + if err != nil { + return err + } + *o = RoleCriteriaLevel2(varRoleCriteriaLevel2) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "operation") delete(additionalProperties, "key") delete(additionalProperties, "stringValue") diff --git a/api_v3/model_role_criteria_level3.go b/api_v3/model_role_criteria_level3.go index f8936771d..b5c751385 100644 --- a/api_v3/model_role_criteria_level3.go +++ b/api_v3/model_role_criteria_level3.go @@ -47,7 +47,7 @@ func NewRoleCriteriaLevel3WithDefaults() *RoleCriteriaLevel3 { // GetOperation returns the Operation field value if set, zero value otherwise. func (o *RoleCriteriaLevel3) GetOperation() RoleCriteriaOperation { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { var ret RoleCriteriaOperation return ret } @@ -57,7 +57,7 @@ func (o *RoleCriteriaLevel3) GetOperation() RoleCriteriaOperation { // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleCriteriaLevel3) GetOperationOk() (*RoleCriteriaOperation, bool) { - if o == nil || isNil(o.Operation) { + if o == nil || IsNil(o.Operation) { return nil, false } return o.Operation, true @@ -65,7 +65,7 @@ func (o *RoleCriteriaLevel3) GetOperationOk() (*RoleCriteriaOperation, bool) { // HasOperation returns a boolean if a field has been set. func (o *RoleCriteriaLevel3) HasOperation() bool { - if o != nil && !isNil(o.Operation) { + if o != nil && !IsNil(o.Operation) { return true } @@ -79,7 +79,7 @@ func (o *RoleCriteriaLevel3) SetOperation(v RoleCriteriaOperation) { // GetKey returns the Key field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RoleCriteriaLevel3) GetKey() RoleCriteriaKey { - if o == nil || isNil(o.Key.Get()) { + if o == nil || IsNil(o.Key.Get()) { var ret RoleCriteriaKey return ret } @@ -121,7 +121,7 @@ func (o *RoleCriteriaLevel3) UnsetKey() { // GetStringValue returns the StringValue field value if set, zero value otherwise. func (o *RoleCriteriaLevel3) GetStringValue() string { - if o == nil || isNil(o.StringValue) { + if o == nil || IsNil(o.StringValue) { var ret string return ret } @@ -131,7 +131,7 @@ func (o *RoleCriteriaLevel3) GetStringValue() string { // GetStringValueOk returns a tuple with the StringValue field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleCriteriaLevel3) GetStringValueOk() (*string, bool) { - if o == nil || isNil(o.StringValue) { + if o == nil || IsNil(o.StringValue) { return nil, false } return o.StringValue, true @@ -139,7 +139,7 @@ func (o *RoleCriteriaLevel3) GetStringValueOk() (*string, bool) { // HasStringValue returns a boolean if a field has been set. func (o *RoleCriteriaLevel3) HasStringValue() bool { - if o != nil && !isNil(o.StringValue) { + if o != nil && !IsNil(o.StringValue) { return true } @@ -161,13 +161,13 @@ func (o RoleCriteriaLevel3) MarshalJSON() ([]byte, error) { func (o RoleCriteriaLevel3) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Operation) { + if !IsNil(o.Operation) { toSerialize["operation"] = o.Operation } if o.Key.IsSet() { toSerialize["key"] = o.Key.Get() } - if !isNil(o.StringValue) { + if !IsNil(o.StringValue) { toSerialize["stringValue"] = o.StringValue } @@ -178,16 +178,20 @@ func (o RoleCriteriaLevel3) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RoleCriteriaLevel3) UnmarshalJSON(bytes []byte) (err error) { +func (o *RoleCriteriaLevel3) UnmarshalJSON(data []byte) (err error) { varRoleCriteriaLevel3 := _RoleCriteriaLevel3{} - if err = json.Unmarshal(bytes, &varRoleCriteriaLevel3); err == nil { + err = json.Unmarshal(data, &varRoleCriteriaLevel3) + + if err != nil { + return err + } + *o = RoleCriteriaLevel3(varRoleCriteriaLevel3) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "operation") delete(additionalProperties, "key") delete(additionalProperties, "stringValue") diff --git a/api_v3/model_role_document.go b/api_v3/model_role_document.go index 7b649a621..5c3b2d849 100644 --- a/api_v3/model_role_document.go +++ b/api_v3/model_role_document.go @@ -166,7 +166,7 @@ func (o *RoleDocument) SetType(v DocumentType) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *RoleDocument) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -176,7 +176,7 @@ func (o *RoleDocument) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleDocument) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -184,7 +184,7 @@ func (o *RoleDocument) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *RoleDocument) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -198,7 +198,7 @@ func (o *RoleDocument) SetDescription(v string) { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RoleDocument) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -240,7 +240,7 @@ func (o *RoleDocument) UnsetCreated() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RoleDocument) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -282,7 +282,7 @@ func (o *RoleDocument) UnsetModified() { // GetSynced returns the Synced field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RoleDocument) GetSynced() time.Time { - if o == nil || isNil(o.Synced.Get()) { + if o == nil || IsNil(o.Synced.Get()) { var ret time.Time return ret } @@ -324,7 +324,7 @@ func (o *RoleDocument) UnsetSynced() { // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *RoleDocument) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -334,7 +334,7 @@ func (o *RoleDocument) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleDocument) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -342,7 +342,7 @@ func (o *RoleDocument) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *RoleDocument) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -356,7 +356,7 @@ func (o *RoleDocument) SetEnabled(v bool) { // GetRequestable returns the Requestable field value if set, zero value otherwise. func (o *RoleDocument) GetRequestable() bool { - if o == nil || isNil(o.Requestable) { + if o == nil || IsNil(o.Requestable) { var ret bool return ret } @@ -366,7 +366,7 @@ func (o *RoleDocument) GetRequestable() bool { // GetRequestableOk returns a tuple with the Requestable field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleDocument) GetRequestableOk() (*bool, bool) { - if o == nil || isNil(o.Requestable) { + if o == nil || IsNil(o.Requestable) { return nil, false } return o.Requestable, true @@ -374,7 +374,7 @@ func (o *RoleDocument) GetRequestableOk() (*bool, bool) { // HasRequestable returns a boolean if a field has been set. func (o *RoleDocument) HasRequestable() bool { - if o != nil && !isNil(o.Requestable) { + if o != nil && !IsNil(o.Requestable) { return true } @@ -388,7 +388,7 @@ func (o *RoleDocument) SetRequestable(v bool) { // GetRequestCommentsRequired returns the RequestCommentsRequired field value if set, zero value otherwise. func (o *RoleDocument) GetRequestCommentsRequired() bool { - if o == nil || isNil(o.RequestCommentsRequired) { + if o == nil || IsNil(o.RequestCommentsRequired) { var ret bool return ret } @@ -398,7 +398,7 @@ func (o *RoleDocument) GetRequestCommentsRequired() bool { // GetRequestCommentsRequiredOk returns a tuple with the RequestCommentsRequired field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleDocument) GetRequestCommentsRequiredOk() (*bool, bool) { - if o == nil || isNil(o.RequestCommentsRequired) { + if o == nil || IsNil(o.RequestCommentsRequired) { return nil, false } return o.RequestCommentsRequired, true @@ -406,7 +406,7 @@ func (o *RoleDocument) GetRequestCommentsRequiredOk() (*bool, bool) { // HasRequestCommentsRequired returns a boolean if a field has been set. func (o *RoleDocument) HasRequestCommentsRequired() bool { - if o != nil && !isNil(o.RequestCommentsRequired) { + if o != nil && !IsNil(o.RequestCommentsRequired) { return true } @@ -420,7 +420,7 @@ func (o *RoleDocument) SetRequestCommentsRequired(v bool) { // GetOwner returns the Owner field value if set, zero value otherwise. func (o *RoleDocument) GetOwner() BaseAccessAllOfOwner { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { var ret BaseAccessAllOfOwner return ret } @@ -430,7 +430,7 @@ func (o *RoleDocument) GetOwner() BaseAccessAllOfOwner { // GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleDocument) GetOwnerOk() (*BaseAccessAllOfOwner, bool) { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { return nil, false } return o.Owner, true @@ -438,7 +438,7 @@ func (o *RoleDocument) GetOwnerOk() (*BaseAccessAllOfOwner, bool) { // HasOwner returns a boolean if a field has been set. func (o *RoleDocument) HasOwner() bool { - if o != nil && !isNil(o.Owner) { + if o != nil && !IsNil(o.Owner) { return true } @@ -452,7 +452,7 @@ func (o *RoleDocument) SetOwner(v BaseAccessAllOfOwner) { // GetAccessProfiles returns the AccessProfiles field value if set, zero value otherwise. func (o *RoleDocument) GetAccessProfiles() []BaseAccessProfile { - if o == nil || isNil(o.AccessProfiles) { + if o == nil || IsNil(o.AccessProfiles) { var ret []BaseAccessProfile return ret } @@ -462,7 +462,7 @@ func (o *RoleDocument) GetAccessProfiles() []BaseAccessProfile { // GetAccessProfilesOk returns a tuple with the AccessProfiles field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleDocument) GetAccessProfilesOk() ([]BaseAccessProfile, bool) { - if o == nil || isNil(o.AccessProfiles) { + if o == nil || IsNil(o.AccessProfiles) { return nil, false } return o.AccessProfiles, true @@ -470,7 +470,7 @@ func (o *RoleDocument) GetAccessProfilesOk() ([]BaseAccessProfile, bool) { // HasAccessProfiles returns a boolean if a field has been set. func (o *RoleDocument) HasAccessProfiles() bool { - if o != nil && !isNil(o.AccessProfiles) { + if o != nil && !IsNil(o.AccessProfiles) { return true } @@ -484,7 +484,7 @@ func (o *RoleDocument) SetAccessProfiles(v []BaseAccessProfile) { // GetAccessProfileCount returns the AccessProfileCount field value if set, zero value otherwise. func (o *RoleDocument) GetAccessProfileCount() int32 { - if o == nil || isNil(o.AccessProfileCount) { + if o == nil || IsNil(o.AccessProfileCount) { var ret int32 return ret } @@ -494,7 +494,7 @@ func (o *RoleDocument) GetAccessProfileCount() int32 { // GetAccessProfileCountOk returns a tuple with the AccessProfileCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleDocument) GetAccessProfileCountOk() (*int32, bool) { - if o == nil || isNil(o.AccessProfileCount) { + if o == nil || IsNil(o.AccessProfileCount) { return nil, false } return o.AccessProfileCount, true @@ -502,7 +502,7 @@ func (o *RoleDocument) GetAccessProfileCountOk() (*int32, bool) { // HasAccessProfileCount returns a boolean if a field has been set. func (o *RoleDocument) HasAccessProfileCount() bool { - if o != nil && !isNil(o.AccessProfileCount) { + if o != nil && !IsNil(o.AccessProfileCount) { return true } @@ -516,7 +516,7 @@ func (o *RoleDocument) SetAccessProfileCount(v int32) { // GetTags returns the Tags field value if set, zero value otherwise. func (o *RoleDocument) GetTags() []string { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { var ret []string return ret } @@ -526,7 +526,7 @@ func (o *RoleDocument) GetTags() []string { // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleDocument) GetTagsOk() ([]string, bool) { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { return nil, false } return o.Tags, true @@ -534,7 +534,7 @@ func (o *RoleDocument) GetTagsOk() ([]string, bool) { // HasTags returns a boolean if a field has been set. func (o *RoleDocument) HasTags() bool { - if o != nil && !isNil(o.Tags) { + if o != nil && !IsNil(o.Tags) { return true } @@ -548,7 +548,7 @@ func (o *RoleDocument) SetTags(v []string) { // GetSegments returns the Segments field value if set, zero value otherwise. func (o *RoleDocument) GetSegments() []BaseSegment { - if o == nil || isNil(o.Segments) { + if o == nil || IsNil(o.Segments) { var ret []BaseSegment return ret } @@ -558,7 +558,7 @@ func (o *RoleDocument) GetSegments() []BaseSegment { // GetSegmentsOk returns a tuple with the Segments field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleDocument) GetSegmentsOk() ([]BaseSegment, bool) { - if o == nil || isNil(o.Segments) { + if o == nil || IsNil(o.Segments) { return nil, false } return o.Segments, true @@ -566,7 +566,7 @@ func (o *RoleDocument) GetSegmentsOk() ([]BaseSegment, bool) { // HasSegments returns a boolean if a field has been set. func (o *RoleDocument) HasSegments() bool { - if o != nil && !isNil(o.Segments) { + if o != nil && !IsNil(o.Segments) { return true } @@ -580,7 +580,7 @@ func (o *RoleDocument) SetSegments(v []BaseSegment) { // GetSegmentCount returns the SegmentCount field value if set, zero value otherwise. func (o *RoleDocument) GetSegmentCount() int32 { - if o == nil || isNil(o.SegmentCount) { + if o == nil || IsNil(o.SegmentCount) { var ret int32 return ret } @@ -590,7 +590,7 @@ func (o *RoleDocument) GetSegmentCount() int32 { // GetSegmentCountOk returns a tuple with the SegmentCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleDocument) GetSegmentCountOk() (*int32, bool) { - if o == nil || isNil(o.SegmentCount) { + if o == nil || IsNil(o.SegmentCount) { return nil, false } return o.SegmentCount, true @@ -598,7 +598,7 @@ func (o *RoleDocument) GetSegmentCountOk() (*int32, bool) { // HasSegmentCount returns a boolean if a field has been set. func (o *RoleDocument) HasSegmentCount() bool { - if o != nil && !isNil(o.SegmentCount) { + if o != nil && !IsNil(o.SegmentCount) { return true } @@ -612,7 +612,7 @@ func (o *RoleDocument) SetSegmentCount(v int32) { // GetEntitlements returns the Entitlements field value if set, zero value otherwise. func (o *RoleDocument) GetEntitlements() []BaseEntitlement { - if o == nil || isNil(o.Entitlements) { + if o == nil || IsNil(o.Entitlements) { var ret []BaseEntitlement return ret } @@ -622,7 +622,7 @@ func (o *RoleDocument) GetEntitlements() []BaseEntitlement { // GetEntitlementsOk returns a tuple with the Entitlements field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleDocument) GetEntitlementsOk() ([]BaseEntitlement, bool) { - if o == nil || isNil(o.Entitlements) { + if o == nil || IsNil(o.Entitlements) { return nil, false } return o.Entitlements, true @@ -630,7 +630,7 @@ func (o *RoleDocument) GetEntitlementsOk() ([]BaseEntitlement, bool) { // HasEntitlements returns a boolean if a field has been set. func (o *RoleDocument) HasEntitlements() bool { - if o != nil && !isNil(o.Entitlements) { + if o != nil && !IsNil(o.Entitlements) { return true } @@ -644,7 +644,7 @@ func (o *RoleDocument) SetEntitlements(v []BaseEntitlement) { // GetEntitlementCount returns the EntitlementCount field value if set, zero value otherwise. func (o *RoleDocument) GetEntitlementCount() int32 { - if o == nil || isNil(o.EntitlementCount) { + if o == nil || IsNil(o.EntitlementCount) { var ret int32 return ret } @@ -654,7 +654,7 @@ func (o *RoleDocument) GetEntitlementCount() int32 { // GetEntitlementCountOk returns a tuple with the EntitlementCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleDocument) GetEntitlementCountOk() (*int32, bool) { - if o == nil || isNil(o.EntitlementCount) { + if o == nil || IsNil(o.EntitlementCount) { return nil, false } return o.EntitlementCount, true @@ -662,7 +662,7 @@ func (o *RoleDocument) GetEntitlementCountOk() (*int32, bool) { // HasEntitlementCount returns a boolean if a field has been set. func (o *RoleDocument) HasEntitlementCount() bool { - if o != nil && !isNil(o.EntitlementCount) { + if o != nil && !IsNil(o.EntitlementCount) { return true } @@ -687,7 +687,7 @@ func (o RoleDocument) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["name"] = o.Name toSerialize["_type"] = o.Type - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } if o.Created.IsSet() { @@ -699,37 +699,37 @@ func (o RoleDocument) ToMap() (map[string]interface{}, error) { if o.Synced.IsSet() { toSerialize["synced"] = o.Synced.Get() } - if !isNil(o.Enabled) { + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - if !isNil(o.Requestable) { + if !IsNil(o.Requestable) { toSerialize["requestable"] = o.Requestable } - if !isNil(o.RequestCommentsRequired) { + if !IsNil(o.RequestCommentsRequired) { toSerialize["requestCommentsRequired"] = o.RequestCommentsRequired } - if !isNil(o.Owner) { + if !IsNil(o.Owner) { toSerialize["owner"] = o.Owner } - if !isNil(o.AccessProfiles) { + if !IsNil(o.AccessProfiles) { toSerialize["accessProfiles"] = o.AccessProfiles } - if !isNil(o.AccessProfileCount) { + if !IsNil(o.AccessProfileCount) { toSerialize["accessProfileCount"] = o.AccessProfileCount } - if !isNil(o.Tags) { + if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } - if !isNil(o.Segments) { + if !IsNil(o.Segments) { toSerialize["segments"] = o.Segments } - if !isNil(o.SegmentCount) { + if !IsNil(o.SegmentCount) { toSerialize["segmentCount"] = o.SegmentCount } - if !isNil(o.Entitlements) { + if !IsNil(o.Entitlements) { toSerialize["entitlements"] = o.Entitlements } - if !isNil(o.EntitlementCount) { + if !IsNil(o.EntitlementCount) { toSerialize["entitlementCount"] = o.EntitlementCount } @@ -740,8 +740,8 @@ func (o RoleDocument) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RoleDocument) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *RoleDocument) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -752,7 +752,7 @@ func (o *RoleDocument) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -766,13 +766,17 @@ func (o *RoleDocument) UnmarshalJSON(bytes []byte) (err error) { varRoleDocument := _RoleDocument{} - if err = json.Unmarshal(bytes, &varRoleDocument); err == nil { + err = json.Unmarshal(data, &varRoleDocument) + + if err != nil { + return err + } + *o = RoleDocument(varRoleDocument) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "_type") diff --git a/api_v3/model_role_identity.go b/api_v3/model_role_identity.go index c50b4c434..f283afb2c 100644 --- a/api_v3/model_role_identity.go +++ b/api_v3/model_role_identity.go @@ -52,7 +52,7 @@ func NewRoleIdentityWithDefaults() *RoleIdentity { // GetId returns the Id field value if set, zero value otherwise. func (o *RoleIdentity) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -62,7 +62,7 @@ func (o *RoleIdentity) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleIdentity) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -70,7 +70,7 @@ func (o *RoleIdentity) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *RoleIdentity) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -84,7 +84,7 @@ func (o *RoleIdentity) SetId(v string) { // GetAliasName returns the AliasName field value if set, zero value otherwise. func (o *RoleIdentity) GetAliasName() string { - if o == nil || isNil(o.AliasName) { + if o == nil || IsNil(o.AliasName) { var ret string return ret } @@ -94,7 +94,7 @@ func (o *RoleIdentity) GetAliasName() string { // GetAliasNameOk returns a tuple with the AliasName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleIdentity) GetAliasNameOk() (*string, bool) { - if o == nil || isNil(o.AliasName) { + if o == nil || IsNil(o.AliasName) { return nil, false } return o.AliasName, true @@ -102,7 +102,7 @@ func (o *RoleIdentity) GetAliasNameOk() (*string, bool) { // HasAliasName returns a boolean if a field has been set. func (o *RoleIdentity) HasAliasName() bool { - if o != nil && !isNil(o.AliasName) { + if o != nil && !IsNil(o.AliasName) { return true } @@ -116,7 +116,7 @@ func (o *RoleIdentity) SetAliasName(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *RoleIdentity) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -126,7 +126,7 @@ func (o *RoleIdentity) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleIdentity) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -134,7 +134,7 @@ func (o *RoleIdentity) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *RoleIdentity) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -148,7 +148,7 @@ func (o *RoleIdentity) SetName(v string) { // GetEmail returns the Email field value if set, zero value otherwise. func (o *RoleIdentity) GetEmail() string { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { var ret string return ret } @@ -158,7 +158,7 @@ func (o *RoleIdentity) GetEmail() string { // GetEmailOk returns a tuple with the Email field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleIdentity) GetEmailOk() (*string, bool) { - if o == nil || isNil(o.Email) { + if o == nil || IsNil(o.Email) { return nil, false } return o.Email, true @@ -166,7 +166,7 @@ func (o *RoleIdentity) GetEmailOk() (*string, bool) { // HasEmail returns a boolean if a field has been set. func (o *RoleIdentity) HasEmail() bool { - if o != nil && !isNil(o.Email) { + if o != nil && !IsNil(o.Email) { return true } @@ -180,7 +180,7 @@ func (o *RoleIdentity) SetEmail(v string) { // GetRoleAssignmentSource returns the RoleAssignmentSource field value if set, zero value otherwise. func (o *RoleIdentity) GetRoleAssignmentSource() RoleAssignmentSourceType { - if o == nil || isNil(o.RoleAssignmentSource) { + if o == nil || IsNil(o.RoleAssignmentSource) { var ret RoleAssignmentSourceType return ret } @@ -190,7 +190,7 @@ func (o *RoleIdentity) GetRoleAssignmentSource() RoleAssignmentSourceType { // GetRoleAssignmentSourceOk returns a tuple with the RoleAssignmentSource field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleIdentity) GetRoleAssignmentSourceOk() (*RoleAssignmentSourceType, bool) { - if o == nil || isNil(o.RoleAssignmentSource) { + if o == nil || IsNil(o.RoleAssignmentSource) { return nil, false } return o.RoleAssignmentSource, true @@ -198,7 +198,7 @@ func (o *RoleIdentity) GetRoleAssignmentSourceOk() (*RoleAssignmentSourceType, b // HasRoleAssignmentSource returns a boolean if a field has been set. func (o *RoleIdentity) HasRoleAssignmentSource() bool { - if o != nil && !isNil(o.RoleAssignmentSource) { + if o != nil && !IsNil(o.RoleAssignmentSource) { return true } @@ -220,19 +220,19 @@ func (o RoleIdentity) MarshalJSON() ([]byte, error) { func (o RoleIdentity) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.AliasName) { + if !IsNil(o.AliasName) { toSerialize["aliasName"] = o.AliasName } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Email) { + if !IsNil(o.Email) { toSerialize["email"] = o.Email } - if !isNil(o.RoleAssignmentSource) { + if !IsNil(o.RoleAssignmentSource) { toSerialize["roleAssignmentSource"] = o.RoleAssignmentSource } @@ -243,16 +243,20 @@ func (o RoleIdentity) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RoleIdentity) UnmarshalJSON(bytes []byte) (err error) { +func (o *RoleIdentity) UnmarshalJSON(data []byte) (err error) { varRoleIdentity := _RoleIdentity{} - if err = json.Unmarshal(bytes, &varRoleIdentity); err == nil { + err = json.Unmarshal(data, &varRoleIdentity) + + if err != nil { + return err + } + *o = RoleIdentity(varRoleIdentity) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "aliasName") delete(additionalProperties, "name") diff --git a/api_v3/model_role_membership_identity.go b/api_v3/model_role_membership_identity.go index 1c71aa727..289df108d 100644 --- a/api_v3/model_role_membership_identity.go +++ b/api_v3/model_role_membership_identity.go @@ -50,7 +50,7 @@ func NewRoleMembershipIdentityWithDefaults() *RoleMembershipIdentity { // GetType returns the Type field value if set, zero value otherwise. func (o *RoleMembershipIdentity) GetType() DtoType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret DtoType return ret } @@ -60,7 +60,7 @@ func (o *RoleMembershipIdentity) GetType() DtoType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleMembershipIdentity) GetTypeOk() (*DtoType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -68,7 +68,7 @@ func (o *RoleMembershipIdentity) GetTypeOk() (*DtoType, bool) { // HasType returns a boolean if a field has been set. func (o *RoleMembershipIdentity) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -82,7 +82,7 @@ func (o *RoleMembershipIdentity) SetType(v DtoType) { // GetId returns the Id field value if set, zero value otherwise. func (o *RoleMembershipIdentity) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -92,7 +92,7 @@ func (o *RoleMembershipIdentity) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleMembershipIdentity) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -100,7 +100,7 @@ func (o *RoleMembershipIdentity) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *RoleMembershipIdentity) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -114,7 +114,7 @@ func (o *RoleMembershipIdentity) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RoleMembershipIdentity) GetName() string { - if o == nil || isNil(o.Name.Get()) { + if o == nil || IsNil(o.Name.Get()) { var ret string return ret } @@ -156,7 +156,7 @@ func (o *RoleMembershipIdentity) UnsetName() { // GetAliasName returns the AliasName field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RoleMembershipIdentity) GetAliasName() string { - if o == nil || isNil(o.AliasName.Get()) { + if o == nil || IsNil(o.AliasName.Get()) { var ret string return ret } @@ -206,10 +206,10 @@ func (o RoleMembershipIdentity) MarshalJSON() ([]byte, error) { func (o RoleMembershipIdentity) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } if o.Name.IsSet() { @@ -226,16 +226,20 @@ func (o RoleMembershipIdentity) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RoleMembershipIdentity) UnmarshalJSON(bytes []byte) (err error) { +func (o *RoleMembershipIdentity) UnmarshalJSON(data []byte) (err error) { varRoleMembershipIdentity := _RoleMembershipIdentity{} - if err = json.Unmarshal(bytes, &varRoleMembershipIdentity); err == nil { + err = json.Unmarshal(data, &varRoleMembershipIdentity) + + if err != nil { + return err + } + *o = RoleMembershipIdentity(varRoleMembershipIdentity) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_role_membership_selector.go b/api_v3/model_role_membership_selector.go index f9d47342a..c81203ca7 100644 --- a/api_v3/model_role_membership_selector.go +++ b/api_v3/model_role_membership_selector.go @@ -47,7 +47,7 @@ func NewRoleMembershipSelectorWithDefaults() *RoleMembershipSelector { // GetType returns the Type field value if set, zero value otherwise. func (o *RoleMembershipSelector) GetType() RoleMembershipSelectorType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret RoleMembershipSelectorType return ret } @@ -57,7 +57,7 @@ func (o *RoleMembershipSelector) GetType() RoleMembershipSelectorType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleMembershipSelector) GetTypeOk() (*RoleMembershipSelectorType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -65,7 +65,7 @@ func (o *RoleMembershipSelector) GetTypeOk() (*RoleMembershipSelectorType, bool) // HasType returns a boolean if a field has been set. func (o *RoleMembershipSelector) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -79,7 +79,7 @@ func (o *RoleMembershipSelector) SetType(v RoleMembershipSelectorType) { // GetCriteria returns the Criteria field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RoleMembershipSelector) GetCriteria() RoleCriteriaLevel1 { - if o == nil || isNil(o.Criteria.Get()) { + if o == nil || IsNil(o.Criteria.Get()) { var ret RoleCriteriaLevel1 return ret } @@ -132,7 +132,7 @@ func (o *RoleMembershipSelector) GetIdentities() []RoleMembershipIdentity { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RoleMembershipSelector) GetIdentitiesOk() ([]RoleMembershipIdentity, bool) { - if o == nil || isNil(o.Identities) { + if o == nil || IsNil(o.Identities) { return nil, false } return o.Identities, true @@ -140,7 +140,7 @@ func (o *RoleMembershipSelector) GetIdentitiesOk() ([]RoleMembershipIdentity, bo // HasIdentities returns a boolean if a field has been set. func (o *RoleMembershipSelector) HasIdentities() bool { - if o != nil && isNil(o.Identities) { + if o != nil && !IsNil(o.Identities) { return true } @@ -162,7 +162,7 @@ func (o RoleMembershipSelector) MarshalJSON() ([]byte, error) { func (o RoleMembershipSelector) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } if o.Criteria.IsSet() { @@ -179,16 +179,20 @@ func (o RoleMembershipSelector) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RoleMembershipSelector) UnmarshalJSON(bytes []byte) (err error) { +func (o *RoleMembershipSelector) UnmarshalJSON(data []byte) (err error) { varRoleMembershipSelector := _RoleMembershipSelector{} - if err = json.Unmarshal(bytes, &varRoleMembershipSelector); err == nil { + err = json.Unmarshal(data, &varRoleMembershipSelector) + + if err != nil { + return err + } + *o = RoleMembershipSelector(varRoleMembershipSelector) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "criteria") delete(additionalProperties, "identities") diff --git a/api_v3/model_role_summary.go b/api_v3/model_role_summary.go index debfeb182..1a93be48b 100644 --- a/api_v3/model_role_summary.go +++ b/api_v3/model_role_summary.go @@ -53,7 +53,7 @@ func NewRoleSummaryWithDefaults() *RoleSummary { // GetId returns the Id field value if set, zero value otherwise. func (o *RoleSummary) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -63,7 +63,7 @@ func (o *RoleSummary) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleSummary) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -71,7 +71,7 @@ func (o *RoleSummary) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *RoleSummary) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -85,7 +85,7 @@ func (o *RoleSummary) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *RoleSummary) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -95,7 +95,7 @@ func (o *RoleSummary) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleSummary) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -103,7 +103,7 @@ func (o *RoleSummary) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *RoleSummary) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -117,7 +117,7 @@ func (o *RoleSummary) SetName(v string) { // GetDisplayName returns the DisplayName field value if set, zero value otherwise. func (o *RoleSummary) GetDisplayName() string { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { var ret string return ret } @@ -127,7 +127,7 @@ func (o *RoleSummary) GetDisplayName() string { // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleSummary) GetDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { return nil, false } return o.DisplayName, true @@ -135,7 +135,7 @@ func (o *RoleSummary) GetDisplayNameOk() (*string, bool) { // HasDisplayName returns a boolean if a field has been set. func (o *RoleSummary) HasDisplayName() bool { - if o != nil && !isNil(o.DisplayName) { + if o != nil && !IsNil(o.DisplayName) { return true } @@ -149,7 +149,7 @@ func (o *RoleSummary) SetDisplayName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *RoleSummary) GetType() DtoType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret DtoType return ret } @@ -159,7 +159,7 @@ func (o *RoleSummary) GetType() DtoType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleSummary) GetTypeOk() (*DtoType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -167,7 +167,7 @@ func (o *RoleSummary) GetTypeOk() (*DtoType, bool) { // HasType returns a boolean if a field has been set. func (o *RoleSummary) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -181,7 +181,7 @@ func (o *RoleSummary) SetType(v DtoType) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RoleSummary) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -223,7 +223,7 @@ func (o *RoleSummary) UnsetDescription() { // GetOwner returns the Owner field value if set, zero value otherwise. func (o *RoleSummary) GetOwner() DisplayReference { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { var ret DisplayReference return ret } @@ -233,7 +233,7 @@ func (o *RoleSummary) GetOwner() DisplayReference { // GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleSummary) GetOwnerOk() (*DisplayReference, bool) { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { return nil, false } return o.Owner, true @@ -241,7 +241,7 @@ func (o *RoleSummary) GetOwnerOk() (*DisplayReference, bool) { // HasOwner returns a boolean if a field has been set. func (o *RoleSummary) HasOwner() bool { - if o != nil && !isNil(o.Owner) { + if o != nil && !IsNil(o.Owner) { return true } @@ -255,7 +255,7 @@ func (o *RoleSummary) SetOwner(v DisplayReference) { // GetDisabled returns the Disabled field value if set, zero value otherwise. func (o *RoleSummary) GetDisabled() bool { - if o == nil || isNil(o.Disabled) { + if o == nil || IsNil(o.Disabled) { var ret bool return ret } @@ -265,7 +265,7 @@ func (o *RoleSummary) GetDisabled() bool { // GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleSummary) GetDisabledOk() (*bool, bool) { - if o == nil || isNil(o.Disabled) { + if o == nil || IsNil(o.Disabled) { return nil, false } return o.Disabled, true @@ -273,7 +273,7 @@ func (o *RoleSummary) GetDisabledOk() (*bool, bool) { // HasDisabled returns a boolean if a field has been set. func (o *RoleSummary) HasDisabled() bool { - if o != nil && !isNil(o.Disabled) { + if o != nil && !IsNil(o.Disabled) { return true } @@ -287,7 +287,7 @@ func (o *RoleSummary) SetDisabled(v bool) { // GetRevocable returns the Revocable field value if set, zero value otherwise. func (o *RoleSummary) GetRevocable() bool { - if o == nil || isNil(o.Revocable) { + if o == nil || IsNil(o.Revocable) { var ret bool return ret } @@ -297,7 +297,7 @@ func (o *RoleSummary) GetRevocable() bool { // GetRevocableOk returns a tuple with the Revocable field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RoleSummary) GetRevocableOk() (*bool, bool) { - if o == nil || isNil(o.Revocable) { + if o == nil || IsNil(o.Revocable) { return nil, false } return o.Revocable, true @@ -305,7 +305,7 @@ func (o *RoleSummary) GetRevocableOk() (*bool, bool) { // HasRevocable returns a boolean if a field has been set. func (o *RoleSummary) HasRevocable() bool { - if o != nil && !isNil(o.Revocable) { + if o != nil && !IsNil(o.Revocable) { return true } @@ -327,28 +327,28 @@ func (o RoleSummary) MarshalJSON() ([]byte, error) { func (o RoleSummary) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.DisplayName) { + if !IsNil(o.DisplayName) { toSerialize["displayName"] = o.DisplayName } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } if o.Description.IsSet() { toSerialize["description"] = o.Description.Get() } - if !isNil(o.Owner) { + if !IsNil(o.Owner) { toSerialize["owner"] = o.Owner } - if !isNil(o.Disabled) { + if !IsNil(o.Disabled) { toSerialize["disabled"] = o.Disabled } - if !isNil(o.Revocable) { + if !IsNil(o.Revocable) { toSerialize["revocable"] = o.Revocable } @@ -359,16 +359,20 @@ func (o RoleSummary) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RoleSummary) UnmarshalJSON(bytes []byte) (err error) { +func (o *RoleSummary) UnmarshalJSON(data []byte) (err error) { varRoleSummary := _RoleSummary{} - if err = json.Unmarshal(bytes, &varRoleSummary); err == nil { + err = json.Unmarshal(data, &varRoleSummary) + + if err != nil { + return err + } + *o = RoleSummary(varRoleSummary) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "displayName") diff --git a/api_v3/model_saved_search.go b/api_v3/model_saved_search.go index b347aa965..21bb1587d 100644 --- a/api_v3/model_saved_search.go +++ b/api_v3/model_saved_search.go @@ -79,7 +79,7 @@ func NewSavedSearchWithDefaults() *SavedSearch { // GetName returns the Name field value if set, zero value otherwise. func (o *SavedSearch) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *SavedSearch) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SavedSearch) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -97,7 +97,7 @@ func (o *SavedSearch) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SavedSearch) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -111,7 +111,7 @@ func (o *SavedSearch) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SavedSearch) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -153,7 +153,7 @@ func (o *SavedSearch) UnsetDescription() { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SavedSearch) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -195,7 +195,7 @@ func (o *SavedSearch) UnsetCreated() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SavedSearch) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -261,7 +261,7 @@ func (o *SavedSearch) SetIndices(v []Index) { // GetColumns returns the Columns field value if set, zero value otherwise. func (o *SavedSearch) GetColumns() map[string][]Column { - if o == nil || isNil(o.Columns) { + if o == nil || IsNil(o.Columns) { var ret map[string][]Column return ret } @@ -271,7 +271,7 @@ func (o *SavedSearch) GetColumns() map[string][]Column { // GetColumnsOk returns a tuple with the Columns field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SavedSearch) GetColumnsOk() (*map[string][]Column, bool) { - if o == nil || isNil(o.Columns) { + if o == nil || IsNil(o.Columns) { return nil, false } return o.Columns, true @@ -279,7 +279,7 @@ func (o *SavedSearch) GetColumnsOk() (*map[string][]Column, bool) { // HasColumns returns a boolean if a field has been set. func (o *SavedSearch) HasColumns() bool { - if o != nil && !isNil(o.Columns) { + if o != nil && !IsNil(o.Columns) { return true } @@ -328,7 +328,7 @@ func (o *SavedSearch) GetFields() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SavedSearch) GetFieldsOk() ([]string, bool) { - if o == nil || isNil(o.Fields) { + if o == nil || IsNil(o.Fields) { return nil, false } return o.Fields, true @@ -336,7 +336,7 @@ func (o *SavedSearch) GetFieldsOk() ([]string, bool) { // HasFields returns a boolean if a field has been set. func (o *SavedSearch) HasFields() bool { - if o != nil && isNil(o.Fields) { + if o != nil && !IsNil(o.Fields) { return true } @@ -361,7 +361,7 @@ func (o *SavedSearch) GetOrderBy() map[string][]string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SavedSearch) GetOrderByOk() (*map[string][]string, bool) { - if o == nil || isNil(o.OrderBy) { + if o == nil || IsNil(o.OrderBy) { return nil, false } return &o.OrderBy, true @@ -369,7 +369,7 @@ func (o *SavedSearch) GetOrderByOk() (*map[string][]string, bool) { // HasOrderBy returns a boolean if a field has been set. func (o *SavedSearch) HasOrderBy() bool { - if o != nil && isNil(o.OrderBy) { + if o != nil && !IsNil(o.OrderBy) { return true } @@ -394,7 +394,7 @@ func (o *SavedSearch) GetSort() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SavedSearch) GetSortOk() ([]string, bool) { - if o == nil || isNil(o.Sort) { + if o == nil || IsNil(o.Sort) { return nil, false } return o.Sort, true @@ -402,7 +402,7 @@ func (o *SavedSearch) GetSortOk() ([]string, bool) { // HasSort returns a boolean if a field has been set. func (o *SavedSearch) HasSort() bool { - if o != nil && isNil(o.Sort) { + if o != nil && !IsNil(o.Sort) { return true } @@ -416,7 +416,7 @@ func (o *SavedSearch) SetSort(v []string) { // GetFilters returns the Filters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SavedSearch) GetFilters() SavedSearchDetailFilters { - if o == nil || isNil(o.Filters.Get()) { + if o == nil || IsNil(o.Filters.Get()) { var ret SavedSearchDetailFilters return ret } @@ -458,7 +458,7 @@ func (o *SavedSearch) UnsetFilters() { // GetId returns the Id field value if set, zero value otherwise. func (o *SavedSearch) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -468,7 +468,7 @@ func (o *SavedSearch) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SavedSearch) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -476,7 +476,7 @@ func (o *SavedSearch) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SavedSearch) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -490,7 +490,7 @@ func (o *SavedSearch) SetId(v string) { // GetOwner returns the Owner field value if set, zero value otherwise. func (o *SavedSearch) GetOwner() TypedReference { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { var ret TypedReference return ret } @@ -500,7 +500,7 @@ func (o *SavedSearch) GetOwner() TypedReference { // GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SavedSearch) GetOwnerOk() (*TypedReference, bool) { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { return nil, false } return o.Owner, true @@ -508,7 +508,7 @@ func (o *SavedSearch) GetOwnerOk() (*TypedReference, bool) { // HasOwner returns a boolean if a field has been set. func (o *SavedSearch) HasOwner() bool { - if o != nil && !isNil(o.Owner) { + if o != nil && !IsNil(o.Owner) { return true } @@ -522,7 +522,7 @@ func (o *SavedSearch) SetOwner(v TypedReference) { // GetOwnerId returns the OwnerId field value if set, zero value otherwise. func (o *SavedSearch) GetOwnerId() string { - if o == nil || isNil(o.OwnerId) { + if o == nil || IsNil(o.OwnerId) { var ret string return ret } @@ -532,7 +532,7 @@ func (o *SavedSearch) GetOwnerId() string { // GetOwnerIdOk returns a tuple with the OwnerId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SavedSearch) GetOwnerIdOk() (*string, bool) { - if o == nil || isNil(o.OwnerId) { + if o == nil || IsNil(o.OwnerId) { return nil, false } return o.OwnerId, true @@ -540,7 +540,7 @@ func (o *SavedSearch) GetOwnerIdOk() (*string, bool) { // HasOwnerId returns a boolean if a field has been set. func (o *SavedSearch) HasOwnerId() bool { - if o != nil && !isNil(o.OwnerId) { + if o != nil && !IsNil(o.OwnerId) { return true } @@ -554,7 +554,7 @@ func (o *SavedSearch) SetOwnerId(v string) { // GetPublic returns the Public field value if set, zero value otherwise. func (o *SavedSearch) GetPublic() bool { - if o == nil || isNil(o.Public) { + if o == nil || IsNil(o.Public) { var ret bool return ret } @@ -564,7 +564,7 @@ func (o *SavedSearch) GetPublic() bool { // GetPublicOk returns a tuple with the Public field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SavedSearch) GetPublicOk() (*bool, bool) { - if o == nil || isNil(o.Public) { + if o == nil || IsNil(o.Public) { return nil, false } return o.Public, true @@ -572,7 +572,7 @@ func (o *SavedSearch) GetPublicOk() (*bool, bool) { // HasPublic returns a boolean if a field has been set. func (o *SavedSearch) HasPublic() bool { - if o != nil && !isNil(o.Public) { + if o != nil && !IsNil(o.Public) { return true } @@ -594,7 +594,7 @@ func (o SavedSearch) MarshalJSON() ([]byte, error) { func (o SavedSearch) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } if o.Description.IsSet() { @@ -607,7 +607,7 @@ func (o SavedSearch) ToMap() (map[string]interface{}, error) { toSerialize["modified"] = o.Modified.Get() } toSerialize["indices"] = o.Indices - if !isNil(o.Columns) { + if !IsNil(o.Columns) { toSerialize["columns"] = o.Columns } toSerialize["query"] = o.Query @@ -623,16 +623,16 @@ func (o SavedSearch) ToMap() (map[string]interface{}, error) { if o.Filters.IsSet() { toSerialize["filters"] = o.Filters.Get() } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Owner) { + if !IsNil(o.Owner) { toSerialize["owner"] = o.Owner } - if !isNil(o.OwnerId) { + if !IsNil(o.OwnerId) { toSerialize["ownerId"] = o.OwnerId } - if !isNil(o.Public) { + if !IsNil(o.Public) { toSerialize["public"] = o.Public } @@ -643,8 +643,8 @@ func (o SavedSearch) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SavedSearch) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *SavedSearch) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -654,7 +654,7 @@ func (o *SavedSearch) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -668,13 +668,17 @@ func (o *SavedSearch) UnmarshalJSON(bytes []byte) (err error) { varSavedSearch := _SavedSearch{} - if err = json.Unmarshal(bytes, &varSavedSearch); err == nil { + err = json.Unmarshal(data, &varSavedSearch) + + if err != nil { + return err + } + *o = SavedSearch(varSavedSearch) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "description") delete(additionalProperties, "created") diff --git a/api_v3/model_saved_search_detail.go b/api_v3/model_saved_search_detail.go index 5d8b86734..bd2a081f4 100644 --- a/api_v3/model_saved_search_detail.go +++ b/api_v3/model_saved_search_detail.go @@ -64,7 +64,7 @@ func NewSavedSearchDetailWithDefaults() *SavedSearchDetail { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SavedSearchDetail) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -106,7 +106,7 @@ func (o *SavedSearchDetail) UnsetCreated() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SavedSearchDetail) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -172,7 +172,7 @@ func (o *SavedSearchDetail) SetIndices(v []Index) { // GetColumns returns the Columns field value if set, zero value otherwise. func (o *SavedSearchDetail) GetColumns() map[string][]Column { - if o == nil || isNil(o.Columns) { + if o == nil || IsNil(o.Columns) { var ret map[string][]Column return ret } @@ -182,7 +182,7 @@ func (o *SavedSearchDetail) GetColumns() map[string][]Column { // GetColumnsOk returns a tuple with the Columns field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SavedSearchDetail) GetColumnsOk() (*map[string][]Column, bool) { - if o == nil || isNil(o.Columns) { + if o == nil || IsNil(o.Columns) { return nil, false } return o.Columns, true @@ -190,7 +190,7 @@ func (o *SavedSearchDetail) GetColumnsOk() (*map[string][]Column, bool) { // HasColumns returns a boolean if a field has been set. func (o *SavedSearchDetail) HasColumns() bool { - if o != nil && !isNil(o.Columns) { + if o != nil && !IsNil(o.Columns) { return true } @@ -239,7 +239,7 @@ func (o *SavedSearchDetail) GetFields() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SavedSearchDetail) GetFieldsOk() ([]string, bool) { - if o == nil || isNil(o.Fields) { + if o == nil || IsNil(o.Fields) { return nil, false } return o.Fields, true @@ -247,7 +247,7 @@ func (o *SavedSearchDetail) GetFieldsOk() ([]string, bool) { // HasFields returns a boolean if a field has been set. func (o *SavedSearchDetail) HasFields() bool { - if o != nil && isNil(o.Fields) { + if o != nil && !IsNil(o.Fields) { return true } @@ -272,7 +272,7 @@ func (o *SavedSearchDetail) GetOrderBy() map[string][]string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SavedSearchDetail) GetOrderByOk() (*map[string][]string, bool) { - if o == nil || isNil(o.OrderBy) { + if o == nil || IsNil(o.OrderBy) { return nil, false } return &o.OrderBy, true @@ -280,7 +280,7 @@ func (o *SavedSearchDetail) GetOrderByOk() (*map[string][]string, bool) { // HasOrderBy returns a boolean if a field has been set. func (o *SavedSearchDetail) HasOrderBy() bool { - if o != nil && isNil(o.OrderBy) { + if o != nil && !IsNil(o.OrderBy) { return true } @@ -305,7 +305,7 @@ func (o *SavedSearchDetail) GetSort() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SavedSearchDetail) GetSortOk() ([]string, bool) { - if o == nil || isNil(o.Sort) { + if o == nil || IsNil(o.Sort) { return nil, false } return o.Sort, true @@ -313,7 +313,7 @@ func (o *SavedSearchDetail) GetSortOk() ([]string, bool) { // HasSort returns a boolean if a field has been set. func (o *SavedSearchDetail) HasSort() bool { - if o != nil && isNil(o.Sort) { + if o != nil && !IsNil(o.Sort) { return true } @@ -327,7 +327,7 @@ func (o *SavedSearchDetail) SetSort(v []string) { // GetFilters returns the Filters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SavedSearchDetail) GetFilters() SavedSearchDetailFilters { - if o == nil || isNil(o.Filters.Get()) { + if o == nil || IsNil(o.Filters.Get()) { var ret SavedSearchDetailFilters return ret } @@ -384,7 +384,7 @@ func (o SavedSearchDetail) ToMap() (map[string]interface{}, error) { toSerialize["modified"] = o.Modified.Get() } toSerialize["indices"] = o.Indices - if !isNil(o.Columns) { + if !IsNil(o.Columns) { toSerialize["columns"] = o.Columns } toSerialize["query"] = o.Query @@ -408,8 +408,8 @@ func (o SavedSearchDetail) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SavedSearchDetail) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *SavedSearchDetail) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -419,7 +419,7 @@ func (o *SavedSearchDetail) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -433,13 +433,17 @@ func (o *SavedSearchDetail) UnmarshalJSON(bytes []byte) (err error) { varSavedSearchDetail := _SavedSearchDetail{} - if err = json.Unmarshal(bytes, &varSavedSearchDetail); err == nil { + err = json.Unmarshal(data, &varSavedSearchDetail) + + if err != nil { + return err + } + *o = SavedSearchDetail(varSavedSearchDetail) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "created") delete(additionalProperties, "modified") delete(additionalProperties, "indices") diff --git a/api_v3/model_saved_search_detail_filters.go b/api_v3/model_saved_search_detail_filters.go index 1f6e02f2e..9ec614a5c 100644 --- a/api_v3/model_saved_search_detail_filters.go +++ b/api_v3/model_saved_search_detail_filters.go @@ -53,7 +53,7 @@ func NewSavedSearchDetailFiltersWithDefaults() *SavedSearchDetailFilters { // GetType returns the Type field value if set, zero value otherwise. func (o *SavedSearchDetailFilters) GetType() FilterType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret FilterType return ret } @@ -63,7 +63,7 @@ func (o *SavedSearchDetailFilters) GetType() FilterType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SavedSearchDetailFilters) GetTypeOk() (*FilterType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -71,7 +71,7 @@ func (o *SavedSearchDetailFilters) GetTypeOk() (*FilterType, bool) { // HasType returns a boolean if a field has been set. func (o *SavedSearchDetailFilters) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -85,7 +85,7 @@ func (o *SavedSearchDetailFilters) SetType(v FilterType) { // GetRange returns the Range field value if set, zero value otherwise. func (o *SavedSearchDetailFilters) GetRange() Range { - if o == nil || isNil(o.Range) { + if o == nil || IsNil(o.Range) { var ret Range return ret } @@ -95,7 +95,7 @@ func (o *SavedSearchDetailFilters) GetRange() Range { // GetRangeOk returns a tuple with the Range field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SavedSearchDetailFilters) GetRangeOk() (*Range, bool) { - if o == nil || isNil(o.Range) { + if o == nil || IsNil(o.Range) { return nil, false } return o.Range, true @@ -103,7 +103,7 @@ func (o *SavedSearchDetailFilters) GetRangeOk() (*Range, bool) { // HasRange returns a boolean if a field has been set. func (o *SavedSearchDetailFilters) HasRange() bool { - if o != nil && !isNil(o.Range) { + if o != nil && !IsNil(o.Range) { return true } @@ -117,7 +117,7 @@ func (o *SavedSearchDetailFilters) SetRange(v Range) { // GetTerms returns the Terms field value if set, zero value otherwise. func (o *SavedSearchDetailFilters) GetTerms() []string { - if o == nil || isNil(o.Terms) { + if o == nil || IsNil(o.Terms) { var ret []string return ret } @@ -127,7 +127,7 @@ func (o *SavedSearchDetailFilters) GetTerms() []string { // GetTermsOk returns a tuple with the Terms field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SavedSearchDetailFilters) GetTermsOk() ([]string, bool) { - if o == nil || isNil(o.Terms) { + if o == nil || IsNil(o.Terms) { return nil, false } return o.Terms, true @@ -135,7 +135,7 @@ func (o *SavedSearchDetailFilters) GetTermsOk() ([]string, bool) { // HasTerms returns a boolean if a field has been set. func (o *SavedSearchDetailFilters) HasTerms() bool { - if o != nil && !isNil(o.Terms) { + if o != nil && !IsNil(o.Terms) { return true } @@ -149,7 +149,7 @@ func (o *SavedSearchDetailFilters) SetTerms(v []string) { // GetExclude returns the Exclude field value if set, zero value otherwise. func (o *SavedSearchDetailFilters) GetExclude() bool { - if o == nil || isNil(o.Exclude) { + if o == nil || IsNil(o.Exclude) { var ret bool return ret } @@ -159,7 +159,7 @@ func (o *SavedSearchDetailFilters) GetExclude() bool { // GetExcludeOk returns a tuple with the Exclude field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SavedSearchDetailFilters) GetExcludeOk() (*bool, bool) { - if o == nil || isNil(o.Exclude) { + if o == nil || IsNil(o.Exclude) { return nil, false } return o.Exclude, true @@ -167,7 +167,7 @@ func (o *SavedSearchDetailFilters) GetExcludeOk() (*bool, bool) { // HasExclude returns a boolean if a field has been set. func (o *SavedSearchDetailFilters) HasExclude() bool { - if o != nil && !isNil(o.Exclude) { + if o != nil && !IsNil(o.Exclude) { return true } @@ -189,16 +189,16 @@ func (o SavedSearchDetailFilters) MarshalJSON() ([]byte, error) { func (o SavedSearchDetailFilters) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Range) { + if !IsNil(o.Range) { toSerialize["range"] = o.Range } - if !isNil(o.Terms) { + if !IsNil(o.Terms) { toSerialize["terms"] = o.Terms } - if !isNil(o.Exclude) { + if !IsNil(o.Exclude) { toSerialize["exclude"] = o.Exclude } @@ -209,16 +209,20 @@ func (o SavedSearchDetailFilters) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SavedSearchDetailFilters) UnmarshalJSON(bytes []byte) (err error) { +func (o *SavedSearchDetailFilters) UnmarshalJSON(data []byte) (err error) { varSavedSearchDetailFilters := _SavedSearchDetailFilters{} - if err = json.Unmarshal(bytes, &varSavedSearchDetailFilters); err == nil { + err = json.Unmarshal(data, &varSavedSearchDetailFilters) + + if err != nil { + return err + } + *o = SavedSearchDetailFilters(varSavedSearchDetailFilters) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "range") delete(additionalProperties, "terms") diff --git a/api_v3/model_saved_search_name.go b/api_v3/model_saved_search_name.go index 8267f8506..364ab6313 100644 --- a/api_v3/model_saved_search_name.go +++ b/api_v3/model_saved_search_name.go @@ -47,7 +47,7 @@ func NewSavedSearchNameWithDefaults() *SavedSearchName { // GetName returns the Name field value if set, zero value otherwise. func (o *SavedSearchName) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *SavedSearchName) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SavedSearchName) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -65,7 +65,7 @@ func (o *SavedSearchName) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SavedSearchName) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -79,7 +79,7 @@ func (o *SavedSearchName) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SavedSearchName) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -129,7 +129,7 @@ func (o SavedSearchName) MarshalJSON() ([]byte, error) { func (o SavedSearchName) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } if o.Description.IsSet() { @@ -143,16 +143,20 @@ func (o SavedSearchName) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SavedSearchName) UnmarshalJSON(bytes []byte) (err error) { +func (o *SavedSearchName) UnmarshalJSON(data []byte) (err error) { varSavedSearchName := _SavedSearchName{} - if err = json.Unmarshal(bytes, &varSavedSearchName); err == nil { + err = json.Unmarshal(data, &varSavedSearchName) + + if err != nil { + return err + } + *o = SavedSearchName(varSavedSearchName) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "description") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_schedule.go b/api_v3/model_schedule.go index 10efe73ab..5a2c246cd 100644 --- a/api_v3/model_schedule.go +++ b/api_v3/model_schedule.go @@ -80,7 +80,7 @@ func (o *Schedule) SetType(v string) { // GetMonths returns the Months field value if set, zero value otherwise. func (o *Schedule) GetMonths() ScheduleMonths { - if o == nil || isNil(o.Months) { + if o == nil || IsNil(o.Months) { var ret ScheduleMonths return ret } @@ -90,7 +90,7 @@ func (o *Schedule) GetMonths() ScheduleMonths { // GetMonthsOk returns a tuple with the Months field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schedule) GetMonthsOk() (*ScheduleMonths, bool) { - if o == nil || isNil(o.Months) { + if o == nil || IsNil(o.Months) { return nil, false } return o.Months, true @@ -98,7 +98,7 @@ func (o *Schedule) GetMonthsOk() (*ScheduleMonths, bool) { // HasMonths returns a boolean if a field has been set. func (o *Schedule) HasMonths() bool { - if o != nil && !isNil(o.Months) { + if o != nil && !IsNil(o.Months) { return true } @@ -112,7 +112,7 @@ func (o *Schedule) SetMonths(v ScheduleMonths) { // GetDays returns the Days field value if set, zero value otherwise. func (o *Schedule) GetDays() ScheduleDays { - if o == nil || isNil(o.Days) { + if o == nil || IsNil(o.Days) { var ret ScheduleDays return ret } @@ -122,7 +122,7 @@ func (o *Schedule) GetDays() ScheduleDays { // GetDaysOk returns a tuple with the Days field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schedule) GetDaysOk() (*ScheduleDays, bool) { - if o == nil || isNil(o.Days) { + if o == nil || IsNil(o.Days) { return nil, false } return o.Days, true @@ -130,7 +130,7 @@ func (o *Schedule) GetDaysOk() (*ScheduleDays, bool) { // HasDays returns a boolean if a field has been set. func (o *Schedule) HasDays() bool { - if o != nil && !isNil(o.Days) { + if o != nil && !IsNil(o.Days) { return true } @@ -168,7 +168,7 @@ func (o *Schedule) SetHours(v ScheduleHours) { // GetExpiration returns the Expiration field value if set, zero value otherwise. func (o *Schedule) GetExpiration() time.Time { - if o == nil || isNil(o.Expiration) { + if o == nil || IsNil(o.Expiration) { var ret time.Time return ret } @@ -178,7 +178,7 @@ func (o *Schedule) GetExpiration() time.Time { // GetExpirationOk returns a tuple with the Expiration field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schedule) GetExpirationOk() (*time.Time, bool) { - if o == nil || isNil(o.Expiration) { + if o == nil || IsNil(o.Expiration) { return nil, false } return o.Expiration, true @@ -186,7 +186,7 @@ func (o *Schedule) GetExpirationOk() (*time.Time, bool) { // HasExpiration returns a boolean if a field has been set. func (o *Schedule) HasExpiration() bool { - if o != nil && !isNil(o.Expiration) { + if o != nil && !IsNil(o.Expiration) { return true } @@ -200,7 +200,7 @@ func (o *Schedule) SetExpiration(v time.Time) { // GetTimeZoneId returns the TimeZoneId field value if set, zero value otherwise. func (o *Schedule) GetTimeZoneId() string { - if o == nil || isNil(o.TimeZoneId) { + if o == nil || IsNil(o.TimeZoneId) { var ret string return ret } @@ -210,7 +210,7 @@ func (o *Schedule) GetTimeZoneId() string { // GetTimeZoneIdOk returns a tuple with the TimeZoneId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schedule) GetTimeZoneIdOk() (*string, bool) { - if o == nil || isNil(o.TimeZoneId) { + if o == nil || IsNil(o.TimeZoneId) { return nil, false } return o.TimeZoneId, true @@ -218,7 +218,7 @@ func (o *Schedule) GetTimeZoneIdOk() (*string, bool) { // HasTimeZoneId returns a boolean if a field has been set. func (o *Schedule) HasTimeZoneId() bool { - if o != nil && !isNil(o.TimeZoneId) { + if o != nil && !IsNil(o.TimeZoneId) { return true } @@ -241,17 +241,17 @@ func (o Schedule) MarshalJSON() ([]byte, error) { func (o Schedule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type - if !isNil(o.Months) { + if !IsNil(o.Months) { toSerialize["months"] = o.Months } - if !isNil(o.Days) { + if !IsNil(o.Days) { toSerialize["days"] = o.Days } toSerialize["hours"] = o.Hours - if !isNil(o.Expiration) { + if !IsNil(o.Expiration) { toSerialize["expiration"] = o.Expiration } - if !isNil(o.TimeZoneId) { + if !IsNil(o.TimeZoneId) { toSerialize["timeZoneId"] = o.TimeZoneId } @@ -262,8 +262,8 @@ func (o Schedule) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Schedule) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *Schedule) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -273,7 +273,7 @@ func (o *Schedule) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -287,13 +287,17 @@ func (o *Schedule) UnmarshalJSON(bytes []byte) (err error) { varSchedule := _Schedule{} - if err = json.Unmarshal(bytes, &varSchedule); err == nil { + err = json.Unmarshal(data, &varSchedule) + + if err != nil { + return err + } + *o = Schedule(varSchedule) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "months") delete(additionalProperties, "days") diff --git a/api_v3/model_schedule_1.go b/api_v3/model_schedule_1.go index 4da1a27e0..8a2dbaf84 100644 --- a/api_v3/model_schedule_1.go +++ b/api_v3/model_schedule_1.go @@ -79,7 +79,7 @@ func (o *Schedule1) SetType(v ScheduleType) { // GetMonths returns the Months field value if set, zero value otherwise. func (o *Schedule1) GetMonths() Schedule1Months { - if o == nil || isNil(o.Months) { + if o == nil || IsNil(o.Months) { var ret Schedule1Months return ret } @@ -89,7 +89,7 @@ func (o *Schedule1) GetMonths() Schedule1Months { // GetMonthsOk returns a tuple with the Months field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schedule1) GetMonthsOk() (*Schedule1Months, bool) { - if o == nil || isNil(o.Months) { + if o == nil || IsNil(o.Months) { return nil, false } return o.Months, true @@ -97,7 +97,7 @@ func (o *Schedule1) GetMonthsOk() (*Schedule1Months, bool) { // HasMonths returns a boolean if a field has been set. func (o *Schedule1) HasMonths() bool { - if o != nil && !isNil(o.Months) { + if o != nil && !IsNil(o.Months) { return true } @@ -111,7 +111,7 @@ func (o *Schedule1) SetMonths(v Schedule1Months) { // GetDays returns the Days field value if set, zero value otherwise. func (o *Schedule1) GetDays() Schedule1Days { - if o == nil || isNil(o.Days) { + if o == nil || IsNil(o.Days) { var ret Schedule1Days return ret } @@ -121,7 +121,7 @@ func (o *Schedule1) GetDays() Schedule1Days { // GetDaysOk returns a tuple with the Days field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schedule1) GetDaysOk() (*Schedule1Days, bool) { - if o == nil || isNil(o.Days) { + if o == nil || IsNil(o.Days) { return nil, false } return o.Days, true @@ -129,7 +129,7 @@ func (o *Schedule1) GetDaysOk() (*Schedule1Days, bool) { // HasDays returns a boolean if a field has been set. func (o *Schedule1) HasDays() bool { - if o != nil && !isNil(o.Days) { + if o != nil && !IsNil(o.Days) { return true } @@ -167,7 +167,7 @@ func (o *Schedule1) SetHours(v Schedule1Hours) { // GetExpiration returns the Expiration field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Schedule1) GetExpiration() time.Time { - if o == nil || isNil(o.Expiration.Get()) { + if o == nil || IsNil(o.Expiration.Get()) { var ret time.Time return ret } @@ -209,7 +209,7 @@ func (o *Schedule1) UnsetExpiration() { // GetTimeZoneId returns the TimeZoneId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Schedule1) GetTimeZoneId() string { - if o == nil || isNil(o.TimeZoneId.Get()) { + if o == nil || IsNil(o.TimeZoneId.Get()) { var ret string return ret } @@ -260,10 +260,10 @@ func (o Schedule1) MarshalJSON() ([]byte, error) { func (o Schedule1) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type - if !isNil(o.Months) { + if !IsNil(o.Months) { toSerialize["months"] = o.Months } - if !isNil(o.Days) { + if !IsNil(o.Days) { toSerialize["days"] = o.Days } toSerialize["hours"] = o.Hours @@ -281,8 +281,8 @@ func (o Schedule1) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Schedule1) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *Schedule1) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -292,7 +292,7 @@ func (o *Schedule1) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -306,13 +306,17 @@ func (o *Schedule1) UnmarshalJSON(bytes []byte) (err error) { varSchedule1 := _Schedule1{} - if err = json.Unmarshal(bytes, &varSchedule1); err == nil { + err = json.Unmarshal(data, &varSchedule1) + + if err != nil { + return err + } + *o = Schedule1(varSchedule1) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "months") delete(additionalProperties, "days") diff --git a/api_v3/model_schedule_1_days.go b/api_v3/model_schedule_1_days.go index c861f1648..32ec5fc29 100644 --- a/api_v3/model_schedule_1_days.go +++ b/api_v3/model_schedule_1_days.go @@ -99,7 +99,7 @@ func (o *Schedule1Days) SetValues(v []string) { // GetInterval returns the Interval field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Schedule1Days) GetInterval() int32 { - if o == nil || isNil(o.Interval.Get()) { + if o == nil || IsNil(o.Interval.Get()) { var ret int32 return ret } @@ -162,8 +162,8 @@ func (o Schedule1Days) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Schedule1Days) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *Schedule1Days) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -173,7 +173,7 @@ func (o *Schedule1Days) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -187,13 +187,17 @@ func (o *Schedule1Days) UnmarshalJSON(bytes []byte) (err error) { varSchedule1Days := _Schedule1Days{} - if err = json.Unmarshal(bytes, &varSchedule1Days); err == nil { + err = json.Unmarshal(data, &varSchedule1Days) + + if err != nil { + return err + } + *o = Schedule1Days(varSchedule1Days) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "values") delete(additionalProperties, "interval") diff --git a/api_v3/model_schedule_1_hours.go b/api_v3/model_schedule_1_hours.go index 766cffeff..dc166bee9 100644 --- a/api_v3/model_schedule_1_hours.go +++ b/api_v3/model_schedule_1_hours.go @@ -99,7 +99,7 @@ func (o *Schedule1Hours) SetValues(v []string) { // GetInterval returns the Interval field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Schedule1Hours) GetInterval() int32 { - if o == nil || isNil(o.Interval.Get()) { + if o == nil || IsNil(o.Interval.Get()) { var ret int32 return ret } @@ -162,8 +162,8 @@ func (o Schedule1Hours) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Schedule1Hours) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *Schedule1Hours) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -173,7 +173,7 @@ func (o *Schedule1Hours) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -187,13 +187,17 @@ func (o *Schedule1Hours) UnmarshalJSON(bytes []byte) (err error) { varSchedule1Hours := _Schedule1Hours{} - if err = json.Unmarshal(bytes, &varSchedule1Hours); err == nil { + err = json.Unmarshal(data, &varSchedule1Hours) + + if err != nil { + return err + } + *o = Schedule1Hours(varSchedule1Hours) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "values") delete(additionalProperties, "interval") diff --git a/api_v3/model_schedule_1_months.go b/api_v3/model_schedule_1_months.go index a49a40cd5..2f673e014 100644 --- a/api_v3/model_schedule_1_months.go +++ b/api_v3/model_schedule_1_months.go @@ -99,7 +99,7 @@ func (o *Schedule1Months) SetValues(v []string) { // GetInterval returns the Interval field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Schedule1Months) GetInterval() int32 { - if o == nil || isNil(o.Interval.Get()) { + if o == nil || IsNil(o.Interval.Get()) { var ret int32 return ret } @@ -162,8 +162,8 @@ func (o Schedule1Months) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Schedule1Months) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *Schedule1Months) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -173,7 +173,7 @@ func (o *Schedule1Months) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -187,13 +187,17 @@ func (o *Schedule1Months) UnmarshalJSON(bytes []byte) (err error) { varSchedule1Months := _Schedule1Months{} - if err = json.Unmarshal(bytes, &varSchedule1Months); err == nil { + err = json.Unmarshal(data, &varSchedule1Months) + + if err != nil { + return err + } + *o = Schedule1Months(varSchedule1Months) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "values") delete(additionalProperties, "interval") diff --git a/api_v3/model_schedule_days.go b/api_v3/model_schedule_days.go index 553ecea3c..11c6458a6 100644 --- a/api_v3/model_schedule_days.go +++ b/api_v3/model_schedule_days.go @@ -100,7 +100,7 @@ func (o *ScheduleDays) SetValues(v []string) { // GetInterval returns the Interval field value if set, zero value otherwise. func (o *ScheduleDays) GetInterval() int64 { - if o == nil || isNil(o.Interval) { + if o == nil || IsNil(o.Interval) { var ret int64 return ret } @@ -110,7 +110,7 @@ func (o *ScheduleDays) GetInterval() int64 { // GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ScheduleDays) GetIntervalOk() (*int64, bool) { - if o == nil || isNil(o.Interval) { + if o == nil || IsNil(o.Interval) { return nil, false } return o.Interval, true @@ -118,7 +118,7 @@ func (o *ScheduleDays) GetIntervalOk() (*int64, bool) { // HasInterval returns a boolean if a field has been set. func (o *ScheduleDays) HasInterval() bool { - if o != nil && !isNil(o.Interval) { + if o != nil && !IsNil(o.Interval) { return true } @@ -142,7 +142,7 @@ func (o ScheduleDays) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type toSerialize["values"] = o.Values - if !isNil(o.Interval) { + if !IsNil(o.Interval) { toSerialize["interval"] = o.Interval } @@ -153,8 +153,8 @@ func (o ScheduleDays) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ScheduleDays) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ScheduleDays) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -164,7 +164,7 @@ func (o *ScheduleDays) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -178,13 +178,17 @@ func (o *ScheduleDays) UnmarshalJSON(bytes []byte) (err error) { varScheduleDays := _ScheduleDays{} - if err = json.Unmarshal(bytes, &varScheduleDays); err == nil { + err = json.Unmarshal(data, &varScheduleDays) + + if err != nil { + return err + } + *o = ScheduleDays(varScheduleDays) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "values") delete(additionalProperties, "interval") diff --git a/api_v3/model_schedule_hours.go b/api_v3/model_schedule_hours.go index 597c6c987..803e4a091 100644 --- a/api_v3/model_schedule_hours.go +++ b/api_v3/model_schedule_hours.go @@ -100,7 +100,7 @@ func (o *ScheduleHours) SetValues(v []string) { // GetInterval returns the Interval field value if set, zero value otherwise. func (o *ScheduleHours) GetInterval() int64 { - if o == nil || isNil(o.Interval) { + if o == nil || IsNil(o.Interval) { var ret int64 return ret } @@ -110,7 +110,7 @@ func (o *ScheduleHours) GetInterval() int64 { // GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ScheduleHours) GetIntervalOk() (*int64, bool) { - if o == nil || isNil(o.Interval) { + if o == nil || IsNil(o.Interval) { return nil, false } return o.Interval, true @@ -118,7 +118,7 @@ func (o *ScheduleHours) GetIntervalOk() (*int64, bool) { // HasInterval returns a boolean if a field has been set. func (o *ScheduleHours) HasInterval() bool { - if o != nil && !isNil(o.Interval) { + if o != nil && !IsNil(o.Interval) { return true } @@ -142,7 +142,7 @@ func (o ScheduleHours) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type toSerialize["values"] = o.Values - if !isNil(o.Interval) { + if !IsNil(o.Interval) { toSerialize["interval"] = o.Interval } @@ -153,8 +153,8 @@ func (o ScheduleHours) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ScheduleHours) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ScheduleHours) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -164,7 +164,7 @@ func (o *ScheduleHours) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -178,13 +178,17 @@ func (o *ScheduleHours) UnmarshalJSON(bytes []byte) (err error) { varScheduleHours := _ScheduleHours{} - if err = json.Unmarshal(bytes, &varScheduleHours); err == nil { + err = json.Unmarshal(data, &varScheduleHours) + + if err != nil { + return err + } + *o = ScheduleHours(varScheduleHours) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "values") delete(additionalProperties, "interval") diff --git a/api_v3/model_schedule_months.go b/api_v3/model_schedule_months.go index d97ca954b..baecd4e0e 100644 --- a/api_v3/model_schedule_months.go +++ b/api_v3/model_schedule_months.go @@ -100,7 +100,7 @@ func (o *ScheduleMonths) SetValues(v []string) { // GetInterval returns the Interval field value if set, zero value otherwise. func (o *ScheduleMonths) GetInterval() int64 { - if o == nil || isNil(o.Interval) { + if o == nil || IsNil(o.Interval) { var ret int64 return ret } @@ -110,7 +110,7 @@ func (o *ScheduleMonths) GetInterval() int64 { // GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ScheduleMonths) GetIntervalOk() (*int64, bool) { - if o == nil || isNil(o.Interval) { + if o == nil || IsNil(o.Interval) { return nil, false } return o.Interval, true @@ -118,7 +118,7 @@ func (o *ScheduleMonths) GetIntervalOk() (*int64, bool) { // HasInterval returns a boolean if a field has been set. func (o *ScheduleMonths) HasInterval() bool { - if o != nil && !isNil(o.Interval) { + if o != nil && !IsNil(o.Interval) { return true } @@ -142,7 +142,7 @@ func (o ScheduleMonths) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type toSerialize["values"] = o.Values - if !isNil(o.Interval) { + if !IsNil(o.Interval) { toSerialize["interval"] = o.Interval } @@ -153,8 +153,8 @@ func (o ScheduleMonths) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ScheduleMonths) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ScheduleMonths) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -164,7 +164,7 @@ func (o *ScheduleMonths) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -178,13 +178,17 @@ func (o *ScheduleMonths) UnmarshalJSON(bytes []byte) (err error) { varScheduleMonths := _ScheduleMonths{} - if err = json.Unmarshal(bytes, &varScheduleMonths); err == nil { + err = json.Unmarshal(data, &varScheduleMonths) + + if err != nil { + return err + } + *o = ScheduleMonths(varScheduleMonths) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "values") delete(additionalProperties, "interval") diff --git a/api_v3/model_scheduled_search.go b/api_v3/model_scheduled_search.go index 4f6cea112..fdc7fedad 100644 --- a/api_v3/model_scheduled_search.go +++ b/api_v3/model_scheduled_search.go @@ -27,9 +27,9 @@ type ScheduledSearch struct { Description NullableString `json:"description,omitempty"` // The ID of the saved search that will be executed. SavedSearchId string `json:"savedSearchId"` - // A date-time in ISO-8601 format + // The date the scheduled search was initially created. Created NullableTime `json:"created,omitempty"` - // A date-time in ISO-8601 format + // The last date the scheduled search was modified. Modified NullableTime `json:"modified,omitempty"` Schedule Schedule1 `json:"schedule"` // A list of identities that should receive the scheduled search report via email. @@ -88,7 +88,7 @@ func NewScheduledSearchWithDefaults() *ScheduledSearch { // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ScheduledSearch) GetName() string { - if o == nil || isNil(o.Name.Get()) { + if o == nil || IsNil(o.Name.Get()) { var ret string return ret } @@ -130,7 +130,7 @@ func (o *ScheduledSearch) UnsetName() { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ScheduledSearch) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -196,7 +196,7 @@ func (o *ScheduledSearch) SetSavedSearchId(v string) { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ScheduledSearch) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -238,7 +238,7 @@ func (o *ScheduledSearch) UnsetCreated() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ScheduledSearch) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -328,7 +328,7 @@ func (o *ScheduledSearch) SetRecipients(v []SearchScheduleRecipientsInner) { // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *ScheduledSearch) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -338,7 +338,7 @@ func (o *ScheduledSearch) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ScheduledSearch) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -346,7 +346,7 @@ func (o *ScheduledSearch) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *ScheduledSearch) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -360,7 +360,7 @@ func (o *ScheduledSearch) SetEnabled(v bool) { // GetEmailEmptyResults returns the EmailEmptyResults field value if set, zero value otherwise. func (o *ScheduledSearch) GetEmailEmptyResults() bool { - if o == nil || isNil(o.EmailEmptyResults) { + if o == nil || IsNil(o.EmailEmptyResults) { var ret bool return ret } @@ -370,7 +370,7 @@ func (o *ScheduledSearch) GetEmailEmptyResults() bool { // GetEmailEmptyResultsOk returns a tuple with the EmailEmptyResults field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ScheduledSearch) GetEmailEmptyResultsOk() (*bool, bool) { - if o == nil || isNil(o.EmailEmptyResults) { + if o == nil || IsNil(o.EmailEmptyResults) { return nil, false } return o.EmailEmptyResults, true @@ -378,7 +378,7 @@ func (o *ScheduledSearch) GetEmailEmptyResultsOk() (*bool, bool) { // HasEmailEmptyResults returns a boolean if a field has been set. func (o *ScheduledSearch) HasEmailEmptyResults() bool { - if o != nil && !isNil(o.EmailEmptyResults) { + if o != nil && !IsNil(o.EmailEmptyResults) { return true } @@ -392,7 +392,7 @@ func (o *ScheduledSearch) SetEmailEmptyResults(v bool) { // GetDisplayQueryDetails returns the DisplayQueryDetails field value if set, zero value otherwise. func (o *ScheduledSearch) GetDisplayQueryDetails() bool { - if o == nil || isNil(o.DisplayQueryDetails) { + if o == nil || IsNil(o.DisplayQueryDetails) { var ret bool return ret } @@ -402,7 +402,7 @@ func (o *ScheduledSearch) GetDisplayQueryDetails() bool { // GetDisplayQueryDetailsOk returns a tuple with the DisplayQueryDetails field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ScheduledSearch) GetDisplayQueryDetailsOk() (*bool, bool) { - if o == nil || isNil(o.DisplayQueryDetails) { + if o == nil || IsNil(o.DisplayQueryDetails) { return nil, false } return o.DisplayQueryDetails, true @@ -410,7 +410,7 @@ func (o *ScheduledSearch) GetDisplayQueryDetailsOk() (*bool, bool) { // HasDisplayQueryDetails returns a boolean if a field has been set. func (o *ScheduledSearch) HasDisplayQueryDetails() bool { - if o != nil && !isNil(o.DisplayQueryDetails) { + if o != nil && !IsNil(o.DisplayQueryDetails) { return true } @@ -522,18 +522,18 @@ func (o ScheduledSearch) ToMap() (map[string]interface{}, error) { } toSerialize["schedule"] = o.Schedule toSerialize["recipients"] = o.Recipients - if !isNil(o.Enabled) { + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - if !isNil(o.EmailEmptyResults) { + if !IsNil(o.EmailEmptyResults) { toSerialize["emailEmptyResults"] = o.EmailEmptyResults } - if !isNil(o.DisplayQueryDetails) { + if !IsNil(o.DisplayQueryDetails) { toSerialize["displayQueryDetails"] = o.DisplayQueryDetails } - // skip: id is readOnly + toSerialize["id"] = o.Id toSerialize["owner"] = o.Owner - // skip: ownerId is readOnly + toSerialize["ownerId"] = o.OwnerId for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -542,8 +542,8 @@ func (o ScheduledSearch) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ScheduledSearch) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ScheduledSearch) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -557,7 +557,7 @@ func (o *ScheduledSearch) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -571,13 +571,17 @@ func (o *ScheduledSearch) UnmarshalJSON(bytes []byte) (err error) { varScheduledSearch := _ScheduledSearch{} - if err = json.Unmarshal(bytes, &varScheduledSearch); err == nil { + err = json.Unmarshal(data, &varScheduledSearch) + + if err != nil { + return err + } + *o = ScheduledSearch(varScheduledSearch) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "description") delete(additionalProperties, "savedSearchId") diff --git a/api_v3/model_scheduled_search_all_of_owner.go b/api_v3/model_scheduled_search_all_of_owner.go index d1b726a22..6a120532a 100644 --- a/api_v3/model_scheduled_search_all_of_owner.go +++ b/api_v3/model_scheduled_search_all_of_owner.go @@ -116,8 +116,8 @@ func (o ScheduledSearchAllOfOwner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ScheduledSearchAllOfOwner) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ScheduledSearchAllOfOwner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -127,7 +127,7 @@ func (o *ScheduledSearchAllOfOwner) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -141,13 +141,17 @@ func (o *ScheduledSearchAllOfOwner) UnmarshalJSON(bytes []byte) (err error) { varScheduledSearchAllOfOwner := _ScheduledSearchAllOfOwner{} - if err = json.Unmarshal(bytes, &varScheduledSearchAllOfOwner); err == nil { + err = json.Unmarshal(data, &varScheduledSearchAllOfOwner) + + if err != nil { + return err + } + *o = ScheduledSearchAllOfOwner(varScheduledSearchAllOfOwner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_scheduled_search_name.go b/api_v3/model_scheduled_search_name.go index 252dcb9fa..0720da406 100644 --- a/api_v3/model_scheduled_search_name.go +++ b/api_v3/model_scheduled_search_name.go @@ -47,7 +47,7 @@ func NewScheduledSearchNameWithDefaults() *ScheduledSearchName { // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ScheduledSearchName) GetName() string { - if o == nil || isNil(o.Name.Get()) { + if o == nil || IsNil(o.Name.Get()) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *ScheduledSearchName) UnsetName() { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ScheduledSearchName) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -153,16 +153,20 @@ func (o ScheduledSearchName) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ScheduledSearchName) UnmarshalJSON(bytes []byte) (err error) { +func (o *ScheduledSearchName) UnmarshalJSON(data []byte) (err error) { varScheduledSearchName := _ScheduledSearchName{} - if err = json.Unmarshal(bytes, &varScheduledSearchName); err == nil { + err = json.Unmarshal(data, &varScheduledSearchName) + + if err != nil { + return err + } + *o = ScheduledSearchName(varScheduledSearchName) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "description") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_schema.go b/api_v3/model_schema.go index 8acb08bdf..d62d190e3 100644 --- a/api_v3/model_schema.go +++ b/api_v3/model_schema.go @@ -68,7 +68,7 @@ func NewSchemaWithDefaults() *Schema { // GetId returns the Id field value if set, zero value otherwise. func (o *Schema) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -78,7 +78,7 @@ func (o *Schema) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schema) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -86,7 +86,7 @@ func (o *Schema) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Schema) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -100,7 +100,7 @@ func (o *Schema) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *Schema) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -110,7 +110,7 @@ func (o *Schema) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schema) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -118,7 +118,7 @@ func (o *Schema) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *Schema) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -132,7 +132,7 @@ func (o *Schema) SetName(v string) { // GetNativeObjectType returns the NativeObjectType field value if set, zero value otherwise. func (o *Schema) GetNativeObjectType() string { - if o == nil || isNil(o.NativeObjectType) { + if o == nil || IsNil(o.NativeObjectType) { var ret string return ret } @@ -142,7 +142,7 @@ func (o *Schema) GetNativeObjectType() string { // GetNativeObjectTypeOk returns a tuple with the NativeObjectType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schema) GetNativeObjectTypeOk() (*string, bool) { - if o == nil || isNil(o.NativeObjectType) { + if o == nil || IsNil(o.NativeObjectType) { return nil, false } return o.NativeObjectType, true @@ -150,7 +150,7 @@ func (o *Schema) GetNativeObjectTypeOk() (*string, bool) { // HasNativeObjectType returns a boolean if a field has been set. func (o *Schema) HasNativeObjectType() bool { - if o != nil && !isNil(o.NativeObjectType) { + if o != nil && !IsNil(o.NativeObjectType) { return true } @@ -164,7 +164,7 @@ func (o *Schema) SetNativeObjectType(v string) { // GetIdentityAttribute returns the IdentityAttribute field value if set, zero value otherwise. func (o *Schema) GetIdentityAttribute() string { - if o == nil || isNil(o.IdentityAttribute) { + if o == nil || IsNil(o.IdentityAttribute) { var ret string return ret } @@ -174,7 +174,7 @@ func (o *Schema) GetIdentityAttribute() string { // GetIdentityAttributeOk returns a tuple with the IdentityAttribute field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schema) GetIdentityAttributeOk() (*string, bool) { - if o == nil || isNil(o.IdentityAttribute) { + if o == nil || IsNil(o.IdentityAttribute) { return nil, false } return o.IdentityAttribute, true @@ -182,7 +182,7 @@ func (o *Schema) GetIdentityAttributeOk() (*string, bool) { // HasIdentityAttribute returns a boolean if a field has been set. func (o *Schema) HasIdentityAttribute() bool { - if o != nil && !isNil(o.IdentityAttribute) { + if o != nil && !IsNil(o.IdentityAttribute) { return true } @@ -196,7 +196,7 @@ func (o *Schema) SetIdentityAttribute(v string) { // GetDisplayAttribute returns the DisplayAttribute field value if set, zero value otherwise. func (o *Schema) GetDisplayAttribute() string { - if o == nil || isNil(o.DisplayAttribute) { + if o == nil || IsNil(o.DisplayAttribute) { var ret string return ret } @@ -206,7 +206,7 @@ func (o *Schema) GetDisplayAttribute() string { // GetDisplayAttributeOk returns a tuple with the DisplayAttribute field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schema) GetDisplayAttributeOk() (*string, bool) { - if o == nil || isNil(o.DisplayAttribute) { + if o == nil || IsNil(o.DisplayAttribute) { return nil, false } return o.DisplayAttribute, true @@ -214,7 +214,7 @@ func (o *Schema) GetDisplayAttributeOk() (*string, bool) { // HasDisplayAttribute returns a boolean if a field has been set. func (o *Schema) HasDisplayAttribute() bool { - if o != nil && !isNil(o.DisplayAttribute) { + if o != nil && !IsNil(o.DisplayAttribute) { return true } @@ -228,7 +228,7 @@ func (o *Schema) SetDisplayAttribute(v string) { // GetHierarchyAttribute returns the HierarchyAttribute field value if set, zero value otherwise. func (o *Schema) GetHierarchyAttribute() string { - if o == nil || isNil(o.HierarchyAttribute) { + if o == nil || IsNil(o.HierarchyAttribute) { var ret string return ret } @@ -238,7 +238,7 @@ func (o *Schema) GetHierarchyAttribute() string { // GetHierarchyAttributeOk returns a tuple with the HierarchyAttribute field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schema) GetHierarchyAttributeOk() (*string, bool) { - if o == nil || isNil(o.HierarchyAttribute) { + if o == nil || IsNil(o.HierarchyAttribute) { return nil, false } return o.HierarchyAttribute, true @@ -246,7 +246,7 @@ func (o *Schema) GetHierarchyAttributeOk() (*string, bool) { // HasHierarchyAttribute returns a boolean if a field has been set. func (o *Schema) HasHierarchyAttribute() bool { - if o != nil && !isNil(o.HierarchyAttribute) { + if o != nil && !IsNil(o.HierarchyAttribute) { return true } @@ -260,7 +260,7 @@ func (o *Schema) SetHierarchyAttribute(v string) { // GetIncludePermissions returns the IncludePermissions field value if set, zero value otherwise. func (o *Schema) GetIncludePermissions() bool { - if o == nil || isNil(o.IncludePermissions) { + if o == nil || IsNil(o.IncludePermissions) { var ret bool return ret } @@ -270,7 +270,7 @@ func (o *Schema) GetIncludePermissions() bool { // GetIncludePermissionsOk returns a tuple with the IncludePermissions field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schema) GetIncludePermissionsOk() (*bool, bool) { - if o == nil || isNil(o.IncludePermissions) { + if o == nil || IsNil(o.IncludePermissions) { return nil, false } return o.IncludePermissions, true @@ -278,7 +278,7 @@ func (o *Schema) GetIncludePermissionsOk() (*bool, bool) { // HasIncludePermissions returns a boolean if a field has been set. func (o *Schema) HasIncludePermissions() bool { - if o != nil && !isNil(o.IncludePermissions) { + if o != nil && !IsNil(o.IncludePermissions) { return true } @@ -292,7 +292,7 @@ func (o *Schema) SetIncludePermissions(v bool) { // GetFeatures returns the Features field value if set, zero value otherwise. func (o *Schema) GetFeatures() []string { - if o == nil || isNil(o.Features) { + if o == nil || IsNil(o.Features) { var ret []string return ret } @@ -302,7 +302,7 @@ func (o *Schema) GetFeatures() []string { // GetFeaturesOk returns a tuple with the Features field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schema) GetFeaturesOk() ([]string, bool) { - if o == nil || isNil(o.Features) { + if o == nil || IsNil(o.Features) { return nil, false } return o.Features, true @@ -310,7 +310,7 @@ func (o *Schema) GetFeaturesOk() ([]string, bool) { // HasFeatures returns a boolean if a field has been set. func (o *Schema) HasFeatures() bool { - if o != nil && !isNil(o.Features) { + if o != nil && !IsNil(o.Features) { return true } @@ -324,7 +324,7 @@ func (o *Schema) SetFeatures(v []string) { // GetConfiguration returns the Configuration field value if set, zero value otherwise. func (o *Schema) GetConfiguration() map[string]interface{} { - if o == nil || isNil(o.Configuration) { + if o == nil || IsNil(o.Configuration) { var ret map[string]interface{} return ret } @@ -334,7 +334,7 @@ func (o *Schema) GetConfiguration() map[string]interface{} { // GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schema) GetConfigurationOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Configuration) { + if o == nil || IsNil(o.Configuration) { return map[string]interface{}{}, false } return o.Configuration, true @@ -342,7 +342,7 @@ func (o *Schema) GetConfigurationOk() (map[string]interface{}, bool) { // HasConfiguration returns a boolean if a field has been set. func (o *Schema) HasConfiguration() bool { - if o != nil && !isNil(o.Configuration) { + if o != nil && !IsNil(o.Configuration) { return true } @@ -356,7 +356,7 @@ func (o *Schema) SetConfiguration(v map[string]interface{}) { // GetAttributes returns the Attributes field value if set, zero value otherwise. func (o *Schema) GetAttributes() []AttributeDefinition { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { var ret []AttributeDefinition return ret } @@ -366,7 +366,7 @@ func (o *Schema) GetAttributes() []AttributeDefinition { // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schema) GetAttributesOk() ([]AttributeDefinition, bool) { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { return nil, false } return o.Attributes, true @@ -374,7 +374,7 @@ func (o *Schema) GetAttributesOk() ([]AttributeDefinition, bool) { // HasAttributes returns a boolean if a field has been set. func (o *Schema) HasAttributes() bool { - if o != nil && !isNil(o.Attributes) { + if o != nil && !IsNil(o.Attributes) { return true } @@ -388,7 +388,7 @@ func (o *Schema) SetAttributes(v []AttributeDefinition) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *Schema) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -398,7 +398,7 @@ func (o *Schema) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schema) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -406,7 +406,7 @@ func (o *Schema) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *Schema) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -420,7 +420,7 @@ func (o *Schema) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *Schema) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -430,7 +430,7 @@ func (o *Schema) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Schema) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -438,7 +438,7 @@ func (o *Schema) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *Schema) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -460,40 +460,40 @@ func (o Schema) MarshalJSON() ([]byte, error) { func (o Schema) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.NativeObjectType) { + if !IsNil(o.NativeObjectType) { toSerialize["nativeObjectType"] = o.NativeObjectType } - if !isNil(o.IdentityAttribute) { + if !IsNil(o.IdentityAttribute) { toSerialize["identityAttribute"] = o.IdentityAttribute } - if !isNil(o.DisplayAttribute) { + if !IsNil(o.DisplayAttribute) { toSerialize["displayAttribute"] = o.DisplayAttribute } - if !isNil(o.HierarchyAttribute) { + if !IsNil(o.HierarchyAttribute) { toSerialize["hierarchyAttribute"] = o.HierarchyAttribute } - if !isNil(o.IncludePermissions) { + if !IsNil(o.IncludePermissions) { toSerialize["includePermissions"] = o.IncludePermissions } - if !isNil(o.Features) { + if !IsNil(o.Features) { toSerialize["features"] = o.Features } - if !isNil(o.Configuration) { + if !IsNil(o.Configuration) { toSerialize["configuration"] = o.Configuration } - if !isNil(o.Attributes) { + if !IsNil(o.Attributes) { toSerialize["attributes"] = o.Attributes } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } @@ -504,16 +504,20 @@ func (o Schema) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Schema) UnmarshalJSON(bytes []byte) (err error) { +func (o *Schema) UnmarshalJSON(data []byte) (err error) { varSchema := _Schema{} - if err = json.Unmarshal(bytes, &varSchema); err == nil { + err = json.Unmarshal(data, &varSchema) + + if err != nil { + return err + } + *o = Schema(varSchema) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "nativeObjectType") diff --git a/api_v3/model_search.go b/api_v3/model_search.go index 1cf264560..bebb017af 100644 --- a/api_v3/model_search.go +++ b/api_v3/model_search.go @@ -78,7 +78,7 @@ func NewSearchWithDefaults() *Search { // GetIndices returns the Indices field value if set, zero value otherwise. func (o *Search) GetIndices() []Index { - if o == nil || isNil(o.Indices) { + if o == nil || IsNil(o.Indices) { var ret []Index return ret } @@ -88,7 +88,7 @@ func (o *Search) GetIndices() []Index { // GetIndicesOk returns a tuple with the Indices field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Search) GetIndicesOk() ([]Index, bool) { - if o == nil || isNil(o.Indices) { + if o == nil || IsNil(o.Indices) { return nil, false } return o.Indices, true @@ -96,7 +96,7 @@ func (o *Search) GetIndicesOk() ([]Index, bool) { // HasIndices returns a boolean if a field has been set. func (o *Search) HasIndices() bool { - if o != nil && !isNil(o.Indices) { + if o != nil && !IsNil(o.Indices) { return true } @@ -110,7 +110,7 @@ func (o *Search) SetIndices(v []Index) { // GetQueryType returns the QueryType field value if set, zero value otherwise. func (o *Search) GetQueryType() QueryType { - if o == nil || isNil(o.QueryType) { + if o == nil || IsNil(o.QueryType) { var ret QueryType return ret } @@ -120,7 +120,7 @@ func (o *Search) GetQueryType() QueryType { // GetQueryTypeOk returns a tuple with the QueryType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Search) GetQueryTypeOk() (*QueryType, bool) { - if o == nil || isNil(o.QueryType) { + if o == nil || IsNil(o.QueryType) { return nil, false } return o.QueryType, true @@ -128,7 +128,7 @@ func (o *Search) GetQueryTypeOk() (*QueryType, bool) { // HasQueryType returns a boolean if a field has been set. func (o *Search) HasQueryType() bool { - if o != nil && !isNil(o.QueryType) { + if o != nil && !IsNil(o.QueryType) { return true } @@ -142,7 +142,7 @@ func (o *Search) SetQueryType(v QueryType) { // GetQueryVersion returns the QueryVersion field value if set, zero value otherwise. func (o *Search) GetQueryVersion() string { - if o == nil || isNil(o.QueryVersion) { + if o == nil || IsNil(o.QueryVersion) { var ret string return ret } @@ -152,7 +152,7 @@ func (o *Search) GetQueryVersion() string { // GetQueryVersionOk returns a tuple with the QueryVersion field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Search) GetQueryVersionOk() (*string, bool) { - if o == nil || isNil(o.QueryVersion) { + if o == nil || IsNil(o.QueryVersion) { return nil, false } return o.QueryVersion, true @@ -160,7 +160,7 @@ func (o *Search) GetQueryVersionOk() (*string, bool) { // HasQueryVersion returns a boolean if a field has been set. func (o *Search) HasQueryVersion() bool { - if o != nil && !isNil(o.QueryVersion) { + if o != nil && !IsNil(o.QueryVersion) { return true } @@ -174,7 +174,7 @@ func (o *Search) SetQueryVersion(v string) { // GetQuery returns the Query field value if set, zero value otherwise. func (o *Search) GetQuery() Query { - if o == nil || isNil(o.Query) { + if o == nil || IsNil(o.Query) { var ret Query return ret } @@ -184,7 +184,7 @@ func (o *Search) GetQuery() Query { // GetQueryOk returns a tuple with the Query field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Search) GetQueryOk() (*Query, bool) { - if o == nil || isNil(o.Query) { + if o == nil || IsNil(o.Query) { return nil, false } return o.Query, true @@ -192,7 +192,7 @@ func (o *Search) GetQueryOk() (*Query, bool) { // HasQuery returns a boolean if a field has been set. func (o *Search) HasQuery() bool { - if o != nil && !isNil(o.Query) { + if o != nil && !IsNil(o.Query) { return true } @@ -206,7 +206,7 @@ func (o *Search) SetQuery(v Query) { // GetQueryDsl returns the QueryDsl field value if set, zero value otherwise. func (o *Search) GetQueryDsl() map[string]interface{} { - if o == nil || isNil(o.QueryDsl) { + if o == nil || IsNil(o.QueryDsl) { var ret map[string]interface{} return ret } @@ -216,7 +216,7 @@ func (o *Search) GetQueryDsl() map[string]interface{} { // GetQueryDslOk returns a tuple with the QueryDsl field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Search) GetQueryDslOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.QueryDsl) { + if o == nil || IsNil(o.QueryDsl) { return map[string]interface{}{}, false } return o.QueryDsl, true @@ -224,7 +224,7 @@ func (o *Search) GetQueryDslOk() (map[string]interface{}, bool) { // HasQueryDsl returns a boolean if a field has been set. func (o *Search) HasQueryDsl() bool { - if o != nil && !isNil(o.QueryDsl) { + if o != nil && !IsNil(o.QueryDsl) { return true } @@ -238,7 +238,7 @@ func (o *Search) SetQueryDsl(v map[string]interface{}) { // GetTextQuery returns the TextQuery field value if set, zero value otherwise. func (o *Search) GetTextQuery() TextQuery { - if o == nil || isNil(o.TextQuery) { + if o == nil || IsNil(o.TextQuery) { var ret TextQuery return ret } @@ -248,7 +248,7 @@ func (o *Search) GetTextQuery() TextQuery { // GetTextQueryOk returns a tuple with the TextQuery field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Search) GetTextQueryOk() (*TextQuery, bool) { - if o == nil || isNil(o.TextQuery) { + if o == nil || IsNil(o.TextQuery) { return nil, false } return o.TextQuery, true @@ -256,7 +256,7 @@ func (o *Search) GetTextQueryOk() (*TextQuery, bool) { // HasTextQuery returns a boolean if a field has been set. func (o *Search) HasTextQuery() bool { - if o != nil && !isNil(o.TextQuery) { + if o != nil && !IsNil(o.TextQuery) { return true } @@ -270,7 +270,7 @@ func (o *Search) SetTextQuery(v TextQuery) { // GetTypeAheadQuery returns the TypeAheadQuery field value if set, zero value otherwise. func (o *Search) GetTypeAheadQuery() TypeAheadQuery { - if o == nil || isNil(o.TypeAheadQuery) { + if o == nil || IsNil(o.TypeAheadQuery) { var ret TypeAheadQuery return ret } @@ -280,7 +280,7 @@ func (o *Search) GetTypeAheadQuery() TypeAheadQuery { // GetTypeAheadQueryOk returns a tuple with the TypeAheadQuery field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Search) GetTypeAheadQueryOk() (*TypeAheadQuery, bool) { - if o == nil || isNil(o.TypeAheadQuery) { + if o == nil || IsNil(o.TypeAheadQuery) { return nil, false } return o.TypeAheadQuery, true @@ -288,7 +288,7 @@ func (o *Search) GetTypeAheadQueryOk() (*TypeAheadQuery, bool) { // HasTypeAheadQuery returns a boolean if a field has been set. func (o *Search) HasTypeAheadQuery() bool { - if o != nil && !isNil(o.TypeAheadQuery) { + if o != nil && !IsNil(o.TypeAheadQuery) { return true } @@ -302,7 +302,7 @@ func (o *Search) SetTypeAheadQuery(v TypeAheadQuery) { // GetIncludeNested returns the IncludeNested field value if set, zero value otherwise. func (o *Search) GetIncludeNested() bool { - if o == nil || isNil(o.IncludeNested) { + if o == nil || IsNil(o.IncludeNested) { var ret bool return ret } @@ -312,7 +312,7 @@ func (o *Search) GetIncludeNested() bool { // GetIncludeNestedOk returns a tuple with the IncludeNested field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Search) GetIncludeNestedOk() (*bool, bool) { - if o == nil || isNil(o.IncludeNested) { + if o == nil || IsNil(o.IncludeNested) { return nil, false } return o.IncludeNested, true @@ -320,7 +320,7 @@ func (o *Search) GetIncludeNestedOk() (*bool, bool) { // HasIncludeNested returns a boolean if a field has been set. func (o *Search) HasIncludeNested() bool { - if o != nil && !isNil(o.IncludeNested) { + if o != nil && !IsNil(o.IncludeNested) { return true } @@ -334,7 +334,7 @@ func (o *Search) SetIncludeNested(v bool) { // GetQueryResultFilter returns the QueryResultFilter field value if set, zero value otherwise. func (o *Search) GetQueryResultFilter() QueryResultFilter { - if o == nil || isNil(o.QueryResultFilter) { + if o == nil || IsNil(o.QueryResultFilter) { var ret QueryResultFilter return ret } @@ -344,7 +344,7 @@ func (o *Search) GetQueryResultFilter() QueryResultFilter { // GetQueryResultFilterOk returns a tuple with the QueryResultFilter field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Search) GetQueryResultFilterOk() (*QueryResultFilter, bool) { - if o == nil || isNil(o.QueryResultFilter) { + if o == nil || IsNil(o.QueryResultFilter) { return nil, false } return o.QueryResultFilter, true @@ -352,7 +352,7 @@ func (o *Search) GetQueryResultFilterOk() (*QueryResultFilter, bool) { // HasQueryResultFilter returns a boolean if a field has been set. func (o *Search) HasQueryResultFilter() bool { - if o != nil && !isNil(o.QueryResultFilter) { + if o != nil && !IsNil(o.QueryResultFilter) { return true } @@ -366,7 +366,7 @@ func (o *Search) SetQueryResultFilter(v QueryResultFilter) { // GetAggregationType returns the AggregationType field value if set, zero value otherwise. func (o *Search) GetAggregationType() AggregationType { - if o == nil || isNil(o.AggregationType) { + if o == nil || IsNil(o.AggregationType) { var ret AggregationType return ret } @@ -376,7 +376,7 @@ func (o *Search) GetAggregationType() AggregationType { // GetAggregationTypeOk returns a tuple with the AggregationType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Search) GetAggregationTypeOk() (*AggregationType, bool) { - if o == nil || isNil(o.AggregationType) { + if o == nil || IsNil(o.AggregationType) { return nil, false } return o.AggregationType, true @@ -384,7 +384,7 @@ func (o *Search) GetAggregationTypeOk() (*AggregationType, bool) { // HasAggregationType returns a boolean if a field has been set. func (o *Search) HasAggregationType() bool { - if o != nil && !isNil(o.AggregationType) { + if o != nil && !IsNil(o.AggregationType) { return true } @@ -398,7 +398,7 @@ func (o *Search) SetAggregationType(v AggregationType) { // GetAggregationsVersion returns the AggregationsVersion field value if set, zero value otherwise. func (o *Search) GetAggregationsVersion() string { - if o == nil || isNil(o.AggregationsVersion) { + if o == nil || IsNil(o.AggregationsVersion) { var ret string return ret } @@ -408,7 +408,7 @@ func (o *Search) GetAggregationsVersion() string { // GetAggregationsVersionOk returns a tuple with the AggregationsVersion field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Search) GetAggregationsVersionOk() (*string, bool) { - if o == nil || isNil(o.AggregationsVersion) { + if o == nil || IsNil(o.AggregationsVersion) { return nil, false } return o.AggregationsVersion, true @@ -416,7 +416,7 @@ func (o *Search) GetAggregationsVersionOk() (*string, bool) { // HasAggregationsVersion returns a boolean if a field has been set. func (o *Search) HasAggregationsVersion() bool { - if o != nil && !isNil(o.AggregationsVersion) { + if o != nil && !IsNil(o.AggregationsVersion) { return true } @@ -430,7 +430,7 @@ func (o *Search) SetAggregationsVersion(v string) { // GetAggregationsDsl returns the AggregationsDsl field value if set, zero value otherwise. func (o *Search) GetAggregationsDsl() map[string]interface{} { - if o == nil || isNil(o.AggregationsDsl) { + if o == nil || IsNil(o.AggregationsDsl) { var ret map[string]interface{} return ret } @@ -440,7 +440,7 @@ func (o *Search) GetAggregationsDsl() map[string]interface{} { // GetAggregationsDslOk returns a tuple with the AggregationsDsl field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Search) GetAggregationsDslOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.AggregationsDsl) { + if o == nil || IsNil(o.AggregationsDsl) { return map[string]interface{}{}, false } return o.AggregationsDsl, true @@ -448,7 +448,7 @@ func (o *Search) GetAggregationsDslOk() (map[string]interface{}, bool) { // HasAggregationsDsl returns a boolean if a field has been set. func (o *Search) HasAggregationsDsl() bool { - if o != nil && !isNil(o.AggregationsDsl) { + if o != nil && !IsNil(o.AggregationsDsl) { return true } @@ -462,7 +462,7 @@ func (o *Search) SetAggregationsDsl(v map[string]interface{}) { // GetAggregations returns the Aggregations field value if set, zero value otherwise. func (o *Search) GetAggregations() SearchAggregationSpecification { - if o == nil || isNil(o.Aggregations) { + if o == nil || IsNil(o.Aggregations) { var ret SearchAggregationSpecification return ret } @@ -472,7 +472,7 @@ func (o *Search) GetAggregations() SearchAggregationSpecification { // GetAggregationsOk returns a tuple with the Aggregations field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Search) GetAggregationsOk() (*SearchAggregationSpecification, bool) { - if o == nil || isNil(o.Aggregations) { + if o == nil || IsNil(o.Aggregations) { return nil, false } return o.Aggregations, true @@ -480,7 +480,7 @@ func (o *Search) GetAggregationsOk() (*SearchAggregationSpecification, bool) { // HasAggregations returns a boolean if a field has been set. func (o *Search) HasAggregations() bool { - if o != nil && !isNil(o.Aggregations) { + if o != nil && !IsNil(o.Aggregations) { return true } @@ -494,7 +494,7 @@ func (o *Search) SetAggregations(v SearchAggregationSpecification) { // GetSort returns the Sort field value if set, zero value otherwise. func (o *Search) GetSort() []string { - if o == nil || isNil(o.Sort) { + if o == nil || IsNil(o.Sort) { var ret []string return ret } @@ -504,7 +504,7 @@ func (o *Search) GetSort() []string { // GetSortOk returns a tuple with the Sort field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Search) GetSortOk() ([]string, bool) { - if o == nil || isNil(o.Sort) { + if o == nil || IsNil(o.Sort) { return nil, false } return o.Sort, true @@ -512,7 +512,7 @@ func (o *Search) GetSortOk() ([]string, bool) { // HasSort returns a boolean if a field has been set. func (o *Search) HasSort() bool { - if o != nil && !isNil(o.Sort) { + if o != nil && !IsNil(o.Sort) { return true } @@ -526,7 +526,7 @@ func (o *Search) SetSort(v []string) { // GetSearchAfter returns the SearchAfter field value if set, zero value otherwise. func (o *Search) GetSearchAfter() []string { - if o == nil || isNil(o.SearchAfter) { + if o == nil || IsNil(o.SearchAfter) { var ret []string return ret } @@ -536,7 +536,7 @@ func (o *Search) GetSearchAfter() []string { // GetSearchAfterOk returns a tuple with the SearchAfter field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Search) GetSearchAfterOk() ([]string, bool) { - if o == nil || isNil(o.SearchAfter) { + if o == nil || IsNil(o.SearchAfter) { return nil, false } return o.SearchAfter, true @@ -544,7 +544,7 @@ func (o *Search) GetSearchAfterOk() ([]string, bool) { // HasSearchAfter returns a boolean if a field has been set. func (o *Search) HasSearchAfter() bool { - if o != nil && !isNil(o.SearchAfter) { + if o != nil && !IsNil(o.SearchAfter) { return true } @@ -558,7 +558,7 @@ func (o *Search) SetSearchAfter(v []string) { // GetFilters returns the Filters field value if set, zero value otherwise. func (o *Search) GetFilters() map[string]Filter { - if o == nil || isNil(o.Filters) { + if o == nil || IsNil(o.Filters) { var ret map[string]Filter return ret } @@ -568,7 +568,7 @@ func (o *Search) GetFilters() map[string]Filter { // GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Search) GetFiltersOk() (*map[string]Filter, bool) { - if o == nil || isNil(o.Filters) { + if o == nil || IsNil(o.Filters) { return nil, false } return o.Filters, true @@ -576,7 +576,7 @@ func (o *Search) GetFiltersOk() (*map[string]Filter, bool) { // HasFilters returns a boolean if a field has been set. func (o *Search) HasFilters() bool { - if o != nil && !isNil(o.Filters) { + if o != nil && !IsNil(o.Filters) { return true } @@ -598,52 +598,52 @@ func (o Search) MarshalJSON() ([]byte, error) { func (o Search) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Indices) { + if !IsNil(o.Indices) { toSerialize["indices"] = o.Indices } - if !isNil(o.QueryType) { + if !IsNil(o.QueryType) { toSerialize["queryType"] = o.QueryType } - if !isNil(o.QueryVersion) { + if !IsNil(o.QueryVersion) { toSerialize["queryVersion"] = o.QueryVersion } - if !isNil(o.Query) { + if !IsNil(o.Query) { toSerialize["query"] = o.Query } - if !isNil(o.QueryDsl) { + if !IsNil(o.QueryDsl) { toSerialize["queryDsl"] = o.QueryDsl } - if !isNil(o.TextQuery) { + if !IsNil(o.TextQuery) { toSerialize["textQuery"] = o.TextQuery } - if !isNil(o.TypeAheadQuery) { + if !IsNil(o.TypeAheadQuery) { toSerialize["typeAheadQuery"] = o.TypeAheadQuery } - if !isNil(o.IncludeNested) { + if !IsNil(o.IncludeNested) { toSerialize["includeNested"] = o.IncludeNested } - if !isNil(o.QueryResultFilter) { + if !IsNil(o.QueryResultFilter) { toSerialize["queryResultFilter"] = o.QueryResultFilter } - if !isNil(o.AggregationType) { + if !IsNil(o.AggregationType) { toSerialize["aggregationType"] = o.AggregationType } - if !isNil(o.AggregationsVersion) { + if !IsNil(o.AggregationsVersion) { toSerialize["aggregationsVersion"] = o.AggregationsVersion } - if !isNil(o.AggregationsDsl) { + if !IsNil(o.AggregationsDsl) { toSerialize["aggregationsDsl"] = o.AggregationsDsl } - if !isNil(o.Aggregations) { + if !IsNil(o.Aggregations) { toSerialize["aggregations"] = o.Aggregations } - if !isNil(o.Sort) { + if !IsNil(o.Sort) { toSerialize["sort"] = o.Sort } - if !isNil(o.SearchAfter) { + if !IsNil(o.SearchAfter) { toSerialize["searchAfter"] = o.SearchAfter } - if !isNil(o.Filters) { + if !IsNil(o.Filters) { toSerialize["filters"] = o.Filters } @@ -654,16 +654,20 @@ func (o Search) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Search) UnmarshalJSON(bytes []byte) (err error) { +func (o *Search) UnmarshalJSON(data []byte) (err error) { varSearch := _Search{} - if err = json.Unmarshal(bytes, &varSearch); err == nil { + err = json.Unmarshal(data, &varSearch) + + if err != nil { + return err + } + *o = Search(varSearch) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "indices") delete(additionalProperties, "queryType") delete(additionalProperties, "queryVersion") diff --git a/api_v3/model_search_aggregation_specification.go b/api_v3/model_search_aggregation_specification.go index d08f90bf8..a4b615a4d 100644 --- a/api_v3/model_search_aggregation_specification.go +++ b/api_v3/model_search_aggregation_specification.go @@ -48,7 +48,7 @@ func NewSearchAggregationSpecificationWithDefaults() *SearchAggregationSpecifica // GetNested returns the Nested field value if set, zero value otherwise. func (o *SearchAggregationSpecification) GetNested() NestedAggregation { - if o == nil || isNil(o.Nested) { + if o == nil || IsNil(o.Nested) { var ret NestedAggregation return ret } @@ -58,7 +58,7 @@ func (o *SearchAggregationSpecification) GetNested() NestedAggregation { // GetNestedOk returns a tuple with the Nested field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchAggregationSpecification) GetNestedOk() (*NestedAggregation, bool) { - if o == nil || isNil(o.Nested) { + if o == nil || IsNil(o.Nested) { return nil, false } return o.Nested, true @@ -66,7 +66,7 @@ func (o *SearchAggregationSpecification) GetNestedOk() (*NestedAggregation, bool // HasNested returns a boolean if a field has been set. func (o *SearchAggregationSpecification) HasNested() bool { - if o != nil && !isNil(o.Nested) { + if o != nil && !IsNil(o.Nested) { return true } @@ -80,7 +80,7 @@ func (o *SearchAggregationSpecification) SetNested(v NestedAggregation) { // GetMetric returns the Metric field value if set, zero value otherwise. func (o *SearchAggregationSpecification) GetMetric() MetricAggregation { - if o == nil || isNil(o.Metric) { + if o == nil || IsNil(o.Metric) { var ret MetricAggregation return ret } @@ -90,7 +90,7 @@ func (o *SearchAggregationSpecification) GetMetric() MetricAggregation { // GetMetricOk returns a tuple with the Metric field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchAggregationSpecification) GetMetricOk() (*MetricAggregation, bool) { - if o == nil || isNil(o.Metric) { + if o == nil || IsNil(o.Metric) { return nil, false } return o.Metric, true @@ -98,7 +98,7 @@ func (o *SearchAggregationSpecification) GetMetricOk() (*MetricAggregation, bool // HasMetric returns a boolean if a field has been set. func (o *SearchAggregationSpecification) HasMetric() bool { - if o != nil && !isNil(o.Metric) { + if o != nil && !IsNil(o.Metric) { return true } @@ -112,7 +112,7 @@ func (o *SearchAggregationSpecification) SetMetric(v MetricAggregation) { // GetFilter returns the Filter field value if set, zero value otherwise. func (o *SearchAggregationSpecification) GetFilter() FilterAggregation { - if o == nil || isNil(o.Filter) { + if o == nil || IsNil(o.Filter) { var ret FilterAggregation return ret } @@ -122,7 +122,7 @@ func (o *SearchAggregationSpecification) GetFilter() FilterAggregation { // GetFilterOk returns a tuple with the Filter field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchAggregationSpecification) GetFilterOk() (*FilterAggregation, bool) { - if o == nil || isNil(o.Filter) { + if o == nil || IsNil(o.Filter) { return nil, false } return o.Filter, true @@ -130,7 +130,7 @@ func (o *SearchAggregationSpecification) GetFilterOk() (*FilterAggregation, bool // HasFilter returns a boolean if a field has been set. func (o *SearchAggregationSpecification) HasFilter() bool { - if o != nil && !isNil(o.Filter) { + if o != nil && !IsNil(o.Filter) { return true } @@ -144,7 +144,7 @@ func (o *SearchAggregationSpecification) SetFilter(v FilterAggregation) { // GetBucket returns the Bucket field value if set, zero value otherwise. func (o *SearchAggregationSpecification) GetBucket() BucketAggregation { - if o == nil || isNil(o.Bucket) { + if o == nil || IsNil(o.Bucket) { var ret BucketAggregation return ret } @@ -154,7 +154,7 @@ func (o *SearchAggregationSpecification) GetBucket() BucketAggregation { // GetBucketOk returns a tuple with the Bucket field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchAggregationSpecification) GetBucketOk() (*BucketAggregation, bool) { - if o == nil || isNil(o.Bucket) { + if o == nil || IsNil(o.Bucket) { return nil, false } return o.Bucket, true @@ -162,7 +162,7 @@ func (o *SearchAggregationSpecification) GetBucketOk() (*BucketAggregation, bool // HasBucket returns a boolean if a field has been set. func (o *SearchAggregationSpecification) HasBucket() bool { - if o != nil && !isNil(o.Bucket) { + if o != nil && !IsNil(o.Bucket) { return true } @@ -176,7 +176,7 @@ func (o *SearchAggregationSpecification) SetBucket(v BucketAggregation) { // GetSubAggregation returns the SubAggregation field value if set, zero value otherwise. func (o *SearchAggregationSpecification) GetSubAggregation() SubSearchAggregationSpecification { - if o == nil || isNil(o.SubAggregation) { + if o == nil || IsNil(o.SubAggregation) { var ret SubSearchAggregationSpecification return ret } @@ -186,7 +186,7 @@ func (o *SearchAggregationSpecification) GetSubAggregation() SubSearchAggregatio // GetSubAggregationOk returns a tuple with the SubAggregation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchAggregationSpecification) GetSubAggregationOk() (*SubSearchAggregationSpecification, bool) { - if o == nil || isNil(o.SubAggregation) { + if o == nil || IsNil(o.SubAggregation) { return nil, false } return o.SubAggregation, true @@ -194,7 +194,7 @@ func (o *SearchAggregationSpecification) GetSubAggregationOk() (*SubSearchAggreg // HasSubAggregation returns a boolean if a field has been set. func (o *SearchAggregationSpecification) HasSubAggregation() bool { - if o != nil && !isNil(o.SubAggregation) { + if o != nil && !IsNil(o.SubAggregation) { return true } @@ -216,19 +216,19 @@ func (o SearchAggregationSpecification) MarshalJSON() ([]byte, error) { func (o SearchAggregationSpecification) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Nested) { + if !IsNil(o.Nested) { toSerialize["nested"] = o.Nested } - if !isNil(o.Metric) { + if !IsNil(o.Metric) { toSerialize["metric"] = o.Metric } - if !isNil(o.Filter) { + if !IsNil(o.Filter) { toSerialize["filter"] = o.Filter } - if !isNil(o.Bucket) { + if !IsNil(o.Bucket) { toSerialize["bucket"] = o.Bucket } - if !isNil(o.SubAggregation) { + if !IsNil(o.SubAggregation) { toSerialize["subAggregation"] = o.SubAggregation } @@ -239,16 +239,20 @@ func (o SearchAggregationSpecification) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *SearchAggregationSpecification) UnmarshalJSON(bytes []byte) (err error) { +func (o *SearchAggregationSpecification) UnmarshalJSON(data []byte) (err error) { varSearchAggregationSpecification := _SearchAggregationSpecification{} - if err = json.Unmarshal(bytes, &varSearchAggregationSpecification); err == nil { + err = json.Unmarshal(data, &varSearchAggregationSpecification) + + if err != nil { + return err + } + *o = SearchAggregationSpecification(varSearchAggregationSpecification) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "nested") delete(additionalProperties, "metric") delete(additionalProperties, "filter") diff --git a/api_v3/model_search_arguments.go b/api_v3/model_search_arguments.go index af004ef4e..868a7f108 100644 --- a/api_v3/model_search_arguments.go +++ b/api_v3/model_search_arguments.go @@ -21,6 +21,7 @@ var _ MappedNullable = &SearchArguments{} type SearchArguments struct { // The ID of the scheduled search that triggered the saved search execution. ScheduleId *string `json:"scheduleId,omitempty"` + // The owner of the scheduled search being tested. Owner *TypedReference `json:"owner,omitempty"` // The email recipients of the scheduled search being tested. Recipients []TypedReference `json:"recipients,omitempty"` @@ -48,7 +49,7 @@ func NewSearchArgumentsWithDefaults() *SearchArguments { // GetScheduleId returns the ScheduleId field value if set, zero value otherwise. func (o *SearchArguments) GetScheduleId() string { - if o == nil || isNil(o.ScheduleId) { + if o == nil || IsNil(o.ScheduleId) { var ret string return ret } @@ -58,7 +59,7 @@ func (o *SearchArguments) GetScheduleId() string { // GetScheduleIdOk returns a tuple with the ScheduleId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchArguments) GetScheduleIdOk() (*string, bool) { - if o == nil || isNil(o.ScheduleId) { + if o == nil || IsNil(o.ScheduleId) { return nil, false } return o.ScheduleId, true @@ -66,7 +67,7 @@ func (o *SearchArguments) GetScheduleIdOk() (*string, bool) { // HasScheduleId returns a boolean if a field has been set. func (o *SearchArguments) HasScheduleId() bool { - if o != nil && !isNil(o.ScheduleId) { + if o != nil && !IsNil(o.ScheduleId) { return true } @@ -80,7 +81,7 @@ func (o *SearchArguments) SetScheduleId(v string) { // GetOwner returns the Owner field value if set, zero value otherwise. func (o *SearchArguments) GetOwner() TypedReference { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { var ret TypedReference return ret } @@ -90,7 +91,7 @@ func (o *SearchArguments) GetOwner() TypedReference { // GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchArguments) GetOwnerOk() (*TypedReference, bool) { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { return nil, false } return o.Owner, true @@ -98,7 +99,7 @@ func (o *SearchArguments) GetOwnerOk() (*TypedReference, bool) { // HasOwner returns a boolean if a field has been set. func (o *SearchArguments) HasOwner() bool { - if o != nil && !isNil(o.Owner) { + if o != nil && !IsNil(o.Owner) { return true } @@ -112,7 +113,7 @@ func (o *SearchArguments) SetOwner(v TypedReference) { // GetRecipients returns the Recipients field value if set, zero value otherwise. func (o *SearchArguments) GetRecipients() []TypedReference { - if o == nil || isNil(o.Recipients) { + if o == nil || IsNil(o.Recipients) { var ret []TypedReference return ret } @@ -122,7 +123,7 @@ func (o *SearchArguments) GetRecipients() []TypedReference { // GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchArguments) GetRecipientsOk() ([]TypedReference, bool) { - if o == nil || isNil(o.Recipients) { + if o == nil || IsNil(o.Recipients) { return nil, false } return o.Recipients, true @@ -130,7 +131,7 @@ func (o *SearchArguments) GetRecipientsOk() ([]TypedReference, bool) { // HasRecipients returns a boolean if a field has been set. func (o *SearchArguments) HasRecipients() bool { - if o != nil && !isNil(o.Recipients) { + if o != nil && !IsNil(o.Recipients) { return true } @@ -152,13 +153,13 @@ func (o SearchArguments) MarshalJSON() ([]byte, error) { func (o SearchArguments) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.ScheduleId) { + if !IsNil(o.ScheduleId) { toSerialize["scheduleId"] = o.ScheduleId } - if !isNil(o.Owner) { + if !IsNil(o.Owner) { toSerialize["owner"] = o.Owner } - if !isNil(o.Recipients) { + if !IsNil(o.Recipients) { toSerialize["recipients"] = o.Recipients } @@ -169,16 +170,20 @@ func (o SearchArguments) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SearchArguments) UnmarshalJSON(bytes []byte) (err error) { +func (o *SearchArguments) UnmarshalJSON(data []byte) (err error) { varSearchArguments := _SearchArguments{} - if err = json.Unmarshal(bytes, &varSearchArguments); err == nil { + err = json.Unmarshal(data, &varSearchArguments) + + if err != nil { + return err + } + *o = SearchArguments(varSearchArguments) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "scheduleId") delete(additionalProperties, "owner") delete(additionalProperties, "recipients") diff --git a/api_v3/model_search_attribute_config.go b/api_v3/model_search_attribute_config.go index 4df637280..169b1ce4f 100644 --- a/api_v3/model_search_attribute_config.go +++ b/api_v3/model_search_attribute_config.go @@ -49,7 +49,7 @@ func NewSearchAttributeConfigWithDefaults() *SearchAttributeConfig { // GetName returns the Name field value if set, zero value otherwise. func (o *SearchAttributeConfig) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *SearchAttributeConfig) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchAttributeConfig) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -67,7 +67,7 @@ func (o *SearchAttributeConfig) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SearchAttributeConfig) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -81,7 +81,7 @@ func (o *SearchAttributeConfig) SetName(v string) { // GetDisplayName returns the DisplayName field value if set, zero value otherwise. func (o *SearchAttributeConfig) GetDisplayName() string { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *SearchAttributeConfig) GetDisplayName() string { // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchAttributeConfig) GetDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.DisplayName) { + if o == nil || IsNil(o.DisplayName) { return nil, false } return o.DisplayName, true @@ -99,7 +99,7 @@ func (o *SearchAttributeConfig) GetDisplayNameOk() (*string, bool) { // HasDisplayName returns a boolean if a field has been set. func (o *SearchAttributeConfig) HasDisplayName() bool { - if o != nil && !isNil(o.DisplayName) { + if o != nil && !IsNil(o.DisplayName) { return true } @@ -113,7 +113,7 @@ func (o *SearchAttributeConfig) SetDisplayName(v string) { // GetApplicationAttributes returns the ApplicationAttributes field value if set, zero value otherwise. func (o *SearchAttributeConfig) GetApplicationAttributes() map[string]interface{} { - if o == nil || isNil(o.ApplicationAttributes) { + if o == nil || IsNil(o.ApplicationAttributes) { var ret map[string]interface{} return ret } @@ -123,7 +123,7 @@ func (o *SearchAttributeConfig) GetApplicationAttributes() map[string]interface{ // GetApplicationAttributesOk returns a tuple with the ApplicationAttributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchAttributeConfig) GetApplicationAttributesOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.ApplicationAttributes) { + if o == nil || IsNil(o.ApplicationAttributes) { return map[string]interface{}{}, false } return o.ApplicationAttributes, true @@ -131,7 +131,7 @@ func (o *SearchAttributeConfig) GetApplicationAttributesOk() (map[string]interfa // HasApplicationAttributes returns a boolean if a field has been set. func (o *SearchAttributeConfig) HasApplicationAttributes() bool { - if o != nil && !isNil(o.ApplicationAttributes) { + if o != nil && !IsNil(o.ApplicationAttributes) { return true } @@ -153,13 +153,13 @@ func (o SearchAttributeConfig) MarshalJSON() ([]byte, error) { func (o SearchAttributeConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.DisplayName) { + if !IsNil(o.DisplayName) { toSerialize["displayName"] = o.DisplayName } - if !isNil(o.ApplicationAttributes) { + if !IsNil(o.ApplicationAttributes) { toSerialize["applicationAttributes"] = o.ApplicationAttributes } @@ -170,16 +170,20 @@ func (o SearchAttributeConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SearchAttributeConfig) UnmarshalJSON(bytes []byte) (err error) { +func (o *SearchAttributeConfig) UnmarshalJSON(data []byte) (err error) { varSearchAttributeConfig := _SearchAttributeConfig{} - if err = json.Unmarshal(bytes, &varSearchAttributeConfig); err == nil { + err = json.Unmarshal(data, &varSearchAttributeConfig) + + if err != nil { + return err + } + *o = SearchAttributeConfig(varSearchAttributeConfig) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "displayName") delete(additionalProperties, "applicationAttributes") diff --git a/api_v3/model_search_export_report_arguments.go b/api_v3/model_search_export_report_arguments.go index 4e814aeb5..5b791fff5 100644 --- a/api_v3/model_search_export_report_arguments.go +++ b/api_v3/model_search_export_report_arguments.go @@ -58,7 +58,7 @@ func NewSearchExportReportArgumentsWithDefaults() *SearchExportReportArguments { // GetIndices returns the Indices field value if set, zero value otherwise. func (o *SearchExportReportArguments) GetIndices() []Index { - if o == nil || isNil(o.Indices) { + if o == nil || IsNil(o.Indices) { var ret []Index return ret } @@ -68,7 +68,7 @@ func (o *SearchExportReportArguments) GetIndices() []Index { // GetIndicesOk returns a tuple with the Indices field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchExportReportArguments) GetIndicesOk() ([]Index, bool) { - if o == nil || isNil(o.Indices) { + if o == nil || IsNil(o.Indices) { return nil, false } return o.Indices, true @@ -76,7 +76,7 @@ func (o *SearchExportReportArguments) GetIndicesOk() ([]Index, bool) { // HasIndices returns a boolean if a field has been set. func (o *SearchExportReportArguments) HasIndices() bool { - if o != nil && !isNil(o.Indices) { + if o != nil && !IsNil(o.Indices) { return true } @@ -90,7 +90,7 @@ func (o *SearchExportReportArguments) SetIndices(v []Index) { // GetFilters returns the Filters field value if set, zero value otherwise. func (o *SearchExportReportArguments) GetFilters() map[string]Filter { - if o == nil || isNil(o.Filters) { + if o == nil || IsNil(o.Filters) { var ret map[string]Filter return ret } @@ -100,7 +100,7 @@ func (o *SearchExportReportArguments) GetFilters() map[string]Filter { // GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchExportReportArguments) GetFiltersOk() (*map[string]Filter, bool) { - if o == nil || isNil(o.Filters) { + if o == nil || IsNil(o.Filters) { return nil, false } return o.Filters, true @@ -108,7 +108,7 @@ func (o *SearchExportReportArguments) GetFiltersOk() (*map[string]Filter, bool) // HasFilters returns a boolean if a field has been set. func (o *SearchExportReportArguments) HasFilters() bool { - if o != nil && !isNil(o.Filters) { + if o != nil && !IsNil(o.Filters) { return true } @@ -146,7 +146,7 @@ func (o *SearchExportReportArguments) SetQuery(v Query) { // GetIncludeNested returns the IncludeNested field value if set, zero value otherwise. func (o *SearchExportReportArguments) GetIncludeNested() bool { - if o == nil || isNil(o.IncludeNested) { + if o == nil || IsNil(o.IncludeNested) { var ret bool return ret } @@ -156,7 +156,7 @@ func (o *SearchExportReportArguments) GetIncludeNested() bool { // GetIncludeNestedOk returns a tuple with the IncludeNested field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchExportReportArguments) GetIncludeNestedOk() (*bool, bool) { - if o == nil || isNil(o.IncludeNested) { + if o == nil || IsNil(o.IncludeNested) { return nil, false } return o.IncludeNested, true @@ -164,7 +164,7 @@ func (o *SearchExportReportArguments) GetIncludeNestedOk() (*bool, bool) { // HasIncludeNested returns a boolean if a field has been set. func (o *SearchExportReportArguments) HasIncludeNested() bool { - if o != nil && !isNil(o.IncludeNested) { + if o != nil && !IsNil(o.IncludeNested) { return true } @@ -178,7 +178,7 @@ func (o *SearchExportReportArguments) SetIncludeNested(v bool) { // GetSort returns the Sort field value if set, zero value otherwise. func (o *SearchExportReportArguments) GetSort() []string { - if o == nil || isNil(o.Sort) { + if o == nil || IsNil(o.Sort) { var ret []string return ret } @@ -188,7 +188,7 @@ func (o *SearchExportReportArguments) GetSort() []string { // GetSortOk returns a tuple with the Sort field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchExportReportArguments) GetSortOk() ([]string, bool) { - if o == nil || isNil(o.Sort) { + if o == nil || IsNil(o.Sort) { return nil, false } return o.Sort, true @@ -196,7 +196,7 @@ func (o *SearchExportReportArguments) GetSortOk() ([]string, bool) { // HasSort returns a boolean if a field has been set. func (o *SearchExportReportArguments) HasSort() bool { - if o != nil && !isNil(o.Sort) { + if o != nil && !IsNil(o.Sort) { return true } @@ -218,17 +218,17 @@ func (o SearchExportReportArguments) MarshalJSON() ([]byte, error) { func (o SearchExportReportArguments) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Indices) { + if !IsNil(o.Indices) { toSerialize["indices"] = o.Indices } - if !isNil(o.Filters) { + if !IsNil(o.Filters) { toSerialize["filters"] = o.Filters } toSerialize["query"] = o.Query - if !isNil(o.IncludeNested) { + if !IsNil(o.IncludeNested) { toSerialize["includeNested"] = o.IncludeNested } - if !isNil(o.Sort) { + if !IsNil(o.Sort) { toSerialize["sort"] = o.Sort } @@ -239,8 +239,8 @@ func (o SearchExportReportArguments) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SearchExportReportArguments) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *SearchExportReportArguments) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -249,7 +249,7 @@ func (o *SearchExportReportArguments) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -263,13 +263,17 @@ func (o *SearchExportReportArguments) UnmarshalJSON(bytes []byte) (err error) { varSearchExportReportArguments := _SearchExportReportArguments{} - if err = json.Unmarshal(bytes, &varSearchExportReportArguments); err == nil { + err = json.Unmarshal(data, &varSearchExportReportArguments) + + if err != nil { + return err + } + *o = SearchExportReportArguments(varSearchExportReportArguments) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "indices") delete(additionalProperties, "filters") delete(additionalProperties, "query") diff --git a/api_v3/model_search_schedule.go b/api_v3/model_search_schedule.go index 0f24f2fb8..62e0597c4 100644 --- a/api_v3/model_search_schedule.go +++ b/api_v3/model_search_schedule.go @@ -23,9 +23,9 @@ var _ MappedNullable = &SearchSchedule{} type SearchSchedule struct { // The ID of the saved search that will be executed. SavedSearchId string `json:"savedSearchId"` - // A date-time in ISO-8601 format + // The date the scheduled search was initially created. Created NullableTime `json:"created,omitempty"` - // A date-time in ISO-8601 format + // The last date the scheduled search was modified. Modified NullableTime `json:"modified,omitempty"` Schedule Schedule1 `json:"schedule"` // A list of identities that should receive the scheduled search report via email. @@ -99,7 +99,7 @@ func (o *SearchSchedule) SetSavedSearchId(v string) { // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SearchSchedule) GetCreated() time.Time { - if o == nil || isNil(o.Created.Get()) { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } @@ -141,7 +141,7 @@ func (o *SearchSchedule) UnsetCreated() { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SearchSchedule) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -231,7 +231,7 @@ func (o *SearchSchedule) SetRecipients(v []SearchScheduleRecipientsInner) { // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *SearchSchedule) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -241,7 +241,7 @@ func (o *SearchSchedule) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchSchedule) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -249,7 +249,7 @@ func (o *SearchSchedule) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *SearchSchedule) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -263,7 +263,7 @@ func (o *SearchSchedule) SetEnabled(v bool) { // GetEmailEmptyResults returns the EmailEmptyResults field value if set, zero value otherwise. func (o *SearchSchedule) GetEmailEmptyResults() bool { - if o == nil || isNil(o.EmailEmptyResults) { + if o == nil || IsNil(o.EmailEmptyResults) { var ret bool return ret } @@ -273,7 +273,7 @@ func (o *SearchSchedule) GetEmailEmptyResults() bool { // GetEmailEmptyResultsOk returns a tuple with the EmailEmptyResults field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchSchedule) GetEmailEmptyResultsOk() (*bool, bool) { - if o == nil || isNil(o.EmailEmptyResults) { + if o == nil || IsNil(o.EmailEmptyResults) { return nil, false } return o.EmailEmptyResults, true @@ -281,7 +281,7 @@ func (o *SearchSchedule) GetEmailEmptyResultsOk() (*bool, bool) { // HasEmailEmptyResults returns a boolean if a field has been set. func (o *SearchSchedule) HasEmailEmptyResults() bool { - if o != nil && !isNil(o.EmailEmptyResults) { + if o != nil && !IsNil(o.EmailEmptyResults) { return true } @@ -295,7 +295,7 @@ func (o *SearchSchedule) SetEmailEmptyResults(v bool) { // GetDisplayQueryDetails returns the DisplayQueryDetails field value if set, zero value otherwise. func (o *SearchSchedule) GetDisplayQueryDetails() bool { - if o == nil || isNil(o.DisplayQueryDetails) { + if o == nil || IsNil(o.DisplayQueryDetails) { var ret bool return ret } @@ -305,7 +305,7 @@ func (o *SearchSchedule) GetDisplayQueryDetails() bool { // GetDisplayQueryDetailsOk returns a tuple with the DisplayQueryDetails field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchSchedule) GetDisplayQueryDetailsOk() (*bool, bool) { - if o == nil || isNil(o.DisplayQueryDetails) { + if o == nil || IsNil(o.DisplayQueryDetails) { return nil, false } return o.DisplayQueryDetails, true @@ -313,7 +313,7 @@ func (o *SearchSchedule) GetDisplayQueryDetailsOk() (*bool, bool) { // HasDisplayQueryDetails returns a boolean if a field has been set. func (o *SearchSchedule) HasDisplayQueryDetails() bool { - if o != nil && !isNil(o.DisplayQueryDetails) { + if o != nil && !IsNil(o.DisplayQueryDetails) { return true } @@ -344,13 +344,13 @@ func (o SearchSchedule) ToMap() (map[string]interface{}, error) { } toSerialize["schedule"] = o.Schedule toSerialize["recipients"] = o.Recipients - if !isNil(o.Enabled) { + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - if !isNil(o.EmailEmptyResults) { + if !IsNil(o.EmailEmptyResults) { toSerialize["emailEmptyResults"] = o.EmailEmptyResults } - if !isNil(o.DisplayQueryDetails) { + if !IsNil(o.DisplayQueryDetails) { toSerialize["displayQueryDetails"] = o.DisplayQueryDetails } @@ -361,8 +361,8 @@ func (o SearchSchedule) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SearchSchedule) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *SearchSchedule) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -373,7 +373,7 @@ func (o *SearchSchedule) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -387,13 +387,17 @@ func (o *SearchSchedule) UnmarshalJSON(bytes []byte) (err error) { varSearchSchedule := _SearchSchedule{} - if err = json.Unmarshal(bytes, &varSearchSchedule); err == nil { + err = json.Unmarshal(data, &varSearchSchedule) + + if err != nil { + return err + } + *o = SearchSchedule(varSearchSchedule) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "savedSearchId") delete(additionalProperties, "created") delete(additionalProperties, "modified") diff --git a/api_v3/model_search_schedule_recipients_inner.go b/api_v3/model_search_schedule_recipients_inner.go index 3bd3612f2..af278aed3 100644 --- a/api_v3/model_search_schedule_recipients_inner.go +++ b/api_v3/model_search_schedule_recipients_inner.go @@ -116,8 +116,8 @@ func (o SearchScheduleRecipientsInner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SearchScheduleRecipientsInner) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *SearchScheduleRecipientsInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -127,7 +127,7 @@ func (o *SearchScheduleRecipientsInner) UnmarshalJSON(bytes []byte) (err error) allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -141,13 +141,17 @@ func (o *SearchScheduleRecipientsInner) UnmarshalJSON(bytes []byte) (err error) varSearchScheduleRecipientsInner := _SearchScheduleRecipientsInner{} - if err = json.Unmarshal(bytes, &varSearchScheduleRecipientsInner); err == nil { + err = json.Unmarshal(data, &varSearchScheduleRecipientsInner) + + if err != nil { + return err + } + *o = SearchScheduleRecipientsInner(varSearchScheduleRecipientsInner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_section_details.go b/api_v3/model_section_details.go index 911f6a894..cf3b73d62 100644 --- a/api_v3/model_section_details.go +++ b/api_v3/model_section_details.go @@ -49,7 +49,7 @@ func NewSectionDetailsWithDefaults() *SectionDetails { // GetName returns the Name field value if set, zero value otherwise. func (o *SectionDetails) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *SectionDetails) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SectionDetails) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -67,7 +67,7 @@ func (o *SectionDetails) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SectionDetails) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -81,7 +81,7 @@ func (o *SectionDetails) SetName(v string) { // GetLabel returns the Label field value if set, zero value otherwise. func (o *SectionDetails) GetLabel() string { - if o == nil || isNil(o.Label) { + if o == nil || IsNil(o.Label) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *SectionDetails) GetLabel() string { // GetLabelOk returns a tuple with the Label field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SectionDetails) GetLabelOk() (*string, bool) { - if o == nil || isNil(o.Label) { + if o == nil || IsNil(o.Label) { return nil, false } return o.Label, true @@ -99,7 +99,7 @@ func (o *SectionDetails) GetLabelOk() (*string, bool) { // HasLabel returns a boolean if a field has been set. func (o *SectionDetails) HasLabel() bool { - if o != nil && !isNil(o.Label) { + if o != nil && !IsNil(o.Label) { return true } @@ -113,7 +113,7 @@ func (o *SectionDetails) SetLabel(v string) { // GetFormItems returns the FormItems field value if set, zero value otherwise. func (o *SectionDetails) GetFormItems() []map[string]interface{} { - if o == nil || isNil(o.FormItems) { + if o == nil || IsNil(o.FormItems) { var ret []map[string]interface{} return ret } @@ -123,7 +123,7 @@ func (o *SectionDetails) GetFormItems() []map[string]interface{} { // GetFormItemsOk returns a tuple with the FormItems field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SectionDetails) GetFormItemsOk() ([]map[string]interface{}, bool) { - if o == nil || isNil(o.FormItems) { + if o == nil || IsNil(o.FormItems) { return nil, false } return o.FormItems, true @@ -131,7 +131,7 @@ func (o *SectionDetails) GetFormItemsOk() ([]map[string]interface{}, bool) { // HasFormItems returns a boolean if a field has been set. func (o *SectionDetails) HasFormItems() bool { - if o != nil && !isNil(o.FormItems) { + if o != nil && !IsNil(o.FormItems) { return true } @@ -153,13 +153,13 @@ func (o SectionDetails) MarshalJSON() ([]byte, error) { func (o SectionDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Label) { + if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !isNil(o.FormItems) { + if !IsNil(o.FormItems) { toSerialize["formItems"] = o.FormItems } @@ -170,16 +170,20 @@ func (o SectionDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SectionDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *SectionDetails) UnmarshalJSON(data []byte) (err error) { varSectionDetails := _SectionDetails{} - if err = json.Unmarshal(bytes, &varSectionDetails); err == nil { + err = json.Unmarshal(data, &varSectionDetails) + + if err != nil { + return err + } + *o = SectionDetails(varSectionDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "formItems") diff --git a/api_v3/model_segment.go b/api_v3/model_segment.go index 83ee0168a..0882609dd 100644 --- a/api_v3/model_segment.go +++ b/api_v3/model_segment.go @@ -62,7 +62,7 @@ func NewSegmentWithDefaults() *Segment { // GetId returns the Id field value if set, zero value otherwise. func (o *Segment) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -72,7 +72,7 @@ func (o *Segment) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Segment) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -80,7 +80,7 @@ func (o *Segment) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Segment) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -94,7 +94,7 @@ func (o *Segment) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *Segment) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -104,7 +104,7 @@ func (o *Segment) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Segment) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -112,7 +112,7 @@ func (o *Segment) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *Segment) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -126,7 +126,7 @@ func (o *Segment) SetName(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *Segment) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -136,7 +136,7 @@ func (o *Segment) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Segment) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -144,7 +144,7 @@ func (o *Segment) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *Segment) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -158,7 +158,7 @@ func (o *Segment) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *Segment) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -168,7 +168,7 @@ func (o *Segment) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Segment) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -176,7 +176,7 @@ func (o *Segment) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *Segment) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -190,7 +190,7 @@ func (o *Segment) SetModified(v time.Time) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *Segment) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -200,7 +200,7 @@ func (o *Segment) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Segment) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -208,7 +208,7 @@ func (o *Segment) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *Segment) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -222,7 +222,7 @@ func (o *Segment) SetDescription(v string) { // GetOwner returns the Owner field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Segment) GetOwner() OwnerReferenceSegments { - if o == nil || isNil(o.Owner.Get()) { + if o == nil || IsNil(o.Owner.Get()) { var ret OwnerReferenceSegments return ret } @@ -264,7 +264,7 @@ func (o *Segment) UnsetOwner() { // GetVisibilityCriteria returns the VisibilityCriteria field value if set, zero value otherwise. func (o *Segment) GetVisibilityCriteria() SegmentVisibilityCriteria { - if o == nil || isNil(o.VisibilityCriteria) { + if o == nil || IsNil(o.VisibilityCriteria) { var ret SegmentVisibilityCriteria return ret } @@ -274,7 +274,7 @@ func (o *Segment) GetVisibilityCriteria() SegmentVisibilityCriteria { // GetVisibilityCriteriaOk returns a tuple with the VisibilityCriteria field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Segment) GetVisibilityCriteriaOk() (*SegmentVisibilityCriteria, bool) { - if o == nil || isNil(o.VisibilityCriteria) { + if o == nil || IsNil(o.VisibilityCriteria) { return nil, false } return o.VisibilityCriteria, true @@ -282,7 +282,7 @@ func (o *Segment) GetVisibilityCriteriaOk() (*SegmentVisibilityCriteria, bool) { // HasVisibilityCriteria returns a boolean if a field has been set. func (o *Segment) HasVisibilityCriteria() bool { - if o != nil && !isNil(o.VisibilityCriteria) { + if o != nil && !IsNil(o.VisibilityCriteria) { return true } @@ -296,7 +296,7 @@ func (o *Segment) SetVisibilityCriteria(v SegmentVisibilityCriteria) { // GetActive returns the Active field value if set, zero value otherwise. func (o *Segment) GetActive() bool { - if o == nil || isNil(o.Active) { + if o == nil || IsNil(o.Active) { var ret bool return ret } @@ -306,7 +306,7 @@ func (o *Segment) GetActive() bool { // GetActiveOk returns a tuple with the Active field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Segment) GetActiveOk() (*bool, bool) { - if o == nil || isNil(o.Active) { + if o == nil || IsNil(o.Active) { return nil, false } return o.Active, true @@ -314,7 +314,7 @@ func (o *Segment) GetActiveOk() (*bool, bool) { // HasActive returns a boolean if a field has been set. func (o *Segment) HasActive() bool { - if o != nil && !isNil(o.Active) { + if o != nil && !IsNil(o.Active) { return true } @@ -336,28 +336,28 @@ func (o Segment) MarshalJSON() ([]byte, error) { func (o Segment) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } if o.Owner.IsSet() { toSerialize["owner"] = o.Owner.Get() } - if !isNil(o.VisibilityCriteria) { + if !IsNil(o.VisibilityCriteria) { toSerialize["visibilityCriteria"] = o.VisibilityCriteria } - if !isNil(o.Active) { + if !IsNil(o.Active) { toSerialize["active"] = o.Active } @@ -368,16 +368,20 @@ func (o Segment) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Segment) UnmarshalJSON(bytes []byte) (err error) { +func (o *Segment) UnmarshalJSON(data []byte) (err error) { varSegment := _Segment{} - if err = json.Unmarshal(bytes, &varSegment); err == nil { + err = json.Unmarshal(data, &varSegment) + + if err != nil { + return err + } + *o = Segment(varSegment) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "created") diff --git a/api_v3/model_segment_visibility_criteria.go b/api_v3/model_segment_visibility_criteria.go index e61fc3625..8ae08ef3d 100644 --- a/api_v3/model_segment_visibility_criteria.go +++ b/api_v3/model_segment_visibility_criteria.go @@ -44,7 +44,7 @@ func NewSegmentVisibilityCriteriaWithDefaults() *SegmentVisibilityCriteria { // GetExpression returns the Expression field value if set, zero value otherwise. func (o *SegmentVisibilityCriteria) GetExpression() Expression { - if o == nil || isNil(o.Expression) { + if o == nil || IsNil(o.Expression) { var ret Expression return ret } @@ -54,7 +54,7 @@ func (o *SegmentVisibilityCriteria) GetExpression() Expression { // GetExpressionOk returns a tuple with the Expression field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SegmentVisibilityCriteria) GetExpressionOk() (*Expression, bool) { - if o == nil || isNil(o.Expression) { + if o == nil || IsNil(o.Expression) { return nil, false } return o.Expression, true @@ -62,7 +62,7 @@ func (o *SegmentVisibilityCriteria) GetExpressionOk() (*Expression, bool) { // HasExpression returns a boolean if a field has been set. func (o *SegmentVisibilityCriteria) HasExpression() bool { - if o != nil && !isNil(o.Expression) { + if o != nil && !IsNil(o.Expression) { return true } @@ -84,7 +84,7 @@ func (o SegmentVisibilityCriteria) MarshalJSON() ([]byte, error) { func (o SegmentVisibilityCriteria) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Expression) { + if !IsNil(o.Expression) { toSerialize["expression"] = o.Expression } @@ -95,16 +95,20 @@ func (o SegmentVisibilityCriteria) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SegmentVisibilityCriteria) UnmarshalJSON(bytes []byte) (err error) { +func (o *SegmentVisibilityCriteria) UnmarshalJSON(data []byte) (err error) { varSegmentVisibilityCriteria := _SegmentVisibilityCriteria{} - if err = json.Unmarshal(bytes, &varSegmentVisibilityCriteria); err == nil { + err = json.Unmarshal(data, &varSegmentVisibilityCriteria) + + if err != nil { + return err + } + *o = SegmentVisibilityCriteria(varSegmentVisibilityCriteria) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "expression") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_selector.go b/api_v3/model_selector.go index 4268a69f9..7d8439f31 100644 --- a/api_v3/model_selector.go +++ b/api_v3/model_selector.go @@ -99,7 +99,7 @@ func (o *Selector) SetValues(v []string) { // GetInterval returns the Interval field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Selector) GetInterval() int32 { - if o == nil || isNil(o.Interval.Get()) { + if o == nil || IsNil(o.Interval.Get()) { var ret int32 return ret } @@ -162,8 +162,8 @@ func (o Selector) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Selector) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *Selector) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -173,7 +173,7 @@ func (o *Selector) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -187,13 +187,17 @@ func (o *Selector) UnmarshalJSON(bytes []byte) (err error) { varSelector := _Selector{} - if err = json.Unmarshal(bytes, &varSelector); err == nil { + err = json.Unmarshal(data, &varSelector) + + if err != nil { + return err + } + *o = Selector(varSelector) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "values") delete(additionalProperties, "interval") diff --git a/api_v3/model_send_token_request.go b/api_v3/model_send_token_request.go index 80d0c5eb9..e7c3061ab 100644 --- a/api_v3/model_send_token_request.go +++ b/api_v3/model_send_token_request.go @@ -116,8 +116,8 @@ func (o SendTokenRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SendTokenRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *SendTokenRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -127,7 +127,7 @@ func (o *SendTokenRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -141,13 +141,17 @@ func (o *SendTokenRequest) UnmarshalJSON(bytes []byte) (err error) { varSendTokenRequest := _SendTokenRequest{} - if err = json.Unmarshal(bytes, &varSendTokenRequest); err == nil { + err = json.Unmarshal(data, &varSendTokenRequest) + + if err != nil { + return err + } + *o = SendTokenRequest(varSendTokenRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "userAlias") delete(additionalProperties, "deliveryType") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_send_token_response.go b/api_v3/model_send_token_response.go index 2d7e88520..bbbb03fbc 100644 --- a/api_v3/model_send_token_response.go +++ b/api_v3/model_send_token_response.go @@ -49,7 +49,7 @@ func NewSendTokenResponseWithDefaults() *SendTokenResponse { // GetRequestId returns the RequestId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SendTokenResponse) GetRequestId() string { - if o == nil || isNil(o.RequestId.Get()) { + if o == nil || IsNil(o.RequestId.Get()) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *SendTokenResponse) UnsetRequestId() { // GetStatus returns the Status field value if set, zero value otherwise. func (o *SendTokenResponse) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -101,7 +101,7 @@ func (o *SendTokenResponse) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SendTokenResponse) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -109,7 +109,7 @@ func (o *SendTokenResponse) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *SendTokenResponse) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -123,7 +123,7 @@ func (o *SendTokenResponse) SetStatus(v string) { // GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SendTokenResponse) GetErrorMessage() string { - if o == nil || isNil(o.ErrorMessage.Get()) { + if o == nil || IsNil(o.ErrorMessage.Get()) { var ret string return ret } @@ -176,7 +176,7 @@ func (o SendTokenResponse) ToMap() (map[string]interface{}, error) { if o.RequestId.IsSet() { toSerialize["requestId"] = o.RequestId.Get() } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } if o.ErrorMessage.IsSet() { @@ -190,16 +190,20 @@ func (o SendTokenResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SendTokenResponse) UnmarshalJSON(bytes []byte) (err error) { +func (o *SendTokenResponse) UnmarshalJSON(data []byte) (err error) { varSendTokenResponse := _SendTokenResponse{} - if err = json.Unmarshal(bytes, &varSendTokenResponse); err == nil { + err = json.Unmarshal(data, &varSendTokenResponse) + + if err != nil { + return err + } + *o = SendTokenResponse(varSendTokenResponse) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "requestId") delete(additionalProperties, "status") delete(additionalProperties, "errorMessage") diff --git a/api_v3/model_service_desk_integration_dto.go b/api_v3/model_service_desk_integration_dto.go index f6887f52e..9f3dea93f 100644 --- a/api_v3/model_service_desk_integration_dto.go +++ b/api_v3/model_service_desk_integration_dto.go @@ -75,7 +75,7 @@ func NewServiceDeskIntegrationDtoWithDefaults() *ServiceDeskIntegrationDto { // GetId returns the Id field value if set, zero value otherwise. func (o *ServiceDeskIntegrationDto) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -85,7 +85,7 @@ func (o *ServiceDeskIntegrationDto) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceDeskIntegrationDto) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -93,7 +93,7 @@ func (o *ServiceDeskIntegrationDto) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ServiceDeskIntegrationDto) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -131,7 +131,7 @@ func (o *ServiceDeskIntegrationDto) SetName(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *ServiceDeskIntegrationDto) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -141,7 +141,7 @@ func (o *ServiceDeskIntegrationDto) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceDeskIntegrationDto) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -149,7 +149,7 @@ func (o *ServiceDeskIntegrationDto) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *ServiceDeskIntegrationDto) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -163,7 +163,7 @@ func (o *ServiceDeskIntegrationDto) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *ServiceDeskIntegrationDto) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -173,7 +173,7 @@ func (o *ServiceDeskIntegrationDto) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceDeskIntegrationDto) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -181,7 +181,7 @@ func (o *ServiceDeskIntegrationDto) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *ServiceDeskIntegrationDto) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -243,7 +243,7 @@ func (o *ServiceDeskIntegrationDto) SetType(v string) { // GetOwnerRef returns the OwnerRef field value if set, zero value otherwise. func (o *ServiceDeskIntegrationDto) GetOwnerRef() OwnerDto { - if o == nil || isNil(o.OwnerRef) { + if o == nil || IsNil(o.OwnerRef) { var ret OwnerDto return ret } @@ -253,7 +253,7 @@ func (o *ServiceDeskIntegrationDto) GetOwnerRef() OwnerDto { // GetOwnerRefOk returns a tuple with the OwnerRef field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceDeskIntegrationDto) GetOwnerRefOk() (*OwnerDto, bool) { - if o == nil || isNil(o.OwnerRef) { + if o == nil || IsNil(o.OwnerRef) { return nil, false } return o.OwnerRef, true @@ -261,7 +261,7 @@ func (o *ServiceDeskIntegrationDto) GetOwnerRefOk() (*OwnerDto, bool) { // HasOwnerRef returns a boolean if a field has been set. func (o *ServiceDeskIntegrationDto) HasOwnerRef() bool { - if o != nil && !isNil(o.OwnerRef) { + if o != nil && !IsNil(o.OwnerRef) { return true } @@ -275,7 +275,7 @@ func (o *ServiceDeskIntegrationDto) SetOwnerRef(v OwnerDto) { // GetClusterRef returns the ClusterRef field value if set, zero value otherwise. func (o *ServiceDeskIntegrationDto) GetClusterRef() SourceClusterDto { - if o == nil || isNil(o.ClusterRef) { + if o == nil || IsNil(o.ClusterRef) { var ret SourceClusterDto return ret } @@ -285,7 +285,7 @@ func (o *ServiceDeskIntegrationDto) GetClusterRef() SourceClusterDto { // GetClusterRefOk returns a tuple with the ClusterRef field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceDeskIntegrationDto) GetClusterRefOk() (*SourceClusterDto, bool) { - if o == nil || isNil(o.ClusterRef) { + if o == nil || IsNil(o.ClusterRef) { return nil, false } return o.ClusterRef, true @@ -293,7 +293,7 @@ func (o *ServiceDeskIntegrationDto) GetClusterRefOk() (*SourceClusterDto, bool) // HasClusterRef returns a boolean if a field has been set. func (o *ServiceDeskIntegrationDto) HasClusterRef() bool { - if o != nil && !isNil(o.ClusterRef) { + if o != nil && !IsNil(o.ClusterRef) { return true } @@ -308,7 +308,7 @@ func (o *ServiceDeskIntegrationDto) SetClusterRef(v SourceClusterDto) { // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). // Deprecated func (o *ServiceDeskIntegrationDto) GetCluster() string { - if o == nil || isNil(o.Cluster.Get()) { + if o == nil || IsNil(o.Cluster.Get()) { var ret string return ret } @@ -353,7 +353,7 @@ func (o *ServiceDeskIntegrationDto) UnsetCluster() { // GetManagedSources returns the ManagedSources field value if set, zero value otherwise. // Deprecated func (o *ServiceDeskIntegrationDto) GetManagedSources() []string { - if o == nil || isNil(o.ManagedSources) { + if o == nil || IsNil(o.ManagedSources) { var ret []string return ret } @@ -364,7 +364,7 @@ func (o *ServiceDeskIntegrationDto) GetManagedSources() []string { // and a boolean to check if the value has been set. // Deprecated func (o *ServiceDeskIntegrationDto) GetManagedSourcesOk() ([]string, bool) { - if o == nil || isNil(o.ManagedSources) { + if o == nil || IsNil(o.ManagedSources) { return nil, false } return o.ManagedSources, true @@ -372,7 +372,7 @@ func (o *ServiceDeskIntegrationDto) GetManagedSourcesOk() ([]string, bool) { // HasManagedSources returns a boolean if a field has been set. func (o *ServiceDeskIntegrationDto) HasManagedSources() bool { - if o != nil && !isNil(o.ManagedSources) { + if o != nil && !IsNil(o.ManagedSources) { return true } @@ -387,7 +387,7 @@ func (o *ServiceDeskIntegrationDto) SetManagedSources(v []string) { // GetProvisioningConfig returns the ProvisioningConfig field value if set, zero value otherwise. func (o *ServiceDeskIntegrationDto) GetProvisioningConfig() ProvisioningConfig { - if o == nil || isNil(o.ProvisioningConfig) { + if o == nil || IsNil(o.ProvisioningConfig) { var ret ProvisioningConfig return ret } @@ -397,7 +397,7 @@ func (o *ServiceDeskIntegrationDto) GetProvisioningConfig() ProvisioningConfig { // GetProvisioningConfigOk returns a tuple with the ProvisioningConfig field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceDeskIntegrationDto) GetProvisioningConfigOk() (*ProvisioningConfig, bool) { - if o == nil || isNil(o.ProvisioningConfig) { + if o == nil || IsNil(o.ProvisioningConfig) { return nil, false } return o.ProvisioningConfig, true @@ -405,7 +405,7 @@ func (o *ServiceDeskIntegrationDto) GetProvisioningConfigOk() (*ProvisioningConf // HasProvisioningConfig returns a boolean if a field has been set. func (o *ServiceDeskIntegrationDto) HasProvisioningConfig() bool { - if o != nil && !isNil(o.ProvisioningConfig) { + if o != nil && !IsNil(o.ProvisioningConfig) { return true } @@ -443,7 +443,7 @@ func (o *ServiceDeskIntegrationDto) SetAttributes(v map[string]interface{}) { // GetBeforeProvisioningRule returns the BeforeProvisioningRule field value if set, zero value otherwise. func (o *ServiceDeskIntegrationDto) GetBeforeProvisioningRule() BeforeProvisioningRuleDto { - if o == nil || isNil(o.BeforeProvisioningRule) { + if o == nil || IsNil(o.BeforeProvisioningRule) { var ret BeforeProvisioningRuleDto return ret } @@ -453,7 +453,7 @@ func (o *ServiceDeskIntegrationDto) GetBeforeProvisioningRule() BeforeProvisioni // GetBeforeProvisioningRuleOk returns a tuple with the BeforeProvisioningRule field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceDeskIntegrationDto) GetBeforeProvisioningRuleOk() (*BeforeProvisioningRuleDto, bool) { - if o == nil || isNil(o.BeforeProvisioningRule) { + if o == nil || IsNil(o.BeforeProvisioningRule) { return nil, false } return o.BeforeProvisioningRule, true @@ -461,7 +461,7 @@ func (o *ServiceDeskIntegrationDto) GetBeforeProvisioningRuleOk() (*BeforeProvis // HasBeforeProvisioningRule returns a boolean if a field has been set. func (o *ServiceDeskIntegrationDto) HasBeforeProvisioningRule() bool { - if o != nil && !isNil(o.BeforeProvisioningRule) { + if o != nil && !IsNil(o.BeforeProvisioningRule) { return true } @@ -483,35 +483,35 @@ func (o ServiceDeskIntegrationDto) MarshalJSON() ([]byte, error) { func (o ServiceDeskIntegrationDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } toSerialize["name"] = o.Name - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } toSerialize["description"] = o.Description toSerialize["type"] = o.Type - if !isNil(o.OwnerRef) { + if !IsNil(o.OwnerRef) { toSerialize["ownerRef"] = o.OwnerRef } - if !isNil(o.ClusterRef) { + if !IsNil(o.ClusterRef) { toSerialize["clusterRef"] = o.ClusterRef } if o.Cluster.IsSet() { toSerialize["cluster"] = o.Cluster.Get() } - if !isNil(o.ManagedSources) { + if !IsNil(o.ManagedSources) { toSerialize["managedSources"] = o.ManagedSources } - if !isNil(o.ProvisioningConfig) { + if !IsNil(o.ProvisioningConfig) { toSerialize["provisioningConfig"] = o.ProvisioningConfig } toSerialize["attributes"] = o.Attributes - if !isNil(o.BeforeProvisioningRule) { + if !IsNil(o.BeforeProvisioningRule) { toSerialize["beforeProvisioningRule"] = o.BeforeProvisioningRule } @@ -522,8 +522,8 @@ func (o ServiceDeskIntegrationDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ServiceDeskIntegrationDto) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ServiceDeskIntegrationDto) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -535,7 +535,7 @@ func (o *ServiceDeskIntegrationDto) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -549,13 +549,17 @@ func (o *ServiceDeskIntegrationDto) UnmarshalJSON(bytes []byte) (err error) { varServiceDeskIntegrationDto := _ServiceDeskIntegrationDto{} - if err = json.Unmarshal(bytes, &varServiceDeskIntegrationDto); err == nil { + err = json.Unmarshal(data, &varServiceDeskIntegrationDto) + + if err != nil { + return err + } + *o = ServiceDeskIntegrationDto(varServiceDeskIntegrationDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "created") diff --git a/api_v3/model_service_desk_integration_template_dto.go b/api_v3/model_service_desk_integration_template_dto.go index dfc7a29b0..0b335b827 100644 --- a/api_v3/model_service_desk_integration_template_dto.go +++ b/api_v3/model_service_desk_integration_template_dto.go @@ -64,7 +64,7 @@ func NewServiceDeskIntegrationTemplateDtoWithDefaults() *ServiceDeskIntegrationT // GetId returns the Id field value if set, zero value otherwise. func (o *ServiceDeskIntegrationTemplateDto) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -74,7 +74,7 @@ func (o *ServiceDeskIntegrationTemplateDto) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceDeskIntegrationTemplateDto) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -82,7 +82,7 @@ func (o *ServiceDeskIntegrationTemplateDto) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ServiceDeskIntegrationTemplateDto) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -120,7 +120,7 @@ func (o *ServiceDeskIntegrationTemplateDto) SetName(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *ServiceDeskIntegrationTemplateDto) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -130,7 +130,7 @@ func (o *ServiceDeskIntegrationTemplateDto) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceDeskIntegrationTemplateDto) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -138,7 +138,7 @@ func (o *ServiceDeskIntegrationTemplateDto) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *ServiceDeskIntegrationTemplateDto) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -152,7 +152,7 @@ func (o *ServiceDeskIntegrationTemplateDto) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *ServiceDeskIntegrationTemplateDto) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -162,7 +162,7 @@ func (o *ServiceDeskIntegrationTemplateDto) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceDeskIntegrationTemplateDto) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -170,7 +170,7 @@ func (o *ServiceDeskIntegrationTemplateDto) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *ServiceDeskIntegrationTemplateDto) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -264,10 +264,16 @@ func (o ServiceDeskIntegrationTemplateDto) MarshalJSON() ([]byte, error) { func (o ServiceDeskIntegrationTemplateDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } toSerialize["name"] = o.Name - // skip: created is readOnly - // skip: modified is readOnly + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } + if !IsNil(o.Modified) { + toSerialize["modified"] = o.Modified + } toSerialize["type"] = o.Type toSerialize["attributes"] = o.Attributes toSerialize["provisioningConfig"] = o.ProvisioningConfig @@ -279,8 +285,8 @@ func (o ServiceDeskIntegrationTemplateDto) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *ServiceDeskIntegrationTemplateDto) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ServiceDeskIntegrationTemplateDto) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -292,7 +298,7 @@ func (o *ServiceDeskIntegrationTemplateDto) UnmarshalJSON(bytes []byte) (err err allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -306,13 +312,17 @@ func (o *ServiceDeskIntegrationTemplateDto) UnmarshalJSON(bytes []byte) (err err varServiceDeskIntegrationTemplateDto := _ServiceDeskIntegrationTemplateDto{} - if err = json.Unmarshal(bytes, &varServiceDeskIntegrationTemplateDto); err == nil { + err = json.Unmarshal(data, &varServiceDeskIntegrationTemplateDto) + + if err != nil { + return err + } + *o = ServiceDeskIntegrationTemplateDto(varServiceDeskIntegrationTemplateDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "created") diff --git a/api_v3/model_service_desk_integration_template_type.go b/api_v3/model_service_desk_integration_template_type.go index f51c8669b..0e8c9321d 100644 --- a/api_v3/model_service_desk_integration_template_type.go +++ b/api_v3/model_service_desk_integration_template_type.go @@ -52,7 +52,7 @@ func NewServiceDeskIntegrationTemplateTypeWithDefaults() *ServiceDeskIntegration // GetName returns the Name field value if set, zero value otherwise. func (o *ServiceDeskIntegrationTemplateType) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -62,7 +62,7 @@ func (o *ServiceDeskIntegrationTemplateType) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceDeskIntegrationTemplateType) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -70,7 +70,7 @@ func (o *ServiceDeskIntegrationTemplateType) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ServiceDeskIntegrationTemplateType) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -140,7 +140,7 @@ func (o ServiceDeskIntegrationTemplateType) MarshalJSON() ([]byte, error) { func (o ServiceDeskIntegrationTemplateType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } toSerialize["type"] = o.Type @@ -153,8 +153,8 @@ func (o ServiceDeskIntegrationTemplateType) ToMap() (map[string]interface{}, err return toSerialize, nil } -func (o *ServiceDeskIntegrationTemplateType) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *ServiceDeskIntegrationTemplateType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -164,7 +164,7 @@ func (o *ServiceDeskIntegrationTemplateType) UnmarshalJSON(bytes []byte) (err er allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -178,13 +178,17 @@ func (o *ServiceDeskIntegrationTemplateType) UnmarshalJSON(bytes []byte) (err er varServiceDeskIntegrationTemplateType := _ServiceDeskIntegrationTemplateType{} - if err = json.Unmarshal(bytes, &varServiceDeskIntegrationTemplateType); err == nil { + err = json.Unmarshal(data, &varServiceDeskIntegrationTemplateType) + + if err != nil { + return err + } + *o = ServiceDeskIntegrationTemplateType(varServiceDeskIntegrationTemplateType) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "type") delete(additionalProperties, "scriptName") diff --git a/api_v3/model_service_desk_source.go b/api_v3/model_service_desk_source.go index f8e36d06d..d8985e577 100644 --- a/api_v3/model_service_desk_source.go +++ b/api_v3/model_service_desk_source.go @@ -49,7 +49,7 @@ func NewServiceDeskSourceWithDefaults() *ServiceDeskSource { // GetType returns the Type field value if set, zero value otherwise. func (o *ServiceDeskSource) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *ServiceDeskSource) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceDeskSource) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *ServiceDeskSource) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *ServiceDeskSource) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *ServiceDeskSource) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *ServiceDeskSource) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *ServiceDeskSource) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceDeskSource) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *ServiceDeskSource) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ServiceDeskSource) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *ServiceDeskSource) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *ServiceDeskSource) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *ServiceDeskSource) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceDeskSource) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *ServiceDeskSource) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ServiceDeskSource) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o ServiceDeskSource) MarshalJSON() ([]byte, error) { func (o ServiceDeskSource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o ServiceDeskSource) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ServiceDeskSource) UnmarshalJSON(bytes []byte) (err error) { +func (o *ServiceDeskSource) UnmarshalJSON(data []byte) (err error) { varServiceDeskSource := _ServiceDeskSource{} - if err = json.Unmarshal(bytes, &varServiceDeskSource); err == nil { + err = json.Unmarshal(data, &varServiceDeskSource) + + if err != nil { + return err + } + *o = ServiceDeskSource(varServiceDeskSource) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_service_provider_configuration.go b/api_v3/model_service_provider_configuration.go index b1d8e966b..8277ab066 100644 --- a/api_v3/model_service_provider_configuration.go +++ b/api_v3/model_service_provider_configuration.go @@ -63,7 +63,7 @@ func NewServiceProviderConfigurationWithDefaults() *ServiceProviderConfiguration // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *ServiceProviderConfiguration) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -73,7 +73,7 @@ func (o *ServiceProviderConfiguration) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceProviderConfiguration) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -81,7 +81,7 @@ func (o *ServiceProviderConfiguration) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *ServiceProviderConfiguration) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -95,7 +95,7 @@ func (o *ServiceProviderConfiguration) SetEnabled(v bool) { // GetBypassIdp returns the BypassIdp field value if set, zero value otherwise. func (o *ServiceProviderConfiguration) GetBypassIdp() bool { - if o == nil || isNil(o.BypassIdp) { + if o == nil || IsNil(o.BypassIdp) { var ret bool return ret } @@ -105,7 +105,7 @@ func (o *ServiceProviderConfiguration) GetBypassIdp() bool { // GetBypassIdpOk returns a tuple with the BypassIdp field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceProviderConfiguration) GetBypassIdpOk() (*bool, bool) { - if o == nil || isNil(o.BypassIdp) { + if o == nil || IsNil(o.BypassIdp) { return nil, false } return o.BypassIdp, true @@ -113,7 +113,7 @@ func (o *ServiceProviderConfiguration) GetBypassIdpOk() (*bool, bool) { // HasBypassIdp returns a boolean if a field has been set. func (o *ServiceProviderConfiguration) HasBypassIdp() bool { - if o != nil && !isNil(o.BypassIdp) { + if o != nil && !IsNil(o.BypassIdp) { return true } @@ -127,7 +127,7 @@ func (o *ServiceProviderConfiguration) SetBypassIdp(v bool) { // GetSamlConfigurationValid returns the SamlConfigurationValid field value if set, zero value otherwise. func (o *ServiceProviderConfiguration) GetSamlConfigurationValid() bool { - if o == nil || isNil(o.SamlConfigurationValid) { + if o == nil || IsNil(o.SamlConfigurationValid) { var ret bool return ret } @@ -137,7 +137,7 @@ func (o *ServiceProviderConfiguration) GetSamlConfigurationValid() bool { // GetSamlConfigurationValidOk returns a tuple with the SamlConfigurationValid field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceProviderConfiguration) GetSamlConfigurationValidOk() (*bool, bool) { - if o == nil || isNil(o.SamlConfigurationValid) { + if o == nil || IsNil(o.SamlConfigurationValid) { return nil, false } return o.SamlConfigurationValid, true @@ -145,7 +145,7 @@ func (o *ServiceProviderConfiguration) GetSamlConfigurationValidOk() (*bool, boo // HasSamlConfigurationValid returns a boolean if a field has been set. func (o *ServiceProviderConfiguration) HasSamlConfigurationValid() bool { - if o != nil && !isNil(o.SamlConfigurationValid) { + if o != nil && !IsNil(o.SamlConfigurationValid) { return true } @@ -159,7 +159,7 @@ func (o *ServiceProviderConfiguration) SetSamlConfigurationValid(v bool) { // GetFederationProtocolDetails returns the FederationProtocolDetails field value if set, zero value otherwise. func (o *ServiceProviderConfiguration) GetFederationProtocolDetails() []ServiceProviderConfigurationFederationProtocolDetailsInner { - if o == nil || isNil(o.FederationProtocolDetails) { + if o == nil || IsNil(o.FederationProtocolDetails) { var ret []ServiceProviderConfigurationFederationProtocolDetailsInner return ret } @@ -169,7 +169,7 @@ func (o *ServiceProviderConfiguration) GetFederationProtocolDetails() []ServiceP // GetFederationProtocolDetailsOk returns a tuple with the FederationProtocolDetails field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceProviderConfiguration) GetFederationProtocolDetailsOk() ([]ServiceProviderConfigurationFederationProtocolDetailsInner, bool) { - if o == nil || isNil(o.FederationProtocolDetails) { + if o == nil || IsNil(o.FederationProtocolDetails) { return nil, false } return o.FederationProtocolDetails, true @@ -177,7 +177,7 @@ func (o *ServiceProviderConfiguration) GetFederationProtocolDetailsOk() ([]Servi // HasFederationProtocolDetails returns a boolean if a field has been set. func (o *ServiceProviderConfiguration) HasFederationProtocolDetails() bool { - if o != nil && !isNil(o.FederationProtocolDetails) { + if o != nil && !IsNil(o.FederationProtocolDetails) { return true } @@ -199,16 +199,16 @@ func (o ServiceProviderConfiguration) MarshalJSON() ([]byte, error) { func (o ServiceProviderConfiguration) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Enabled) { + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - if !isNil(o.BypassIdp) { + if !IsNil(o.BypassIdp) { toSerialize["bypassIdp"] = o.BypassIdp } - if !isNil(o.SamlConfigurationValid) { + if !IsNil(o.SamlConfigurationValid) { toSerialize["samlConfigurationValid"] = o.SamlConfigurationValid } - if !isNil(o.FederationProtocolDetails) { + if !IsNil(o.FederationProtocolDetails) { toSerialize["federationProtocolDetails"] = o.FederationProtocolDetails } @@ -219,16 +219,20 @@ func (o ServiceProviderConfiguration) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ServiceProviderConfiguration) UnmarshalJSON(bytes []byte) (err error) { +func (o *ServiceProviderConfiguration) UnmarshalJSON(data []byte) (err error) { varServiceProviderConfiguration := _ServiceProviderConfiguration{} - if err = json.Unmarshal(bytes, &varServiceProviderConfiguration); err == nil { + err = json.Unmarshal(data, &varServiceProviderConfiguration) + + if err != nil { + return err + } + *o = ServiceProviderConfiguration(varServiceProviderConfiguration) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "enabled") delete(additionalProperties, "bypassIdp") delete(additionalProperties, "samlConfigurationValid") diff --git a/api_v3/model_service_provider_configuration_federation_protocol_details_inner.go b/api_v3/model_service_provider_configuration_federation_protocol_details_inner.go index 6387d3e14..429a4c868 100644 --- a/api_v3/model_service_provider_configuration_federation_protocol_details_inner.go +++ b/api_v3/model_service_provider_configuration_federation_protocol_details_inner.go @@ -12,6 +12,7 @@ package api_v3 import ( "encoding/json" + "gopkg.in/validator.v2" "fmt" ) @@ -47,7 +48,11 @@ func (dst *ServiceProviderConfigurationFederationProtocolDetailsInner) Unmarshal if string(jsonIdpDetails) == "{}" { // empty struct dst.IdpDetails = nil } else { - match++ + if err = validator.Validate(dst.IdpDetails); err != nil { + dst.IdpDetails = nil + } else { + match++ + } } } else { dst.IdpDetails = nil @@ -60,7 +65,11 @@ func (dst *ServiceProviderConfigurationFederationProtocolDetailsInner) Unmarshal if string(jsonSpDetails) == "{}" { // empty struct dst.SpDetails = nil } else { - match++ + if err = validator.Validate(dst.SpDetails); err != nil { + dst.SpDetails = nil + } else { + match++ + } } } else { dst.SpDetails = nil diff --git a/api_v3/model_session_configuration.go b/api_v3/model_session_configuration.go index 946d49fda..ab09e8a0b 100644 --- a/api_v3/model_session_configuration.go +++ b/api_v3/model_session_configuration.go @@ -53,7 +53,7 @@ func NewSessionConfigurationWithDefaults() *SessionConfiguration { // GetMaxIdleTime returns the MaxIdleTime field value if set, zero value otherwise. func (o *SessionConfiguration) GetMaxIdleTime() int32 { - if o == nil || isNil(o.MaxIdleTime) { + if o == nil || IsNil(o.MaxIdleTime) { var ret int32 return ret } @@ -63,7 +63,7 @@ func (o *SessionConfiguration) GetMaxIdleTime() int32 { // GetMaxIdleTimeOk returns a tuple with the MaxIdleTime field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SessionConfiguration) GetMaxIdleTimeOk() (*int32, bool) { - if o == nil || isNil(o.MaxIdleTime) { + if o == nil || IsNil(o.MaxIdleTime) { return nil, false } return o.MaxIdleTime, true @@ -71,7 +71,7 @@ func (o *SessionConfiguration) GetMaxIdleTimeOk() (*int32, bool) { // HasMaxIdleTime returns a boolean if a field has been set. func (o *SessionConfiguration) HasMaxIdleTime() bool { - if o != nil && !isNil(o.MaxIdleTime) { + if o != nil && !IsNil(o.MaxIdleTime) { return true } @@ -85,7 +85,7 @@ func (o *SessionConfiguration) SetMaxIdleTime(v int32) { // GetRememberMe returns the RememberMe field value if set, zero value otherwise. func (o *SessionConfiguration) GetRememberMe() bool { - if o == nil || isNil(o.RememberMe) { + if o == nil || IsNil(o.RememberMe) { var ret bool return ret } @@ -95,7 +95,7 @@ func (o *SessionConfiguration) GetRememberMe() bool { // GetRememberMeOk returns a tuple with the RememberMe field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SessionConfiguration) GetRememberMeOk() (*bool, bool) { - if o == nil || isNil(o.RememberMe) { + if o == nil || IsNil(o.RememberMe) { return nil, false } return o.RememberMe, true @@ -103,7 +103,7 @@ func (o *SessionConfiguration) GetRememberMeOk() (*bool, bool) { // HasRememberMe returns a boolean if a field has been set. func (o *SessionConfiguration) HasRememberMe() bool { - if o != nil && !isNil(o.RememberMe) { + if o != nil && !IsNil(o.RememberMe) { return true } @@ -117,7 +117,7 @@ func (o *SessionConfiguration) SetRememberMe(v bool) { // GetMaxSessionTime returns the MaxSessionTime field value if set, zero value otherwise. func (o *SessionConfiguration) GetMaxSessionTime() int32 { - if o == nil || isNil(o.MaxSessionTime) { + if o == nil || IsNil(o.MaxSessionTime) { var ret int32 return ret } @@ -127,7 +127,7 @@ func (o *SessionConfiguration) GetMaxSessionTime() int32 { // GetMaxSessionTimeOk returns a tuple with the MaxSessionTime field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SessionConfiguration) GetMaxSessionTimeOk() (*int32, bool) { - if o == nil || isNil(o.MaxSessionTime) { + if o == nil || IsNil(o.MaxSessionTime) { return nil, false } return o.MaxSessionTime, true @@ -135,7 +135,7 @@ func (o *SessionConfiguration) GetMaxSessionTimeOk() (*int32, bool) { // HasMaxSessionTime returns a boolean if a field has been set. func (o *SessionConfiguration) HasMaxSessionTime() bool { - if o != nil && !isNil(o.MaxSessionTime) { + if o != nil && !IsNil(o.MaxSessionTime) { return true } @@ -157,13 +157,13 @@ func (o SessionConfiguration) MarshalJSON() ([]byte, error) { func (o SessionConfiguration) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.MaxIdleTime) { + if !IsNil(o.MaxIdleTime) { toSerialize["maxIdleTime"] = o.MaxIdleTime } - if !isNil(o.RememberMe) { + if !IsNil(o.RememberMe) { toSerialize["rememberMe"] = o.RememberMe } - if !isNil(o.MaxSessionTime) { + if !IsNil(o.MaxSessionTime) { toSerialize["maxSessionTime"] = o.MaxSessionTime } @@ -174,16 +174,20 @@ func (o SessionConfiguration) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SessionConfiguration) UnmarshalJSON(bytes []byte) (err error) { +func (o *SessionConfiguration) UnmarshalJSON(data []byte) (err error) { varSessionConfiguration := _SessionConfiguration{} - if err = json.Unmarshal(bytes, &varSessionConfiguration); err == nil { + err = json.Unmarshal(data, &varSessionConfiguration) + + if err != nil { + return err + } + *o = SessionConfiguration(varSessionConfiguration) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "maxIdleTime") delete(additionalProperties, "rememberMe") delete(additionalProperties, "maxSessionTime") diff --git a/api_v3/model_set_lifecycle_state_200_response.go b/api_v3/model_set_lifecycle_state_200_response.go index 8e53fed42..78cb9953d 100644 --- a/api_v3/model_set_lifecycle_state_200_response.go +++ b/api_v3/model_set_lifecycle_state_200_response.go @@ -45,7 +45,7 @@ func NewSetLifecycleState200ResponseWithDefaults() *SetLifecycleState200Response // GetAccountActivityId returns the AccountActivityId field value if set, zero value otherwise. func (o *SetLifecycleState200Response) GetAccountActivityId() string { - if o == nil || isNil(o.AccountActivityId) { + if o == nil || IsNil(o.AccountActivityId) { var ret string return ret } @@ -55,7 +55,7 @@ func (o *SetLifecycleState200Response) GetAccountActivityId() string { // GetAccountActivityIdOk returns a tuple with the AccountActivityId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SetLifecycleState200Response) GetAccountActivityIdOk() (*string, bool) { - if o == nil || isNil(o.AccountActivityId) { + if o == nil || IsNil(o.AccountActivityId) { return nil, false } return o.AccountActivityId, true @@ -63,7 +63,7 @@ func (o *SetLifecycleState200Response) GetAccountActivityIdOk() (*string, bool) // HasAccountActivityId returns a boolean if a field has been set. func (o *SetLifecycleState200Response) HasAccountActivityId() bool { - if o != nil && !isNil(o.AccountActivityId) { + if o != nil && !IsNil(o.AccountActivityId) { return true } @@ -85,7 +85,7 @@ func (o SetLifecycleState200Response) MarshalJSON() ([]byte, error) { func (o SetLifecycleState200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.AccountActivityId) { + if !IsNil(o.AccountActivityId) { toSerialize["accountActivityId"] = o.AccountActivityId } @@ -96,16 +96,20 @@ func (o SetLifecycleState200Response) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SetLifecycleState200Response) UnmarshalJSON(bytes []byte) (err error) { +func (o *SetLifecycleState200Response) UnmarshalJSON(data []byte) (err error) { varSetLifecycleState200Response := _SetLifecycleState200Response{} - if err = json.Unmarshal(bytes, &varSetLifecycleState200Response); err == nil { + err = json.Unmarshal(data, &varSetLifecycleState200Response) + + if err != nil { + return err + } + *o = SetLifecycleState200Response(varSetLifecycleState200Response) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "accountActivityId") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_set_lifecycle_state_request.go b/api_v3/model_set_lifecycle_state_request.go index 33b41c36f..905b19db2 100644 --- a/api_v3/model_set_lifecycle_state_request.go +++ b/api_v3/model_set_lifecycle_state_request.go @@ -45,7 +45,7 @@ func NewSetLifecycleStateRequestWithDefaults() *SetLifecycleStateRequest { // GetLifecycleStateId returns the LifecycleStateId field value if set, zero value otherwise. func (o *SetLifecycleStateRequest) GetLifecycleStateId() string { - if o == nil || isNil(o.LifecycleStateId) { + if o == nil || IsNil(o.LifecycleStateId) { var ret string return ret } @@ -55,7 +55,7 @@ func (o *SetLifecycleStateRequest) GetLifecycleStateId() string { // GetLifecycleStateIdOk returns a tuple with the LifecycleStateId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SetLifecycleStateRequest) GetLifecycleStateIdOk() (*string, bool) { - if o == nil || isNil(o.LifecycleStateId) { + if o == nil || IsNil(o.LifecycleStateId) { return nil, false } return o.LifecycleStateId, true @@ -63,7 +63,7 @@ func (o *SetLifecycleStateRequest) GetLifecycleStateIdOk() (*string, bool) { // HasLifecycleStateId returns a boolean if a field has been set. func (o *SetLifecycleStateRequest) HasLifecycleStateId() bool { - if o != nil && !isNil(o.LifecycleStateId) { + if o != nil && !IsNil(o.LifecycleStateId) { return true } @@ -85,7 +85,7 @@ func (o SetLifecycleStateRequest) MarshalJSON() ([]byte, error) { func (o SetLifecycleStateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.LifecycleStateId) { + if !IsNil(o.LifecycleStateId) { toSerialize["lifecycleStateId"] = o.LifecycleStateId } @@ -96,16 +96,20 @@ func (o SetLifecycleStateRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SetLifecycleStateRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *SetLifecycleStateRequest) UnmarshalJSON(data []byte) (err error) { varSetLifecycleStateRequest := _SetLifecycleStateRequest{} - if err = json.Unmarshal(bytes, &varSetLifecycleStateRequest); err == nil { + err = json.Unmarshal(data, &varSetLifecycleStateRequest) + + if err != nil { + return err + } + *o = SetLifecycleStateRequest(varSetLifecycleStateRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "lifecycleStateId") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_slim_campaign.go b/api_v3/model_slim_campaign.go index 8618f0c67..1b55d1f37 100644 --- a/api_v3/model_slim_campaign.go +++ b/api_v3/model_slim_campaign.go @@ -88,7 +88,7 @@ func NewSlimCampaignWithDefaults() *SlimCampaign { // GetId returns the Id field value if set, zero value otherwise. func (o *SlimCampaign) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -98,7 +98,7 @@ func (o *SlimCampaign) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimCampaign) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -106,7 +106,7 @@ func (o *SlimCampaign) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SlimCampaign) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -168,7 +168,7 @@ func (o *SlimCampaign) SetDescription(v string) { // GetDeadline returns the Deadline field value if set, zero value otherwise. func (o *SlimCampaign) GetDeadline() time.Time { - if o == nil || isNil(o.Deadline) { + if o == nil || IsNil(o.Deadline) { var ret time.Time return ret } @@ -178,7 +178,7 @@ func (o *SlimCampaign) GetDeadline() time.Time { // GetDeadlineOk returns a tuple with the Deadline field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimCampaign) GetDeadlineOk() (*time.Time, bool) { - if o == nil || isNil(o.Deadline) { + if o == nil || IsNil(o.Deadline) { return nil, false } return o.Deadline, true @@ -186,7 +186,7 @@ func (o *SlimCampaign) GetDeadlineOk() (*time.Time, bool) { // HasDeadline returns a boolean if a field has been set. func (o *SlimCampaign) HasDeadline() bool { - if o != nil && !isNil(o.Deadline) { + if o != nil && !IsNil(o.Deadline) { return true } @@ -224,7 +224,7 @@ func (o *SlimCampaign) SetType(v string) { // GetEmailNotificationEnabled returns the EmailNotificationEnabled field value if set, zero value otherwise. func (o *SlimCampaign) GetEmailNotificationEnabled() bool { - if o == nil || isNil(o.EmailNotificationEnabled) { + if o == nil || IsNil(o.EmailNotificationEnabled) { var ret bool return ret } @@ -234,7 +234,7 @@ func (o *SlimCampaign) GetEmailNotificationEnabled() bool { // GetEmailNotificationEnabledOk returns a tuple with the EmailNotificationEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimCampaign) GetEmailNotificationEnabledOk() (*bool, bool) { - if o == nil || isNil(o.EmailNotificationEnabled) { + if o == nil || IsNil(o.EmailNotificationEnabled) { return nil, false } return o.EmailNotificationEnabled, true @@ -242,7 +242,7 @@ func (o *SlimCampaign) GetEmailNotificationEnabledOk() (*bool, bool) { // HasEmailNotificationEnabled returns a boolean if a field has been set. func (o *SlimCampaign) HasEmailNotificationEnabled() bool { - if o != nil && !isNil(o.EmailNotificationEnabled) { + if o != nil && !IsNil(o.EmailNotificationEnabled) { return true } @@ -256,7 +256,7 @@ func (o *SlimCampaign) SetEmailNotificationEnabled(v bool) { // GetAutoRevokeAllowed returns the AutoRevokeAllowed field value if set, zero value otherwise. func (o *SlimCampaign) GetAutoRevokeAllowed() bool { - if o == nil || isNil(o.AutoRevokeAllowed) { + if o == nil || IsNil(o.AutoRevokeAllowed) { var ret bool return ret } @@ -266,7 +266,7 @@ func (o *SlimCampaign) GetAutoRevokeAllowed() bool { // GetAutoRevokeAllowedOk returns a tuple with the AutoRevokeAllowed field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimCampaign) GetAutoRevokeAllowedOk() (*bool, bool) { - if o == nil || isNil(o.AutoRevokeAllowed) { + if o == nil || IsNil(o.AutoRevokeAllowed) { return nil, false } return o.AutoRevokeAllowed, true @@ -274,7 +274,7 @@ func (o *SlimCampaign) GetAutoRevokeAllowedOk() (*bool, bool) { // HasAutoRevokeAllowed returns a boolean if a field has been set. func (o *SlimCampaign) HasAutoRevokeAllowed() bool { - if o != nil && !isNil(o.AutoRevokeAllowed) { + if o != nil && !IsNil(o.AutoRevokeAllowed) { return true } @@ -288,7 +288,7 @@ func (o *SlimCampaign) SetAutoRevokeAllowed(v bool) { // GetRecommendationsEnabled returns the RecommendationsEnabled field value if set, zero value otherwise. func (o *SlimCampaign) GetRecommendationsEnabled() bool { - if o == nil || isNil(o.RecommendationsEnabled) { + if o == nil || IsNil(o.RecommendationsEnabled) { var ret bool return ret } @@ -298,7 +298,7 @@ func (o *SlimCampaign) GetRecommendationsEnabled() bool { // GetRecommendationsEnabledOk returns a tuple with the RecommendationsEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimCampaign) GetRecommendationsEnabledOk() (*bool, bool) { - if o == nil || isNil(o.RecommendationsEnabled) { + if o == nil || IsNil(o.RecommendationsEnabled) { return nil, false } return o.RecommendationsEnabled, true @@ -306,7 +306,7 @@ func (o *SlimCampaign) GetRecommendationsEnabledOk() (*bool, bool) { // HasRecommendationsEnabled returns a boolean if a field has been set. func (o *SlimCampaign) HasRecommendationsEnabled() bool { - if o != nil && !isNil(o.RecommendationsEnabled) { + if o != nil && !IsNil(o.RecommendationsEnabled) { return true } @@ -320,7 +320,7 @@ func (o *SlimCampaign) SetRecommendationsEnabled(v bool) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *SlimCampaign) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -330,7 +330,7 @@ func (o *SlimCampaign) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimCampaign) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -338,7 +338,7 @@ func (o *SlimCampaign) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *SlimCampaign) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -352,7 +352,7 @@ func (o *SlimCampaign) SetStatus(v string) { // GetCorrelatedStatus returns the CorrelatedStatus field value if set, zero value otherwise. func (o *SlimCampaign) GetCorrelatedStatus() string { - if o == nil || isNil(o.CorrelatedStatus) { + if o == nil || IsNil(o.CorrelatedStatus) { var ret string return ret } @@ -362,7 +362,7 @@ func (o *SlimCampaign) GetCorrelatedStatus() string { // GetCorrelatedStatusOk returns a tuple with the CorrelatedStatus field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimCampaign) GetCorrelatedStatusOk() (*string, bool) { - if o == nil || isNil(o.CorrelatedStatus) { + if o == nil || IsNil(o.CorrelatedStatus) { return nil, false } return o.CorrelatedStatus, true @@ -370,7 +370,7 @@ func (o *SlimCampaign) GetCorrelatedStatusOk() (*string, bool) { // HasCorrelatedStatus returns a boolean if a field has been set. func (o *SlimCampaign) HasCorrelatedStatus() bool { - if o != nil && !isNil(o.CorrelatedStatus) { + if o != nil && !IsNil(o.CorrelatedStatus) { return true } @@ -384,7 +384,7 @@ func (o *SlimCampaign) SetCorrelatedStatus(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *SlimCampaign) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -394,7 +394,7 @@ func (o *SlimCampaign) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimCampaign) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -402,7 +402,7 @@ func (o *SlimCampaign) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *SlimCampaign) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -416,7 +416,7 @@ func (o *SlimCampaign) SetCreated(v time.Time) { // GetTotalCertifications returns the TotalCertifications field value if set, zero value otherwise. func (o *SlimCampaign) GetTotalCertifications() int32 { - if o == nil || isNil(o.TotalCertifications) { + if o == nil || IsNil(o.TotalCertifications) { var ret int32 return ret } @@ -426,7 +426,7 @@ func (o *SlimCampaign) GetTotalCertifications() int32 { // GetTotalCertificationsOk returns a tuple with the TotalCertifications field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimCampaign) GetTotalCertificationsOk() (*int32, bool) { - if o == nil || isNil(o.TotalCertifications) { + if o == nil || IsNil(o.TotalCertifications) { return nil, false } return o.TotalCertifications, true @@ -434,7 +434,7 @@ func (o *SlimCampaign) GetTotalCertificationsOk() (*int32, bool) { // HasTotalCertifications returns a boolean if a field has been set. func (o *SlimCampaign) HasTotalCertifications() bool { - if o != nil && !isNil(o.TotalCertifications) { + if o != nil && !IsNil(o.TotalCertifications) { return true } @@ -448,7 +448,7 @@ func (o *SlimCampaign) SetTotalCertifications(v int32) { // GetCompletedCertifications returns the CompletedCertifications field value if set, zero value otherwise. func (o *SlimCampaign) GetCompletedCertifications() int32 { - if o == nil || isNil(o.CompletedCertifications) { + if o == nil || IsNil(o.CompletedCertifications) { var ret int32 return ret } @@ -458,7 +458,7 @@ func (o *SlimCampaign) GetCompletedCertifications() int32 { // GetCompletedCertificationsOk returns a tuple with the CompletedCertifications field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimCampaign) GetCompletedCertificationsOk() (*int32, bool) { - if o == nil || isNil(o.CompletedCertifications) { + if o == nil || IsNil(o.CompletedCertifications) { return nil, false } return o.CompletedCertifications, true @@ -466,7 +466,7 @@ func (o *SlimCampaign) GetCompletedCertificationsOk() (*int32, bool) { // HasCompletedCertifications returns a boolean if a field has been set. func (o *SlimCampaign) HasCompletedCertifications() bool { - if o != nil && !isNil(o.CompletedCertifications) { + if o != nil && !IsNil(o.CompletedCertifications) { return true } @@ -480,7 +480,7 @@ func (o *SlimCampaign) SetCompletedCertifications(v int32) { // GetAlerts returns the Alerts field value if set, zero value otherwise. func (o *SlimCampaign) GetAlerts() []CampaignAlert { - if o == nil || isNil(o.Alerts) { + if o == nil || IsNil(o.Alerts) { var ret []CampaignAlert return ret } @@ -490,7 +490,7 @@ func (o *SlimCampaign) GetAlerts() []CampaignAlert { // GetAlertsOk returns a tuple with the Alerts field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimCampaign) GetAlertsOk() ([]CampaignAlert, bool) { - if o == nil || isNil(o.Alerts) { + if o == nil || IsNil(o.Alerts) { return nil, false } return o.Alerts, true @@ -498,7 +498,7 @@ func (o *SlimCampaign) GetAlertsOk() ([]CampaignAlert, bool) { // HasAlerts returns a boolean if a field has been set. func (o *SlimCampaign) HasAlerts() bool { - if o != nil && !isNil(o.Alerts) { + if o != nil && !IsNil(o.Alerts) { return true } @@ -520,30 +520,42 @@ func (o SlimCampaign) MarshalJSON() ([]byte, error) { func (o SlimCampaign) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } toSerialize["name"] = o.Name toSerialize["description"] = o.Description - if !isNil(o.Deadline) { + if !IsNil(o.Deadline) { toSerialize["deadline"] = o.Deadline } toSerialize["type"] = o.Type - if !isNil(o.EmailNotificationEnabled) { + if !IsNil(o.EmailNotificationEnabled) { toSerialize["emailNotificationEnabled"] = o.EmailNotificationEnabled } - if !isNil(o.AutoRevokeAllowed) { + if !IsNil(o.AutoRevokeAllowed) { toSerialize["autoRevokeAllowed"] = o.AutoRevokeAllowed } - if !isNil(o.RecommendationsEnabled) { + if !IsNil(o.RecommendationsEnabled) { toSerialize["recommendationsEnabled"] = o.RecommendationsEnabled } - // skip: status is readOnly - if !isNil(o.CorrelatedStatus) { + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.CorrelatedStatus) { toSerialize["correlatedStatus"] = o.CorrelatedStatus } - // skip: created is readOnly - // skip: totalCertifications is readOnly - // skip: completedCertifications is readOnly - // skip: alerts is readOnly + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } + if !IsNil(o.TotalCertifications) { + toSerialize["totalCertifications"] = o.TotalCertifications + } + if !IsNil(o.CompletedCertifications) { + toSerialize["completedCertifications"] = o.CompletedCertifications + } + if !IsNil(o.Alerts) { + toSerialize["alerts"] = o.Alerts + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -552,8 +564,8 @@ func (o SlimCampaign) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SlimCampaign) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *SlimCampaign) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -564,7 +576,7 @@ func (o *SlimCampaign) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -578,13 +590,17 @@ func (o *SlimCampaign) UnmarshalJSON(bytes []byte) (err error) { varSlimCampaign := _SlimCampaign{} - if err = json.Unmarshal(bytes, &varSlimCampaign); err == nil { + err = json.Unmarshal(data, &varSlimCampaign) + + if err != nil { + return err + } + *o = SlimCampaign(varSlimCampaign) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/api_v3/model_slim_discovered_applications.go b/api_v3/model_slim_discovered_applications.go index f5961c6cf..9833a18f0 100644 --- a/api_v3/model_slim_discovered_applications.go +++ b/api_v3/model_slim_discovered_applications.go @@ -62,7 +62,7 @@ func NewSlimDiscoveredApplicationsWithDefaults() *SlimDiscoveredApplications { // GetId returns the Id field value if set, zero value otherwise. func (o *SlimDiscoveredApplications) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -72,7 +72,7 @@ func (o *SlimDiscoveredApplications) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimDiscoveredApplications) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -80,7 +80,7 @@ func (o *SlimDiscoveredApplications) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SlimDiscoveredApplications) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -94,7 +94,7 @@ func (o *SlimDiscoveredApplications) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *SlimDiscoveredApplications) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -104,7 +104,7 @@ func (o *SlimDiscoveredApplications) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimDiscoveredApplications) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -112,7 +112,7 @@ func (o *SlimDiscoveredApplications) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SlimDiscoveredApplications) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -126,7 +126,7 @@ func (o *SlimDiscoveredApplications) SetName(v string) { // GetDiscoverySource returns the DiscoverySource field value if set, zero value otherwise. func (o *SlimDiscoveredApplications) GetDiscoverySource() string { - if o == nil || isNil(o.DiscoverySource) { + if o == nil || IsNil(o.DiscoverySource) { var ret string return ret } @@ -136,7 +136,7 @@ func (o *SlimDiscoveredApplications) GetDiscoverySource() string { // GetDiscoverySourceOk returns a tuple with the DiscoverySource field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimDiscoveredApplications) GetDiscoverySourceOk() (*string, bool) { - if o == nil || isNil(o.DiscoverySource) { + if o == nil || IsNil(o.DiscoverySource) { return nil, false } return o.DiscoverySource, true @@ -144,7 +144,7 @@ func (o *SlimDiscoveredApplications) GetDiscoverySourceOk() (*string, bool) { // HasDiscoverySource returns a boolean if a field has been set. func (o *SlimDiscoveredApplications) HasDiscoverySource() bool { - if o != nil && !isNil(o.DiscoverySource) { + if o != nil && !IsNil(o.DiscoverySource) { return true } @@ -158,7 +158,7 @@ func (o *SlimDiscoveredApplications) SetDiscoverySource(v string) { // GetDiscoveredVendor returns the DiscoveredVendor field value if set, zero value otherwise. func (o *SlimDiscoveredApplications) GetDiscoveredVendor() string { - if o == nil || isNil(o.DiscoveredVendor) { + if o == nil || IsNil(o.DiscoveredVendor) { var ret string return ret } @@ -168,7 +168,7 @@ func (o *SlimDiscoveredApplications) GetDiscoveredVendor() string { // GetDiscoveredVendorOk returns a tuple with the DiscoveredVendor field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimDiscoveredApplications) GetDiscoveredVendorOk() (*string, bool) { - if o == nil || isNil(o.DiscoveredVendor) { + if o == nil || IsNil(o.DiscoveredVendor) { return nil, false } return o.DiscoveredVendor, true @@ -176,7 +176,7 @@ func (o *SlimDiscoveredApplications) GetDiscoveredVendorOk() (*string, bool) { // HasDiscoveredVendor returns a boolean if a field has been set. func (o *SlimDiscoveredApplications) HasDiscoveredVendor() bool { - if o != nil && !isNil(o.DiscoveredVendor) { + if o != nil && !IsNil(o.DiscoveredVendor) { return true } @@ -190,7 +190,7 @@ func (o *SlimDiscoveredApplications) SetDiscoveredVendor(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *SlimDiscoveredApplications) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -200,7 +200,7 @@ func (o *SlimDiscoveredApplications) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimDiscoveredApplications) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -208,7 +208,7 @@ func (o *SlimDiscoveredApplications) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *SlimDiscoveredApplications) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -222,7 +222,7 @@ func (o *SlimDiscoveredApplications) SetDescription(v string) { // GetRecommendedConnectors returns the RecommendedConnectors field value if set, zero value otherwise. func (o *SlimDiscoveredApplications) GetRecommendedConnectors() []string { - if o == nil || isNil(o.RecommendedConnectors) { + if o == nil || IsNil(o.RecommendedConnectors) { var ret []string return ret } @@ -232,7 +232,7 @@ func (o *SlimDiscoveredApplications) GetRecommendedConnectors() []string { // GetRecommendedConnectorsOk returns a tuple with the RecommendedConnectors field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimDiscoveredApplications) GetRecommendedConnectorsOk() ([]string, bool) { - if o == nil || isNil(o.RecommendedConnectors) { + if o == nil || IsNil(o.RecommendedConnectors) { return nil, false } return o.RecommendedConnectors, true @@ -240,7 +240,7 @@ func (o *SlimDiscoveredApplications) GetRecommendedConnectorsOk() ([]string, boo // HasRecommendedConnectors returns a boolean if a field has been set. func (o *SlimDiscoveredApplications) HasRecommendedConnectors() bool { - if o != nil && !isNil(o.RecommendedConnectors) { + if o != nil && !IsNil(o.RecommendedConnectors) { return true } @@ -254,7 +254,7 @@ func (o *SlimDiscoveredApplications) SetRecommendedConnectors(v []string) { // GetDiscoveredAt returns the DiscoveredAt field value if set, zero value otherwise. func (o *SlimDiscoveredApplications) GetDiscoveredAt() time.Time { - if o == nil || isNil(o.DiscoveredAt) { + if o == nil || IsNil(o.DiscoveredAt) { var ret time.Time return ret } @@ -264,7 +264,7 @@ func (o *SlimDiscoveredApplications) GetDiscoveredAt() time.Time { // GetDiscoveredAtOk returns a tuple with the DiscoveredAt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimDiscoveredApplications) GetDiscoveredAtOk() (*time.Time, bool) { - if o == nil || isNil(o.DiscoveredAt) { + if o == nil || IsNil(o.DiscoveredAt) { return nil, false } return o.DiscoveredAt, true @@ -272,7 +272,7 @@ func (o *SlimDiscoveredApplications) GetDiscoveredAtOk() (*time.Time, bool) { // HasDiscoveredAt returns a boolean if a field has been set. func (o *SlimDiscoveredApplications) HasDiscoveredAt() bool { - if o != nil && !isNil(o.DiscoveredAt) { + if o != nil && !IsNil(o.DiscoveredAt) { return true } @@ -286,7 +286,7 @@ func (o *SlimDiscoveredApplications) SetDiscoveredAt(v time.Time) { // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. func (o *SlimDiscoveredApplications) GetCreatedAt() time.Time { - if o == nil || isNil(o.CreatedAt) { + if o == nil || IsNil(o.CreatedAt) { var ret time.Time return ret } @@ -296,7 +296,7 @@ func (o *SlimDiscoveredApplications) GetCreatedAt() time.Time { // GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimDiscoveredApplications) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || isNil(o.CreatedAt) { + if o == nil || IsNil(o.CreatedAt) { return nil, false } return o.CreatedAt, true @@ -304,7 +304,7 @@ func (o *SlimDiscoveredApplications) GetCreatedAtOk() (*time.Time, bool) { // HasCreatedAt returns a boolean if a field has been set. func (o *SlimDiscoveredApplications) HasCreatedAt() bool { - if o != nil && !isNil(o.CreatedAt) { + if o != nil && !IsNil(o.CreatedAt) { return true } @@ -318,7 +318,7 @@ func (o *SlimDiscoveredApplications) SetCreatedAt(v time.Time) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *SlimDiscoveredApplications) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -328,7 +328,7 @@ func (o *SlimDiscoveredApplications) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SlimDiscoveredApplications) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -336,7 +336,7 @@ func (o *SlimDiscoveredApplications) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *SlimDiscoveredApplications) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -358,31 +358,31 @@ func (o SlimDiscoveredApplications) MarshalJSON() ([]byte, error) { func (o SlimDiscoveredApplications) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.DiscoverySource) { + if !IsNil(o.DiscoverySource) { toSerialize["discoverySource"] = o.DiscoverySource } - if !isNil(o.DiscoveredVendor) { + if !IsNil(o.DiscoveredVendor) { toSerialize["discoveredVendor"] = o.DiscoveredVendor } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.RecommendedConnectors) { + if !IsNil(o.RecommendedConnectors) { toSerialize["recommendedConnectors"] = o.RecommendedConnectors } - if !isNil(o.DiscoveredAt) { + if !IsNil(o.DiscoveredAt) { toSerialize["discoveredAt"] = o.DiscoveredAt } - if !isNil(o.CreatedAt) { + if !IsNil(o.CreatedAt) { toSerialize["createdAt"] = o.CreatedAt } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -393,16 +393,20 @@ func (o SlimDiscoveredApplications) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SlimDiscoveredApplications) UnmarshalJSON(bytes []byte) (err error) { +func (o *SlimDiscoveredApplications) UnmarshalJSON(data []byte) (err error) { varSlimDiscoveredApplications := _SlimDiscoveredApplications{} - if err = json.Unmarshal(bytes, &varSlimDiscoveredApplications); err == nil { + err = json.Unmarshal(data, &varSlimDiscoveredApplications) + + if err != nil { + return err + } + *o = SlimDiscoveredApplications(varSlimDiscoveredApplications) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "discoverySource") diff --git a/api_v3/model_sod_exempt_criteria.go b/api_v3/model_sod_exempt_criteria.go index 815ffe214..b50e7215a 100644 --- a/api_v3/model_sod_exempt_criteria.go +++ b/api_v3/model_sod_exempt_criteria.go @@ -54,7 +54,7 @@ func NewSodExemptCriteriaWithDefaults() *SodExemptCriteria { // GetExisting returns the Existing field value if set, zero value otherwise. func (o *SodExemptCriteria) GetExisting() bool { - if o == nil || isNil(o.Existing) { + if o == nil || IsNil(o.Existing) { var ret bool return ret } @@ -64,7 +64,7 @@ func (o *SodExemptCriteria) GetExisting() bool { // GetExistingOk returns a tuple with the Existing field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodExemptCriteria) GetExistingOk() (*bool, bool) { - if o == nil || isNil(o.Existing) { + if o == nil || IsNil(o.Existing) { return nil, false } return o.Existing, true @@ -72,7 +72,7 @@ func (o *SodExemptCriteria) GetExistingOk() (*bool, bool) { // HasExisting returns a boolean if a field has been set. func (o *SodExemptCriteria) HasExisting() bool { - if o != nil && !isNil(o.Existing) { + if o != nil && !IsNil(o.Existing) { return true } @@ -86,7 +86,7 @@ func (o *SodExemptCriteria) SetExisting(v bool) { // GetType returns the Type field value if set, zero value otherwise. func (o *SodExemptCriteria) GetType() DtoType { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret DtoType return ret } @@ -96,7 +96,7 @@ func (o *SodExemptCriteria) GetType() DtoType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodExemptCriteria) GetTypeOk() (*DtoType, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -104,7 +104,7 @@ func (o *SodExemptCriteria) GetTypeOk() (*DtoType, bool) { // HasType returns a boolean if a field has been set. func (o *SodExemptCriteria) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -118,7 +118,7 @@ func (o *SodExemptCriteria) SetType(v DtoType) { // GetId returns the Id field value if set, zero value otherwise. func (o *SodExemptCriteria) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -128,7 +128,7 @@ func (o *SodExemptCriteria) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodExemptCriteria) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -136,7 +136,7 @@ func (o *SodExemptCriteria) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SodExemptCriteria) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -150,7 +150,7 @@ func (o *SodExemptCriteria) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *SodExemptCriteria) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -160,7 +160,7 @@ func (o *SodExemptCriteria) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodExemptCriteria) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -168,7 +168,7 @@ func (o *SodExemptCriteria) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SodExemptCriteria) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -190,16 +190,16 @@ func (o SodExemptCriteria) MarshalJSON() ([]byte, error) { func (o SodExemptCriteria) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Existing) { + if !IsNil(o.Existing) { toSerialize["existing"] = o.Existing } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -210,16 +210,20 @@ func (o SodExemptCriteria) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SodExemptCriteria) UnmarshalJSON(bytes []byte) (err error) { +func (o *SodExemptCriteria) UnmarshalJSON(data []byte) (err error) { varSodExemptCriteria := _SodExemptCriteria{} - if err = json.Unmarshal(bytes, &varSodExemptCriteria); err == nil { + err = json.Unmarshal(data, &varSodExemptCriteria) + + if err != nil { + return err + } + *o = SodExemptCriteria(varSodExemptCriteria) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "existing") delete(additionalProperties, "type") delete(additionalProperties, "id") diff --git a/api_v3/model_sod_policy.go b/api_v3/model_sod_policy.go index 8a4f8b00c..0d8320e40 100644 --- a/api_v3/model_sod_policy.go +++ b/api_v3/model_sod_policy.go @@ -85,7 +85,7 @@ func NewSodPolicyWithDefaults() *SodPolicy { // GetId returns the Id field value if set, zero value otherwise. func (o *SodPolicy) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -95,7 +95,7 @@ func (o *SodPolicy) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicy) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -103,7 +103,7 @@ func (o *SodPolicy) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SodPolicy) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -117,7 +117,7 @@ func (o *SodPolicy) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *SodPolicy) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -127,7 +127,7 @@ func (o *SodPolicy) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicy) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -135,7 +135,7 @@ func (o *SodPolicy) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SodPolicy) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -149,7 +149,7 @@ func (o *SodPolicy) SetName(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *SodPolicy) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -159,7 +159,7 @@ func (o *SodPolicy) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicy) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -167,7 +167,7 @@ func (o *SodPolicy) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *SodPolicy) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -181,7 +181,7 @@ func (o *SodPolicy) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *SodPolicy) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -191,7 +191,7 @@ func (o *SodPolicy) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicy) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -199,7 +199,7 @@ func (o *SodPolicy) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *SodPolicy) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -213,7 +213,7 @@ func (o *SodPolicy) SetModified(v time.Time) { // GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SodPolicy) GetDescription() string { - if o == nil || isNil(o.Description.Get()) { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } @@ -255,7 +255,7 @@ func (o *SodPolicy) UnsetDescription() { // GetOwnerRef returns the OwnerRef field value if set, zero value otherwise. func (o *SodPolicy) GetOwnerRef() SodPolicyOwnerRef { - if o == nil || isNil(o.OwnerRef) { + if o == nil || IsNil(o.OwnerRef) { var ret SodPolicyOwnerRef return ret } @@ -265,7 +265,7 @@ func (o *SodPolicy) GetOwnerRef() SodPolicyOwnerRef { // GetOwnerRefOk returns a tuple with the OwnerRef field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicy) GetOwnerRefOk() (*SodPolicyOwnerRef, bool) { - if o == nil || isNil(o.OwnerRef) { + if o == nil || IsNil(o.OwnerRef) { return nil, false } return o.OwnerRef, true @@ -273,7 +273,7 @@ func (o *SodPolicy) GetOwnerRefOk() (*SodPolicyOwnerRef, bool) { // HasOwnerRef returns a boolean if a field has been set. func (o *SodPolicy) HasOwnerRef() bool { - if o != nil && !isNil(o.OwnerRef) { + if o != nil && !IsNil(o.OwnerRef) { return true } @@ -287,7 +287,7 @@ func (o *SodPolicy) SetOwnerRef(v SodPolicyOwnerRef) { // GetExternalPolicyReference returns the ExternalPolicyReference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SodPolicy) GetExternalPolicyReference() string { - if o == nil || isNil(o.ExternalPolicyReference.Get()) { + if o == nil || IsNil(o.ExternalPolicyReference.Get()) { var ret string return ret } @@ -329,7 +329,7 @@ func (o *SodPolicy) UnsetExternalPolicyReference() { // GetPolicyQuery returns the PolicyQuery field value if set, zero value otherwise. func (o *SodPolicy) GetPolicyQuery() string { - if o == nil || isNil(o.PolicyQuery) { + if o == nil || IsNil(o.PolicyQuery) { var ret string return ret } @@ -339,7 +339,7 @@ func (o *SodPolicy) GetPolicyQuery() string { // GetPolicyQueryOk returns a tuple with the PolicyQuery field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicy) GetPolicyQueryOk() (*string, bool) { - if o == nil || isNil(o.PolicyQuery) { + if o == nil || IsNil(o.PolicyQuery) { return nil, false } return o.PolicyQuery, true @@ -347,7 +347,7 @@ func (o *SodPolicy) GetPolicyQueryOk() (*string, bool) { // HasPolicyQuery returns a boolean if a field has been set. func (o *SodPolicy) HasPolicyQuery() bool { - if o != nil && !isNil(o.PolicyQuery) { + if o != nil && !IsNil(o.PolicyQuery) { return true } @@ -361,7 +361,7 @@ func (o *SodPolicy) SetPolicyQuery(v string) { // GetCompensatingControls returns the CompensatingControls field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SodPolicy) GetCompensatingControls() string { - if o == nil || isNil(o.CompensatingControls.Get()) { + if o == nil || IsNil(o.CompensatingControls.Get()) { var ret string return ret } @@ -403,7 +403,7 @@ func (o *SodPolicy) UnsetCompensatingControls() { // GetCorrectionAdvice returns the CorrectionAdvice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SodPolicy) GetCorrectionAdvice() string { - if o == nil || isNil(o.CorrectionAdvice.Get()) { + if o == nil || IsNil(o.CorrectionAdvice.Get()) { var ret string return ret } @@ -445,7 +445,7 @@ func (o *SodPolicy) UnsetCorrectionAdvice() { // GetState returns the State field value if set, zero value otherwise. func (o *SodPolicy) GetState() string { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { var ret string return ret } @@ -455,7 +455,7 @@ func (o *SodPolicy) GetState() string { // GetStateOk returns a tuple with the State field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicy) GetStateOk() (*string, bool) { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { return nil, false } return o.State, true @@ -463,7 +463,7 @@ func (o *SodPolicy) GetStateOk() (*string, bool) { // HasState returns a boolean if a field has been set. func (o *SodPolicy) HasState() bool { - if o != nil && !isNil(o.State) { + if o != nil && !IsNil(o.State) { return true } @@ -477,7 +477,7 @@ func (o *SodPolicy) SetState(v string) { // GetTags returns the Tags field value if set, zero value otherwise. func (o *SodPolicy) GetTags() []string { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { var ret []string return ret } @@ -487,7 +487,7 @@ func (o *SodPolicy) GetTags() []string { // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicy) GetTagsOk() ([]string, bool) { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { return nil, false } return o.Tags, true @@ -495,7 +495,7 @@ func (o *SodPolicy) GetTagsOk() ([]string, bool) { // HasTags returns a boolean if a field has been set. func (o *SodPolicy) HasTags() bool { - if o != nil && !isNil(o.Tags) { + if o != nil && !IsNil(o.Tags) { return true } @@ -509,7 +509,7 @@ func (o *SodPolicy) SetTags(v []string) { // GetCreatorId returns the CreatorId field value if set, zero value otherwise. func (o *SodPolicy) GetCreatorId() string { - if o == nil || isNil(o.CreatorId) { + if o == nil || IsNil(o.CreatorId) { var ret string return ret } @@ -519,7 +519,7 @@ func (o *SodPolicy) GetCreatorId() string { // GetCreatorIdOk returns a tuple with the CreatorId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicy) GetCreatorIdOk() (*string, bool) { - if o == nil || isNil(o.CreatorId) { + if o == nil || IsNil(o.CreatorId) { return nil, false } return o.CreatorId, true @@ -527,7 +527,7 @@ func (o *SodPolicy) GetCreatorIdOk() (*string, bool) { // HasCreatorId returns a boolean if a field has been set. func (o *SodPolicy) HasCreatorId() bool { - if o != nil && !isNil(o.CreatorId) { + if o != nil && !IsNil(o.CreatorId) { return true } @@ -541,7 +541,7 @@ func (o *SodPolicy) SetCreatorId(v string) { // GetModifierId returns the ModifierId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SodPolicy) GetModifierId() string { - if o == nil || isNil(o.ModifierId.Get()) { + if o == nil || IsNil(o.ModifierId.Get()) { var ret string return ret } @@ -583,7 +583,7 @@ func (o *SodPolicy) UnsetModifierId() { // GetViolationOwnerAssignmentConfig returns the ViolationOwnerAssignmentConfig field value if set, zero value otherwise. func (o *SodPolicy) GetViolationOwnerAssignmentConfig() ViolationOwnerAssignmentConfig { - if o == nil || isNil(o.ViolationOwnerAssignmentConfig) { + if o == nil || IsNil(o.ViolationOwnerAssignmentConfig) { var ret ViolationOwnerAssignmentConfig return ret } @@ -593,7 +593,7 @@ func (o *SodPolicy) GetViolationOwnerAssignmentConfig() ViolationOwnerAssignment // GetViolationOwnerAssignmentConfigOk returns a tuple with the ViolationOwnerAssignmentConfig field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicy) GetViolationOwnerAssignmentConfigOk() (*ViolationOwnerAssignmentConfig, bool) { - if o == nil || isNil(o.ViolationOwnerAssignmentConfig) { + if o == nil || IsNil(o.ViolationOwnerAssignmentConfig) { return nil, false } return o.ViolationOwnerAssignmentConfig, true @@ -601,7 +601,7 @@ func (o *SodPolicy) GetViolationOwnerAssignmentConfigOk() (*ViolationOwnerAssign // HasViolationOwnerAssignmentConfig returns a boolean if a field has been set. func (o *SodPolicy) HasViolationOwnerAssignmentConfig() bool { - if o != nil && !isNil(o.ViolationOwnerAssignmentConfig) { + if o != nil && !IsNil(o.ViolationOwnerAssignmentConfig) { return true } @@ -615,7 +615,7 @@ func (o *SodPolicy) SetViolationOwnerAssignmentConfig(v ViolationOwnerAssignment // GetScheduled returns the Scheduled field value if set, zero value otherwise. func (o *SodPolicy) GetScheduled() bool { - if o == nil || isNil(o.Scheduled) { + if o == nil || IsNil(o.Scheduled) { var ret bool return ret } @@ -625,7 +625,7 @@ func (o *SodPolicy) GetScheduled() bool { // GetScheduledOk returns a tuple with the Scheduled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicy) GetScheduledOk() (*bool, bool) { - if o == nil || isNil(o.Scheduled) { + if o == nil || IsNil(o.Scheduled) { return nil, false } return o.Scheduled, true @@ -633,7 +633,7 @@ func (o *SodPolicy) GetScheduledOk() (*bool, bool) { // HasScheduled returns a boolean if a field has been set. func (o *SodPolicy) HasScheduled() bool { - if o != nil && !isNil(o.Scheduled) { + if o != nil && !IsNil(o.Scheduled) { return true } @@ -647,7 +647,7 @@ func (o *SodPolicy) SetScheduled(v bool) { // GetType returns the Type field value if set, zero value otherwise. func (o *SodPolicy) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -657,7 +657,7 @@ func (o *SodPolicy) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicy) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -665,7 +665,7 @@ func (o *SodPolicy) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *SodPolicy) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -679,7 +679,7 @@ func (o *SodPolicy) SetType(v string) { // GetConflictingAccessCriteria returns the ConflictingAccessCriteria field value if set, zero value otherwise. func (o *SodPolicy) GetConflictingAccessCriteria() SodPolicyConflictingAccessCriteria { - if o == nil || isNil(o.ConflictingAccessCriteria) { + if o == nil || IsNil(o.ConflictingAccessCriteria) { var ret SodPolicyConflictingAccessCriteria return ret } @@ -689,7 +689,7 @@ func (o *SodPolicy) GetConflictingAccessCriteria() SodPolicyConflictingAccessCri // GetConflictingAccessCriteriaOk returns a tuple with the ConflictingAccessCriteria field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicy) GetConflictingAccessCriteriaOk() (*SodPolicyConflictingAccessCriteria, bool) { - if o == nil || isNil(o.ConflictingAccessCriteria) { + if o == nil || IsNil(o.ConflictingAccessCriteria) { return nil, false } return o.ConflictingAccessCriteria, true @@ -697,7 +697,7 @@ func (o *SodPolicy) GetConflictingAccessCriteriaOk() (*SodPolicyConflictingAcces // HasConflictingAccessCriteria returns a boolean if a field has been set. func (o *SodPolicy) HasConflictingAccessCriteria() bool { - if o != nil && !isNil(o.ConflictingAccessCriteria) { + if o != nil && !IsNil(o.ConflictingAccessCriteria) { return true } @@ -719,22 +719,28 @@ func (o SodPolicy) MarshalJSON() ([]byte, error) { func (o SodPolicy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - if !isNil(o.Name) { + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - // skip: created is readOnly - // skip: modified is readOnly + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } + if !IsNil(o.Modified) { + toSerialize["modified"] = o.Modified + } if o.Description.IsSet() { toSerialize["description"] = o.Description.Get() } - if !isNil(o.OwnerRef) { + if !IsNil(o.OwnerRef) { toSerialize["ownerRef"] = o.OwnerRef } if o.ExternalPolicyReference.IsSet() { toSerialize["externalPolicyReference"] = o.ExternalPolicyReference.Get() } - if !isNil(o.PolicyQuery) { + if !IsNil(o.PolicyQuery) { toSerialize["policyQuery"] = o.PolicyQuery } if o.CompensatingControls.IsSet() { @@ -743,26 +749,28 @@ func (o SodPolicy) ToMap() (map[string]interface{}, error) { if o.CorrectionAdvice.IsSet() { toSerialize["correctionAdvice"] = o.CorrectionAdvice.Get() } - if !isNil(o.State) { + if !IsNil(o.State) { toSerialize["state"] = o.State } - if !isNil(o.Tags) { + if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } - // skip: creatorId is readOnly + if !IsNil(o.CreatorId) { + toSerialize["creatorId"] = o.CreatorId + } if o.ModifierId.IsSet() { toSerialize["modifierId"] = o.ModifierId.Get() } - if !isNil(o.ViolationOwnerAssignmentConfig) { + if !IsNil(o.ViolationOwnerAssignmentConfig) { toSerialize["violationOwnerAssignmentConfig"] = o.ViolationOwnerAssignmentConfig } - if !isNil(o.Scheduled) { + if !IsNil(o.Scheduled) { toSerialize["scheduled"] = o.Scheduled } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.ConflictingAccessCriteria) { + if !IsNil(o.ConflictingAccessCriteria) { toSerialize["conflictingAccessCriteria"] = o.ConflictingAccessCriteria } @@ -773,16 +781,20 @@ func (o SodPolicy) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SodPolicy) UnmarshalJSON(bytes []byte) (err error) { +func (o *SodPolicy) UnmarshalJSON(data []byte) (err error) { varSodPolicy := _SodPolicy{} - if err = json.Unmarshal(bytes, &varSodPolicy); err == nil { + err = json.Unmarshal(data, &varSodPolicy) + + if err != nil { + return err + } + *o = SodPolicy(varSodPolicy) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "created") diff --git a/api_v3/model_sod_policy_conflicting_access_criteria.go b/api_v3/model_sod_policy_conflicting_access_criteria.go index 6575114f8..ff55b762f 100644 --- a/api_v3/model_sod_policy_conflicting_access_criteria.go +++ b/api_v3/model_sod_policy_conflicting_access_criteria.go @@ -45,7 +45,7 @@ func NewSodPolicyConflictingAccessCriteriaWithDefaults() *SodPolicyConflictingAc // GetLeftCriteria returns the LeftCriteria field value if set, zero value otherwise. func (o *SodPolicyConflictingAccessCriteria) GetLeftCriteria() AccessCriteria { - if o == nil || isNil(o.LeftCriteria) { + if o == nil || IsNil(o.LeftCriteria) { var ret AccessCriteria return ret } @@ -55,7 +55,7 @@ func (o *SodPolicyConflictingAccessCriteria) GetLeftCriteria() AccessCriteria { // GetLeftCriteriaOk returns a tuple with the LeftCriteria field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicyConflictingAccessCriteria) GetLeftCriteriaOk() (*AccessCriteria, bool) { - if o == nil || isNil(o.LeftCriteria) { + if o == nil || IsNil(o.LeftCriteria) { return nil, false } return o.LeftCriteria, true @@ -63,7 +63,7 @@ func (o *SodPolicyConflictingAccessCriteria) GetLeftCriteriaOk() (*AccessCriteri // HasLeftCriteria returns a boolean if a field has been set. func (o *SodPolicyConflictingAccessCriteria) HasLeftCriteria() bool { - if o != nil && !isNil(o.LeftCriteria) { + if o != nil && !IsNil(o.LeftCriteria) { return true } @@ -77,7 +77,7 @@ func (o *SodPolicyConflictingAccessCriteria) SetLeftCriteria(v AccessCriteria) { // GetRightCriteria returns the RightCriteria field value if set, zero value otherwise. func (o *SodPolicyConflictingAccessCriteria) GetRightCriteria() AccessCriteria { - if o == nil || isNil(o.RightCriteria) { + if o == nil || IsNil(o.RightCriteria) { var ret AccessCriteria return ret } @@ -87,7 +87,7 @@ func (o *SodPolicyConflictingAccessCriteria) GetRightCriteria() AccessCriteria { // GetRightCriteriaOk returns a tuple with the RightCriteria field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicyConflictingAccessCriteria) GetRightCriteriaOk() (*AccessCriteria, bool) { - if o == nil || isNil(o.RightCriteria) { + if o == nil || IsNil(o.RightCriteria) { return nil, false } return o.RightCriteria, true @@ -95,7 +95,7 @@ func (o *SodPolicyConflictingAccessCriteria) GetRightCriteriaOk() (*AccessCriter // HasRightCriteria returns a boolean if a field has been set. func (o *SodPolicyConflictingAccessCriteria) HasRightCriteria() bool { - if o != nil && !isNil(o.RightCriteria) { + if o != nil && !IsNil(o.RightCriteria) { return true } @@ -117,10 +117,10 @@ func (o SodPolicyConflictingAccessCriteria) MarshalJSON() ([]byte, error) { func (o SodPolicyConflictingAccessCriteria) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.LeftCriteria) { + if !IsNil(o.LeftCriteria) { toSerialize["leftCriteria"] = o.LeftCriteria } - if !isNil(o.RightCriteria) { + if !IsNil(o.RightCriteria) { toSerialize["rightCriteria"] = o.RightCriteria } @@ -131,16 +131,20 @@ func (o SodPolicyConflictingAccessCriteria) ToMap() (map[string]interface{}, err return toSerialize, nil } -func (o *SodPolicyConflictingAccessCriteria) UnmarshalJSON(bytes []byte) (err error) { +func (o *SodPolicyConflictingAccessCriteria) UnmarshalJSON(data []byte) (err error) { varSodPolicyConflictingAccessCriteria := _SodPolicyConflictingAccessCriteria{} - if err = json.Unmarshal(bytes, &varSodPolicyConflictingAccessCriteria); err == nil { + err = json.Unmarshal(data, &varSodPolicyConflictingAccessCriteria) + + if err != nil { + return err + } + *o = SodPolicyConflictingAccessCriteria(varSodPolicyConflictingAccessCriteria) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "leftCriteria") delete(additionalProperties, "rightCriteria") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_sod_policy_dto.go b/api_v3/model_sod_policy_dto.go index d7302a745..86b725890 100644 --- a/api_v3/model_sod_policy_dto.go +++ b/api_v3/model_sod_policy_dto.go @@ -49,7 +49,7 @@ func NewSodPolicyDtoWithDefaults() *SodPolicyDto { // GetType returns the Type field value if set, zero value otherwise. func (o *SodPolicyDto) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *SodPolicyDto) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicyDto) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *SodPolicyDto) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *SodPolicyDto) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *SodPolicyDto) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *SodPolicyDto) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *SodPolicyDto) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicyDto) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *SodPolicyDto) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SodPolicyDto) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *SodPolicyDto) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *SodPolicyDto) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *SodPolicyDto) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicyDto) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *SodPolicyDto) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SodPolicyDto) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o SodPolicyDto) MarshalJSON() ([]byte, error) { func (o SodPolicyDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o SodPolicyDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SodPolicyDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *SodPolicyDto) UnmarshalJSON(data []byte) (err error) { varSodPolicyDto := _SodPolicyDto{} - if err = json.Unmarshal(bytes, &varSodPolicyDto); err == nil { + err = json.Unmarshal(data, &varSodPolicyDto) + + if err != nil { + return err + } + *o = SodPolicyDto(varSodPolicyDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_sod_policy_owner_ref.go b/api_v3/model_sod_policy_owner_ref.go index a22654a78..761881cc2 100644 --- a/api_v3/model_sod_policy_owner_ref.go +++ b/api_v3/model_sod_policy_owner_ref.go @@ -49,7 +49,7 @@ func NewSodPolicyOwnerRefWithDefaults() *SodPolicyOwnerRef { // GetType returns the Type field value if set, zero value otherwise. func (o *SodPolicyOwnerRef) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *SodPolicyOwnerRef) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicyOwnerRef) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *SodPolicyOwnerRef) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *SodPolicyOwnerRef) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *SodPolicyOwnerRef) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *SodPolicyOwnerRef) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *SodPolicyOwnerRef) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicyOwnerRef) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *SodPolicyOwnerRef) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SodPolicyOwnerRef) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *SodPolicyOwnerRef) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *SodPolicyOwnerRef) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *SodPolicyOwnerRef) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicyOwnerRef) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *SodPolicyOwnerRef) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SodPolicyOwnerRef) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o SodPolicyOwnerRef) MarshalJSON() ([]byte, error) { func (o SodPolicyOwnerRef) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o SodPolicyOwnerRef) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SodPolicyOwnerRef) UnmarshalJSON(bytes []byte) (err error) { +func (o *SodPolicyOwnerRef) UnmarshalJSON(data []byte) (err error) { varSodPolicyOwnerRef := _SodPolicyOwnerRef{} - if err = json.Unmarshal(bytes, &varSodPolicyOwnerRef); err == nil { + err = json.Unmarshal(data, &varSodPolicyOwnerRef) + + if err != nil { + return err + } + *o = SodPolicyOwnerRef(varSodPolicyOwnerRef) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_sod_policy_schedule.go b/api_v3/model_sod_policy_schedule.go index cc82bdf27..3d9360c5e 100644 --- a/api_v3/model_sod_policy_schedule.go +++ b/api_v3/model_sod_policy_schedule.go @@ -64,7 +64,7 @@ func NewSodPolicyScheduleWithDefaults() *SodPolicySchedule { // GetName returns the Name field value if set, zero value otherwise. func (o *SodPolicySchedule) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -74,7 +74,7 @@ func (o *SodPolicySchedule) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicySchedule) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -82,7 +82,7 @@ func (o *SodPolicySchedule) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SodPolicySchedule) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -96,7 +96,7 @@ func (o *SodPolicySchedule) SetName(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *SodPolicySchedule) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -106,7 +106,7 @@ func (o *SodPolicySchedule) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicySchedule) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -114,7 +114,7 @@ func (o *SodPolicySchedule) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *SodPolicySchedule) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -128,7 +128,7 @@ func (o *SodPolicySchedule) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *SodPolicySchedule) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -138,7 +138,7 @@ func (o *SodPolicySchedule) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicySchedule) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -146,7 +146,7 @@ func (o *SodPolicySchedule) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *SodPolicySchedule) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -160,7 +160,7 @@ func (o *SodPolicySchedule) SetModified(v time.Time) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *SodPolicySchedule) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -170,7 +170,7 @@ func (o *SodPolicySchedule) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicySchedule) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -178,7 +178,7 @@ func (o *SodPolicySchedule) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *SodPolicySchedule) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -192,7 +192,7 @@ func (o *SodPolicySchedule) SetDescription(v string) { // GetSchedule returns the Schedule field value if set, zero value otherwise. func (o *SodPolicySchedule) GetSchedule() Schedule1 { - if o == nil || isNil(o.Schedule) { + if o == nil || IsNil(o.Schedule) { var ret Schedule1 return ret } @@ -202,7 +202,7 @@ func (o *SodPolicySchedule) GetSchedule() Schedule1 { // GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicySchedule) GetScheduleOk() (*Schedule1, bool) { - if o == nil || isNil(o.Schedule) { + if o == nil || IsNil(o.Schedule) { return nil, false } return o.Schedule, true @@ -210,7 +210,7 @@ func (o *SodPolicySchedule) GetScheduleOk() (*Schedule1, bool) { // HasSchedule returns a boolean if a field has been set. func (o *SodPolicySchedule) HasSchedule() bool { - if o != nil && !isNil(o.Schedule) { + if o != nil && !IsNil(o.Schedule) { return true } @@ -224,7 +224,7 @@ func (o *SodPolicySchedule) SetSchedule(v Schedule1) { // GetRecipients returns the Recipients field value if set, zero value otherwise. func (o *SodPolicySchedule) GetRecipients() []SodRecipient { - if o == nil || isNil(o.Recipients) { + if o == nil || IsNil(o.Recipients) { var ret []SodRecipient return ret } @@ -234,7 +234,7 @@ func (o *SodPolicySchedule) GetRecipients() []SodRecipient { // GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicySchedule) GetRecipientsOk() ([]SodRecipient, bool) { - if o == nil || isNil(o.Recipients) { + if o == nil || IsNil(o.Recipients) { return nil, false } return o.Recipients, true @@ -242,7 +242,7 @@ func (o *SodPolicySchedule) GetRecipientsOk() ([]SodRecipient, bool) { // HasRecipients returns a boolean if a field has been set. func (o *SodPolicySchedule) HasRecipients() bool { - if o != nil && !isNil(o.Recipients) { + if o != nil && !IsNil(o.Recipients) { return true } @@ -256,7 +256,7 @@ func (o *SodPolicySchedule) SetRecipients(v []SodRecipient) { // GetEmailEmptyResults returns the EmailEmptyResults field value if set, zero value otherwise. func (o *SodPolicySchedule) GetEmailEmptyResults() bool { - if o == nil || isNil(o.EmailEmptyResults) { + if o == nil || IsNil(o.EmailEmptyResults) { var ret bool return ret } @@ -266,7 +266,7 @@ func (o *SodPolicySchedule) GetEmailEmptyResults() bool { // GetEmailEmptyResultsOk returns a tuple with the EmailEmptyResults field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicySchedule) GetEmailEmptyResultsOk() (*bool, bool) { - if o == nil || isNil(o.EmailEmptyResults) { + if o == nil || IsNil(o.EmailEmptyResults) { return nil, false } return o.EmailEmptyResults, true @@ -274,7 +274,7 @@ func (o *SodPolicySchedule) GetEmailEmptyResultsOk() (*bool, bool) { // HasEmailEmptyResults returns a boolean if a field has been set. func (o *SodPolicySchedule) HasEmailEmptyResults() bool { - if o != nil && !isNil(o.EmailEmptyResults) { + if o != nil && !IsNil(o.EmailEmptyResults) { return true } @@ -288,7 +288,7 @@ func (o *SodPolicySchedule) SetEmailEmptyResults(v bool) { // GetCreatorId returns the CreatorId field value if set, zero value otherwise. func (o *SodPolicySchedule) GetCreatorId() string { - if o == nil || isNil(o.CreatorId) { + if o == nil || IsNil(o.CreatorId) { var ret string return ret } @@ -298,7 +298,7 @@ func (o *SodPolicySchedule) GetCreatorId() string { // GetCreatorIdOk returns a tuple with the CreatorId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicySchedule) GetCreatorIdOk() (*string, bool) { - if o == nil || isNil(o.CreatorId) { + if o == nil || IsNil(o.CreatorId) { return nil, false } return o.CreatorId, true @@ -306,7 +306,7 @@ func (o *SodPolicySchedule) GetCreatorIdOk() (*string, bool) { // HasCreatorId returns a boolean if a field has been set. func (o *SodPolicySchedule) HasCreatorId() bool { - if o != nil && !isNil(o.CreatorId) { + if o != nil && !IsNil(o.CreatorId) { return true } @@ -320,7 +320,7 @@ func (o *SodPolicySchedule) SetCreatorId(v string) { // GetModifierId returns the ModifierId field value if set, zero value otherwise. func (o *SodPolicySchedule) GetModifierId() string { - if o == nil || isNil(o.ModifierId) { + if o == nil || IsNil(o.ModifierId) { var ret string return ret } @@ -330,7 +330,7 @@ func (o *SodPolicySchedule) GetModifierId() string { // GetModifierIdOk returns a tuple with the ModifierId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodPolicySchedule) GetModifierIdOk() (*string, bool) { - if o == nil || isNil(o.ModifierId) { + if o == nil || IsNil(o.ModifierId) { return nil, false } return o.ModifierId, true @@ -338,7 +338,7 @@ func (o *SodPolicySchedule) GetModifierIdOk() (*string, bool) { // HasModifierId returns a boolean if a field has been set. func (o *SodPolicySchedule) HasModifierId() bool { - if o != nil && !isNil(o.ModifierId) { + if o != nil && !IsNil(o.ModifierId) { return true } @@ -360,25 +360,33 @@ func (o SodPolicySchedule) MarshalJSON() ([]byte, error) { func (o SodPolicySchedule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - // skip: created is readOnly - // skip: modified is readOnly - if !isNil(o.Description) { + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } + if !IsNil(o.Modified) { + toSerialize["modified"] = o.Modified + } + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.Schedule) { + if !IsNil(o.Schedule) { toSerialize["schedule"] = o.Schedule } - if !isNil(o.Recipients) { + if !IsNil(o.Recipients) { toSerialize["recipients"] = o.Recipients } - if !isNil(o.EmailEmptyResults) { + if !IsNil(o.EmailEmptyResults) { toSerialize["emailEmptyResults"] = o.EmailEmptyResults } - // skip: creatorId is readOnly - // skip: modifierId is readOnly + if !IsNil(o.CreatorId) { + toSerialize["creatorId"] = o.CreatorId + } + if !IsNil(o.ModifierId) { + toSerialize["modifierId"] = o.ModifierId + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -387,16 +395,20 @@ func (o SodPolicySchedule) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SodPolicySchedule) UnmarshalJSON(bytes []byte) (err error) { +func (o *SodPolicySchedule) UnmarshalJSON(data []byte) (err error) { varSodPolicySchedule := _SodPolicySchedule{} - if err = json.Unmarshal(bytes, &varSodPolicySchedule); err == nil { + err = json.Unmarshal(data, &varSodPolicySchedule) + + if err != nil { + return err + } + *o = SodPolicySchedule(varSodPolicySchedule) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "created") delete(additionalProperties, "modified") diff --git a/api_v3/model_sod_recipient.go b/api_v3/model_sod_recipient.go index e7c9488f5..8b56242e6 100644 --- a/api_v3/model_sod_recipient.go +++ b/api_v3/model_sod_recipient.go @@ -49,7 +49,7 @@ func NewSodRecipientWithDefaults() *SodRecipient { // GetType returns the Type field value if set, zero value otherwise. func (o *SodRecipient) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *SodRecipient) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodRecipient) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *SodRecipient) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *SodRecipient) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *SodRecipient) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *SodRecipient) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *SodRecipient) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodRecipient) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *SodRecipient) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SodRecipient) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *SodRecipient) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *SodRecipient) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *SodRecipient) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodRecipient) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *SodRecipient) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SodRecipient) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o SodRecipient) MarshalJSON() ([]byte, error) { func (o SodRecipient) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o SodRecipient) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SodRecipient) UnmarshalJSON(bytes []byte) (err error) { +func (o *SodRecipient) UnmarshalJSON(data []byte) (err error) { varSodRecipient := _SodRecipient{} - if err = json.Unmarshal(bytes, &varSodRecipient); err == nil { + err = json.Unmarshal(data, &varSodRecipient) + + if err != nil { + return err + } + *o = SodRecipient(varSodRecipient) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_sod_report_result_dto.go b/api_v3/model_sod_report_result_dto.go index fa05eead0..16001076f 100644 --- a/api_v3/model_sod_report_result_dto.go +++ b/api_v3/model_sod_report_result_dto.go @@ -49,7 +49,7 @@ func NewSodReportResultDtoWithDefaults() *SodReportResultDto { // GetType returns the Type field value if set, zero value otherwise. func (o *SodReportResultDto) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *SodReportResultDto) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodReportResultDto) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *SodReportResultDto) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *SodReportResultDto) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *SodReportResultDto) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *SodReportResultDto) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *SodReportResultDto) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodReportResultDto) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *SodReportResultDto) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SodReportResultDto) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *SodReportResultDto) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *SodReportResultDto) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *SodReportResultDto) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodReportResultDto) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *SodReportResultDto) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SodReportResultDto) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o SodReportResultDto) MarshalJSON() ([]byte, error) { func (o SodReportResultDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o SodReportResultDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SodReportResultDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *SodReportResultDto) UnmarshalJSON(data []byte) (err error) { varSodReportResultDto := _SodReportResultDto{} - if err = json.Unmarshal(bytes, &varSodReportResultDto); err == nil { + err = json.Unmarshal(data, &varSodReportResultDto) + + if err != nil { + return err + } + *o = SodReportResultDto(varSodReportResultDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_sod_violation_check.go b/api_v3/model_sod_violation_check.go index ffa727324..cbe4b3774 100644 --- a/api_v3/model_sod_violation_check.go +++ b/api_v3/model_sod_violation_check.go @@ -74,7 +74,7 @@ func (o *SodViolationCheck) SetRequestId(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *SodViolationCheck) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -84,7 +84,7 @@ func (o *SodViolationCheck) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodViolationCheck) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -92,7 +92,7 @@ func (o *SodViolationCheck) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *SodViolationCheck) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -115,7 +115,9 @@ func (o SodViolationCheck) MarshalJSON() ([]byte, error) { func (o SodViolationCheck) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["requestId"] = o.RequestId - // skip: created is readOnly + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -124,8 +126,8 @@ func (o SodViolationCheck) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SodViolationCheck) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *SodViolationCheck) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -134,7 +136,7 @@ func (o *SodViolationCheck) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -148,13 +150,17 @@ func (o *SodViolationCheck) UnmarshalJSON(bytes []byte) (err error) { varSodViolationCheck := _SodViolationCheck{} - if err = json.Unmarshal(bytes, &varSodViolationCheck); err == nil { + err = json.Unmarshal(data, &varSodViolationCheck) + + if err != nil { + return err + } + *o = SodViolationCheck(varSodViolationCheck) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "requestId") delete(additionalProperties, "created") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_sod_violation_check_result.go b/api_v3/model_sod_violation_check_result.go index 8936dc33c..e6f26758b 100644 --- a/api_v3/model_sod_violation_check_result.go +++ b/api_v3/model_sod_violation_check_result.go @@ -49,7 +49,7 @@ func NewSodViolationCheckResultWithDefaults() *SodViolationCheckResult { // GetMessage returns the Message field value if set, zero value otherwise. func (o *SodViolationCheckResult) GetMessage() ErrorMessageDto { - if o == nil || isNil(o.Message) { + if o == nil || IsNil(o.Message) { var ret ErrorMessageDto return ret } @@ -59,7 +59,7 @@ func (o *SodViolationCheckResult) GetMessage() ErrorMessageDto { // GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodViolationCheckResult) GetMessageOk() (*ErrorMessageDto, bool) { - if o == nil || isNil(o.Message) { + if o == nil || IsNil(o.Message) { return nil, false } return o.Message, true @@ -67,7 +67,7 @@ func (o *SodViolationCheckResult) GetMessageOk() (*ErrorMessageDto, bool) { // HasMessage returns a boolean if a field has been set. func (o *SodViolationCheckResult) HasMessage() bool { - if o != nil && !isNil(o.Message) { + if o != nil && !IsNil(o.Message) { return true } @@ -92,7 +92,7 @@ func (o *SodViolationCheckResult) GetClientMetadata() map[string]string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SodViolationCheckResult) GetClientMetadataOk() (*map[string]string, bool) { - if o == nil || isNil(o.ClientMetadata) { + if o == nil || IsNil(o.ClientMetadata) { return nil, false } return &o.ClientMetadata, true @@ -100,7 +100,7 @@ func (o *SodViolationCheckResult) GetClientMetadataOk() (*map[string]string, boo // HasClientMetadata returns a boolean if a field has been set. func (o *SodViolationCheckResult) HasClientMetadata() bool { - if o != nil && isNil(o.ClientMetadata) { + if o != nil && !IsNil(o.ClientMetadata) { return true } @@ -125,7 +125,7 @@ func (o *SodViolationCheckResult) GetViolationContexts() []SodViolationContext { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SodViolationCheckResult) GetViolationContextsOk() ([]SodViolationContext, bool) { - if o == nil || isNil(o.ViolationContexts) { + if o == nil || IsNil(o.ViolationContexts) { return nil, false } return o.ViolationContexts, true @@ -133,7 +133,7 @@ func (o *SodViolationCheckResult) GetViolationContextsOk() ([]SodViolationContex // HasViolationContexts returns a boolean if a field has been set. func (o *SodViolationCheckResult) HasViolationContexts() bool { - if o != nil && isNil(o.ViolationContexts) { + if o != nil && !IsNil(o.ViolationContexts) { return true } @@ -158,7 +158,7 @@ func (o *SodViolationCheckResult) GetViolatedPolicies() []SodPolicyDto { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SodViolationCheckResult) GetViolatedPoliciesOk() ([]SodPolicyDto, bool) { - if o == nil || isNil(o.ViolatedPolicies) { + if o == nil || IsNil(o.ViolatedPolicies) { return nil, false } return o.ViolatedPolicies, true @@ -166,7 +166,7 @@ func (o *SodViolationCheckResult) GetViolatedPoliciesOk() ([]SodPolicyDto, bool) // HasViolatedPolicies returns a boolean if a field has been set. func (o *SodViolationCheckResult) HasViolatedPolicies() bool { - if o != nil && isNil(o.ViolatedPolicies) { + if o != nil && !IsNil(o.ViolatedPolicies) { return true } @@ -188,7 +188,7 @@ func (o SodViolationCheckResult) MarshalJSON() ([]byte, error) { func (o SodViolationCheckResult) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Message) { + if !IsNil(o.Message) { toSerialize["message"] = o.Message } if o.ClientMetadata != nil { @@ -208,16 +208,20 @@ func (o SodViolationCheckResult) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SodViolationCheckResult) UnmarshalJSON(bytes []byte) (err error) { +func (o *SodViolationCheckResult) UnmarshalJSON(data []byte) (err error) { varSodViolationCheckResult := _SodViolationCheckResult{} - if err = json.Unmarshal(bytes, &varSodViolationCheckResult); err == nil { + err = json.Unmarshal(data, &varSodViolationCheckResult) + + if err != nil { + return err + } + *o = SodViolationCheckResult(varSodViolationCheckResult) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "message") delete(additionalProperties, "clientMetadata") delete(additionalProperties, "violationContexts") diff --git a/api_v3/model_sod_violation_context.go b/api_v3/model_sod_violation_context.go index 409f6e5a8..7fc38136f 100644 --- a/api_v3/model_sod_violation_context.go +++ b/api_v3/model_sod_violation_context.go @@ -45,7 +45,7 @@ func NewSodViolationContextWithDefaults() *SodViolationContext { // GetPolicy returns the Policy field value if set, zero value otherwise. func (o *SodViolationContext) GetPolicy() SodPolicyDto { - if o == nil || isNil(o.Policy) { + if o == nil || IsNil(o.Policy) { var ret SodPolicyDto return ret } @@ -55,7 +55,7 @@ func (o *SodViolationContext) GetPolicy() SodPolicyDto { // GetPolicyOk returns a tuple with the Policy field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodViolationContext) GetPolicyOk() (*SodPolicyDto, bool) { - if o == nil || isNil(o.Policy) { + if o == nil || IsNil(o.Policy) { return nil, false } return o.Policy, true @@ -63,7 +63,7 @@ func (o *SodViolationContext) GetPolicyOk() (*SodPolicyDto, bool) { // HasPolicy returns a boolean if a field has been set. func (o *SodViolationContext) HasPolicy() bool { - if o != nil && !isNil(o.Policy) { + if o != nil && !IsNil(o.Policy) { return true } @@ -77,7 +77,7 @@ func (o *SodViolationContext) SetPolicy(v SodPolicyDto) { // GetConflictingAccessCriteria returns the ConflictingAccessCriteria field value if set, zero value otherwise. func (o *SodViolationContext) GetConflictingAccessCriteria() SodViolationContextConflictingAccessCriteria { - if o == nil || isNil(o.ConflictingAccessCriteria) { + if o == nil || IsNil(o.ConflictingAccessCriteria) { var ret SodViolationContextConflictingAccessCriteria return ret } @@ -87,7 +87,7 @@ func (o *SodViolationContext) GetConflictingAccessCriteria() SodViolationContext // GetConflictingAccessCriteriaOk returns a tuple with the ConflictingAccessCriteria field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodViolationContext) GetConflictingAccessCriteriaOk() (*SodViolationContextConflictingAccessCriteria, bool) { - if o == nil || isNil(o.ConflictingAccessCriteria) { + if o == nil || IsNil(o.ConflictingAccessCriteria) { return nil, false } return o.ConflictingAccessCriteria, true @@ -95,7 +95,7 @@ func (o *SodViolationContext) GetConflictingAccessCriteriaOk() (*SodViolationCon // HasConflictingAccessCriteria returns a boolean if a field has been set. func (o *SodViolationContext) HasConflictingAccessCriteria() bool { - if o != nil && !isNil(o.ConflictingAccessCriteria) { + if o != nil && !IsNil(o.ConflictingAccessCriteria) { return true } @@ -117,10 +117,10 @@ func (o SodViolationContext) MarshalJSON() ([]byte, error) { func (o SodViolationContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Policy) { + if !IsNil(o.Policy) { toSerialize["policy"] = o.Policy } - if !isNil(o.ConflictingAccessCriteria) { + if !IsNil(o.ConflictingAccessCriteria) { toSerialize["conflictingAccessCriteria"] = o.ConflictingAccessCriteria } @@ -131,16 +131,20 @@ func (o SodViolationContext) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SodViolationContext) UnmarshalJSON(bytes []byte) (err error) { +func (o *SodViolationContext) UnmarshalJSON(data []byte) (err error) { varSodViolationContext := _SodViolationContext{} - if err = json.Unmarshal(bytes, &varSodViolationContext); err == nil { + err = json.Unmarshal(data, &varSodViolationContext) + + if err != nil { + return err + } + *o = SodViolationContext(varSodViolationContext) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "policy") delete(additionalProperties, "conflictingAccessCriteria") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_sod_violation_context_check_completed.go b/api_v3/model_sod_violation_context_check_completed.go index 0a7bfaacb..6431bffa5 100644 --- a/api_v3/model_sod_violation_context_check_completed.go +++ b/api_v3/model_sod_violation_context_check_completed.go @@ -48,7 +48,7 @@ func NewSodViolationContextCheckCompletedWithDefaults() *SodViolationContextChec // GetState returns the State field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SodViolationContextCheckCompleted) GetState() string { - if o == nil || isNil(o.State.Get()) { + if o == nil || IsNil(o.State.Get()) { var ret string return ret } @@ -90,7 +90,7 @@ func (o *SodViolationContextCheckCompleted) UnsetState() { // GetUuid returns the Uuid field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SodViolationContextCheckCompleted) GetUuid() string { - if o == nil || isNil(o.Uuid.Get()) { + if o == nil || IsNil(o.Uuid.Get()) { var ret string return ret } @@ -132,7 +132,7 @@ func (o *SodViolationContextCheckCompleted) UnsetUuid() { // GetViolationCheckResult returns the ViolationCheckResult field value if set, zero value otherwise. func (o *SodViolationContextCheckCompleted) GetViolationCheckResult() SodViolationCheckResult { - if o == nil || isNil(o.ViolationCheckResult) { + if o == nil || IsNil(o.ViolationCheckResult) { var ret SodViolationCheckResult return ret } @@ -142,7 +142,7 @@ func (o *SodViolationContextCheckCompleted) GetViolationCheckResult() SodViolati // GetViolationCheckResultOk returns a tuple with the ViolationCheckResult field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodViolationContextCheckCompleted) GetViolationCheckResultOk() (*SodViolationCheckResult, bool) { - if o == nil || isNil(o.ViolationCheckResult) { + if o == nil || IsNil(o.ViolationCheckResult) { return nil, false } return o.ViolationCheckResult, true @@ -150,7 +150,7 @@ func (o *SodViolationContextCheckCompleted) GetViolationCheckResultOk() (*SodVio // HasViolationCheckResult returns a boolean if a field has been set. func (o *SodViolationContextCheckCompleted) HasViolationCheckResult() bool { - if o != nil && !isNil(o.ViolationCheckResult) { + if o != nil && !IsNil(o.ViolationCheckResult) { return true } @@ -178,7 +178,7 @@ func (o SodViolationContextCheckCompleted) ToMap() (map[string]interface{}, erro if o.Uuid.IsSet() { toSerialize["uuid"] = o.Uuid.Get() } - if !isNil(o.ViolationCheckResult) { + if !IsNil(o.ViolationCheckResult) { toSerialize["violationCheckResult"] = o.ViolationCheckResult } @@ -189,16 +189,20 @@ func (o SodViolationContextCheckCompleted) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *SodViolationContextCheckCompleted) UnmarshalJSON(bytes []byte) (err error) { +func (o *SodViolationContextCheckCompleted) UnmarshalJSON(data []byte) (err error) { varSodViolationContextCheckCompleted := _SodViolationContextCheckCompleted{} - if err = json.Unmarshal(bytes, &varSodViolationContextCheckCompleted); err == nil { + err = json.Unmarshal(data, &varSodViolationContextCheckCompleted) + + if err != nil { + return err + } + *o = SodViolationContextCheckCompleted(varSodViolationContextCheckCompleted) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "state") delete(additionalProperties, "uuid") delete(additionalProperties, "violationCheckResult") diff --git a/api_v3/model_sod_violation_context_conflicting_access_criteria.go b/api_v3/model_sod_violation_context_conflicting_access_criteria.go index bf5bd462c..913ab5229 100644 --- a/api_v3/model_sod_violation_context_conflicting_access_criteria.go +++ b/api_v3/model_sod_violation_context_conflicting_access_criteria.go @@ -45,7 +45,7 @@ func NewSodViolationContextConflictingAccessCriteriaWithDefaults() *SodViolation // GetLeftCriteria returns the LeftCriteria field value if set, zero value otherwise. func (o *SodViolationContextConflictingAccessCriteria) GetLeftCriteria() SodViolationContextConflictingAccessCriteriaLeftCriteria { - if o == nil || isNil(o.LeftCriteria) { + if o == nil || IsNil(o.LeftCriteria) { var ret SodViolationContextConflictingAccessCriteriaLeftCriteria return ret } @@ -55,7 +55,7 @@ func (o *SodViolationContextConflictingAccessCriteria) GetLeftCriteria() SodViol // GetLeftCriteriaOk returns a tuple with the LeftCriteria field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodViolationContextConflictingAccessCriteria) GetLeftCriteriaOk() (*SodViolationContextConflictingAccessCriteriaLeftCriteria, bool) { - if o == nil || isNil(o.LeftCriteria) { + if o == nil || IsNil(o.LeftCriteria) { return nil, false } return o.LeftCriteria, true @@ -63,7 +63,7 @@ func (o *SodViolationContextConflictingAccessCriteria) GetLeftCriteriaOk() (*Sod // HasLeftCriteria returns a boolean if a field has been set. func (o *SodViolationContextConflictingAccessCriteria) HasLeftCriteria() bool { - if o != nil && !isNil(o.LeftCriteria) { + if o != nil && !IsNil(o.LeftCriteria) { return true } @@ -77,7 +77,7 @@ func (o *SodViolationContextConflictingAccessCriteria) SetLeftCriteria(v SodViol // GetRightCriteria returns the RightCriteria field value if set, zero value otherwise. func (o *SodViolationContextConflictingAccessCriteria) GetRightCriteria() SodViolationContextConflictingAccessCriteriaLeftCriteria { - if o == nil || isNil(o.RightCriteria) { + if o == nil || IsNil(o.RightCriteria) { var ret SodViolationContextConflictingAccessCriteriaLeftCriteria return ret } @@ -87,7 +87,7 @@ func (o *SodViolationContextConflictingAccessCriteria) GetRightCriteria() SodVio // GetRightCriteriaOk returns a tuple with the RightCriteria field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodViolationContextConflictingAccessCriteria) GetRightCriteriaOk() (*SodViolationContextConflictingAccessCriteriaLeftCriteria, bool) { - if o == nil || isNil(o.RightCriteria) { + if o == nil || IsNil(o.RightCriteria) { return nil, false } return o.RightCriteria, true @@ -95,7 +95,7 @@ func (o *SodViolationContextConflictingAccessCriteria) GetRightCriteriaOk() (*So // HasRightCriteria returns a boolean if a field has been set. func (o *SodViolationContextConflictingAccessCriteria) HasRightCriteria() bool { - if o != nil && !isNil(o.RightCriteria) { + if o != nil && !IsNil(o.RightCriteria) { return true } @@ -117,10 +117,10 @@ func (o SodViolationContextConflictingAccessCriteria) MarshalJSON() ([]byte, err func (o SodViolationContextConflictingAccessCriteria) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.LeftCriteria) { + if !IsNil(o.LeftCriteria) { toSerialize["leftCriteria"] = o.LeftCriteria } - if !isNil(o.RightCriteria) { + if !IsNil(o.RightCriteria) { toSerialize["rightCriteria"] = o.RightCriteria } @@ -131,16 +131,20 @@ func (o SodViolationContextConflictingAccessCriteria) ToMap() (map[string]interf return toSerialize, nil } -func (o *SodViolationContextConflictingAccessCriteria) UnmarshalJSON(bytes []byte) (err error) { +func (o *SodViolationContextConflictingAccessCriteria) UnmarshalJSON(data []byte) (err error) { varSodViolationContextConflictingAccessCriteria := _SodViolationContextConflictingAccessCriteria{} - if err = json.Unmarshal(bytes, &varSodViolationContextConflictingAccessCriteria); err == nil { + err = json.Unmarshal(data, &varSodViolationContextConflictingAccessCriteria) + + if err != nil { + return err + } + *o = SodViolationContextConflictingAccessCriteria(varSodViolationContextConflictingAccessCriteria) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "leftCriteria") delete(additionalProperties, "rightCriteria") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_sod_violation_context_conflicting_access_criteria_left_criteria.go b/api_v3/model_sod_violation_context_conflicting_access_criteria_left_criteria.go index 4cb5cec56..c2387b881 100644 --- a/api_v3/model_sod_violation_context_conflicting_access_criteria_left_criteria.go +++ b/api_v3/model_sod_violation_context_conflicting_access_criteria_left_criteria.go @@ -44,7 +44,7 @@ func NewSodViolationContextConflictingAccessCriteriaLeftCriteriaWithDefaults() * // GetCriteriaList returns the CriteriaList field value if set, zero value otherwise. func (o *SodViolationContextConflictingAccessCriteriaLeftCriteria) GetCriteriaList() []SodExemptCriteria { - if o == nil || isNil(o.CriteriaList) { + if o == nil || IsNil(o.CriteriaList) { var ret []SodExemptCriteria return ret } @@ -54,7 +54,7 @@ func (o *SodViolationContextConflictingAccessCriteriaLeftCriteria) GetCriteriaLi // GetCriteriaListOk returns a tuple with the CriteriaList field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SodViolationContextConflictingAccessCriteriaLeftCriteria) GetCriteriaListOk() ([]SodExemptCriteria, bool) { - if o == nil || isNil(o.CriteriaList) { + if o == nil || IsNil(o.CriteriaList) { return nil, false } return o.CriteriaList, true @@ -62,7 +62,7 @@ func (o *SodViolationContextConflictingAccessCriteriaLeftCriteria) GetCriteriaLi // HasCriteriaList returns a boolean if a field has been set. func (o *SodViolationContextConflictingAccessCriteriaLeftCriteria) HasCriteriaList() bool { - if o != nil && !isNil(o.CriteriaList) { + if o != nil && !IsNil(o.CriteriaList) { return true } @@ -84,7 +84,7 @@ func (o SodViolationContextConflictingAccessCriteriaLeftCriteria) MarshalJSON() func (o SodViolationContextConflictingAccessCriteriaLeftCriteria) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.CriteriaList) { + if !IsNil(o.CriteriaList) { toSerialize["criteriaList"] = o.CriteriaList } @@ -95,16 +95,20 @@ func (o SodViolationContextConflictingAccessCriteriaLeftCriteria) ToMap() (map[s return toSerialize, nil } -func (o *SodViolationContextConflictingAccessCriteriaLeftCriteria) UnmarshalJSON(bytes []byte) (err error) { +func (o *SodViolationContextConflictingAccessCriteriaLeftCriteria) UnmarshalJSON(data []byte) (err error) { varSodViolationContextConflictingAccessCriteriaLeftCriteria := _SodViolationContextConflictingAccessCriteriaLeftCriteria{} - if err = json.Unmarshal(bytes, &varSodViolationContextConflictingAccessCriteriaLeftCriteria); err == nil { + err = json.Unmarshal(data, &varSodViolationContextConflictingAccessCriteriaLeftCriteria) + + if err != nil { + return err + } + *o = SodViolationContextConflictingAccessCriteriaLeftCriteria(varSodViolationContextConflictingAccessCriteriaLeftCriteria) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "criteriaList") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_source.go b/api_v3/model_source.go index 2f27a604c..0391eb3c7 100644 --- a/api_v3/model_source.go +++ b/api_v3/model_source.go @@ -114,7 +114,7 @@ func NewSourceWithDefaults() *Source { // GetId returns the Id field value if set, zero value otherwise. func (o *Source) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -124,7 +124,7 @@ func (o *Source) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -132,7 +132,7 @@ func (o *Source) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Source) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -170,7 +170,7 @@ func (o *Source) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *Source) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -180,7 +180,7 @@ func (o *Source) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -188,7 +188,7 @@ func (o *Source) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *Source) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -226,7 +226,7 @@ func (o *Source) SetOwner(v SourceOwner) { // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Source) GetCluster() SourceCluster { - if o == nil || isNil(o.Cluster.Get()) { + if o == nil || IsNil(o.Cluster.Get()) { var ret SourceCluster return ret } @@ -268,7 +268,7 @@ func (o *Source) UnsetCluster() { // GetAccountCorrelationConfig returns the AccountCorrelationConfig field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Source) GetAccountCorrelationConfig() SourceAccountCorrelationConfig { - if o == nil || isNil(o.AccountCorrelationConfig.Get()) { + if o == nil || IsNil(o.AccountCorrelationConfig.Get()) { var ret SourceAccountCorrelationConfig return ret } @@ -310,7 +310,7 @@ func (o *Source) UnsetAccountCorrelationConfig() { // GetAccountCorrelationRule returns the AccountCorrelationRule field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Source) GetAccountCorrelationRule() SourceAccountCorrelationRule { - if o == nil || isNil(o.AccountCorrelationRule.Get()) { + if o == nil || IsNil(o.AccountCorrelationRule.Get()) { var ret SourceAccountCorrelationRule return ret } @@ -352,7 +352,7 @@ func (o *Source) UnsetAccountCorrelationRule() { // GetManagerCorrelationMapping returns the ManagerCorrelationMapping field value if set, zero value otherwise. func (o *Source) GetManagerCorrelationMapping() SourceManagerCorrelationMapping { - if o == nil || isNil(o.ManagerCorrelationMapping) { + if o == nil || IsNil(o.ManagerCorrelationMapping) { var ret SourceManagerCorrelationMapping return ret } @@ -362,7 +362,7 @@ func (o *Source) GetManagerCorrelationMapping() SourceManagerCorrelationMapping // GetManagerCorrelationMappingOk returns a tuple with the ManagerCorrelationMapping field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetManagerCorrelationMappingOk() (*SourceManagerCorrelationMapping, bool) { - if o == nil || isNil(o.ManagerCorrelationMapping) { + if o == nil || IsNil(o.ManagerCorrelationMapping) { return nil, false } return o.ManagerCorrelationMapping, true @@ -370,7 +370,7 @@ func (o *Source) GetManagerCorrelationMappingOk() (*SourceManagerCorrelationMapp // HasManagerCorrelationMapping returns a boolean if a field has been set. func (o *Source) HasManagerCorrelationMapping() bool { - if o != nil && !isNil(o.ManagerCorrelationMapping) { + if o != nil && !IsNil(o.ManagerCorrelationMapping) { return true } @@ -384,7 +384,7 @@ func (o *Source) SetManagerCorrelationMapping(v SourceManagerCorrelationMapping) // GetManagerCorrelationRule returns the ManagerCorrelationRule field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Source) GetManagerCorrelationRule() SourceManagerCorrelationRule { - if o == nil || isNil(o.ManagerCorrelationRule.Get()) { + if o == nil || IsNil(o.ManagerCorrelationRule.Get()) { var ret SourceManagerCorrelationRule return ret } @@ -426,7 +426,7 @@ func (o *Source) UnsetManagerCorrelationRule() { // GetBeforeProvisioningRule returns the BeforeProvisioningRule field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Source) GetBeforeProvisioningRule() SourceBeforeProvisioningRule { - if o == nil || isNil(o.BeforeProvisioningRule.Get()) { + if o == nil || IsNil(o.BeforeProvisioningRule.Get()) { var ret SourceBeforeProvisioningRule return ret } @@ -468,7 +468,7 @@ func (o *Source) UnsetBeforeProvisioningRule() { // GetSchemas returns the Schemas field value if set, zero value otherwise. func (o *Source) GetSchemas() []SourceSchemasInner { - if o == nil || isNil(o.Schemas) { + if o == nil || IsNil(o.Schemas) { var ret []SourceSchemasInner return ret } @@ -478,7 +478,7 @@ func (o *Source) GetSchemas() []SourceSchemasInner { // GetSchemasOk returns a tuple with the Schemas field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetSchemasOk() ([]SourceSchemasInner, bool) { - if o == nil || isNil(o.Schemas) { + if o == nil || IsNil(o.Schemas) { return nil, false } return o.Schemas, true @@ -486,7 +486,7 @@ func (o *Source) GetSchemasOk() ([]SourceSchemasInner, bool) { // HasSchemas returns a boolean if a field has been set. func (o *Source) HasSchemas() bool { - if o != nil && !isNil(o.Schemas) { + if o != nil && !IsNil(o.Schemas) { return true } @@ -511,7 +511,7 @@ func (o *Source) GetPasswordPolicies() []SourcePasswordPoliciesInner { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Source) GetPasswordPoliciesOk() ([]SourcePasswordPoliciesInner, bool) { - if o == nil || isNil(o.PasswordPolicies) { + if o == nil || IsNil(o.PasswordPolicies) { return nil, false } return o.PasswordPolicies, true @@ -519,7 +519,7 @@ func (o *Source) GetPasswordPoliciesOk() ([]SourcePasswordPoliciesInner, bool) { // HasPasswordPolicies returns a boolean if a field has been set. func (o *Source) HasPasswordPolicies() bool { - if o != nil && isNil(o.PasswordPolicies) { + if o != nil && !IsNil(o.PasswordPolicies) { return true } @@ -533,7 +533,7 @@ func (o *Source) SetPasswordPolicies(v []SourcePasswordPoliciesInner) { // GetFeatures returns the Features field value if set, zero value otherwise. func (o *Source) GetFeatures() []string { - if o == nil || isNil(o.Features) { + if o == nil || IsNil(o.Features) { var ret []string return ret } @@ -543,7 +543,7 @@ func (o *Source) GetFeatures() []string { // GetFeaturesOk returns a tuple with the Features field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetFeaturesOk() ([]string, bool) { - if o == nil || isNil(o.Features) { + if o == nil || IsNil(o.Features) { return nil, false } return o.Features, true @@ -551,7 +551,7 @@ func (o *Source) GetFeaturesOk() ([]string, bool) { // HasFeatures returns a boolean if a field has been set. func (o *Source) HasFeatures() bool { - if o != nil && !isNil(o.Features) { + if o != nil && !IsNil(o.Features) { return true } @@ -565,7 +565,7 @@ func (o *Source) SetFeatures(v []string) { // GetType returns the Type field value if set, zero value otherwise. func (o *Source) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -575,7 +575,7 @@ func (o *Source) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -583,7 +583,7 @@ func (o *Source) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *Source) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -621,7 +621,7 @@ func (o *Source) SetConnector(v string) { // GetConnectorClass returns the ConnectorClass field value if set, zero value otherwise. func (o *Source) GetConnectorClass() string { - if o == nil || isNil(o.ConnectorClass) { + if o == nil || IsNil(o.ConnectorClass) { var ret string return ret } @@ -631,7 +631,7 @@ func (o *Source) GetConnectorClass() string { // GetConnectorClassOk returns a tuple with the ConnectorClass field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetConnectorClassOk() (*string, bool) { - if o == nil || isNil(o.ConnectorClass) { + if o == nil || IsNil(o.ConnectorClass) { return nil, false } return o.ConnectorClass, true @@ -639,7 +639,7 @@ func (o *Source) GetConnectorClassOk() (*string, bool) { // HasConnectorClass returns a boolean if a field has been set. func (o *Source) HasConnectorClass() bool { - if o != nil && !isNil(o.ConnectorClass) { + if o != nil && !IsNil(o.ConnectorClass) { return true } @@ -653,7 +653,7 @@ func (o *Source) SetConnectorClass(v string) { // GetConnectorAttributes returns the ConnectorAttributes field value if set, zero value otherwise. func (o *Source) GetConnectorAttributes() map[string]interface{} { - if o == nil || isNil(o.ConnectorAttributes) { + if o == nil || IsNil(o.ConnectorAttributes) { var ret map[string]interface{} return ret } @@ -663,7 +663,7 @@ func (o *Source) GetConnectorAttributes() map[string]interface{} { // GetConnectorAttributesOk returns a tuple with the ConnectorAttributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetConnectorAttributesOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.ConnectorAttributes) { + if o == nil || IsNil(o.ConnectorAttributes) { return map[string]interface{}{}, false } return o.ConnectorAttributes, true @@ -671,7 +671,7 @@ func (o *Source) GetConnectorAttributesOk() (map[string]interface{}, bool) { // HasConnectorAttributes returns a boolean if a field has been set. func (o *Source) HasConnectorAttributes() bool { - if o != nil && !isNil(o.ConnectorAttributes) { + if o != nil && !IsNil(o.ConnectorAttributes) { return true } @@ -685,7 +685,7 @@ func (o *Source) SetConnectorAttributes(v map[string]interface{}) { // GetDeleteThreshold returns the DeleteThreshold field value if set, zero value otherwise. func (o *Source) GetDeleteThreshold() int32 { - if o == nil || isNil(o.DeleteThreshold) { + if o == nil || IsNil(o.DeleteThreshold) { var ret int32 return ret } @@ -695,7 +695,7 @@ func (o *Source) GetDeleteThreshold() int32 { // GetDeleteThresholdOk returns a tuple with the DeleteThreshold field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetDeleteThresholdOk() (*int32, bool) { - if o == nil || isNil(o.DeleteThreshold) { + if o == nil || IsNil(o.DeleteThreshold) { return nil, false } return o.DeleteThreshold, true @@ -703,7 +703,7 @@ func (o *Source) GetDeleteThresholdOk() (*int32, bool) { // HasDeleteThreshold returns a boolean if a field has been set. func (o *Source) HasDeleteThreshold() bool { - if o != nil && !isNil(o.DeleteThreshold) { + if o != nil && !IsNil(o.DeleteThreshold) { return true } @@ -717,7 +717,7 @@ func (o *Source) SetDeleteThreshold(v int32) { // GetAuthoritative returns the Authoritative field value if set, zero value otherwise. func (o *Source) GetAuthoritative() bool { - if o == nil || isNil(o.Authoritative) { + if o == nil || IsNil(o.Authoritative) { var ret bool return ret } @@ -727,7 +727,7 @@ func (o *Source) GetAuthoritative() bool { // GetAuthoritativeOk returns a tuple with the Authoritative field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetAuthoritativeOk() (*bool, bool) { - if o == nil || isNil(o.Authoritative) { + if o == nil || IsNil(o.Authoritative) { return nil, false } return o.Authoritative, true @@ -735,7 +735,7 @@ func (o *Source) GetAuthoritativeOk() (*bool, bool) { // HasAuthoritative returns a boolean if a field has been set. func (o *Source) HasAuthoritative() bool { - if o != nil && !isNil(o.Authoritative) { + if o != nil && !IsNil(o.Authoritative) { return true } @@ -749,7 +749,7 @@ func (o *Source) SetAuthoritative(v bool) { // GetManagementWorkgroup returns the ManagementWorkgroup field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Source) GetManagementWorkgroup() SourceManagementWorkgroup { - if o == nil || isNil(o.ManagementWorkgroup.Get()) { + if o == nil || IsNil(o.ManagementWorkgroup.Get()) { var ret SourceManagementWorkgroup return ret } @@ -791,7 +791,7 @@ func (o *Source) UnsetManagementWorkgroup() { // GetHealthy returns the Healthy field value if set, zero value otherwise. func (o *Source) GetHealthy() bool { - if o == nil || isNil(o.Healthy) { + if o == nil || IsNil(o.Healthy) { var ret bool return ret } @@ -801,7 +801,7 @@ func (o *Source) GetHealthy() bool { // GetHealthyOk returns a tuple with the Healthy field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetHealthyOk() (*bool, bool) { - if o == nil || isNil(o.Healthy) { + if o == nil || IsNil(o.Healthy) { return nil, false } return o.Healthy, true @@ -809,7 +809,7 @@ func (o *Source) GetHealthyOk() (*bool, bool) { // HasHealthy returns a boolean if a field has been set. func (o *Source) HasHealthy() bool { - if o != nil && !isNil(o.Healthy) { + if o != nil && !IsNil(o.Healthy) { return true } @@ -823,7 +823,7 @@ func (o *Source) SetHealthy(v bool) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *Source) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -833,7 +833,7 @@ func (o *Source) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -841,7 +841,7 @@ func (o *Source) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *Source) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -855,7 +855,7 @@ func (o *Source) SetStatus(v string) { // GetSince returns the Since field value if set, zero value otherwise. func (o *Source) GetSince() string { - if o == nil || isNil(o.Since) { + if o == nil || IsNil(o.Since) { var ret string return ret } @@ -865,7 +865,7 @@ func (o *Source) GetSince() string { // GetSinceOk returns a tuple with the Since field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetSinceOk() (*string, bool) { - if o == nil || isNil(o.Since) { + if o == nil || IsNil(o.Since) { return nil, false } return o.Since, true @@ -873,7 +873,7 @@ func (o *Source) GetSinceOk() (*string, bool) { // HasSince returns a boolean if a field has been set. func (o *Source) HasSince() bool { - if o != nil && !isNil(o.Since) { + if o != nil && !IsNil(o.Since) { return true } @@ -887,7 +887,7 @@ func (o *Source) SetSince(v string) { // GetConnectorId returns the ConnectorId field value if set, zero value otherwise. func (o *Source) GetConnectorId() string { - if o == nil || isNil(o.ConnectorId) { + if o == nil || IsNil(o.ConnectorId) { var ret string return ret } @@ -897,7 +897,7 @@ func (o *Source) GetConnectorId() string { // GetConnectorIdOk returns a tuple with the ConnectorId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetConnectorIdOk() (*string, bool) { - if o == nil || isNil(o.ConnectorId) { + if o == nil || IsNil(o.ConnectorId) { return nil, false } return o.ConnectorId, true @@ -905,7 +905,7 @@ func (o *Source) GetConnectorIdOk() (*string, bool) { // HasConnectorId returns a boolean if a field has been set. func (o *Source) HasConnectorId() bool { - if o != nil && !isNil(o.ConnectorId) { + if o != nil && !IsNil(o.ConnectorId) { return true } @@ -919,7 +919,7 @@ func (o *Source) SetConnectorId(v string) { // GetConnectorName returns the ConnectorName field value if set, zero value otherwise. func (o *Source) GetConnectorName() string { - if o == nil || isNil(o.ConnectorName) { + if o == nil || IsNil(o.ConnectorName) { var ret string return ret } @@ -929,7 +929,7 @@ func (o *Source) GetConnectorName() string { // GetConnectorNameOk returns a tuple with the ConnectorName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetConnectorNameOk() (*string, bool) { - if o == nil || isNil(o.ConnectorName) { + if o == nil || IsNil(o.ConnectorName) { return nil, false } return o.ConnectorName, true @@ -937,7 +937,7 @@ func (o *Source) GetConnectorNameOk() (*string, bool) { // HasConnectorName returns a boolean if a field has been set. func (o *Source) HasConnectorName() bool { - if o != nil && !isNil(o.ConnectorName) { + if o != nil && !IsNil(o.ConnectorName) { return true } @@ -951,7 +951,7 @@ func (o *Source) SetConnectorName(v string) { // GetConnectionType returns the ConnectionType field value if set, zero value otherwise. func (o *Source) GetConnectionType() string { - if o == nil || isNil(o.ConnectionType) { + if o == nil || IsNil(o.ConnectionType) { var ret string return ret } @@ -961,7 +961,7 @@ func (o *Source) GetConnectionType() string { // GetConnectionTypeOk returns a tuple with the ConnectionType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetConnectionTypeOk() (*string, bool) { - if o == nil || isNil(o.ConnectionType) { + if o == nil || IsNil(o.ConnectionType) { return nil, false } return o.ConnectionType, true @@ -969,7 +969,7 @@ func (o *Source) GetConnectionTypeOk() (*string, bool) { // HasConnectionType returns a boolean if a field has been set. func (o *Source) HasConnectionType() bool { - if o != nil && !isNil(o.ConnectionType) { + if o != nil && !IsNil(o.ConnectionType) { return true } @@ -983,7 +983,7 @@ func (o *Source) SetConnectionType(v string) { // GetConnectorImplementationId returns the ConnectorImplementationId field value if set, zero value otherwise. func (o *Source) GetConnectorImplementationId() string { - if o == nil || isNil(o.ConnectorImplementationId) { + if o == nil || IsNil(o.ConnectorImplementationId) { var ret string return ret } @@ -993,7 +993,7 @@ func (o *Source) GetConnectorImplementationId() string { // GetConnectorImplementationIdOk returns a tuple with the ConnectorImplementationId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetConnectorImplementationIdOk() (*string, bool) { - if o == nil || isNil(o.ConnectorImplementationId) { + if o == nil || IsNil(o.ConnectorImplementationId) { return nil, false } return o.ConnectorImplementationId, true @@ -1001,7 +1001,7 @@ func (o *Source) GetConnectorImplementationIdOk() (*string, bool) { // HasConnectorImplementationId returns a boolean if a field has been set. func (o *Source) HasConnectorImplementationId() bool { - if o != nil && !isNil(o.ConnectorImplementationId) { + if o != nil && !IsNil(o.ConnectorImplementationId) { return true } @@ -1015,7 +1015,7 @@ func (o *Source) SetConnectorImplementationId(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *Source) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -1025,7 +1025,7 @@ func (o *Source) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -1033,7 +1033,7 @@ func (o *Source) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *Source) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -1047,7 +1047,7 @@ func (o *Source) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *Source) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -1057,7 +1057,7 @@ func (o *Source) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -1065,7 +1065,7 @@ func (o *Source) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *Source) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -1079,7 +1079,7 @@ func (o *Source) SetModified(v time.Time) { // GetCredentialProviderEnabled returns the CredentialProviderEnabled field value if set, zero value otherwise. func (o *Source) GetCredentialProviderEnabled() bool { - if o == nil || isNil(o.CredentialProviderEnabled) { + if o == nil || IsNil(o.CredentialProviderEnabled) { var ret bool return ret } @@ -1089,7 +1089,7 @@ func (o *Source) GetCredentialProviderEnabled() bool { // GetCredentialProviderEnabledOk returns a tuple with the CredentialProviderEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Source) GetCredentialProviderEnabledOk() (*bool, bool) { - if o == nil || isNil(o.CredentialProviderEnabled) { + if o == nil || IsNil(o.CredentialProviderEnabled) { return nil, false } return o.CredentialProviderEnabled, true @@ -1097,7 +1097,7 @@ func (o *Source) GetCredentialProviderEnabledOk() (*bool, bool) { // HasCredentialProviderEnabled returns a boolean if a field has been set. func (o *Source) HasCredentialProviderEnabled() bool { - if o != nil && !isNil(o.CredentialProviderEnabled) { + if o != nil && !IsNil(o.CredentialProviderEnabled) { return true } @@ -1111,7 +1111,7 @@ func (o *Source) SetCredentialProviderEnabled(v bool) { // GetCategory returns the Category field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Source) GetCategory() string { - if o == nil || isNil(o.Category.Get()) { + if o == nil || IsNil(o.Category.Get()) { var ret string return ret } @@ -1161,9 +1161,11 @@ func (o Source) MarshalJSON() ([]byte, error) { func (o Source) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } toSerialize["name"] = o.Name - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } toSerialize["owner"] = o.Owner @@ -1176,7 +1178,7 @@ func (o Source) ToMap() (map[string]interface{}, error) { if o.AccountCorrelationRule.IsSet() { toSerialize["accountCorrelationRule"] = o.AccountCorrelationRule.Get() } - if !isNil(o.ManagerCorrelationMapping) { + if !IsNil(o.ManagerCorrelationMapping) { toSerialize["managerCorrelationMapping"] = o.ManagerCorrelationMapping } if o.ManagerCorrelationRule.IsSet() { @@ -1185,62 +1187,62 @@ func (o Source) ToMap() (map[string]interface{}, error) { if o.BeforeProvisioningRule.IsSet() { toSerialize["beforeProvisioningRule"] = o.BeforeProvisioningRule.Get() } - if !isNil(o.Schemas) { + if !IsNil(o.Schemas) { toSerialize["schemas"] = o.Schemas } if o.PasswordPolicies != nil { toSerialize["passwordPolicies"] = o.PasswordPolicies } - if !isNil(o.Features) { + if !IsNil(o.Features) { toSerialize["features"] = o.Features } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } toSerialize["connector"] = o.Connector - if !isNil(o.ConnectorClass) { + if !IsNil(o.ConnectorClass) { toSerialize["connectorClass"] = o.ConnectorClass } - if !isNil(o.ConnectorAttributes) { + if !IsNil(o.ConnectorAttributes) { toSerialize["connectorAttributes"] = o.ConnectorAttributes } - if !isNil(o.DeleteThreshold) { + if !IsNil(o.DeleteThreshold) { toSerialize["deleteThreshold"] = o.DeleteThreshold } - if !isNil(o.Authoritative) { + if !IsNil(o.Authoritative) { toSerialize["authoritative"] = o.Authoritative } if o.ManagementWorkgroup.IsSet() { toSerialize["managementWorkgroup"] = o.ManagementWorkgroup.Get() } - if !isNil(o.Healthy) { + if !IsNil(o.Healthy) { toSerialize["healthy"] = o.Healthy } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } - if !isNil(o.Since) { + if !IsNil(o.Since) { toSerialize["since"] = o.Since } - if !isNil(o.ConnectorId) { + if !IsNil(o.ConnectorId) { toSerialize["connectorId"] = o.ConnectorId } - if !isNil(o.ConnectorName) { + if !IsNil(o.ConnectorName) { toSerialize["connectorName"] = o.ConnectorName } - if !isNil(o.ConnectionType) { + if !IsNil(o.ConnectionType) { toSerialize["connectionType"] = o.ConnectionType } - if !isNil(o.ConnectorImplementationId) { + if !IsNil(o.ConnectorImplementationId) { toSerialize["connectorImplementationId"] = o.ConnectorImplementationId } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.CredentialProviderEnabled) { + if !IsNil(o.CredentialProviderEnabled) { toSerialize["credentialProviderEnabled"] = o.CredentialProviderEnabled } if o.Category.IsSet() { @@ -1254,8 +1256,8 @@ func (o Source) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Source) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *Source) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -1266,7 +1268,7 @@ func (o *Source) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -1280,13 +1282,17 @@ func (o *Source) UnmarshalJSON(bytes []byte) (err error) { varSource := _Source{} - if err = json.Unmarshal(bytes, &varSource); err == nil { + err = json.Unmarshal(data, &varSource) + + if err != nil { + return err + } + *o = Source(varSource) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/api_v3/model_source_account_correlation_config.go b/api_v3/model_source_account_correlation_config.go index 8242d1ffd..c3150615d 100644 --- a/api_v3/model_source_account_correlation_config.go +++ b/api_v3/model_source_account_correlation_config.go @@ -49,7 +49,7 @@ func NewSourceAccountCorrelationConfigWithDefaults() *SourceAccountCorrelationCo // GetType returns the Type field value if set, zero value otherwise. func (o *SourceAccountCorrelationConfig) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *SourceAccountCorrelationConfig) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceAccountCorrelationConfig) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *SourceAccountCorrelationConfig) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *SourceAccountCorrelationConfig) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *SourceAccountCorrelationConfig) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *SourceAccountCorrelationConfig) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *SourceAccountCorrelationConfig) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceAccountCorrelationConfig) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *SourceAccountCorrelationConfig) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SourceAccountCorrelationConfig) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *SourceAccountCorrelationConfig) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *SourceAccountCorrelationConfig) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *SourceAccountCorrelationConfig) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceAccountCorrelationConfig) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *SourceAccountCorrelationConfig) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SourceAccountCorrelationConfig) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o SourceAccountCorrelationConfig) MarshalJSON() ([]byte, error) { func (o SourceAccountCorrelationConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o SourceAccountCorrelationConfig) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *SourceAccountCorrelationConfig) UnmarshalJSON(bytes []byte) (err error) { +func (o *SourceAccountCorrelationConfig) UnmarshalJSON(data []byte) (err error) { varSourceAccountCorrelationConfig := _SourceAccountCorrelationConfig{} - if err = json.Unmarshal(bytes, &varSourceAccountCorrelationConfig); err == nil { + err = json.Unmarshal(data, &varSourceAccountCorrelationConfig) + + if err != nil { + return err + } + *o = SourceAccountCorrelationConfig(varSourceAccountCorrelationConfig) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_source_account_correlation_rule.go b/api_v3/model_source_account_correlation_rule.go index 8c01a5fce..0bbe836e7 100644 --- a/api_v3/model_source_account_correlation_rule.go +++ b/api_v3/model_source_account_correlation_rule.go @@ -49,7 +49,7 @@ func NewSourceAccountCorrelationRuleWithDefaults() *SourceAccountCorrelationRule // GetType returns the Type field value if set, zero value otherwise. func (o *SourceAccountCorrelationRule) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *SourceAccountCorrelationRule) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceAccountCorrelationRule) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *SourceAccountCorrelationRule) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *SourceAccountCorrelationRule) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *SourceAccountCorrelationRule) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *SourceAccountCorrelationRule) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *SourceAccountCorrelationRule) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceAccountCorrelationRule) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *SourceAccountCorrelationRule) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SourceAccountCorrelationRule) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *SourceAccountCorrelationRule) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *SourceAccountCorrelationRule) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *SourceAccountCorrelationRule) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceAccountCorrelationRule) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *SourceAccountCorrelationRule) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SourceAccountCorrelationRule) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o SourceAccountCorrelationRule) MarshalJSON() ([]byte, error) { func (o SourceAccountCorrelationRule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o SourceAccountCorrelationRule) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SourceAccountCorrelationRule) UnmarshalJSON(bytes []byte) (err error) { +func (o *SourceAccountCorrelationRule) UnmarshalJSON(data []byte) (err error) { varSourceAccountCorrelationRule := _SourceAccountCorrelationRule{} - if err = json.Unmarshal(bytes, &varSourceAccountCorrelationRule); err == nil { + err = json.Unmarshal(data, &varSourceAccountCorrelationRule) + + if err != nil { + return err + } + *o = SourceAccountCorrelationRule(varSourceAccountCorrelationRule) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_source_before_provisioning_rule.go b/api_v3/model_source_before_provisioning_rule.go index 444a4cc66..a3301c135 100644 --- a/api_v3/model_source_before_provisioning_rule.go +++ b/api_v3/model_source_before_provisioning_rule.go @@ -49,7 +49,7 @@ func NewSourceBeforeProvisioningRuleWithDefaults() *SourceBeforeProvisioningRule // GetType returns the Type field value if set, zero value otherwise. func (o *SourceBeforeProvisioningRule) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *SourceBeforeProvisioningRule) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceBeforeProvisioningRule) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *SourceBeforeProvisioningRule) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *SourceBeforeProvisioningRule) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *SourceBeforeProvisioningRule) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *SourceBeforeProvisioningRule) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *SourceBeforeProvisioningRule) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceBeforeProvisioningRule) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *SourceBeforeProvisioningRule) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SourceBeforeProvisioningRule) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *SourceBeforeProvisioningRule) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *SourceBeforeProvisioningRule) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *SourceBeforeProvisioningRule) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceBeforeProvisioningRule) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *SourceBeforeProvisioningRule) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SourceBeforeProvisioningRule) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o SourceBeforeProvisioningRule) MarshalJSON() ([]byte, error) { func (o SourceBeforeProvisioningRule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o SourceBeforeProvisioningRule) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SourceBeforeProvisioningRule) UnmarshalJSON(bytes []byte) (err error) { +func (o *SourceBeforeProvisioningRule) UnmarshalJSON(data []byte) (err error) { varSourceBeforeProvisioningRule := _SourceBeforeProvisioningRule{} - if err = json.Unmarshal(bytes, &varSourceBeforeProvisioningRule); err == nil { + err = json.Unmarshal(data, &varSourceBeforeProvisioningRule) + + if err != nil { + return err + } + *o = SourceBeforeProvisioningRule(varSourceBeforeProvisioningRule) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_source_cluster.go b/api_v3/model_source_cluster.go index 93ab68e46..e222b6f3e 100644 --- a/api_v3/model_source_cluster.go +++ b/api_v3/model_source_cluster.go @@ -144,8 +144,8 @@ func (o SourceCluster) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SourceCluster) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *SourceCluster) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -156,7 +156,7 @@ func (o *SourceCluster) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -170,13 +170,17 @@ func (o *SourceCluster) UnmarshalJSON(bytes []byte) (err error) { varSourceCluster := _SourceCluster{} - if err = json.Unmarshal(bytes, &varSourceCluster); err == nil { + err = json.Unmarshal(data, &varSourceCluster) + + if err != nil { + return err + } + *o = SourceCluster(varSourceCluster) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_source_cluster_dto.go b/api_v3/model_source_cluster_dto.go index ddf5f4086..b827162f5 100644 --- a/api_v3/model_source_cluster_dto.go +++ b/api_v3/model_source_cluster_dto.go @@ -49,7 +49,7 @@ func NewSourceClusterDtoWithDefaults() *SourceClusterDto { // GetType returns the Type field value if set, zero value otherwise. func (o *SourceClusterDto) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *SourceClusterDto) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceClusterDto) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *SourceClusterDto) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *SourceClusterDto) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *SourceClusterDto) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *SourceClusterDto) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *SourceClusterDto) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceClusterDto) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *SourceClusterDto) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SourceClusterDto) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *SourceClusterDto) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *SourceClusterDto) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *SourceClusterDto) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceClusterDto) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *SourceClusterDto) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SourceClusterDto) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o SourceClusterDto) MarshalJSON() ([]byte, error) { func (o SourceClusterDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o SourceClusterDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SourceClusterDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *SourceClusterDto) UnmarshalJSON(data []byte) (err error) { varSourceClusterDto := _SourceClusterDto{} - if err = json.Unmarshal(bytes, &varSourceClusterDto); err == nil { + err = json.Unmarshal(data, &varSourceClusterDto) + + if err != nil { + return err + } + *o = SourceClusterDto(varSourceClusterDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_source_health_dto.go b/api_v3/model_source_health_dto.go index 8c4ffd4d2..19aa72f0f 100644 --- a/api_v3/model_source_health_dto.go +++ b/api_v3/model_source_health_dto.go @@ -63,7 +63,7 @@ func NewSourceHealthDtoWithDefaults() *SourceHealthDto { // GetId returns the Id field value if set, zero value otherwise. func (o *SourceHealthDto) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -73,7 +73,7 @@ func (o *SourceHealthDto) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceHealthDto) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -81,7 +81,7 @@ func (o *SourceHealthDto) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SourceHealthDto) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -95,7 +95,7 @@ func (o *SourceHealthDto) SetId(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *SourceHealthDto) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -105,7 +105,7 @@ func (o *SourceHealthDto) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceHealthDto) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -113,7 +113,7 @@ func (o *SourceHealthDto) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *SourceHealthDto) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -127,7 +127,7 @@ func (o *SourceHealthDto) SetType(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *SourceHealthDto) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -137,7 +137,7 @@ func (o *SourceHealthDto) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceHealthDto) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -145,7 +145,7 @@ func (o *SourceHealthDto) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SourceHealthDto) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -159,7 +159,7 @@ func (o *SourceHealthDto) SetName(v string) { // GetOrg returns the Org field value if set, zero value otherwise. func (o *SourceHealthDto) GetOrg() string { - if o == nil || isNil(o.Org) { + if o == nil || IsNil(o.Org) { var ret string return ret } @@ -169,7 +169,7 @@ func (o *SourceHealthDto) GetOrg() string { // GetOrgOk returns a tuple with the Org field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceHealthDto) GetOrgOk() (*string, bool) { - if o == nil || isNil(o.Org) { + if o == nil || IsNil(o.Org) { return nil, false } return o.Org, true @@ -177,7 +177,7 @@ func (o *SourceHealthDto) GetOrgOk() (*string, bool) { // HasOrg returns a boolean if a field has been set. func (o *SourceHealthDto) HasOrg() bool { - if o != nil && !isNil(o.Org) { + if o != nil && !IsNil(o.Org) { return true } @@ -191,7 +191,7 @@ func (o *SourceHealthDto) SetOrg(v string) { // GetIsAuthoritative returns the IsAuthoritative field value if set, zero value otherwise. func (o *SourceHealthDto) GetIsAuthoritative() bool { - if o == nil || isNil(o.IsAuthoritative) { + if o == nil || IsNil(o.IsAuthoritative) { var ret bool return ret } @@ -201,7 +201,7 @@ func (o *SourceHealthDto) GetIsAuthoritative() bool { // GetIsAuthoritativeOk returns a tuple with the IsAuthoritative field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceHealthDto) GetIsAuthoritativeOk() (*bool, bool) { - if o == nil || isNil(o.IsAuthoritative) { + if o == nil || IsNil(o.IsAuthoritative) { return nil, false } return o.IsAuthoritative, true @@ -209,7 +209,7 @@ func (o *SourceHealthDto) GetIsAuthoritativeOk() (*bool, bool) { // HasIsAuthoritative returns a boolean if a field has been set. func (o *SourceHealthDto) HasIsAuthoritative() bool { - if o != nil && !isNil(o.IsAuthoritative) { + if o != nil && !IsNil(o.IsAuthoritative) { return true } @@ -223,7 +223,7 @@ func (o *SourceHealthDto) SetIsAuthoritative(v bool) { // GetIsCluster returns the IsCluster field value if set, zero value otherwise. func (o *SourceHealthDto) GetIsCluster() bool { - if o == nil || isNil(o.IsCluster) { + if o == nil || IsNil(o.IsCluster) { var ret bool return ret } @@ -233,7 +233,7 @@ func (o *SourceHealthDto) GetIsCluster() bool { // GetIsClusterOk returns a tuple with the IsCluster field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceHealthDto) GetIsClusterOk() (*bool, bool) { - if o == nil || isNil(o.IsCluster) { + if o == nil || IsNil(o.IsCluster) { return nil, false } return o.IsCluster, true @@ -241,7 +241,7 @@ func (o *SourceHealthDto) GetIsClusterOk() (*bool, bool) { // HasIsCluster returns a boolean if a field has been set. func (o *SourceHealthDto) HasIsCluster() bool { - if o != nil && !isNil(o.IsCluster) { + if o != nil && !IsNil(o.IsCluster) { return true } @@ -255,7 +255,7 @@ func (o *SourceHealthDto) SetIsCluster(v bool) { // GetHostname returns the Hostname field value if set, zero value otherwise. func (o *SourceHealthDto) GetHostname() string { - if o == nil || isNil(o.Hostname) { + if o == nil || IsNil(o.Hostname) { var ret string return ret } @@ -265,7 +265,7 @@ func (o *SourceHealthDto) GetHostname() string { // GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceHealthDto) GetHostnameOk() (*string, bool) { - if o == nil || isNil(o.Hostname) { + if o == nil || IsNil(o.Hostname) { return nil, false } return o.Hostname, true @@ -273,7 +273,7 @@ func (o *SourceHealthDto) GetHostnameOk() (*string, bool) { // HasHostname returns a boolean if a field has been set. func (o *SourceHealthDto) HasHostname() bool { - if o != nil && !isNil(o.Hostname) { + if o != nil && !IsNil(o.Hostname) { return true } @@ -287,7 +287,7 @@ func (o *SourceHealthDto) SetHostname(v string) { // GetPod returns the Pod field value if set, zero value otherwise. func (o *SourceHealthDto) GetPod() string { - if o == nil || isNil(o.Pod) { + if o == nil || IsNil(o.Pod) { var ret string return ret } @@ -297,7 +297,7 @@ func (o *SourceHealthDto) GetPod() string { // GetPodOk returns a tuple with the Pod field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceHealthDto) GetPodOk() (*string, bool) { - if o == nil || isNil(o.Pod) { + if o == nil || IsNil(o.Pod) { return nil, false } return o.Pod, true @@ -305,7 +305,7 @@ func (o *SourceHealthDto) GetPodOk() (*string, bool) { // HasPod returns a boolean if a field has been set. func (o *SourceHealthDto) HasPod() bool { - if o != nil && !isNil(o.Pod) { + if o != nil && !IsNil(o.Pod) { return true } @@ -319,7 +319,7 @@ func (o *SourceHealthDto) SetPod(v string) { // GetIqServiceVersion returns the IqServiceVersion field value if set, zero value otherwise. func (o *SourceHealthDto) GetIqServiceVersion() string { - if o == nil || isNil(o.IqServiceVersion) { + if o == nil || IsNil(o.IqServiceVersion) { var ret string return ret } @@ -329,7 +329,7 @@ func (o *SourceHealthDto) GetIqServiceVersion() string { // GetIqServiceVersionOk returns a tuple with the IqServiceVersion field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceHealthDto) GetIqServiceVersionOk() (*string, bool) { - if o == nil || isNil(o.IqServiceVersion) { + if o == nil || IsNil(o.IqServiceVersion) { return nil, false } return o.IqServiceVersion, true @@ -337,7 +337,7 @@ func (o *SourceHealthDto) GetIqServiceVersionOk() (*string, bool) { // HasIqServiceVersion returns a boolean if a field has been set. func (o *SourceHealthDto) HasIqServiceVersion() bool { - if o != nil && !isNil(o.IqServiceVersion) { + if o != nil && !IsNil(o.IqServiceVersion) { return true } @@ -351,7 +351,7 @@ func (o *SourceHealthDto) SetIqServiceVersion(v string) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *SourceHealthDto) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -361,7 +361,7 @@ func (o *SourceHealthDto) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceHealthDto) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -369,7 +369,7 @@ func (o *SourceHealthDto) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *SourceHealthDto) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -391,32 +391,34 @@ func (o SourceHealthDto) MarshalJSON() ([]byte, error) { func (o SourceHealthDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - if !isNil(o.Type) { + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Org) { + if !IsNil(o.Org) { toSerialize["org"] = o.Org } - if !isNil(o.IsAuthoritative) { + if !IsNil(o.IsAuthoritative) { toSerialize["isAuthoritative"] = o.IsAuthoritative } - if !isNil(o.IsCluster) { + if !IsNil(o.IsCluster) { toSerialize["isCluster"] = o.IsCluster } - if !isNil(o.Hostname) { + if !IsNil(o.Hostname) { toSerialize["hostname"] = o.Hostname } - if !isNil(o.Pod) { + if !IsNil(o.Pod) { toSerialize["pod"] = o.Pod } - if !isNil(o.IqServiceVersion) { + if !IsNil(o.IqServiceVersion) { toSerialize["iqServiceVersion"] = o.IqServiceVersion } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -427,16 +429,20 @@ func (o SourceHealthDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SourceHealthDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *SourceHealthDto) UnmarshalJSON(data []byte) (err error) { varSourceHealthDto := _SourceHealthDto{} - if err = json.Unmarshal(bytes, &varSourceHealthDto); err == nil { + err = json.Unmarshal(data, &varSourceHealthDto) + + if err != nil { + return err + } + *o = SourceHealthDto(varSourceHealthDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "type") delete(additionalProperties, "name") diff --git a/api_v3/model_source_management_workgroup.go b/api_v3/model_source_management_workgroup.go index f9e842514..c549c73a2 100644 --- a/api_v3/model_source_management_workgroup.go +++ b/api_v3/model_source_management_workgroup.go @@ -49,7 +49,7 @@ func NewSourceManagementWorkgroupWithDefaults() *SourceManagementWorkgroup { // GetType returns the Type field value if set, zero value otherwise. func (o *SourceManagementWorkgroup) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *SourceManagementWorkgroup) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceManagementWorkgroup) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *SourceManagementWorkgroup) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *SourceManagementWorkgroup) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *SourceManagementWorkgroup) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *SourceManagementWorkgroup) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *SourceManagementWorkgroup) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceManagementWorkgroup) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *SourceManagementWorkgroup) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SourceManagementWorkgroup) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *SourceManagementWorkgroup) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *SourceManagementWorkgroup) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *SourceManagementWorkgroup) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceManagementWorkgroup) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *SourceManagementWorkgroup) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SourceManagementWorkgroup) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o SourceManagementWorkgroup) MarshalJSON() ([]byte, error) { func (o SourceManagementWorkgroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o SourceManagementWorkgroup) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SourceManagementWorkgroup) UnmarshalJSON(bytes []byte) (err error) { +func (o *SourceManagementWorkgroup) UnmarshalJSON(data []byte) (err error) { varSourceManagementWorkgroup := _SourceManagementWorkgroup{} - if err = json.Unmarshal(bytes, &varSourceManagementWorkgroup); err == nil { + err = json.Unmarshal(data, &varSourceManagementWorkgroup) + + if err != nil { + return err + } + *o = SourceManagementWorkgroup(varSourceManagementWorkgroup) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_source_manager_correlation_mapping.go b/api_v3/model_source_manager_correlation_mapping.go index e3c16df52..4afbb938f 100644 --- a/api_v3/model_source_manager_correlation_mapping.go +++ b/api_v3/model_source_manager_correlation_mapping.go @@ -47,7 +47,7 @@ func NewSourceManagerCorrelationMappingWithDefaults() *SourceManagerCorrelationM // GetAccountAttributeName returns the AccountAttributeName field value if set, zero value otherwise. func (o *SourceManagerCorrelationMapping) GetAccountAttributeName() string { - if o == nil || isNil(o.AccountAttributeName) { + if o == nil || IsNil(o.AccountAttributeName) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *SourceManagerCorrelationMapping) GetAccountAttributeName() string { // GetAccountAttributeNameOk returns a tuple with the AccountAttributeName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceManagerCorrelationMapping) GetAccountAttributeNameOk() (*string, bool) { - if o == nil || isNil(o.AccountAttributeName) { + if o == nil || IsNil(o.AccountAttributeName) { return nil, false } return o.AccountAttributeName, true @@ -65,7 +65,7 @@ func (o *SourceManagerCorrelationMapping) GetAccountAttributeNameOk() (*string, // HasAccountAttributeName returns a boolean if a field has been set. func (o *SourceManagerCorrelationMapping) HasAccountAttributeName() bool { - if o != nil && !isNil(o.AccountAttributeName) { + if o != nil && !IsNil(o.AccountAttributeName) { return true } @@ -79,7 +79,7 @@ func (o *SourceManagerCorrelationMapping) SetAccountAttributeName(v string) { // GetIdentityAttributeName returns the IdentityAttributeName field value if set, zero value otherwise. func (o *SourceManagerCorrelationMapping) GetIdentityAttributeName() string { - if o == nil || isNil(o.IdentityAttributeName) { + if o == nil || IsNil(o.IdentityAttributeName) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *SourceManagerCorrelationMapping) GetIdentityAttributeName() string { // GetIdentityAttributeNameOk returns a tuple with the IdentityAttributeName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceManagerCorrelationMapping) GetIdentityAttributeNameOk() (*string, bool) { - if o == nil || isNil(o.IdentityAttributeName) { + if o == nil || IsNil(o.IdentityAttributeName) { return nil, false } return o.IdentityAttributeName, true @@ -97,7 +97,7 @@ func (o *SourceManagerCorrelationMapping) GetIdentityAttributeNameOk() (*string, // HasIdentityAttributeName returns a boolean if a field has been set. func (o *SourceManagerCorrelationMapping) HasIdentityAttributeName() bool { - if o != nil && !isNil(o.IdentityAttributeName) { + if o != nil && !IsNil(o.IdentityAttributeName) { return true } @@ -119,10 +119,10 @@ func (o SourceManagerCorrelationMapping) MarshalJSON() ([]byte, error) { func (o SourceManagerCorrelationMapping) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.AccountAttributeName) { + if !IsNil(o.AccountAttributeName) { toSerialize["accountAttributeName"] = o.AccountAttributeName } - if !isNil(o.IdentityAttributeName) { + if !IsNil(o.IdentityAttributeName) { toSerialize["identityAttributeName"] = o.IdentityAttributeName } @@ -133,16 +133,20 @@ func (o SourceManagerCorrelationMapping) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *SourceManagerCorrelationMapping) UnmarshalJSON(bytes []byte) (err error) { +func (o *SourceManagerCorrelationMapping) UnmarshalJSON(data []byte) (err error) { varSourceManagerCorrelationMapping := _SourceManagerCorrelationMapping{} - if err = json.Unmarshal(bytes, &varSourceManagerCorrelationMapping); err == nil { + err = json.Unmarshal(data, &varSourceManagerCorrelationMapping) + + if err != nil { + return err + } + *o = SourceManagerCorrelationMapping(varSourceManagerCorrelationMapping) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "accountAttributeName") delete(additionalProperties, "identityAttributeName") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_source_manager_correlation_rule.go b/api_v3/model_source_manager_correlation_rule.go index 96d98821f..57010ec86 100644 --- a/api_v3/model_source_manager_correlation_rule.go +++ b/api_v3/model_source_manager_correlation_rule.go @@ -49,7 +49,7 @@ func NewSourceManagerCorrelationRuleWithDefaults() *SourceManagerCorrelationRule // GetType returns the Type field value if set, zero value otherwise. func (o *SourceManagerCorrelationRule) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *SourceManagerCorrelationRule) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceManagerCorrelationRule) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *SourceManagerCorrelationRule) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *SourceManagerCorrelationRule) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *SourceManagerCorrelationRule) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *SourceManagerCorrelationRule) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *SourceManagerCorrelationRule) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceManagerCorrelationRule) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *SourceManagerCorrelationRule) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SourceManagerCorrelationRule) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *SourceManagerCorrelationRule) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *SourceManagerCorrelationRule) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *SourceManagerCorrelationRule) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceManagerCorrelationRule) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *SourceManagerCorrelationRule) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SourceManagerCorrelationRule) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o SourceManagerCorrelationRule) MarshalJSON() ([]byte, error) { func (o SourceManagerCorrelationRule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o SourceManagerCorrelationRule) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SourceManagerCorrelationRule) UnmarshalJSON(bytes []byte) (err error) { +func (o *SourceManagerCorrelationRule) UnmarshalJSON(data []byte) (err error) { varSourceManagerCorrelationRule := _SourceManagerCorrelationRule{} - if err = json.Unmarshal(bytes, &varSourceManagerCorrelationRule); err == nil { + err = json.Unmarshal(data, &varSourceManagerCorrelationRule) + + if err != nil { + return err + } + *o = SourceManagerCorrelationRule(varSourceManagerCorrelationRule) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_source_owner.go b/api_v3/model_source_owner.go index f4d433d23..6fd1bbb7d 100644 --- a/api_v3/model_source_owner.go +++ b/api_v3/model_source_owner.go @@ -49,7 +49,7 @@ func NewSourceOwnerWithDefaults() *SourceOwner { // GetType returns the Type field value if set, zero value otherwise. func (o *SourceOwner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *SourceOwner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceOwner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *SourceOwner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *SourceOwner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *SourceOwner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *SourceOwner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *SourceOwner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceOwner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *SourceOwner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SourceOwner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *SourceOwner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *SourceOwner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *SourceOwner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceOwner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *SourceOwner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SourceOwner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o SourceOwner) MarshalJSON() ([]byte, error) { func (o SourceOwner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o SourceOwner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SourceOwner) UnmarshalJSON(bytes []byte) (err error) { +func (o *SourceOwner) UnmarshalJSON(data []byte) (err error) { varSourceOwner := _SourceOwner{} - if err = json.Unmarshal(bytes, &varSourceOwner); err == nil { + err = json.Unmarshal(data, &varSourceOwner) + + if err != nil { + return err + } + *o = SourceOwner(varSourceOwner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_source_password_policies_inner.go b/api_v3/model_source_password_policies_inner.go index 059de2fc3..28a39fe07 100644 --- a/api_v3/model_source_password_policies_inner.go +++ b/api_v3/model_source_password_policies_inner.go @@ -49,7 +49,7 @@ func NewSourcePasswordPoliciesInnerWithDefaults() *SourcePasswordPoliciesInner { // GetType returns the Type field value if set, zero value otherwise. func (o *SourcePasswordPoliciesInner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *SourcePasswordPoliciesInner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourcePasswordPoliciesInner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *SourcePasswordPoliciesInner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *SourcePasswordPoliciesInner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *SourcePasswordPoliciesInner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *SourcePasswordPoliciesInner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *SourcePasswordPoliciesInner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourcePasswordPoliciesInner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *SourcePasswordPoliciesInner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SourcePasswordPoliciesInner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *SourcePasswordPoliciesInner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *SourcePasswordPoliciesInner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *SourcePasswordPoliciesInner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourcePasswordPoliciesInner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *SourcePasswordPoliciesInner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SourcePasswordPoliciesInner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o SourcePasswordPoliciesInner) MarshalJSON() ([]byte, error) { func (o SourcePasswordPoliciesInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o SourcePasswordPoliciesInner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SourcePasswordPoliciesInner) UnmarshalJSON(bytes []byte) (err error) { +func (o *SourcePasswordPoliciesInner) UnmarshalJSON(data []byte) (err error) { varSourcePasswordPoliciesInner := _SourcePasswordPoliciesInner{} - if err = json.Unmarshal(bytes, &varSourcePasswordPoliciesInner); err == nil { + err = json.Unmarshal(data, &varSourcePasswordPoliciesInner) + + if err != nil { + return err + } + *o = SourcePasswordPoliciesInner(varSourcePasswordPoliciesInner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_source_schemas_inner.go b/api_v3/model_source_schemas_inner.go index acab6090a..2d9b3bd90 100644 --- a/api_v3/model_source_schemas_inner.go +++ b/api_v3/model_source_schemas_inner.go @@ -49,7 +49,7 @@ func NewSourceSchemasInnerWithDefaults() *SourceSchemasInner { // GetType returns the Type field value if set, zero value otherwise. func (o *SourceSchemasInner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *SourceSchemasInner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceSchemasInner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *SourceSchemasInner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *SourceSchemasInner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *SourceSchemasInner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *SourceSchemasInner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *SourceSchemasInner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceSchemasInner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *SourceSchemasInner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SourceSchemasInner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *SourceSchemasInner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *SourceSchemasInner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *SourceSchemasInner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceSchemasInner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *SourceSchemasInner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *SourceSchemasInner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o SourceSchemasInner) MarshalJSON() ([]byte, error) { func (o SourceSchemasInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o SourceSchemasInner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SourceSchemasInner) UnmarshalJSON(bytes []byte) (err error) { +func (o *SourceSchemasInner) UnmarshalJSON(data []byte) (err error) { varSourceSchemasInner := _SourceSchemasInner{} - if err = json.Unmarshal(bytes, &varSourceSchemasInner); err == nil { + err = json.Unmarshal(data, &varSourceSchemasInner) + + if err != nil { + return err + } + *o = SourceSchemasInner(varSourceSchemasInner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_source_usage.go b/api_v3/model_source_usage.go index 1f31f01af..deb0964ed 100644 --- a/api_v3/model_source_usage.go +++ b/api_v3/model_source_usage.go @@ -47,7 +47,7 @@ func NewSourceUsageWithDefaults() *SourceUsage { // GetDate returns the Date field value if set, zero value otherwise. func (o *SourceUsage) GetDate() string { - if o == nil || isNil(o.Date) { + if o == nil || IsNil(o.Date) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *SourceUsage) GetDate() string { // GetDateOk returns a tuple with the Date field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceUsage) GetDateOk() (*string, bool) { - if o == nil || isNil(o.Date) { + if o == nil || IsNil(o.Date) { return nil, false } return o.Date, true @@ -65,7 +65,7 @@ func (o *SourceUsage) GetDateOk() (*string, bool) { // HasDate returns a boolean if a field has been set. func (o *SourceUsage) HasDate() bool { - if o != nil && !isNil(o.Date) { + if o != nil && !IsNil(o.Date) { return true } @@ -79,7 +79,7 @@ func (o *SourceUsage) SetDate(v string) { // GetCount returns the Count field value if set, zero value otherwise. func (o *SourceUsage) GetCount() float32 { - if o == nil || isNil(o.Count) { + if o == nil || IsNil(o.Count) { var ret float32 return ret } @@ -89,7 +89,7 @@ func (o *SourceUsage) GetCount() float32 { // GetCountOk returns a tuple with the Count field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceUsage) GetCountOk() (*float32, bool) { - if o == nil || isNil(o.Count) { + if o == nil || IsNil(o.Count) { return nil, false } return o.Count, true @@ -97,7 +97,7 @@ func (o *SourceUsage) GetCountOk() (*float32, bool) { // HasCount returns a boolean if a field has been set. func (o *SourceUsage) HasCount() bool { - if o != nil && !isNil(o.Count) { + if o != nil && !IsNil(o.Count) { return true } @@ -119,10 +119,10 @@ func (o SourceUsage) MarshalJSON() ([]byte, error) { func (o SourceUsage) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Date) { + if !IsNil(o.Date) { toSerialize["date"] = o.Date } - if !isNil(o.Count) { + if !IsNil(o.Count) { toSerialize["count"] = o.Count } @@ -133,16 +133,20 @@ func (o SourceUsage) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SourceUsage) UnmarshalJSON(bytes []byte) (err error) { +func (o *SourceUsage) UnmarshalJSON(data []byte) (err error) { varSourceUsage := _SourceUsage{} - if err = json.Unmarshal(bytes, &varSourceUsage); err == nil { + err = json.Unmarshal(data, &varSourceUsage) + + if err != nil { + return err + } + *o = SourceUsage(varSourceUsage) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "date") delete(additionalProperties, "count") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_source_usage_status.go b/api_v3/model_source_usage_status.go index 52ad7457c..a3a93d62c 100644 --- a/api_v3/model_source_usage_status.go +++ b/api_v3/model_source_usage_status.go @@ -45,7 +45,7 @@ func NewSourceUsageStatusWithDefaults() *SourceUsageStatus { // GetStatus returns the Status field value if set, zero value otherwise. func (o *SourceUsageStatus) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -55,7 +55,7 @@ func (o *SourceUsageStatus) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SourceUsageStatus) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -63,7 +63,7 @@ func (o *SourceUsageStatus) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *SourceUsageStatus) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -85,7 +85,7 @@ func (o SourceUsageStatus) MarshalJSON() ([]byte, error) { func (o SourceUsageStatus) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -96,16 +96,20 @@ func (o SourceUsageStatus) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SourceUsageStatus) UnmarshalJSON(bytes []byte) (err error) { +func (o *SourceUsageStatus) UnmarshalJSON(data []byte) (err error) { varSourceUsageStatus := _SourceUsageStatus{} - if err = json.Unmarshal(bytes, &varSourceUsageStatus); err == nil { + err = json.Unmarshal(data, &varSourceUsageStatus) + + if err != nil { + return err + } + *o = SourceUsageStatus(varSourceUsageStatus) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "status") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_sp_config_message.go b/api_v3/model_sp_config_message.go index acf84ded6..2fd3f6823 100644 --- a/api_v3/model_sp_config_message.go +++ b/api_v3/model_sp_config_message.go @@ -144,8 +144,8 @@ func (o SpConfigMessage) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SpConfigMessage) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *SpConfigMessage) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -156,7 +156,7 @@ func (o *SpConfigMessage) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -170,13 +170,17 @@ func (o *SpConfigMessage) UnmarshalJSON(bytes []byte) (err error) { varSpConfigMessage := _SpConfigMessage{} - if err = json.Unmarshal(bytes, &varSpConfigMessage); err == nil { + err = json.Unmarshal(data, &varSpConfigMessage) + + if err != nil { + return err + } + *o = SpConfigMessage(varSpConfigMessage) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "key") delete(additionalProperties, "text") delete(additionalProperties, "details") diff --git a/api_v3/model_sp_details.go b/api_v3/model_sp_details.go index a1d6a12e4..b7e698221 100644 --- a/api_v3/model_sp_details.go +++ b/api_v3/model_sp_details.go @@ -51,7 +51,7 @@ func NewSpDetailsWithDefaults() *SpDetails { // GetRole returns the Role field value if set, zero value otherwise. func (o *SpDetails) GetRole() string { - if o == nil || isNil(o.Role) { + if o == nil || IsNil(o.Role) { var ret string return ret } @@ -61,7 +61,7 @@ func (o *SpDetails) GetRole() string { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SpDetails) GetRoleOk() (*string, bool) { - if o == nil || isNil(o.Role) { + if o == nil || IsNil(o.Role) { return nil, false } return o.Role, true @@ -69,7 +69,7 @@ func (o *SpDetails) GetRoleOk() (*string, bool) { // HasRole returns a boolean if a field has been set. func (o *SpDetails) HasRole() bool { - if o != nil && !isNil(o.Role) { + if o != nil && !IsNil(o.Role) { return true } @@ -83,7 +83,7 @@ func (o *SpDetails) SetRole(v string) { // GetEntityId returns the EntityId field value if set, zero value otherwise. func (o *SpDetails) GetEntityId() string { - if o == nil || isNil(o.EntityId) { + if o == nil || IsNil(o.EntityId) { var ret string return ret } @@ -93,7 +93,7 @@ func (o *SpDetails) GetEntityId() string { // GetEntityIdOk returns a tuple with the EntityId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SpDetails) GetEntityIdOk() (*string, bool) { - if o == nil || isNil(o.EntityId) { + if o == nil || IsNil(o.EntityId) { return nil, false } return o.EntityId, true @@ -101,7 +101,7 @@ func (o *SpDetails) GetEntityIdOk() (*string, bool) { // HasEntityId returns a boolean if a field has been set. func (o *SpDetails) HasEntityId() bool { - if o != nil && !isNil(o.EntityId) { + if o != nil && !IsNil(o.EntityId) { return true } @@ -115,7 +115,7 @@ func (o *SpDetails) SetEntityId(v string) { // GetAlias returns the Alias field value if set, zero value otherwise. func (o *SpDetails) GetAlias() string { - if o == nil || isNil(o.Alias) { + if o == nil || IsNil(o.Alias) { var ret string return ret } @@ -125,7 +125,7 @@ func (o *SpDetails) GetAlias() string { // GetAliasOk returns a tuple with the Alias field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SpDetails) GetAliasOk() (*string, bool) { - if o == nil || isNil(o.Alias) { + if o == nil || IsNil(o.Alias) { return nil, false } return o.Alias, true @@ -133,7 +133,7 @@ func (o *SpDetails) GetAliasOk() (*string, bool) { // HasAlias returns a boolean if a field has been set. func (o *SpDetails) HasAlias() bool { - if o != nil && !isNil(o.Alias) { + if o != nil && !IsNil(o.Alias) { return true } @@ -147,7 +147,7 @@ func (o *SpDetails) SetAlias(v string) { // GetCallbackUrl returns the CallbackUrl field value if set, zero value otherwise. func (o *SpDetails) GetCallbackUrl() string { - if o == nil || isNil(o.CallbackUrl) { + if o == nil || IsNil(o.CallbackUrl) { var ret string return ret } @@ -157,7 +157,7 @@ func (o *SpDetails) GetCallbackUrl() string { // GetCallbackUrlOk returns a tuple with the CallbackUrl field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SpDetails) GetCallbackUrlOk() (*string, bool) { - if o == nil || isNil(o.CallbackUrl) { + if o == nil || IsNil(o.CallbackUrl) { return nil, false } return o.CallbackUrl, true @@ -165,7 +165,7 @@ func (o *SpDetails) GetCallbackUrlOk() (*string, bool) { // HasCallbackUrl returns a boolean if a field has been set. func (o *SpDetails) HasCallbackUrl() bool { - if o != nil && !isNil(o.CallbackUrl) { + if o != nil && !IsNil(o.CallbackUrl) { return true } @@ -187,16 +187,16 @@ func (o SpDetails) MarshalJSON() ([]byte, error) { func (o SpDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Role) { + if !IsNil(o.Role) { toSerialize["role"] = o.Role } - if !isNil(o.EntityId) { + if !IsNil(o.EntityId) { toSerialize["entityId"] = o.EntityId } - if !isNil(o.Alias) { + if !IsNil(o.Alias) { toSerialize["alias"] = o.Alias } - if !isNil(o.CallbackUrl) { + if !IsNil(o.CallbackUrl) { toSerialize["callbackUrl"] = o.CallbackUrl } @@ -207,16 +207,20 @@ func (o SpDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SpDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *SpDetails) UnmarshalJSON(data []byte) (err error) { varSpDetails := _SpDetails{} - if err = json.Unmarshal(bytes, &varSpDetails); err == nil { + err = json.Unmarshal(data, &varSpDetails) + + if err != nil { + return err + } + *o = SpDetails(varSpDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "role") delete(additionalProperties, "entityId") delete(additionalProperties, "alias") diff --git a/api_v3/model_sub_search_aggregation_specification.go b/api_v3/model_sub_search_aggregation_specification.go index 31ebd5f05..778777dec 100644 --- a/api_v3/model_sub_search_aggregation_specification.go +++ b/api_v3/model_sub_search_aggregation_specification.go @@ -48,7 +48,7 @@ func NewSubSearchAggregationSpecificationWithDefaults() *SubSearchAggregationSpe // GetNested returns the Nested field value if set, zero value otherwise. func (o *SubSearchAggregationSpecification) GetNested() NestedAggregation { - if o == nil || isNil(o.Nested) { + if o == nil || IsNil(o.Nested) { var ret NestedAggregation return ret } @@ -58,7 +58,7 @@ func (o *SubSearchAggregationSpecification) GetNested() NestedAggregation { // GetNestedOk returns a tuple with the Nested field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SubSearchAggregationSpecification) GetNestedOk() (*NestedAggregation, bool) { - if o == nil || isNil(o.Nested) { + if o == nil || IsNil(o.Nested) { return nil, false } return o.Nested, true @@ -66,7 +66,7 @@ func (o *SubSearchAggregationSpecification) GetNestedOk() (*NestedAggregation, b // HasNested returns a boolean if a field has been set. func (o *SubSearchAggregationSpecification) HasNested() bool { - if o != nil && !isNil(o.Nested) { + if o != nil && !IsNil(o.Nested) { return true } @@ -80,7 +80,7 @@ func (o *SubSearchAggregationSpecification) SetNested(v NestedAggregation) { // GetMetric returns the Metric field value if set, zero value otherwise. func (o *SubSearchAggregationSpecification) GetMetric() MetricAggregation { - if o == nil || isNil(o.Metric) { + if o == nil || IsNil(o.Metric) { var ret MetricAggregation return ret } @@ -90,7 +90,7 @@ func (o *SubSearchAggregationSpecification) GetMetric() MetricAggregation { // GetMetricOk returns a tuple with the Metric field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SubSearchAggregationSpecification) GetMetricOk() (*MetricAggregation, bool) { - if o == nil || isNil(o.Metric) { + if o == nil || IsNil(o.Metric) { return nil, false } return o.Metric, true @@ -98,7 +98,7 @@ func (o *SubSearchAggregationSpecification) GetMetricOk() (*MetricAggregation, b // HasMetric returns a boolean if a field has been set. func (o *SubSearchAggregationSpecification) HasMetric() bool { - if o != nil && !isNil(o.Metric) { + if o != nil && !IsNil(o.Metric) { return true } @@ -112,7 +112,7 @@ func (o *SubSearchAggregationSpecification) SetMetric(v MetricAggregation) { // GetFilter returns the Filter field value if set, zero value otherwise. func (o *SubSearchAggregationSpecification) GetFilter() FilterAggregation { - if o == nil || isNil(o.Filter) { + if o == nil || IsNil(o.Filter) { var ret FilterAggregation return ret } @@ -122,7 +122,7 @@ func (o *SubSearchAggregationSpecification) GetFilter() FilterAggregation { // GetFilterOk returns a tuple with the Filter field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SubSearchAggregationSpecification) GetFilterOk() (*FilterAggregation, bool) { - if o == nil || isNil(o.Filter) { + if o == nil || IsNil(o.Filter) { return nil, false } return o.Filter, true @@ -130,7 +130,7 @@ func (o *SubSearchAggregationSpecification) GetFilterOk() (*FilterAggregation, b // HasFilter returns a boolean if a field has been set. func (o *SubSearchAggregationSpecification) HasFilter() bool { - if o != nil && !isNil(o.Filter) { + if o != nil && !IsNil(o.Filter) { return true } @@ -144,7 +144,7 @@ func (o *SubSearchAggregationSpecification) SetFilter(v FilterAggregation) { // GetBucket returns the Bucket field value if set, zero value otherwise. func (o *SubSearchAggregationSpecification) GetBucket() BucketAggregation { - if o == nil || isNil(o.Bucket) { + if o == nil || IsNil(o.Bucket) { var ret BucketAggregation return ret } @@ -154,7 +154,7 @@ func (o *SubSearchAggregationSpecification) GetBucket() BucketAggregation { // GetBucketOk returns a tuple with the Bucket field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SubSearchAggregationSpecification) GetBucketOk() (*BucketAggregation, bool) { - if o == nil || isNil(o.Bucket) { + if o == nil || IsNil(o.Bucket) { return nil, false } return o.Bucket, true @@ -162,7 +162,7 @@ func (o *SubSearchAggregationSpecification) GetBucketOk() (*BucketAggregation, b // HasBucket returns a boolean if a field has been set. func (o *SubSearchAggregationSpecification) HasBucket() bool { - if o != nil && !isNil(o.Bucket) { + if o != nil && !IsNil(o.Bucket) { return true } @@ -176,7 +176,7 @@ func (o *SubSearchAggregationSpecification) SetBucket(v BucketAggregation) { // GetSubAggregation returns the SubAggregation field value if set, zero value otherwise. func (o *SubSearchAggregationSpecification) GetSubAggregation() Aggregations { - if o == nil || isNil(o.SubAggregation) { + if o == nil || IsNil(o.SubAggregation) { var ret Aggregations return ret } @@ -186,7 +186,7 @@ func (o *SubSearchAggregationSpecification) GetSubAggregation() Aggregations { // GetSubAggregationOk returns a tuple with the SubAggregation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SubSearchAggregationSpecification) GetSubAggregationOk() (*Aggregations, bool) { - if o == nil || isNil(o.SubAggregation) { + if o == nil || IsNil(o.SubAggregation) { return nil, false } return o.SubAggregation, true @@ -194,7 +194,7 @@ func (o *SubSearchAggregationSpecification) GetSubAggregationOk() (*Aggregations // HasSubAggregation returns a boolean if a field has been set. func (o *SubSearchAggregationSpecification) HasSubAggregation() bool { - if o != nil && !isNil(o.SubAggregation) { + if o != nil && !IsNil(o.SubAggregation) { return true } @@ -216,19 +216,19 @@ func (o SubSearchAggregationSpecification) MarshalJSON() ([]byte, error) { func (o SubSearchAggregationSpecification) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Nested) { + if !IsNil(o.Nested) { toSerialize["nested"] = o.Nested } - if !isNil(o.Metric) { + if !IsNil(o.Metric) { toSerialize["metric"] = o.Metric } - if !isNil(o.Filter) { + if !IsNil(o.Filter) { toSerialize["filter"] = o.Filter } - if !isNil(o.Bucket) { + if !IsNil(o.Bucket) { toSerialize["bucket"] = o.Bucket } - if !isNil(o.SubAggregation) { + if !IsNil(o.SubAggregation) { toSerialize["subAggregation"] = o.SubAggregation } @@ -239,16 +239,20 @@ func (o SubSearchAggregationSpecification) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *SubSearchAggregationSpecification) UnmarshalJSON(bytes []byte) (err error) { +func (o *SubSearchAggregationSpecification) UnmarshalJSON(data []byte) (err error) { varSubSearchAggregationSpecification := _SubSearchAggregationSpecification{} - if err = json.Unmarshal(bytes, &varSubSearchAggregationSpecification); err == nil { + err = json.Unmarshal(data, &varSubSearchAggregationSpecification) + + if err != nil { + return err + } + *o = SubSearchAggregationSpecification(varSubSearchAggregationSpecification) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "nested") delete(additionalProperties, "metric") delete(additionalProperties, "filter") diff --git a/api_v3/model_tagged_object.go b/api_v3/model_tagged_object.go index 039494faf..dd3c92b03 100644 --- a/api_v3/model_tagged_object.go +++ b/api_v3/model_tagged_object.go @@ -46,7 +46,7 @@ func NewTaggedObjectWithDefaults() *TaggedObject { // GetObjectRef returns the ObjectRef field value if set, zero value otherwise. func (o *TaggedObject) GetObjectRef() TaggedObjectDto { - if o == nil || isNil(o.ObjectRef) { + if o == nil || IsNil(o.ObjectRef) { var ret TaggedObjectDto return ret } @@ -56,7 +56,7 @@ func (o *TaggedObject) GetObjectRef() TaggedObjectDto { // GetObjectRefOk returns a tuple with the ObjectRef field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaggedObject) GetObjectRefOk() (*TaggedObjectDto, bool) { - if o == nil || isNil(o.ObjectRef) { + if o == nil || IsNil(o.ObjectRef) { return nil, false } return o.ObjectRef, true @@ -64,7 +64,7 @@ func (o *TaggedObject) GetObjectRefOk() (*TaggedObjectDto, bool) { // HasObjectRef returns a boolean if a field has been set. func (o *TaggedObject) HasObjectRef() bool { - if o != nil && !isNil(o.ObjectRef) { + if o != nil && !IsNil(o.ObjectRef) { return true } @@ -78,7 +78,7 @@ func (o *TaggedObject) SetObjectRef(v TaggedObjectDto) { // GetTags returns the Tags field value if set, zero value otherwise. func (o *TaggedObject) GetTags() []string { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { var ret []string return ret } @@ -88,7 +88,7 @@ func (o *TaggedObject) GetTags() []string { // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaggedObject) GetTagsOk() ([]string, bool) { - if o == nil || isNil(o.Tags) { + if o == nil || IsNil(o.Tags) { return nil, false } return o.Tags, true @@ -96,7 +96,7 @@ func (o *TaggedObject) GetTagsOk() ([]string, bool) { // HasTags returns a boolean if a field has been set. func (o *TaggedObject) HasTags() bool { - if o != nil && !isNil(o.Tags) { + if o != nil && !IsNil(o.Tags) { return true } @@ -118,10 +118,10 @@ func (o TaggedObject) MarshalJSON() ([]byte, error) { func (o TaggedObject) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.ObjectRef) { + if !IsNil(o.ObjectRef) { toSerialize["objectRef"] = o.ObjectRef } - if !isNil(o.Tags) { + if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -132,16 +132,20 @@ func (o TaggedObject) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TaggedObject) UnmarshalJSON(bytes []byte) (err error) { +func (o *TaggedObject) UnmarshalJSON(data []byte) (err error) { varTaggedObject := _TaggedObject{} - if err = json.Unmarshal(bytes, &varTaggedObject); err == nil { + err = json.Unmarshal(data, &varTaggedObject) + + if err != nil { + return err + } + *o = TaggedObject(varTaggedObject) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "objectRef") delete(additionalProperties, "tags") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_tagged_object_dto.go b/api_v3/model_tagged_object_dto.go index e6fa0330f..2a5156408 100644 --- a/api_v3/model_tagged_object_dto.go +++ b/api_v3/model_tagged_object_dto.go @@ -49,7 +49,7 @@ func NewTaggedObjectDtoWithDefaults() *TaggedObjectDto { // GetType returns the Type field value if set, zero value otherwise. func (o *TaggedObjectDto) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *TaggedObjectDto) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaggedObjectDto) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *TaggedObjectDto) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *TaggedObjectDto) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *TaggedObjectDto) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *TaggedObjectDto) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *TaggedObjectDto) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaggedObjectDto) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *TaggedObjectDto) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *TaggedObjectDto) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *TaggedObjectDto) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaggedObjectDto) GetName() string { - if o == nil || isNil(o.Name.Get()) { + if o == nil || IsNil(o.Name.Get()) { var ret string return ret } @@ -163,10 +163,10 @@ func (o TaggedObjectDto) MarshalJSON() ([]byte, error) { func (o TaggedObjectDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } if o.Name.IsSet() { @@ -180,16 +180,20 @@ func (o TaggedObjectDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TaggedObjectDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *TaggedObjectDto) UnmarshalJSON(data []byte) (err error) { varTaggedObjectDto := _TaggedObjectDto{} - if err = json.Unmarshal(bytes, &varTaggedObjectDto); err == nil { + err = json.Unmarshal(data, &varTaggedObjectDto) + + if err != nil { + return err + } + *o = TaggedObjectDto(varTaggedObjectDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_task_result_details.go b/api_v3/model_task_result_details.go index 51c936828..398b063ae 100644 --- a/api_v3/model_task_result_details.go +++ b/api_v3/model_task_result_details.go @@ -72,7 +72,7 @@ func NewTaskResultDetailsWithDefaults() *TaskResultDetails { // GetType returns the Type field value if set, zero value otherwise. func (o *TaskResultDetails) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -82,7 +82,7 @@ func (o *TaskResultDetails) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDetails) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -90,7 +90,7 @@ func (o *TaskResultDetails) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *TaskResultDetails) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -104,7 +104,7 @@ func (o *TaskResultDetails) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *TaskResultDetails) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -114,7 +114,7 @@ func (o *TaskResultDetails) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDetails) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -122,7 +122,7 @@ func (o *TaskResultDetails) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *TaskResultDetails) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -136,7 +136,7 @@ func (o *TaskResultDetails) SetId(v string) { // GetReportType returns the ReportType field value if set, zero value otherwise. func (o *TaskResultDetails) GetReportType() map[string]interface{} { - if o == nil || isNil(o.ReportType) { + if o == nil || IsNil(o.ReportType) { var ret map[string]interface{} return ret } @@ -146,7 +146,7 @@ func (o *TaskResultDetails) GetReportType() map[string]interface{} { // GetReportTypeOk returns a tuple with the ReportType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDetails) GetReportTypeOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.ReportType) { + if o == nil || IsNil(o.ReportType) { return map[string]interface{}{}, false } return o.ReportType, true @@ -154,7 +154,7 @@ func (o *TaskResultDetails) GetReportTypeOk() (map[string]interface{}, bool) { // HasReportType returns a boolean if a field has been set. func (o *TaskResultDetails) HasReportType() bool { - if o != nil && !isNil(o.ReportType) { + if o != nil && !IsNil(o.ReportType) { return true } @@ -168,7 +168,7 @@ func (o *TaskResultDetails) SetReportType(v map[string]interface{}) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *TaskResultDetails) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -178,7 +178,7 @@ func (o *TaskResultDetails) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDetails) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -186,7 +186,7 @@ func (o *TaskResultDetails) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *TaskResultDetails) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -200,7 +200,7 @@ func (o *TaskResultDetails) SetDescription(v string) { // GetParentName returns the ParentName field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskResultDetails) GetParentName() string { - if o == nil || isNil(o.ParentName.Get()) { + if o == nil || IsNil(o.ParentName.Get()) { var ret string return ret } @@ -242,7 +242,7 @@ func (o *TaskResultDetails) UnsetParentName() { // GetLauncher returns the Launcher field value if set, zero value otherwise. func (o *TaskResultDetails) GetLauncher() string { - if o == nil || isNil(o.Launcher) { + if o == nil || IsNil(o.Launcher) { var ret string return ret } @@ -252,7 +252,7 @@ func (o *TaskResultDetails) GetLauncher() string { // GetLauncherOk returns a tuple with the Launcher field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDetails) GetLauncherOk() (*string, bool) { - if o == nil || isNil(o.Launcher) { + if o == nil || IsNil(o.Launcher) { return nil, false } return o.Launcher, true @@ -260,7 +260,7 @@ func (o *TaskResultDetails) GetLauncherOk() (*string, bool) { // HasLauncher returns a boolean if a field has been set. func (o *TaskResultDetails) HasLauncher() bool { - if o != nil && !isNil(o.Launcher) { + if o != nil && !IsNil(o.Launcher) { return true } @@ -274,7 +274,7 @@ func (o *TaskResultDetails) SetLauncher(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *TaskResultDetails) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -284,7 +284,7 @@ func (o *TaskResultDetails) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDetails) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -292,7 +292,7 @@ func (o *TaskResultDetails) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *TaskResultDetails) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -306,7 +306,7 @@ func (o *TaskResultDetails) SetCreated(v time.Time) { // GetLaunched returns the Launched field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskResultDetails) GetLaunched() time.Time { - if o == nil || isNil(o.Launched.Get()) { + if o == nil || IsNil(o.Launched.Get()) { var ret time.Time return ret } @@ -348,7 +348,7 @@ func (o *TaskResultDetails) UnsetLaunched() { // GetCompleted returns the Completed field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskResultDetails) GetCompleted() time.Time { - if o == nil || isNil(o.Completed.Get()) { + if o == nil || IsNil(o.Completed.Get()) { var ret time.Time return ret } @@ -390,7 +390,7 @@ func (o *TaskResultDetails) UnsetCompleted() { // GetCompletionStatus returns the CompletionStatus field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskResultDetails) GetCompletionStatus() string { - if o == nil || isNil(o.CompletionStatus.Get()) { + if o == nil || IsNil(o.CompletionStatus.Get()) { var ret string return ret } @@ -432,7 +432,7 @@ func (o *TaskResultDetails) UnsetCompletionStatus() { // GetMessages returns the Messages field value if set, zero value otherwise. func (o *TaskResultDetails) GetMessages() []TaskResultDetailsMessagesInner { - if o == nil || isNil(o.Messages) { + if o == nil || IsNil(o.Messages) { var ret []TaskResultDetailsMessagesInner return ret } @@ -442,7 +442,7 @@ func (o *TaskResultDetails) GetMessages() []TaskResultDetailsMessagesInner { // GetMessagesOk returns a tuple with the Messages field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDetails) GetMessagesOk() ([]TaskResultDetailsMessagesInner, bool) { - if o == nil || isNil(o.Messages) { + if o == nil || IsNil(o.Messages) { return nil, false } return o.Messages, true @@ -450,7 +450,7 @@ func (o *TaskResultDetails) GetMessagesOk() ([]TaskResultDetailsMessagesInner, b // HasMessages returns a boolean if a field has been set. func (o *TaskResultDetails) HasMessages() bool { - if o != nil && !isNil(o.Messages) { + if o != nil && !IsNil(o.Messages) { return true } @@ -464,7 +464,7 @@ func (o *TaskResultDetails) SetMessages(v []TaskResultDetailsMessagesInner) { // GetReturns returns the Returns field value if set, zero value otherwise. func (o *TaskResultDetails) GetReturns() []TaskResultDetailsReturnsInner { - if o == nil || isNil(o.Returns) { + if o == nil || IsNil(o.Returns) { var ret []TaskResultDetailsReturnsInner return ret } @@ -474,7 +474,7 @@ func (o *TaskResultDetails) GetReturns() []TaskResultDetailsReturnsInner { // GetReturnsOk returns a tuple with the Returns field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDetails) GetReturnsOk() ([]TaskResultDetailsReturnsInner, bool) { - if o == nil || isNil(o.Returns) { + if o == nil || IsNil(o.Returns) { return nil, false } return o.Returns, true @@ -482,7 +482,7 @@ func (o *TaskResultDetails) GetReturnsOk() ([]TaskResultDetailsReturnsInner, boo // HasReturns returns a boolean if a field has been set. func (o *TaskResultDetails) HasReturns() bool { - if o != nil && !isNil(o.Returns) { + if o != nil && !IsNil(o.Returns) { return true } @@ -496,7 +496,7 @@ func (o *TaskResultDetails) SetReturns(v []TaskResultDetailsReturnsInner) { // GetAttributes returns the Attributes field value if set, zero value otherwise. func (o *TaskResultDetails) GetAttributes() map[string]map[string]interface{} { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { var ret map[string]map[string]interface{} return ret } @@ -506,7 +506,7 @@ func (o *TaskResultDetails) GetAttributes() map[string]map[string]interface{} { // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDetails) GetAttributesOk() (map[string]map[string]interface{}, bool) { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { return map[string]map[string]interface{}{}, false } return o.Attributes, true @@ -514,7 +514,7 @@ func (o *TaskResultDetails) GetAttributesOk() (map[string]map[string]interface{} // HasAttributes returns a boolean if a field has been set. func (o *TaskResultDetails) HasAttributes() bool { - if o != nil && !isNil(o.Attributes) { + if o != nil && !IsNil(o.Attributes) { return true } @@ -528,7 +528,7 @@ func (o *TaskResultDetails) SetAttributes(v map[string]map[string]interface{}) { // GetProgress returns the Progress field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskResultDetails) GetProgress() string { - if o == nil || isNil(o.Progress.Get()) { + if o == nil || IsNil(o.Progress.Get()) { var ret string return ret } @@ -578,25 +578,25 @@ func (o TaskResultDetails) MarshalJSON() ([]byte, error) { func (o TaskResultDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.ReportType) { + if !IsNil(o.ReportType) { toSerialize["reportType"] = o.ReportType } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } if o.ParentName.IsSet() { toSerialize["parentName"] = o.ParentName.Get() } - if !isNil(o.Launcher) { + if !IsNil(o.Launcher) { toSerialize["launcher"] = o.Launcher } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } if o.Launched.IsSet() { @@ -608,13 +608,13 @@ func (o TaskResultDetails) ToMap() (map[string]interface{}, error) { if o.CompletionStatus.IsSet() { toSerialize["completionStatus"] = o.CompletionStatus.Get() } - if !isNil(o.Messages) { + if !IsNil(o.Messages) { toSerialize["messages"] = o.Messages } - if !isNil(o.Returns) { + if !IsNil(o.Returns) { toSerialize["returns"] = o.Returns } - if !isNil(o.Attributes) { + if !IsNil(o.Attributes) { toSerialize["attributes"] = o.Attributes } if o.Progress.IsSet() { @@ -628,16 +628,20 @@ func (o TaskResultDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TaskResultDetails) UnmarshalJSON(bytes []byte) (err error) { +func (o *TaskResultDetails) UnmarshalJSON(data []byte) (err error) { varTaskResultDetails := _TaskResultDetails{} - if err = json.Unmarshal(bytes, &varTaskResultDetails); err == nil { + err = json.Unmarshal(data, &varTaskResultDetails) + + if err != nil { + return err + } + *o = TaskResultDetails(varTaskResultDetails) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "reportType") diff --git a/api_v3/model_task_result_details_messages_inner.go b/api_v3/model_task_result_details_messages_inner.go index 117fde8e9..385c92ee1 100644 --- a/api_v3/model_task_result_details_messages_inner.go +++ b/api_v3/model_task_result_details_messages_inner.go @@ -61,7 +61,7 @@ func NewTaskResultDetailsMessagesInnerWithDefaults() *TaskResultDetailsMessagesI // GetType returns the Type field value if set, zero value otherwise. func (o *TaskResultDetailsMessagesInner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -71,7 +71,7 @@ func (o *TaskResultDetailsMessagesInner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDetailsMessagesInner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -79,7 +79,7 @@ func (o *TaskResultDetailsMessagesInner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *TaskResultDetailsMessagesInner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -93,7 +93,7 @@ func (o *TaskResultDetailsMessagesInner) SetType(v string) { // GetError returns the Error field value if set, zero value otherwise. func (o *TaskResultDetailsMessagesInner) GetError() bool { - if o == nil || isNil(o.Error) { + if o == nil || IsNil(o.Error) { var ret bool return ret } @@ -103,7 +103,7 @@ func (o *TaskResultDetailsMessagesInner) GetError() bool { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDetailsMessagesInner) GetErrorOk() (*bool, bool) { - if o == nil || isNil(o.Error) { + if o == nil || IsNil(o.Error) { return nil, false } return o.Error, true @@ -111,7 +111,7 @@ func (o *TaskResultDetailsMessagesInner) GetErrorOk() (*bool, bool) { // HasError returns a boolean if a field has been set. func (o *TaskResultDetailsMessagesInner) HasError() bool { - if o != nil && !isNil(o.Error) { + if o != nil && !IsNil(o.Error) { return true } @@ -125,7 +125,7 @@ func (o *TaskResultDetailsMessagesInner) SetError(v bool) { // GetWarning returns the Warning field value if set, zero value otherwise. func (o *TaskResultDetailsMessagesInner) GetWarning() bool { - if o == nil || isNil(o.Warning) { + if o == nil || IsNil(o.Warning) { var ret bool return ret } @@ -135,7 +135,7 @@ func (o *TaskResultDetailsMessagesInner) GetWarning() bool { // GetWarningOk returns a tuple with the Warning field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDetailsMessagesInner) GetWarningOk() (*bool, bool) { - if o == nil || isNil(o.Warning) { + if o == nil || IsNil(o.Warning) { return nil, false } return o.Warning, true @@ -143,7 +143,7 @@ func (o *TaskResultDetailsMessagesInner) GetWarningOk() (*bool, bool) { // HasWarning returns a boolean if a field has been set. func (o *TaskResultDetailsMessagesInner) HasWarning() bool { - if o != nil && !isNil(o.Warning) { + if o != nil && !IsNil(o.Warning) { return true } @@ -157,7 +157,7 @@ func (o *TaskResultDetailsMessagesInner) SetWarning(v bool) { // GetKey returns the Key field value if set, zero value otherwise. func (o *TaskResultDetailsMessagesInner) GetKey() string { - if o == nil || isNil(o.Key) { + if o == nil || IsNil(o.Key) { var ret string return ret } @@ -167,7 +167,7 @@ func (o *TaskResultDetailsMessagesInner) GetKey() string { // GetKeyOk returns a tuple with the Key field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDetailsMessagesInner) GetKeyOk() (*string, bool) { - if o == nil || isNil(o.Key) { + if o == nil || IsNil(o.Key) { return nil, false } return o.Key, true @@ -175,7 +175,7 @@ func (o *TaskResultDetailsMessagesInner) GetKeyOk() (*string, bool) { // HasKey returns a boolean if a field has been set. func (o *TaskResultDetailsMessagesInner) HasKey() bool { - if o != nil && !isNil(o.Key) { + if o != nil && !IsNil(o.Key) { return true } @@ -189,7 +189,7 @@ func (o *TaskResultDetailsMessagesInner) SetKey(v string) { // GetLocalizedText returns the LocalizedText field value if set, zero value otherwise. func (o *TaskResultDetailsMessagesInner) GetLocalizedText() string { - if o == nil || isNil(o.LocalizedText) { + if o == nil || IsNil(o.LocalizedText) { var ret string return ret } @@ -199,7 +199,7 @@ func (o *TaskResultDetailsMessagesInner) GetLocalizedText() string { // GetLocalizedTextOk returns a tuple with the LocalizedText field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDetailsMessagesInner) GetLocalizedTextOk() (*string, bool) { - if o == nil || isNil(o.LocalizedText) { + if o == nil || IsNil(o.LocalizedText) { return nil, false } return o.LocalizedText, true @@ -207,7 +207,7 @@ func (o *TaskResultDetailsMessagesInner) GetLocalizedTextOk() (*string, bool) { // HasLocalizedText returns a boolean if a field has been set. func (o *TaskResultDetailsMessagesInner) HasLocalizedText() bool { - if o != nil && !isNil(o.LocalizedText) { + if o != nil && !IsNil(o.LocalizedText) { return true } @@ -229,19 +229,19 @@ func (o TaskResultDetailsMessagesInner) MarshalJSON() ([]byte, error) { func (o TaskResultDetailsMessagesInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Error) { + if !IsNil(o.Error) { toSerialize["error"] = o.Error } - if !isNil(o.Warning) { + if !IsNil(o.Warning) { toSerialize["warning"] = o.Warning } - if !isNil(o.Key) { + if !IsNil(o.Key) { toSerialize["key"] = o.Key } - if !isNil(o.LocalizedText) { + if !IsNil(o.LocalizedText) { toSerialize["localizedText"] = o.LocalizedText } @@ -252,16 +252,20 @@ func (o TaskResultDetailsMessagesInner) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *TaskResultDetailsMessagesInner) UnmarshalJSON(bytes []byte) (err error) { +func (o *TaskResultDetailsMessagesInner) UnmarshalJSON(data []byte) (err error) { varTaskResultDetailsMessagesInner := _TaskResultDetailsMessagesInner{} - if err = json.Unmarshal(bytes, &varTaskResultDetailsMessagesInner); err == nil { + err = json.Unmarshal(data, &varTaskResultDetailsMessagesInner) + + if err != nil { + return err + } + *o = TaskResultDetailsMessagesInner(varTaskResultDetailsMessagesInner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "error") delete(additionalProperties, "warning") diff --git a/api_v3/model_task_result_details_returns_inner.go b/api_v3/model_task_result_details_returns_inner.go index f6fae027d..87feddd7f 100644 --- a/api_v3/model_task_result_details_returns_inner.go +++ b/api_v3/model_task_result_details_returns_inner.go @@ -47,7 +47,7 @@ func NewTaskResultDetailsReturnsInnerWithDefaults() *TaskResultDetailsReturnsInn // GetDisplayLabel returns the DisplayLabel field value if set, zero value otherwise. func (o *TaskResultDetailsReturnsInner) GetDisplayLabel() string { - if o == nil || isNil(o.DisplayLabel) { + if o == nil || IsNil(o.DisplayLabel) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *TaskResultDetailsReturnsInner) GetDisplayLabel() string { // GetDisplayLabelOk returns a tuple with the DisplayLabel field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDetailsReturnsInner) GetDisplayLabelOk() (*string, bool) { - if o == nil || isNil(o.DisplayLabel) { + if o == nil || IsNil(o.DisplayLabel) { return nil, false } return o.DisplayLabel, true @@ -65,7 +65,7 @@ func (o *TaskResultDetailsReturnsInner) GetDisplayLabelOk() (*string, bool) { // HasDisplayLabel returns a boolean if a field has been set. func (o *TaskResultDetailsReturnsInner) HasDisplayLabel() bool { - if o != nil && !isNil(o.DisplayLabel) { + if o != nil && !IsNil(o.DisplayLabel) { return true } @@ -79,7 +79,7 @@ func (o *TaskResultDetailsReturnsInner) SetDisplayLabel(v string) { // GetAttributeName returns the AttributeName field value if set, zero value otherwise. func (o *TaskResultDetailsReturnsInner) GetAttributeName() string { - if o == nil || isNil(o.AttributeName) { + if o == nil || IsNil(o.AttributeName) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *TaskResultDetailsReturnsInner) GetAttributeName() string { // GetAttributeNameOk returns a tuple with the AttributeName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDetailsReturnsInner) GetAttributeNameOk() (*string, bool) { - if o == nil || isNil(o.AttributeName) { + if o == nil || IsNil(o.AttributeName) { return nil, false } return o.AttributeName, true @@ -97,7 +97,7 @@ func (o *TaskResultDetailsReturnsInner) GetAttributeNameOk() (*string, bool) { // HasAttributeName returns a boolean if a field has been set. func (o *TaskResultDetailsReturnsInner) HasAttributeName() bool { - if o != nil && !isNil(o.AttributeName) { + if o != nil && !IsNil(o.AttributeName) { return true } @@ -119,10 +119,10 @@ func (o TaskResultDetailsReturnsInner) MarshalJSON() ([]byte, error) { func (o TaskResultDetailsReturnsInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.DisplayLabel) { + if !IsNil(o.DisplayLabel) { toSerialize["displayLabel"] = o.DisplayLabel } - if !isNil(o.AttributeName) { + if !IsNil(o.AttributeName) { toSerialize["attributeName"] = o.AttributeName } @@ -133,16 +133,20 @@ func (o TaskResultDetailsReturnsInner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TaskResultDetailsReturnsInner) UnmarshalJSON(bytes []byte) (err error) { +func (o *TaskResultDetailsReturnsInner) UnmarshalJSON(data []byte) (err error) { varTaskResultDetailsReturnsInner := _TaskResultDetailsReturnsInner{} - if err = json.Unmarshal(bytes, &varTaskResultDetailsReturnsInner); err == nil { + err = json.Unmarshal(data, &varTaskResultDetailsReturnsInner) + + if err != nil { + return err + } + *o = TaskResultDetailsReturnsInner(varTaskResultDetailsReturnsInner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "displayLabel") delete(additionalProperties, "attributeName") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_task_result_dto.go b/api_v3/model_task_result_dto.go index 33240237e..61b3819cb 100644 --- a/api_v3/model_task_result_dto.go +++ b/api_v3/model_task_result_dto.go @@ -49,7 +49,7 @@ func NewTaskResultDtoWithDefaults() *TaskResultDto { // GetType returns the Type field value if set, zero value otherwise. func (o *TaskResultDto) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *TaskResultDto) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDto) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *TaskResultDto) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *TaskResultDto) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *TaskResultDto) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *TaskResultDto) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *TaskResultDto) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultDto) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *TaskResultDto) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *TaskResultDto) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *TaskResultDto) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TaskResultDto) GetName() string { - if o == nil || isNil(o.Name.Get()) { + if o == nil || IsNil(o.Name.Get()) { var ret string return ret } @@ -163,10 +163,10 @@ func (o TaskResultDto) MarshalJSON() ([]byte, error) { func (o TaskResultDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } if o.Name.IsSet() { @@ -180,16 +180,20 @@ func (o TaskResultDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TaskResultDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *TaskResultDto) UnmarshalJSON(data []byte) (err error) { varTaskResultDto := _TaskResultDto{} - if err = json.Unmarshal(bytes, &varTaskResultDto); err == nil { + err = json.Unmarshal(data, &varTaskResultDto) + + if err != nil { + return err + } + *o = TaskResultDto(varTaskResultDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_task_result_simplified.go b/api_v3/model_task_result_simplified.go index c2b8dbea9..4d203c519 100644 --- a/api_v3/model_task_result_simplified.go +++ b/api_v3/model_task_result_simplified.go @@ -58,7 +58,7 @@ func NewTaskResultSimplifiedWithDefaults() *TaskResultSimplified { // GetId returns the Id field value if set, zero value otherwise. func (o *TaskResultSimplified) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -68,7 +68,7 @@ func (o *TaskResultSimplified) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultSimplified) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -76,7 +76,7 @@ func (o *TaskResultSimplified) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *TaskResultSimplified) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -90,7 +90,7 @@ func (o *TaskResultSimplified) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *TaskResultSimplified) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -100,7 +100,7 @@ func (o *TaskResultSimplified) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultSimplified) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -108,7 +108,7 @@ func (o *TaskResultSimplified) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *TaskResultSimplified) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -122,7 +122,7 @@ func (o *TaskResultSimplified) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *TaskResultSimplified) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -132,7 +132,7 @@ func (o *TaskResultSimplified) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultSimplified) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -140,7 +140,7 @@ func (o *TaskResultSimplified) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *TaskResultSimplified) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -154,7 +154,7 @@ func (o *TaskResultSimplified) SetDescription(v string) { // GetLauncher returns the Launcher field value if set, zero value otherwise. func (o *TaskResultSimplified) GetLauncher() string { - if o == nil || isNil(o.Launcher) { + if o == nil || IsNil(o.Launcher) { var ret string return ret } @@ -164,7 +164,7 @@ func (o *TaskResultSimplified) GetLauncher() string { // GetLauncherOk returns a tuple with the Launcher field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultSimplified) GetLauncherOk() (*string, bool) { - if o == nil || isNil(o.Launcher) { + if o == nil || IsNil(o.Launcher) { return nil, false } return o.Launcher, true @@ -172,7 +172,7 @@ func (o *TaskResultSimplified) GetLauncherOk() (*string, bool) { // HasLauncher returns a boolean if a field has been set. func (o *TaskResultSimplified) HasLauncher() bool { - if o != nil && !isNil(o.Launcher) { + if o != nil && !IsNil(o.Launcher) { return true } @@ -186,7 +186,7 @@ func (o *TaskResultSimplified) SetLauncher(v string) { // GetCompleted returns the Completed field value if set, zero value otherwise. func (o *TaskResultSimplified) GetCompleted() time.Time { - if o == nil || isNil(o.Completed) { + if o == nil || IsNil(o.Completed) { var ret time.Time return ret } @@ -196,7 +196,7 @@ func (o *TaskResultSimplified) GetCompleted() time.Time { // GetCompletedOk returns a tuple with the Completed field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultSimplified) GetCompletedOk() (*time.Time, bool) { - if o == nil || isNil(o.Completed) { + if o == nil || IsNil(o.Completed) { return nil, false } return o.Completed, true @@ -204,7 +204,7 @@ func (o *TaskResultSimplified) GetCompletedOk() (*time.Time, bool) { // HasCompleted returns a boolean if a field has been set. func (o *TaskResultSimplified) HasCompleted() bool { - if o != nil && !isNil(o.Completed) { + if o != nil && !IsNil(o.Completed) { return true } @@ -218,7 +218,7 @@ func (o *TaskResultSimplified) SetCompleted(v time.Time) { // GetLaunched returns the Launched field value if set, zero value otherwise. func (o *TaskResultSimplified) GetLaunched() time.Time { - if o == nil || isNil(o.Launched) { + if o == nil || IsNil(o.Launched) { var ret time.Time return ret } @@ -228,7 +228,7 @@ func (o *TaskResultSimplified) GetLaunched() time.Time { // GetLaunchedOk returns a tuple with the Launched field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultSimplified) GetLaunchedOk() (*time.Time, bool) { - if o == nil || isNil(o.Launched) { + if o == nil || IsNil(o.Launched) { return nil, false } return o.Launched, true @@ -236,7 +236,7 @@ func (o *TaskResultSimplified) GetLaunchedOk() (*time.Time, bool) { // HasLaunched returns a boolean if a field has been set. func (o *TaskResultSimplified) HasLaunched() bool { - if o != nil && !isNil(o.Launched) { + if o != nil && !IsNil(o.Launched) { return true } @@ -250,7 +250,7 @@ func (o *TaskResultSimplified) SetLaunched(v time.Time) { // GetCompletionStatus returns the CompletionStatus field value if set, zero value otherwise. func (o *TaskResultSimplified) GetCompletionStatus() string { - if o == nil || isNil(o.CompletionStatus) { + if o == nil || IsNil(o.CompletionStatus) { var ret string return ret } @@ -260,7 +260,7 @@ func (o *TaskResultSimplified) GetCompletionStatus() string { // GetCompletionStatusOk returns a tuple with the CompletionStatus field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResultSimplified) GetCompletionStatusOk() (*string, bool) { - if o == nil || isNil(o.CompletionStatus) { + if o == nil || IsNil(o.CompletionStatus) { return nil, false } return o.CompletionStatus, true @@ -268,7 +268,7 @@ func (o *TaskResultSimplified) GetCompletionStatusOk() (*string, bool) { // HasCompletionStatus returns a boolean if a field has been set. func (o *TaskResultSimplified) HasCompletionStatus() bool { - if o != nil && !isNil(o.CompletionStatus) { + if o != nil && !IsNil(o.CompletionStatus) { return true } @@ -290,25 +290,25 @@ func (o TaskResultSimplified) MarshalJSON() ([]byte, error) { func (o TaskResultSimplified) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.Launcher) { + if !IsNil(o.Launcher) { toSerialize["launcher"] = o.Launcher } - if !isNil(o.Completed) { + if !IsNil(o.Completed) { toSerialize["completed"] = o.Completed } - if !isNil(o.Launched) { + if !IsNil(o.Launched) { toSerialize["launched"] = o.Launched } - if !isNil(o.CompletionStatus) { + if !IsNil(o.CompletionStatus) { toSerialize["completionStatus"] = o.CompletionStatus } @@ -319,16 +319,20 @@ func (o TaskResultSimplified) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TaskResultSimplified) UnmarshalJSON(bytes []byte) (err error) { +func (o *TaskResultSimplified) UnmarshalJSON(data []byte) (err error) { varTaskResultSimplified := _TaskResultSimplified{} - if err = json.Unmarshal(bytes, &varTaskResultSimplified); err == nil { + err = json.Unmarshal(data, &varTaskResultSimplified) + + if err != nil { + return err + } + *o = TaskResultSimplified(varTaskResultSimplified) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/api_v3/model_test_external_execute_workflow_200_response.go b/api_v3/model_test_external_execute_workflow_200_response.go index be1fe618d..94fee74c6 100644 --- a/api_v3/model_test_external_execute_workflow_200_response.go +++ b/api_v3/model_test_external_execute_workflow_200_response.go @@ -45,7 +45,7 @@ func NewTestExternalExecuteWorkflow200ResponseWithDefaults() *TestExternalExecut // GetPayload returns the Payload field value if set, zero value otherwise. func (o *TestExternalExecuteWorkflow200Response) GetPayload() map[string]interface{} { - if o == nil || isNil(o.Payload) { + if o == nil || IsNil(o.Payload) { var ret map[string]interface{} return ret } @@ -55,7 +55,7 @@ func (o *TestExternalExecuteWorkflow200Response) GetPayload() map[string]interfa // GetPayloadOk returns a tuple with the Payload field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TestExternalExecuteWorkflow200Response) GetPayloadOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Payload) { + if o == nil || IsNil(o.Payload) { return map[string]interface{}{}, false } return o.Payload, true @@ -63,7 +63,7 @@ func (o *TestExternalExecuteWorkflow200Response) GetPayloadOk() (map[string]inte // HasPayload returns a boolean if a field has been set. func (o *TestExternalExecuteWorkflow200Response) HasPayload() bool { - if o != nil && !isNil(o.Payload) { + if o != nil && !IsNil(o.Payload) { return true } @@ -85,7 +85,7 @@ func (o TestExternalExecuteWorkflow200Response) MarshalJSON() ([]byte, error) { func (o TestExternalExecuteWorkflow200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Payload) { + if !IsNil(o.Payload) { toSerialize["payload"] = o.Payload } @@ -96,16 +96,20 @@ func (o TestExternalExecuteWorkflow200Response) ToMap() (map[string]interface{}, return toSerialize, nil } -func (o *TestExternalExecuteWorkflow200Response) UnmarshalJSON(bytes []byte) (err error) { +func (o *TestExternalExecuteWorkflow200Response) UnmarshalJSON(data []byte) (err error) { varTestExternalExecuteWorkflow200Response := _TestExternalExecuteWorkflow200Response{} - if err = json.Unmarshal(bytes, &varTestExternalExecuteWorkflow200Response); err == nil { + err = json.Unmarshal(data, &varTestExternalExecuteWorkflow200Response) + + if err != nil { + return err + } + *o = TestExternalExecuteWorkflow200Response(varTestExternalExecuteWorkflow200Response) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "payload") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_test_external_execute_workflow_request.go b/api_v3/model_test_external_execute_workflow_request.go index 119443595..36fe477f9 100644 --- a/api_v3/model_test_external_execute_workflow_request.go +++ b/api_v3/model_test_external_execute_workflow_request.go @@ -45,7 +45,7 @@ func NewTestExternalExecuteWorkflowRequestWithDefaults() *TestExternalExecuteWor // GetInput returns the Input field value if set, zero value otherwise. func (o *TestExternalExecuteWorkflowRequest) GetInput() map[string]interface{} { - if o == nil || isNil(o.Input) { + if o == nil || IsNil(o.Input) { var ret map[string]interface{} return ret } @@ -55,7 +55,7 @@ func (o *TestExternalExecuteWorkflowRequest) GetInput() map[string]interface{} { // GetInputOk returns a tuple with the Input field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TestExternalExecuteWorkflowRequest) GetInputOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Input) { + if o == nil || IsNil(o.Input) { return map[string]interface{}{}, false } return o.Input, true @@ -63,7 +63,7 @@ func (o *TestExternalExecuteWorkflowRequest) GetInputOk() (map[string]interface{ // HasInput returns a boolean if a field has been set. func (o *TestExternalExecuteWorkflowRequest) HasInput() bool { - if o != nil && !isNil(o.Input) { + if o != nil && !IsNil(o.Input) { return true } @@ -85,7 +85,7 @@ func (o TestExternalExecuteWorkflowRequest) MarshalJSON() ([]byte, error) { func (o TestExternalExecuteWorkflowRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Input) { + if !IsNil(o.Input) { toSerialize["input"] = o.Input } @@ -96,16 +96,20 @@ func (o TestExternalExecuteWorkflowRequest) ToMap() (map[string]interface{}, err return toSerialize, nil } -func (o *TestExternalExecuteWorkflowRequest) UnmarshalJSON(bytes []byte) (err error) { +func (o *TestExternalExecuteWorkflowRequest) UnmarshalJSON(data []byte) (err error) { varTestExternalExecuteWorkflowRequest := _TestExternalExecuteWorkflowRequest{} - if err = json.Unmarshal(bytes, &varTestExternalExecuteWorkflowRequest); err == nil { + err = json.Unmarshal(data, &varTestExternalExecuteWorkflowRequest) + + if err != nil { + return err + } + *o = TestExternalExecuteWorkflowRequest(varTestExternalExecuteWorkflowRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "input") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_test_workflow_200_response.go b/api_v3/model_test_workflow_200_response.go index af65b4d91..014927071 100644 --- a/api_v3/model_test_workflow_200_response.go +++ b/api_v3/model_test_workflow_200_response.go @@ -45,7 +45,7 @@ func NewTestWorkflow200ResponseWithDefaults() *TestWorkflow200Response { // GetWorkflowExecutionId returns the WorkflowExecutionId field value if set, zero value otherwise. func (o *TestWorkflow200Response) GetWorkflowExecutionId() string { - if o == nil || isNil(o.WorkflowExecutionId) { + if o == nil || IsNil(o.WorkflowExecutionId) { var ret string return ret } @@ -55,7 +55,7 @@ func (o *TestWorkflow200Response) GetWorkflowExecutionId() string { // GetWorkflowExecutionIdOk returns a tuple with the WorkflowExecutionId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TestWorkflow200Response) GetWorkflowExecutionIdOk() (*string, bool) { - if o == nil || isNil(o.WorkflowExecutionId) { + if o == nil || IsNil(o.WorkflowExecutionId) { return nil, false } return o.WorkflowExecutionId, true @@ -63,7 +63,7 @@ func (o *TestWorkflow200Response) GetWorkflowExecutionIdOk() (*string, bool) { // HasWorkflowExecutionId returns a boolean if a field has been set. func (o *TestWorkflow200Response) HasWorkflowExecutionId() bool { - if o != nil && !isNil(o.WorkflowExecutionId) { + if o != nil && !IsNil(o.WorkflowExecutionId) { return true } @@ -85,7 +85,7 @@ func (o TestWorkflow200Response) MarshalJSON() ([]byte, error) { func (o TestWorkflow200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.WorkflowExecutionId) { + if !IsNil(o.WorkflowExecutionId) { toSerialize["workflowExecutionId"] = o.WorkflowExecutionId } @@ -96,16 +96,20 @@ func (o TestWorkflow200Response) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TestWorkflow200Response) UnmarshalJSON(bytes []byte) (err error) { +func (o *TestWorkflow200Response) UnmarshalJSON(data []byte) (err error) { varTestWorkflow200Response := _TestWorkflow200Response{} - if err = json.Unmarshal(bytes, &varTestWorkflow200Response); err == nil { + err = json.Unmarshal(data, &varTestWorkflow200Response) + + if err != nil { + return err + } + *o = TestWorkflow200Response(varTestWorkflow200Response) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "workflowExecutionId") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_test_workflow_request.go b/api_v3/model_test_workflow_request.go index e5ae286a5..8f7e9d234 100644 --- a/api_v3/model_test_workflow_request.go +++ b/api_v3/model_test_workflow_request.go @@ -88,8 +88,8 @@ func (o TestWorkflowRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TestWorkflowRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *TestWorkflowRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -98,7 +98,7 @@ func (o *TestWorkflowRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -112,13 +112,17 @@ func (o *TestWorkflowRequest) UnmarshalJSON(bytes []byte) (err error) { varTestWorkflowRequest := _TestWorkflowRequest{} - if err = json.Unmarshal(bytes, &varTestWorkflowRequest); err == nil { + err = json.Unmarshal(data, &varTestWorkflowRequest) + + if err != nil { + return err + } + *o = TestWorkflowRequest(varTestWorkflowRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "input") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_text_query.go b/api_v3/model_text_query.go index 453280190..0ed405eec 100644 --- a/api_v3/model_text_query.go +++ b/api_v3/model_text_query.go @@ -110,7 +110,7 @@ func (o *TextQuery) SetFields(v []string) { // GetMatchAny returns the MatchAny field value if set, zero value otherwise. func (o *TextQuery) GetMatchAny() bool { - if o == nil || isNil(o.MatchAny) { + if o == nil || IsNil(o.MatchAny) { var ret bool return ret } @@ -120,7 +120,7 @@ func (o *TextQuery) GetMatchAny() bool { // GetMatchAnyOk returns a tuple with the MatchAny field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TextQuery) GetMatchAnyOk() (*bool, bool) { - if o == nil || isNil(o.MatchAny) { + if o == nil || IsNil(o.MatchAny) { return nil, false } return o.MatchAny, true @@ -128,7 +128,7 @@ func (o *TextQuery) GetMatchAnyOk() (*bool, bool) { // HasMatchAny returns a boolean if a field has been set. func (o *TextQuery) HasMatchAny() bool { - if o != nil && !isNil(o.MatchAny) { + if o != nil && !IsNil(o.MatchAny) { return true } @@ -142,7 +142,7 @@ func (o *TextQuery) SetMatchAny(v bool) { // GetContains returns the Contains field value if set, zero value otherwise. func (o *TextQuery) GetContains() bool { - if o == nil || isNil(o.Contains) { + if o == nil || IsNil(o.Contains) { var ret bool return ret } @@ -152,7 +152,7 @@ func (o *TextQuery) GetContains() bool { // GetContainsOk returns a tuple with the Contains field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TextQuery) GetContainsOk() (*bool, bool) { - if o == nil || isNil(o.Contains) { + if o == nil || IsNil(o.Contains) { return nil, false } return o.Contains, true @@ -160,7 +160,7 @@ func (o *TextQuery) GetContainsOk() (*bool, bool) { // HasContains returns a boolean if a field has been set. func (o *TextQuery) HasContains() bool { - if o != nil && !isNil(o.Contains) { + if o != nil && !IsNil(o.Contains) { return true } @@ -184,10 +184,10 @@ func (o TextQuery) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["terms"] = o.Terms toSerialize["fields"] = o.Fields - if !isNil(o.MatchAny) { + if !IsNil(o.MatchAny) { toSerialize["matchAny"] = o.MatchAny } - if !isNil(o.Contains) { + if !IsNil(o.Contains) { toSerialize["contains"] = o.Contains } @@ -198,8 +198,8 @@ func (o TextQuery) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TextQuery) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *TextQuery) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -209,7 +209,7 @@ func (o *TextQuery) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -223,13 +223,17 @@ func (o *TextQuery) UnmarshalJSON(bytes []byte) (err error) { varTextQuery := _TextQuery{} - if err = json.Unmarshal(bytes, &varTextQuery); err == nil { + err = json.Unmarshal(data, &varTextQuery) + + if err != nil { + return err + } + *o = TextQuery(varTextQuery) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "terms") delete(additionalProperties, "fields") delete(additionalProperties, "matchAny") diff --git a/api_v3/model_token_auth_request.go b/api_v3/model_token_auth_request.go index 2b4a09122..f429338f6 100644 --- a/api_v3/model_token_auth_request.go +++ b/api_v3/model_token_auth_request.go @@ -144,8 +144,8 @@ func (o TokenAuthRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TokenAuthRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *TokenAuthRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -156,7 +156,7 @@ func (o *TokenAuthRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -170,13 +170,17 @@ func (o *TokenAuthRequest) UnmarshalJSON(bytes []byte) (err error) { varTokenAuthRequest := _TokenAuthRequest{} - if err = json.Unmarshal(bytes, &varTokenAuthRequest); err == nil { + err = json.Unmarshal(data, &varTokenAuthRequest) + + if err != nil { + return err + } + *o = TokenAuthRequest(varTokenAuthRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "token") delete(additionalProperties, "userAlias") delete(additionalProperties, "deliveryType") diff --git a/api_v3/model_token_auth_response.go b/api_v3/model_token_auth_response.go index 1b37a8736..b9e260c85 100644 --- a/api_v3/model_token_auth_response.go +++ b/api_v3/model_token_auth_response.go @@ -45,7 +45,7 @@ func NewTokenAuthResponseWithDefaults() *TokenAuthResponse { // GetStatus returns the Status field value if set, zero value otherwise. func (o *TokenAuthResponse) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -55,7 +55,7 @@ func (o *TokenAuthResponse) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TokenAuthResponse) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -63,7 +63,7 @@ func (o *TokenAuthResponse) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *TokenAuthResponse) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -85,7 +85,7 @@ func (o TokenAuthResponse) MarshalJSON() ([]byte, error) { func (o TokenAuthResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -96,16 +96,20 @@ func (o TokenAuthResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TokenAuthResponse) UnmarshalJSON(bytes []byte) (err error) { +func (o *TokenAuthResponse) UnmarshalJSON(data []byte) (err error) { varTokenAuthResponse := _TokenAuthResponse{} - if err = json.Unmarshal(bytes, &varTokenAuthResponse); err == nil { + err = json.Unmarshal(data, &varTokenAuthResponse) + + if err != nil { + return err + } + *o = TokenAuthResponse(varTokenAuthResponse) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "status") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_transform.go b/api_v3/model_transform.go index 77deb125a..163278d90 100644 --- a/api_v3/model_transform.go +++ b/api_v3/model_transform.go @@ -114,7 +114,7 @@ func (o *Transform) GetAttributes() map[string]interface{} { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Transform) GetAttributesOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { return map[string]interface{}{}, false } return o.Attributes, true @@ -148,8 +148,8 @@ func (o Transform) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Transform) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *Transform) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -160,7 +160,7 @@ func (o *Transform) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -174,13 +174,17 @@ func (o *Transform) UnmarshalJSON(bytes []byte) (err error) { varTransform := _Transform{} - if err = json.Unmarshal(bytes, &varTransform); err == nil { + err = json.Unmarshal(data, &varTransform) + + if err != nil { + return err + } + *o = Transform(varTransform) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "type") delete(additionalProperties, "attributes") diff --git a/api_v3/model_transform_definition.go b/api_v3/model_transform_definition.go index effcc9ed8..8676f9199 100644 --- a/api_v3/model_transform_definition.go +++ b/api_v3/model_transform_definition.go @@ -47,7 +47,7 @@ func NewTransformDefinitionWithDefaults() *TransformDefinition { // GetType returns the Type field value if set, zero value otherwise. func (o *TransformDefinition) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *TransformDefinition) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TransformDefinition) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -65,7 +65,7 @@ func (o *TransformDefinition) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *TransformDefinition) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -79,7 +79,7 @@ func (o *TransformDefinition) SetType(v string) { // GetAttributes returns the Attributes field value if set, zero value otherwise. func (o *TransformDefinition) GetAttributes() map[string]TransformDefinitionAttributesValue { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { var ret map[string]TransformDefinitionAttributesValue return ret } @@ -89,7 +89,7 @@ func (o *TransformDefinition) GetAttributes() map[string]TransformDefinitionAttr // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TransformDefinition) GetAttributesOk() (*map[string]TransformDefinitionAttributesValue, bool) { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { return nil, false } return o.Attributes, true @@ -97,7 +97,7 @@ func (o *TransformDefinition) GetAttributesOk() (*map[string]TransformDefinition // HasAttributes returns a boolean if a field has been set. func (o *TransformDefinition) HasAttributes() bool { - if o != nil && !isNil(o.Attributes) { + if o != nil && !IsNil(o.Attributes) { return true } @@ -119,10 +119,10 @@ func (o TransformDefinition) MarshalJSON() ([]byte, error) { func (o TransformDefinition) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Attributes) { + if !IsNil(o.Attributes) { toSerialize["attributes"] = o.Attributes } @@ -133,16 +133,20 @@ func (o TransformDefinition) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TransformDefinition) UnmarshalJSON(bytes []byte) (err error) { +func (o *TransformDefinition) UnmarshalJSON(data []byte) (err error) { varTransformDefinition := _TransformDefinition{} - if err = json.Unmarshal(bytes, &varTransformDefinition); err == nil { + err = json.Unmarshal(data, &varTransformDefinition) + + if err != nil { + return err + } + *o = TransformDefinition(varTransformDefinition) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "attributes") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_transform_definition_attributes_value.go b/api_v3/model_transform_definition_attributes_value.go index f4bd880c7..9f53b5b86 100644 --- a/api_v3/model_transform_definition_attributes_value.go +++ b/api_v3/model_transform_definition_attributes_value.go @@ -15,39 +15,40 @@ import ( "fmt" ) + // TransformDefinitionAttributesValue struct for TransformDefinitionAttributesValue type TransformDefinitionAttributesValue struct { - mapvar *map[string]interface{} - stringvar *string + MapmapOfStringAny *map[string]interface{} + String *string } // Unmarshal JSON data into any of the pointers in the struct func (dst *TransformDefinitionAttributesValue) UnmarshalJSON(data []byte) error { var err error - // try to unmarshal JSON data into mapvar - err = json.Unmarshal(data, &dst.mapvar); + // try to unmarshal JSON data into MapmapOfStringAny + err = json.Unmarshal(data, &dst.MapmapOfStringAny); if err == nil { - jsonmapvar, _ := json.Marshal(dst.mapvar) - if string(jsonmapvar) == "{}" { // empty struct - dst.mapvar = nil + jsonMapmapOfStringAny, _ := json.Marshal(dst.MapmapOfStringAny) + if string(jsonMapmapOfStringAny) == "{}" { // empty struct + dst.MapmapOfStringAny = nil } else { - return nil // data stored in dst.mapvar, return on the first match + return nil // data stored in dst.MapmapOfStringAny, return on the first match } } else { - dst.mapvar = nil + dst.MapmapOfStringAny = nil } - // try to unmarshal JSON data into stringvar - err = json.Unmarshal(data, &dst.stringvar); + // try to unmarshal JSON data into String + err = json.Unmarshal(data, &dst.String); if err == nil { - jsonstringvar, _ := json.Marshal(dst.stringvar) - if string(jsonstringvar) == "{}" { // empty struct - dst.stringvar = nil + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil } else { - return nil // data stored in dst.stringvar, return on the first match + return nil // data stored in dst.String, return on the first match } } else { - dst.stringvar = nil + dst.String = nil } return fmt.Errorf("data failed to match schemas in anyOf(TransformDefinitionAttributesValue)") @@ -55,17 +56,18 @@ func (dst *TransformDefinitionAttributesValue) UnmarshalJSON(data []byte) error // Marshal data from the first non-nil pointers in the struct to JSON func (src *TransformDefinitionAttributesValue) MarshalJSON() ([]byte, error) { - if src.mapvar != nil { - return json.Marshal(&src.mapvar) + if src.MapmapOfStringAny != nil { + return json.Marshal(&src.MapmapOfStringAny) } - if src.stringvar != nil { - return json.Marshal(&src.stringvar) + if src.String != nil { + return json.Marshal(&src.String) } return nil, nil // no data in anyOf schemas } + type NullableTransformDefinitionAttributesValue struct { value *TransformDefinitionAttributesValue isSet bool diff --git a/api_v3/model_transform_read.go b/api_v3/model_transform_read.go index 64e03b183..3063e814b 100644 --- a/api_v3/model_transform_read.go +++ b/api_v3/model_transform_read.go @@ -122,7 +122,7 @@ func (o *TransformRead) GetAttributes() map[string]interface{} { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TransformRead) GetAttributesOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { return map[string]interface{}{}, false } return o.Attributes, true @@ -206,8 +206,8 @@ func (o TransformRead) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TransformRead) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *TransformRead) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -220,7 +220,7 @@ func (o *TransformRead) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -234,13 +234,17 @@ func (o *TransformRead) UnmarshalJSON(bytes []byte) (err error) { varTransformRead := _TransformRead{} - if err = json.Unmarshal(bytes, &varTransformRead); err == nil { + err = json.Unmarshal(data, &varTransformRead) + + if err != nil { + return err + } + *o = TransformRead(varTransformRead) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "type") delete(additionalProperties, "attributes") diff --git a/api_v3/model_type_ahead_query.go b/api_v3/model_type_ahead_query.go index 6b1fbd494..8ec1e5dae 100644 --- a/api_v3/model_type_ahead_query.go +++ b/api_v3/model_type_ahead_query.go @@ -124,7 +124,7 @@ func (o *TypeAheadQuery) SetField(v string) { // GetNestedType returns the NestedType field value if set, zero value otherwise. func (o *TypeAheadQuery) GetNestedType() string { - if o == nil || isNil(o.NestedType) { + if o == nil || IsNil(o.NestedType) { var ret string return ret } @@ -134,7 +134,7 @@ func (o *TypeAheadQuery) GetNestedType() string { // GetNestedTypeOk returns a tuple with the NestedType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TypeAheadQuery) GetNestedTypeOk() (*string, bool) { - if o == nil || isNil(o.NestedType) { + if o == nil || IsNil(o.NestedType) { return nil, false } return o.NestedType, true @@ -142,7 +142,7 @@ func (o *TypeAheadQuery) GetNestedTypeOk() (*string, bool) { // HasNestedType returns a boolean if a field has been set. func (o *TypeAheadQuery) HasNestedType() bool { - if o != nil && !isNil(o.NestedType) { + if o != nil && !IsNil(o.NestedType) { return true } @@ -156,7 +156,7 @@ func (o *TypeAheadQuery) SetNestedType(v string) { // GetMaxExpansions returns the MaxExpansions field value if set, zero value otherwise. func (o *TypeAheadQuery) GetMaxExpansions() int32 { - if o == nil || isNil(o.MaxExpansions) { + if o == nil || IsNil(o.MaxExpansions) { var ret int32 return ret } @@ -166,7 +166,7 @@ func (o *TypeAheadQuery) GetMaxExpansions() int32 { // GetMaxExpansionsOk returns a tuple with the MaxExpansions field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TypeAheadQuery) GetMaxExpansionsOk() (*int32, bool) { - if o == nil || isNil(o.MaxExpansions) { + if o == nil || IsNil(o.MaxExpansions) { return nil, false } return o.MaxExpansions, true @@ -174,7 +174,7 @@ func (o *TypeAheadQuery) GetMaxExpansionsOk() (*int32, bool) { // HasMaxExpansions returns a boolean if a field has been set. func (o *TypeAheadQuery) HasMaxExpansions() bool { - if o != nil && !isNil(o.MaxExpansions) { + if o != nil && !IsNil(o.MaxExpansions) { return true } @@ -188,7 +188,7 @@ func (o *TypeAheadQuery) SetMaxExpansions(v int32) { // GetSize returns the Size field value if set, zero value otherwise. func (o *TypeAheadQuery) GetSize() int32 { - if o == nil || isNil(o.Size) { + if o == nil || IsNil(o.Size) { var ret int32 return ret } @@ -198,7 +198,7 @@ func (o *TypeAheadQuery) GetSize() int32 { // GetSizeOk returns a tuple with the Size field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TypeAheadQuery) GetSizeOk() (*int32, bool) { - if o == nil || isNil(o.Size) { + if o == nil || IsNil(o.Size) { return nil, false } return o.Size, true @@ -206,7 +206,7 @@ func (o *TypeAheadQuery) GetSizeOk() (*int32, bool) { // HasSize returns a boolean if a field has been set. func (o *TypeAheadQuery) HasSize() bool { - if o != nil && !isNil(o.Size) { + if o != nil && !IsNil(o.Size) { return true } @@ -220,7 +220,7 @@ func (o *TypeAheadQuery) SetSize(v int32) { // GetSort returns the Sort field value if set, zero value otherwise. func (o *TypeAheadQuery) GetSort() string { - if o == nil || isNil(o.Sort) { + if o == nil || IsNil(o.Sort) { var ret string return ret } @@ -230,7 +230,7 @@ func (o *TypeAheadQuery) GetSort() string { // GetSortOk returns a tuple with the Sort field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TypeAheadQuery) GetSortOk() (*string, bool) { - if o == nil || isNil(o.Sort) { + if o == nil || IsNil(o.Sort) { return nil, false } return o.Sort, true @@ -238,7 +238,7 @@ func (o *TypeAheadQuery) GetSortOk() (*string, bool) { // HasSort returns a boolean if a field has been set. func (o *TypeAheadQuery) HasSort() bool { - if o != nil && !isNil(o.Sort) { + if o != nil && !IsNil(o.Sort) { return true } @@ -252,7 +252,7 @@ func (o *TypeAheadQuery) SetSort(v string) { // GetSortByValue returns the SortByValue field value if set, zero value otherwise. func (o *TypeAheadQuery) GetSortByValue() bool { - if o == nil || isNil(o.SortByValue) { + if o == nil || IsNil(o.SortByValue) { var ret bool return ret } @@ -262,7 +262,7 @@ func (o *TypeAheadQuery) GetSortByValue() bool { // GetSortByValueOk returns a tuple with the SortByValue field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TypeAheadQuery) GetSortByValueOk() (*bool, bool) { - if o == nil || isNil(o.SortByValue) { + if o == nil || IsNil(o.SortByValue) { return nil, false } return o.SortByValue, true @@ -270,7 +270,7 @@ func (o *TypeAheadQuery) GetSortByValueOk() (*bool, bool) { // HasSortByValue returns a boolean if a field has been set. func (o *TypeAheadQuery) HasSortByValue() bool { - if o != nil && !isNil(o.SortByValue) { + if o != nil && !IsNil(o.SortByValue) { return true } @@ -294,19 +294,19 @@ func (o TypeAheadQuery) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["query"] = o.Query toSerialize["field"] = o.Field - if !isNil(o.NestedType) { + if !IsNil(o.NestedType) { toSerialize["nestedType"] = o.NestedType } - if !isNil(o.MaxExpansions) { + if !IsNil(o.MaxExpansions) { toSerialize["maxExpansions"] = o.MaxExpansions } - if !isNil(o.Size) { + if !IsNil(o.Size) { toSerialize["size"] = o.Size } - if !isNil(o.Sort) { + if !IsNil(o.Sort) { toSerialize["sort"] = o.Sort } - if !isNil(o.SortByValue) { + if !IsNil(o.SortByValue) { toSerialize["sortByValue"] = o.SortByValue } @@ -317,8 +317,8 @@ func (o TypeAheadQuery) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TypeAheadQuery) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *TypeAheadQuery) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -328,7 +328,7 @@ func (o *TypeAheadQuery) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -342,13 +342,17 @@ func (o *TypeAheadQuery) UnmarshalJSON(bytes []byte) (err error) { varTypeAheadQuery := _TypeAheadQuery{} - if err = json.Unmarshal(bytes, &varTypeAheadQuery); err == nil { + err = json.Unmarshal(data, &varTypeAheadQuery) + + if err != nil { + return err + } + *o = TypeAheadQuery(varTypeAheadQuery) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "query") delete(additionalProperties, "field") delete(additionalProperties, "nestedType") diff --git a/api_v3/model_typed_reference.go b/api_v3/model_typed_reference.go index e4c9d2800..a5cfa4d7a 100644 --- a/api_v3/model_typed_reference.go +++ b/api_v3/model_typed_reference.go @@ -115,8 +115,8 @@ func (o TypedReference) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TypedReference) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *TypedReference) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -126,7 +126,7 @@ func (o *TypedReference) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -140,13 +140,17 @@ func (o *TypedReference) UnmarshalJSON(bytes []byte) (err error) { varTypedReference := _TypedReference{} - if err = json.Unmarshal(bytes, &varTypedReference); err == nil { + err = json.Unmarshal(data, &varTypedReference) + + if err != nil { + return err + } + *o = TypedReference(varTypedReference) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_update_detail.go b/api_v3/model_update_detail.go index b499e58ef..c9d4494c8 100644 --- a/api_v3/model_update_detail.go +++ b/api_v3/model_update_detail.go @@ -51,7 +51,7 @@ func NewUpdateDetailWithDefaults() *UpdateDetail { // GetMessage returns the Message field value if set, zero value otherwise. func (o *UpdateDetail) GetMessage() string { - if o == nil || isNil(o.Message) { + if o == nil || IsNil(o.Message) { var ret string return ret } @@ -61,7 +61,7 @@ func (o *UpdateDetail) GetMessage() string { // GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UpdateDetail) GetMessageOk() (*string, bool) { - if o == nil || isNil(o.Message) { + if o == nil || IsNil(o.Message) { return nil, false } return o.Message, true @@ -69,7 +69,7 @@ func (o *UpdateDetail) GetMessageOk() (*string, bool) { // HasMessage returns a boolean if a field has been set. func (o *UpdateDetail) HasMessage() bool { - if o != nil && !isNil(o.Message) { + if o != nil && !IsNil(o.Message) { return true } @@ -83,7 +83,7 @@ func (o *UpdateDetail) SetMessage(v string) { // GetScriptName returns the ScriptName field value if set, zero value otherwise. func (o *UpdateDetail) GetScriptName() string { - if o == nil || isNil(o.ScriptName) { + if o == nil || IsNil(o.ScriptName) { var ret string return ret } @@ -93,7 +93,7 @@ func (o *UpdateDetail) GetScriptName() string { // GetScriptNameOk returns a tuple with the ScriptName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UpdateDetail) GetScriptNameOk() (*string, bool) { - if o == nil || isNil(o.ScriptName) { + if o == nil || IsNil(o.ScriptName) { return nil, false } return o.ScriptName, true @@ -101,7 +101,7 @@ func (o *UpdateDetail) GetScriptNameOk() (*string, bool) { // HasScriptName returns a boolean if a field has been set. func (o *UpdateDetail) HasScriptName() bool { - if o != nil && !isNil(o.ScriptName) { + if o != nil && !IsNil(o.ScriptName) { return true } @@ -126,7 +126,7 @@ func (o *UpdateDetail) GetUpdatedFiles() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *UpdateDetail) GetUpdatedFilesOk() ([]string, bool) { - if o == nil || isNil(o.UpdatedFiles) { + if o == nil || IsNil(o.UpdatedFiles) { return nil, false } return o.UpdatedFiles, true @@ -134,7 +134,7 @@ func (o *UpdateDetail) GetUpdatedFilesOk() ([]string, bool) { // HasUpdatedFiles returns a boolean if a field has been set. func (o *UpdateDetail) HasUpdatedFiles() bool { - if o != nil && isNil(o.UpdatedFiles) { + if o != nil && !IsNil(o.UpdatedFiles) { return true } @@ -148,7 +148,7 @@ func (o *UpdateDetail) SetUpdatedFiles(v []string) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *UpdateDetail) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -158,7 +158,7 @@ func (o *UpdateDetail) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UpdateDetail) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -166,7 +166,7 @@ func (o *UpdateDetail) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *UpdateDetail) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -188,16 +188,16 @@ func (o UpdateDetail) MarshalJSON() ([]byte, error) { func (o UpdateDetail) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Message) { + if !IsNil(o.Message) { toSerialize["message"] = o.Message } - if !isNil(o.ScriptName) { + if !IsNil(o.ScriptName) { toSerialize["scriptName"] = o.ScriptName } if o.UpdatedFiles != nil { toSerialize["updatedFiles"] = o.UpdatedFiles } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -208,16 +208,20 @@ func (o UpdateDetail) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *UpdateDetail) UnmarshalJSON(bytes []byte) (err error) { +func (o *UpdateDetail) UnmarshalJSON(data []byte) (err error) { varUpdateDetail := _UpdateDetail{} - if err = json.Unmarshal(bytes, &varUpdateDetail); err == nil { + err = json.Unmarshal(data, &varUpdateDetail) + + if err != nil { + return err + } + *o = UpdateDetail(varUpdateDetail) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "message") delete(additionalProperties, "scriptName") delete(additionalProperties, "updatedFiles") diff --git a/api_v3/model_uploads_request.go b/api_v3/model_uploads_request.go index b7300ef50..cb08e7e8f 100644 --- a/api_v3/model_uploads_request.go +++ b/api_v3/model_uploads_request.go @@ -154,7 +154,7 @@ func (o *UploadsRequest) SetType(v string) { // GetTenant returns the Tenant field value if set, zero value otherwise. func (o *UploadsRequest) GetTenant() string { - if o == nil || isNil(o.Tenant) { + if o == nil || IsNil(o.Tenant) { var ret string return ret } @@ -164,7 +164,7 @@ func (o *UploadsRequest) GetTenant() string { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UploadsRequest) GetTenantOk() (*string, bool) { - if o == nil || isNil(o.Tenant) { + if o == nil || IsNil(o.Tenant) { return nil, false } return o.Tenant, true @@ -172,7 +172,7 @@ func (o *UploadsRequest) GetTenantOk() (*string, bool) { // HasTenant returns a boolean if a field has been set. func (o *UploadsRequest) HasTenant() bool { - if o != nil && !isNil(o.Tenant) { + if o != nil && !IsNil(o.Tenant) { return true } @@ -186,7 +186,7 @@ func (o *UploadsRequest) SetTenant(v string) { // GetRequesterName returns the RequesterName field value if set, zero value otherwise. func (o *UploadsRequest) GetRequesterName() string { - if o == nil || isNil(o.RequesterName) { + if o == nil || IsNil(o.RequesterName) { var ret string return ret } @@ -196,7 +196,7 @@ func (o *UploadsRequest) GetRequesterName() string { // GetRequesterNameOk returns a tuple with the RequesterName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UploadsRequest) GetRequesterNameOk() (*string, bool) { - if o == nil || isNil(o.RequesterName) { + if o == nil || IsNil(o.RequesterName) { return nil, false } return o.RequesterName, true @@ -204,7 +204,7 @@ func (o *UploadsRequest) GetRequesterNameOk() (*string, bool) { // HasRequesterName returns a boolean if a field has been set. func (o *UploadsRequest) HasRequesterName() bool { - if o != nil && !isNil(o.RequesterName) { + if o != nil && !IsNil(o.RequesterName) { return true } @@ -266,7 +266,7 @@ func (o *UploadsRequest) SetModified(v time.Time) { // GetName returns the Name field value if set, zero value otherwise. func (o *UploadsRequest) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -276,7 +276,7 @@ func (o *UploadsRequest) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UploadsRequest) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -284,7 +284,7 @@ func (o *UploadsRequest) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *UploadsRequest) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -298,7 +298,7 @@ func (o *UploadsRequest) SetName(v string) { // GetUserCanDelete returns the UserCanDelete field value if set, zero value otherwise. func (o *UploadsRequest) GetUserCanDelete() bool { - if o == nil || isNil(o.UserCanDelete) { + if o == nil || IsNil(o.UserCanDelete) { var ret bool return ret } @@ -308,7 +308,7 @@ func (o *UploadsRequest) GetUserCanDelete() bool { // GetUserCanDeleteOk returns a tuple with the UserCanDelete field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UploadsRequest) GetUserCanDeleteOk() (*bool, bool) { - if o == nil || isNil(o.UserCanDelete) { + if o == nil || IsNil(o.UserCanDelete) { return nil, false } return o.UserCanDelete, true @@ -316,7 +316,7 @@ func (o *UploadsRequest) GetUserCanDeleteOk() (*bool, bool) { // HasUserCanDelete returns a boolean if a field has been set. func (o *UploadsRequest) HasUserCanDelete() bool { - if o != nil && !isNil(o.UserCanDelete) { + if o != nil && !IsNil(o.UserCanDelete) { return true } @@ -330,7 +330,7 @@ func (o *UploadsRequest) SetUserCanDelete(v bool) { // GetIsPartial returns the IsPartial field value if set, zero value otherwise. func (o *UploadsRequest) GetIsPartial() bool { - if o == nil || isNil(o.IsPartial) { + if o == nil || IsNil(o.IsPartial) { var ret bool return ret } @@ -340,7 +340,7 @@ func (o *UploadsRequest) GetIsPartial() bool { // GetIsPartialOk returns a tuple with the IsPartial field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UploadsRequest) GetIsPartialOk() (*bool, bool) { - if o == nil || isNil(o.IsPartial) { + if o == nil || IsNil(o.IsPartial) { return nil, false } return o.IsPartial, true @@ -348,7 +348,7 @@ func (o *UploadsRequest) GetIsPartialOk() (*bool, bool) { // HasIsPartial returns a boolean if a field has been set. func (o *UploadsRequest) HasIsPartial() bool { - if o != nil && !isNil(o.IsPartial) { + if o != nil && !IsNil(o.IsPartial) { return true } @@ -362,7 +362,7 @@ func (o *UploadsRequest) SetIsPartial(v bool) { // GetBackupType returns the BackupType field value if set, zero value otherwise. func (o *UploadsRequest) GetBackupType() string { - if o == nil || isNil(o.BackupType) { + if o == nil || IsNil(o.BackupType) { var ret string return ret } @@ -372,7 +372,7 @@ func (o *UploadsRequest) GetBackupType() string { // GetBackupTypeOk returns a tuple with the BackupType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UploadsRequest) GetBackupTypeOk() (*string, bool) { - if o == nil || isNil(o.BackupType) { + if o == nil || IsNil(o.BackupType) { return nil, false } return o.BackupType, true @@ -380,7 +380,7 @@ func (o *UploadsRequest) GetBackupTypeOk() (*string, bool) { // HasBackupType returns a boolean if a field has been set. func (o *UploadsRequest) HasBackupType() bool { - if o != nil && !isNil(o.BackupType) { + if o != nil && !IsNil(o.BackupType) { return true } @@ -394,7 +394,7 @@ func (o *UploadsRequest) SetBackupType(v string) { // GetHydrationStatus returns the HydrationStatus field value if set, zero value otherwise. func (o *UploadsRequest) GetHydrationStatus() string { - if o == nil || isNil(o.HydrationStatus) { + if o == nil || IsNil(o.HydrationStatus) { var ret string return ret } @@ -404,7 +404,7 @@ func (o *UploadsRequest) GetHydrationStatus() string { // GetHydrationStatusOk returns a tuple with the HydrationStatus field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UploadsRequest) GetHydrationStatusOk() (*string, bool) { - if o == nil || isNil(o.HydrationStatus) { + if o == nil || IsNil(o.HydrationStatus) { return nil, false } return o.HydrationStatus, true @@ -412,7 +412,7 @@ func (o *UploadsRequest) GetHydrationStatusOk() (*string, bool) { // HasHydrationStatus returns a boolean if a field has been set. func (o *UploadsRequest) HasHydrationStatus() bool { - if o != nil && !isNil(o.HydrationStatus) { + if o != nil && !IsNil(o.HydrationStatus) { return true } @@ -437,27 +437,27 @@ func (o UploadsRequest) ToMap() (map[string]interface{}, error) { toSerialize["jobId"] = o.JobId toSerialize["status"] = o.Status toSerialize["type"] = o.Type - if !isNil(o.Tenant) { + if !IsNil(o.Tenant) { toSerialize["tenant"] = o.Tenant } - if !isNil(o.RequesterName) { + if !IsNil(o.RequesterName) { toSerialize["requesterName"] = o.RequesterName } toSerialize["created"] = o.Created toSerialize["modified"] = o.Modified - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.UserCanDelete) { + if !IsNil(o.UserCanDelete) { toSerialize["userCanDelete"] = o.UserCanDelete } - if !isNil(o.IsPartial) { + if !IsNil(o.IsPartial) { toSerialize["isPartial"] = o.IsPartial } - if !isNil(o.BackupType) { + if !IsNil(o.BackupType) { toSerialize["backupType"] = o.BackupType } - if !isNil(o.HydrationStatus) { + if !IsNil(o.HydrationStatus) { toSerialize["hydrationStatus"] = o.HydrationStatus } @@ -468,8 +468,8 @@ func (o UploadsRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *UploadsRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *UploadsRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -482,7 +482,7 @@ func (o *UploadsRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -496,13 +496,17 @@ func (o *UploadsRequest) UnmarshalJSON(bytes []byte) (err error) { varUploadsRequest := _UploadsRequest{} - if err = json.Unmarshal(bytes, &varUploadsRequest); err == nil { + err = json.Unmarshal(data, &varUploadsRequest) + + if err != nil { + return err + } + *o = UploadsRequest(varUploadsRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "jobId") delete(additionalProperties, "status") delete(additionalProperties, "type") diff --git a/api_v3/model_uploads_response.go b/api_v3/model_uploads_response.go index a791236ff..4efa586b5 100644 --- a/api_v3/model_uploads_response.go +++ b/api_v3/model_uploads_response.go @@ -154,7 +154,7 @@ func (o *UploadsResponse) SetType(v string) { // GetTenant returns the Tenant field value if set, zero value otherwise. func (o *UploadsResponse) GetTenant() string { - if o == nil || isNil(o.Tenant) { + if o == nil || IsNil(o.Tenant) { var ret string return ret } @@ -164,7 +164,7 @@ func (o *UploadsResponse) GetTenant() string { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UploadsResponse) GetTenantOk() (*string, bool) { - if o == nil || isNil(o.Tenant) { + if o == nil || IsNil(o.Tenant) { return nil, false } return o.Tenant, true @@ -172,7 +172,7 @@ func (o *UploadsResponse) GetTenantOk() (*string, bool) { // HasTenant returns a boolean if a field has been set. func (o *UploadsResponse) HasTenant() bool { - if o != nil && !isNil(o.Tenant) { + if o != nil && !IsNil(o.Tenant) { return true } @@ -186,7 +186,7 @@ func (o *UploadsResponse) SetTenant(v string) { // GetRequesterName returns the RequesterName field value if set, zero value otherwise. func (o *UploadsResponse) GetRequesterName() string { - if o == nil || isNil(o.RequesterName) { + if o == nil || IsNil(o.RequesterName) { var ret string return ret } @@ -196,7 +196,7 @@ func (o *UploadsResponse) GetRequesterName() string { // GetRequesterNameOk returns a tuple with the RequesterName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UploadsResponse) GetRequesterNameOk() (*string, bool) { - if o == nil || isNil(o.RequesterName) { + if o == nil || IsNil(o.RequesterName) { return nil, false } return o.RequesterName, true @@ -204,7 +204,7 @@ func (o *UploadsResponse) GetRequesterNameOk() (*string, bool) { // HasRequesterName returns a boolean if a field has been set. func (o *UploadsResponse) HasRequesterName() bool { - if o != nil && !isNil(o.RequesterName) { + if o != nil && !IsNil(o.RequesterName) { return true } @@ -266,7 +266,7 @@ func (o *UploadsResponse) SetModified(v time.Time) { // GetName returns the Name field value if set, zero value otherwise. func (o *UploadsResponse) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -276,7 +276,7 @@ func (o *UploadsResponse) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UploadsResponse) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -284,7 +284,7 @@ func (o *UploadsResponse) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *UploadsResponse) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -298,7 +298,7 @@ func (o *UploadsResponse) SetName(v string) { // GetUserCanDelete returns the UserCanDelete field value if set, zero value otherwise. func (o *UploadsResponse) GetUserCanDelete() bool { - if o == nil || isNil(o.UserCanDelete) { + if o == nil || IsNil(o.UserCanDelete) { var ret bool return ret } @@ -308,7 +308,7 @@ func (o *UploadsResponse) GetUserCanDelete() bool { // GetUserCanDeleteOk returns a tuple with the UserCanDelete field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UploadsResponse) GetUserCanDeleteOk() (*bool, bool) { - if o == nil || isNil(o.UserCanDelete) { + if o == nil || IsNil(o.UserCanDelete) { return nil, false } return o.UserCanDelete, true @@ -316,7 +316,7 @@ func (o *UploadsResponse) GetUserCanDeleteOk() (*bool, bool) { // HasUserCanDelete returns a boolean if a field has been set. func (o *UploadsResponse) HasUserCanDelete() bool { - if o != nil && !isNil(o.UserCanDelete) { + if o != nil && !IsNil(o.UserCanDelete) { return true } @@ -330,7 +330,7 @@ func (o *UploadsResponse) SetUserCanDelete(v bool) { // GetIsPartial returns the IsPartial field value if set, zero value otherwise. func (o *UploadsResponse) GetIsPartial() bool { - if o == nil || isNil(o.IsPartial) { + if o == nil || IsNil(o.IsPartial) { var ret bool return ret } @@ -340,7 +340,7 @@ func (o *UploadsResponse) GetIsPartial() bool { // GetIsPartialOk returns a tuple with the IsPartial field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UploadsResponse) GetIsPartialOk() (*bool, bool) { - if o == nil || isNil(o.IsPartial) { + if o == nil || IsNil(o.IsPartial) { return nil, false } return o.IsPartial, true @@ -348,7 +348,7 @@ func (o *UploadsResponse) GetIsPartialOk() (*bool, bool) { // HasIsPartial returns a boolean if a field has been set. func (o *UploadsResponse) HasIsPartial() bool { - if o != nil && !isNil(o.IsPartial) { + if o != nil && !IsNil(o.IsPartial) { return true } @@ -362,7 +362,7 @@ func (o *UploadsResponse) SetIsPartial(v bool) { // GetBackupType returns the BackupType field value if set, zero value otherwise. func (o *UploadsResponse) GetBackupType() string { - if o == nil || isNil(o.BackupType) { + if o == nil || IsNil(o.BackupType) { var ret string return ret } @@ -372,7 +372,7 @@ func (o *UploadsResponse) GetBackupType() string { // GetBackupTypeOk returns a tuple with the BackupType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UploadsResponse) GetBackupTypeOk() (*string, bool) { - if o == nil || isNil(o.BackupType) { + if o == nil || IsNil(o.BackupType) { return nil, false } return o.BackupType, true @@ -380,7 +380,7 @@ func (o *UploadsResponse) GetBackupTypeOk() (*string, bool) { // HasBackupType returns a boolean if a field has been set. func (o *UploadsResponse) HasBackupType() bool { - if o != nil && !isNil(o.BackupType) { + if o != nil && !IsNil(o.BackupType) { return true } @@ -394,7 +394,7 @@ func (o *UploadsResponse) SetBackupType(v string) { // GetHydrationStatus returns the HydrationStatus field value if set, zero value otherwise. func (o *UploadsResponse) GetHydrationStatus() string { - if o == nil || isNil(o.HydrationStatus) { + if o == nil || IsNil(o.HydrationStatus) { var ret string return ret } @@ -404,7 +404,7 @@ func (o *UploadsResponse) GetHydrationStatus() string { // GetHydrationStatusOk returns a tuple with the HydrationStatus field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *UploadsResponse) GetHydrationStatusOk() (*string, bool) { - if o == nil || isNil(o.HydrationStatus) { + if o == nil || IsNil(o.HydrationStatus) { return nil, false } return o.HydrationStatus, true @@ -412,7 +412,7 @@ func (o *UploadsResponse) GetHydrationStatusOk() (*string, bool) { // HasHydrationStatus returns a boolean if a field has been set. func (o *UploadsResponse) HasHydrationStatus() bool { - if o != nil && !isNil(o.HydrationStatus) { + if o != nil && !IsNil(o.HydrationStatus) { return true } @@ -437,27 +437,27 @@ func (o UploadsResponse) ToMap() (map[string]interface{}, error) { toSerialize["jobId"] = o.JobId toSerialize["status"] = o.Status toSerialize["type"] = o.Type - if !isNil(o.Tenant) { + if !IsNil(o.Tenant) { toSerialize["tenant"] = o.Tenant } - if !isNil(o.RequesterName) { + if !IsNil(o.RequesterName) { toSerialize["requesterName"] = o.RequesterName } toSerialize["created"] = o.Created toSerialize["modified"] = o.Modified - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.UserCanDelete) { + if !IsNil(o.UserCanDelete) { toSerialize["userCanDelete"] = o.UserCanDelete } - if !isNil(o.IsPartial) { + if !IsNil(o.IsPartial) { toSerialize["isPartial"] = o.IsPartial } - if !isNil(o.BackupType) { + if !IsNil(o.BackupType) { toSerialize["backupType"] = o.BackupType } - if !isNil(o.HydrationStatus) { + if !IsNil(o.HydrationStatus) { toSerialize["hydrationStatus"] = o.HydrationStatus } @@ -468,8 +468,8 @@ func (o UploadsResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *UploadsResponse) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *UploadsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -482,7 +482,7 @@ func (o *UploadsResponse) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -496,13 +496,17 @@ func (o *UploadsResponse) UnmarshalJSON(bytes []byte) (err error) { varUploadsResponse := _UploadsResponse{} - if err = json.Unmarshal(bytes, &varUploadsResponse); err == nil { + err = json.Unmarshal(data, &varUploadsResponse) + + if err != nil { + return err + } + *o = UploadsResponse(varUploadsResponse) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "jobId") delete(additionalProperties, "status") delete(additionalProperties, "type") diff --git a/api_v3/model_v3_connector_dto.go b/api_v3/model_v3_connector_dto.go index cb54481c1..eb4f13590 100644 --- a/api_v3/model_v3_connector_dto.go +++ b/api_v3/model_v3_connector_dto.go @@ -63,7 +63,7 @@ func NewV3ConnectorDtoWithDefaults() *V3ConnectorDto { // GetName returns the Name field value if set, zero value otherwise. func (o *V3ConnectorDto) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -73,7 +73,7 @@ func (o *V3ConnectorDto) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *V3ConnectorDto) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -81,7 +81,7 @@ func (o *V3ConnectorDto) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *V3ConnectorDto) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -95,7 +95,7 @@ func (o *V3ConnectorDto) SetName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *V3ConnectorDto) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -105,7 +105,7 @@ func (o *V3ConnectorDto) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *V3ConnectorDto) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -113,7 +113,7 @@ func (o *V3ConnectorDto) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *V3ConnectorDto) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -127,7 +127,7 @@ func (o *V3ConnectorDto) SetType(v string) { // GetScriptName returns the ScriptName field value if set, zero value otherwise. func (o *V3ConnectorDto) GetScriptName() string { - if o == nil || isNil(o.ScriptName) { + if o == nil || IsNil(o.ScriptName) { var ret string return ret } @@ -137,7 +137,7 @@ func (o *V3ConnectorDto) GetScriptName() string { // GetScriptNameOk returns a tuple with the ScriptName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *V3ConnectorDto) GetScriptNameOk() (*string, bool) { - if o == nil || isNil(o.ScriptName) { + if o == nil || IsNil(o.ScriptName) { return nil, false } return o.ScriptName, true @@ -145,7 +145,7 @@ func (o *V3ConnectorDto) GetScriptNameOk() (*string, bool) { // HasScriptName returns a boolean if a field has been set. func (o *V3ConnectorDto) HasScriptName() bool { - if o != nil && !isNil(o.ScriptName) { + if o != nil && !IsNil(o.ScriptName) { return true } @@ -159,7 +159,7 @@ func (o *V3ConnectorDto) SetScriptName(v string) { // GetClassName returns the ClassName field value if set, zero value otherwise (both if not set or set to explicit null). func (o *V3ConnectorDto) GetClassName() string { - if o == nil || isNil(o.ClassName.Get()) { + if o == nil || IsNil(o.ClassName.Get()) { var ret string return ret } @@ -212,7 +212,7 @@ func (o *V3ConnectorDto) GetFeatures() []string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *V3ConnectorDto) GetFeaturesOk() ([]string, bool) { - if o == nil || isNil(o.Features) { + if o == nil || IsNil(o.Features) { return nil, false } return o.Features, true @@ -220,7 +220,7 @@ func (o *V3ConnectorDto) GetFeaturesOk() ([]string, bool) { // HasFeatures returns a boolean if a field has been set. func (o *V3ConnectorDto) HasFeatures() bool { - if o != nil && isNil(o.Features) { + if o != nil && !IsNil(o.Features) { return true } @@ -234,7 +234,7 @@ func (o *V3ConnectorDto) SetFeatures(v []string) { // GetDirectConnect returns the DirectConnect field value if set, zero value otherwise. func (o *V3ConnectorDto) GetDirectConnect() bool { - if o == nil || isNil(o.DirectConnect) { + if o == nil || IsNil(o.DirectConnect) { var ret bool return ret } @@ -244,7 +244,7 @@ func (o *V3ConnectorDto) GetDirectConnect() bool { // GetDirectConnectOk returns a tuple with the DirectConnect field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *V3ConnectorDto) GetDirectConnectOk() (*bool, bool) { - if o == nil || isNil(o.DirectConnect) { + if o == nil || IsNil(o.DirectConnect) { return nil, false } return o.DirectConnect, true @@ -252,7 +252,7 @@ func (o *V3ConnectorDto) GetDirectConnectOk() (*bool, bool) { // HasDirectConnect returns a boolean if a field has been set. func (o *V3ConnectorDto) HasDirectConnect() bool { - if o != nil && !isNil(o.DirectConnect) { + if o != nil && !IsNil(o.DirectConnect) { return true } @@ -266,7 +266,7 @@ func (o *V3ConnectorDto) SetDirectConnect(v bool) { // GetConnectorMetadata returns the ConnectorMetadata field value if set, zero value otherwise. func (o *V3ConnectorDto) GetConnectorMetadata() map[string]interface{} { - if o == nil || isNil(o.ConnectorMetadata) { + if o == nil || IsNil(o.ConnectorMetadata) { var ret map[string]interface{} return ret } @@ -276,7 +276,7 @@ func (o *V3ConnectorDto) GetConnectorMetadata() map[string]interface{} { // GetConnectorMetadataOk returns a tuple with the ConnectorMetadata field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *V3ConnectorDto) GetConnectorMetadataOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.ConnectorMetadata) { + if o == nil || IsNil(o.ConnectorMetadata) { return map[string]interface{}{}, false } return o.ConnectorMetadata, true @@ -284,7 +284,7 @@ func (o *V3ConnectorDto) GetConnectorMetadataOk() (map[string]interface{}, bool) // HasConnectorMetadata returns a boolean if a field has been set. func (o *V3ConnectorDto) HasConnectorMetadata() bool { - if o != nil && !isNil(o.ConnectorMetadata) { + if o != nil && !IsNil(o.ConnectorMetadata) { return true } @@ -298,7 +298,7 @@ func (o *V3ConnectorDto) SetConnectorMetadata(v map[string]interface{}) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *V3ConnectorDto) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -308,7 +308,7 @@ func (o *V3ConnectorDto) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *V3ConnectorDto) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -316,7 +316,7 @@ func (o *V3ConnectorDto) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *V3ConnectorDto) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -338,13 +338,13 @@ func (o V3ConnectorDto) MarshalJSON() ([]byte, error) { func (o V3ConnectorDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.ScriptName) { + if !IsNil(o.ScriptName) { toSerialize["scriptName"] = o.ScriptName } if o.ClassName.IsSet() { @@ -353,13 +353,13 @@ func (o V3ConnectorDto) ToMap() (map[string]interface{}, error) { if o.Features != nil { toSerialize["features"] = o.Features } - if !isNil(o.DirectConnect) { + if !IsNil(o.DirectConnect) { toSerialize["directConnect"] = o.DirectConnect } - if !isNil(o.ConnectorMetadata) { + if !IsNil(o.ConnectorMetadata) { toSerialize["connectorMetadata"] = o.ConnectorMetadata } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -370,16 +370,20 @@ func (o V3ConnectorDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *V3ConnectorDto) UnmarshalJSON(bytes []byte) (err error) { +func (o *V3ConnectorDto) UnmarshalJSON(data []byte) (err error) { varV3ConnectorDto := _V3ConnectorDto{} - if err = json.Unmarshal(bytes, &varV3ConnectorDto); err == nil { + err = json.Unmarshal(data, &varV3ConnectorDto) + + if err != nil { + return err + } + *o = V3ConnectorDto(varV3ConnectorDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "type") delete(additionalProperties, "scriptName") diff --git a/api_v3/model_v3_create_connector_dto.go b/api_v3/model_v3_create_connector_dto.go index 13edeefd5..fec7b763d 100644 --- a/api_v3/model_v3_create_connector_dto.go +++ b/api_v3/model_v3_create_connector_dto.go @@ -84,7 +84,7 @@ func (o *V3CreateConnectorDto) SetName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *V3CreateConnectorDto) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -94,7 +94,7 @@ func (o *V3CreateConnectorDto) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *V3CreateConnectorDto) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -102,7 +102,7 @@ func (o *V3CreateConnectorDto) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *V3CreateConnectorDto) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -140,7 +140,7 @@ func (o *V3CreateConnectorDto) SetClassName(v string) { // GetDirectConnect returns the DirectConnect field value if set, zero value otherwise. func (o *V3CreateConnectorDto) GetDirectConnect() bool { - if o == nil || isNil(o.DirectConnect) { + if o == nil || IsNil(o.DirectConnect) { var ret bool return ret } @@ -150,7 +150,7 @@ func (o *V3CreateConnectorDto) GetDirectConnect() bool { // GetDirectConnectOk returns a tuple with the DirectConnect field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *V3CreateConnectorDto) GetDirectConnectOk() (*bool, bool) { - if o == nil || isNil(o.DirectConnect) { + if o == nil || IsNil(o.DirectConnect) { return nil, false } return o.DirectConnect, true @@ -158,7 +158,7 @@ func (o *V3CreateConnectorDto) GetDirectConnectOk() (*bool, bool) { // HasDirectConnect returns a boolean if a field has been set. func (o *V3CreateConnectorDto) HasDirectConnect() bool { - if o != nil && !isNil(o.DirectConnect) { + if o != nil && !IsNil(o.DirectConnect) { return true } @@ -172,7 +172,7 @@ func (o *V3CreateConnectorDto) SetDirectConnect(v bool) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *V3CreateConnectorDto) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -182,7 +182,7 @@ func (o *V3CreateConnectorDto) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *V3CreateConnectorDto) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -190,7 +190,7 @@ func (o *V3CreateConnectorDto) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *V3CreateConnectorDto) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -213,14 +213,14 @@ func (o V3CreateConnectorDto) MarshalJSON() ([]byte, error) { func (o V3CreateConnectorDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } toSerialize["className"] = o.ClassName - if !isNil(o.DirectConnect) { + if !IsNil(o.DirectConnect) { toSerialize["directConnect"] = o.DirectConnect } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -231,8 +231,8 @@ func (o V3CreateConnectorDto) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *V3CreateConnectorDto) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *V3CreateConnectorDto) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -242,7 +242,7 @@ func (o *V3CreateConnectorDto) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -256,13 +256,17 @@ func (o *V3CreateConnectorDto) UnmarshalJSON(bytes []byte) (err error) { varV3CreateConnectorDto := _V3CreateConnectorDto{} - if err = json.Unmarshal(bytes, &varV3CreateConnectorDto); err == nil { + err = json.Unmarshal(data, &varV3CreateConnectorDto) + + if err != nil { + return err + } + *o = V3CreateConnectorDto(varV3CreateConnectorDto) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "type") delete(additionalProperties, "className") diff --git a/api_v3/model_value.go b/api_v3/model_value.go index f87e05ed3..37b64d717 100644 --- a/api_v3/model_value.go +++ b/api_v3/model_value.go @@ -47,7 +47,7 @@ func NewValueWithDefaults() *Value { // GetType returns the Type field value if set, zero value otherwise. func (o *Value) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *Value) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Value) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -65,7 +65,7 @@ func (o *Value) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *Value) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -79,7 +79,7 @@ func (o *Value) SetType(v string) { // GetValue returns the Value field value if set, zero value otherwise. func (o *Value) GetValue() string { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { var ret string return ret } @@ -89,7 +89,7 @@ func (o *Value) GetValue() string { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Value) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { + if o == nil || IsNil(o.Value) { return nil, false } return o.Value, true @@ -97,7 +97,7 @@ func (o *Value) GetValueOk() (*string, bool) { // HasValue returns a boolean if a field has been set. func (o *Value) HasValue() bool { - if o != nil && !isNil(o.Value) { + if o != nil && !IsNil(o.Value) { return true } @@ -119,10 +119,10 @@ func (o Value) MarshalJSON() ([]byte, error) { func (o Value) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Value) { + if !IsNil(o.Value) { toSerialize["value"] = o.Value } @@ -133,16 +133,20 @@ func (o Value) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Value) UnmarshalJSON(bytes []byte) (err error) { +func (o *Value) UnmarshalJSON(data []byte) (err error) { varValue := _Value{} - if err = json.Unmarshal(bytes, &varValue); err == nil { + err = json.Unmarshal(data, &varValue) + + if err != nil { + return err + } + *o = Value(varValue) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "value") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_vendor_connector_mapping.go b/api_v3/model_vendor_connector_mapping.go index 294e919f8..94bad96d1 100644 --- a/api_v3/model_vendor_connector_mapping.go +++ b/api_v3/model_vendor_connector_mapping.go @@ -58,7 +58,7 @@ func NewVendorConnectorMappingWithDefaults() *VendorConnectorMapping { // GetId returns the Id field value if set, zero value otherwise. func (o *VendorConnectorMapping) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -68,7 +68,7 @@ func (o *VendorConnectorMapping) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VendorConnectorMapping) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -76,7 +76,7 @@ func (o *VendorConnectorMapping) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *VendorConnectorMapping) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -90,7 +90,7 @@ func (o *VendorConnectorMapping) SetId(v string) { // GetVendor returns the Vendor field value if set, zero value otherwise. func (o *VendorConnectorMapping) GetVendor() string { - if o == nil || isNil(o.Vendor) { + if o == nil || IsNil(o.Vendor) { var ret string return ret } @@ -100,7 +100,7 @@ func (o *VendorConnectorMapping) GetVendor() string { // GetVendorOk returns a tuple with the Vendor field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VendorConnectorMapping) GetVendorOk() (*string, bool) { - if o == nil || isNil(o.Vendor) { + if o == nil || IsNil(o.Vendor) { return nil, false } return o.Vendor, true @@ -108,7 +108,7 @@ func (o *VendorConnectorMapping) GetVendorOk() (*string, bool) { // HasVendor returns a boolean if a field has been set. func (o *VendorConnectorMapping) HasVendor() bool { - if o != nil && !isNil(o.Vendor) { + if o != nil && !IsNil(o.Vendor) { return true } @@ -122,7 +122,7 @@ func (o *VendorConnectorMapping) SetVendor(v string) { // GetConnector returns the Connector field value if set, zero value otherwise. func (o *VendorConnectorMapping) GetConnector() string { - if o == nil || isNil(o.Connector) { + if o == nil || IsNil(o.Connector) { var ret string return ret } @@ -132,7 +132,7 @@ func (o *VendorConnectorMapping) GetConnector() string { // GetConnectorOk returns a tuple with the Connector field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VendorConnectorMapping) GetConnectorOk() (*string, bool) { - if o == nil || isNil(o.Connector) { + if o == nil || IsNil(o.Connector) { return nil, false } return o.Connector, true @@ -140,7 +140,7 @@ func (o *VendorConnectorMapping) GetConnectorOk() (*string, bool) { // HasConnector returns a boolean if a field has been set. func (o *VendorConnectorMapping) HasConnector() bool { - if o != nil && !isNil(o.Connector) { + if o != nil && !IsNil(o.Connector) { return true } @@ -154,7 +154,7 @@ func (o *VendorConnectorMapping) SetConnector(v string) { // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. func (o *VendorConnectorMapping) GetCreatedAt() time.Time { - if o == nil || isNil(o.CreatedAt) { + if o == nil || IsNil(o.CreatedAt) { var ret time.Time return ret } @@ -164,7 +164,7 @@ func (o *VendorConnectorMapping) GetCreatedAt() time.Time { // GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VendorConnectorMapping) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || isNil(o.CreatedAt) { + if o == nil || IsNil(o.CreatedAt) { return nil, false } return o.CreatedAt, true @@ -172,7 +172,7 @@ func (o *VendorConnectorMapping) GetCreatedAtOk() (*time.Time, bool) { // HasCreatedAt returns a boolean if a field has been set. func (o *VendorConnectorMapping) HasCreatedAt() bool { - if o != nil && !isNil(o.CreatedAt) { + if o != nil && !IsNil(o.CreatedAt) { return true } @@ -186,7 +186,7 @@ func (o *VendorConnectorMapping) SetCreatedAt(v time.Time) { // GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. func (o *VendorConnectorMapping) GetCreatedBy() string { - if o == nil || isNil(o.CreatedBy) { + if o == nil || IsNil(o.CreatedBy) { var ret string return ret } @@ -196,7 +196,7 @@ func (o *VendorConnectorMapping) GetCreatedBy() string { // GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VendorConnectorMapping) GetCreatedByOk() (*string, bool) { - if o == nil || isNil(o.CreatedBy) { + if o == nil || IsNil(o.CreatedBy) { return nil, false } return o.CreatedBy, true @@ -204,7 +204,7 @@ func (o *VendorConnectorMapping) GetCreatedByOk() (*string, bool) { // HasCreatedBy returns a boolean if a field has been set. func (o *VendorConnectorMapping) HasCreatedBy() bool { - if o != nil && !isNil(o.CreatedBy) { + if o != nil && !IsNil(o.CreatedBy) { return true } @@ -218,7 +218,7 @@ func (o *VendorConnectorMapping) SetCreatedBy(v string) { // GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VendorConnectorMapping) GetUpdatedAt() VendorConnectorMappingUpdatedAt { - if o == nil || isNil(o.UpdatedAt.Get()) { + if o == nil || IsNil(o.UpdatedAt.Get()) { var ret VendorConnectorMappingUpdatedAt return ret } @@ -260,7 +260,7 @@ func (o *VendorConnectorMapping) UnsetUpdatedAt() { // GetUpdatedBy returns the UpdatedBy field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VendorConnectorMapping) GetUpdatedBy() VendorConnectorMappingUpdatedBy { - if o == nil || isNil(o.UpdatedBy.Get()) { + if o == nil || IsNil(o.UpdatedBy.Get()) { var ret VendorConnectorMappingUpdatedBy return ret } @@ -302,7 +302,7 @@ func (o *VendorConnectorMapping) UnsetUpdatedBy() { // GetDeletedAt returns the DeletedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VendorConnectorMapping) GetDeletedAt() VendorConnectorMappingDeletedAt { - if o == nil || isNil(o.DeletedAt.Get()) { + if o == nil || IsNil(o.DeletedAt.Get()) { var ret VendorConnectorMappingDeletedAt return ret } @@ -344,7 +344,7 @@ func (o *VendorConnectorMapping) UnsetDeletedAt() { // GetDeletedBy returns the DeletedBy field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VendorConnectorMapping) GetDeletedBy() VendorConnectorMappingDeletedBy { - if o == nil || isNil(o.DeletedBy.Get()) { + if o == nil || IsNil(o.DeletedBy.Get()) { var ret VendorConnectorMappingDeletedBy return ret } @@ -394,19 +394,19 @@ func (o VendorConnectorMapping) MarshalJSON() ([]byte, error) { func (o VendorConnectorMapping) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Vendor) { + if !IsNil(o.Vendor) { toSerialize["vendor"] = o.Vendor } - if !isNil(o.Connector) { + if !IsNil(o.Connector) { toSerialize["connector"] = o.Connector } - if !isNil(o.CreatedAt) { + if !IsNil(o.CreatedAt) { toSerialize["createdAt"] = o.CreatedAt } - if !isNil(o.CreatedBy) { + if !IsNil(o.CreatedBy) { toSerialize["createdBy"] = o.CreatedBy } if o.UpdatedAt.IsSet() { @@ -429,16 +429,20 @@ func (o VendorConnectorMapping) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *VendorConnectorMapping) UnmarshalJSON(bytes []byte) (err error) { +func (o *VendorConnectorMapping) UnmarshalJSON(data []byte) (err error) { varVendorConnectorMapping := _VendorConnectorMapping{} - if err = json.Unmarshal(bytes, &varVendorConnectorMapping); err == nil { + err = json.Unmarshal(data, &varVendorConnectorMapping) + + if err != nil { + return err + } + *o = VendorConnectorMapping(varVendorConnectorMapping) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "vendor") delete(additionalProperties, "connector") diff --git a/api_v3/model_vendor_connector_mapping_deleted_at.go b/api_v3/model_vendor_connector_mapping_deleted_at.go index 4497e097a..49dc1e413 100644 --- a/api_v3/model_vendor_connector_mapping_deleted_at.go +++ b/api_v3/model_vendor_connector_mapping_deleted_at.go @@ -52,7 +52,7 @@ func NewVendorConnectorMappingDeletedAtWithDefaults() *VendorConnectorMappingDel // GetTime returns the Time field value if set, zero value otherwise. func (o *VendorConnectorMappingDeletedAt) GetTime() time.Time { - if o == nil || isNil(o.Time) { + if o == nil || IsNil(o.Time) { var ret time.Time return ret } @@ -62,7 +62,7 @@ func (o *VendorConnectorMappingDeletedAt) GetTime() time.Time { // GetTimeOk returns a tuple with the Time field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VendorConnectorMappingDeletedAt) GetTimeOk() (*time.Time, bool) { - if o == nil || isNil(o.Time) { + if o == nil || IsNil(o.Time) { return nil, false } return o.Time, true @@ -70,7 +70,7 @@ func (o *VendorConnectorMappingDeletedAt) GetTimeOk() (*time.Time, bool) { // HasTime returns a boolean if a field has been set. func (o *VendorConnectorMappingDeletedAt) HasTime() bool { - if o != nil && !isNil(o.Time) { + if o != nil && !IsNil(o.Time) { return true } @@ -84,7 +84,7 @@ func (o *VendorConnectorMappingDeletedAt) SetTime(v time.Time) { // GetValid returns the Valid field value if set, zero value otherwise. func (o *VendorConnectorMappingDeletedAt) GetValid() bool { - if o == nil || isNil(o.Valid) { + if o == nil || IsNil(o.Valid) { var ret bool return ret } @@ -94,7 +94,7 @@ func (o *VendorConnectorMappingDeletedAt) GetValid() bool { // GetValidOk returns a tuple with the Valid field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VendorConnectorMappingDeletedAt) GetValidOk() (*bool, bool) { - if o == nil || isNil(o.Valid) { + if o == nil || IsNil(o.Valid) { return nil, false } return o.Valid, true @@ -102,7 +102,7 @@ func (o *VendorConnectorMappingDeletedAt) GetValidOk() (*bool, bool) { // HasValid returns a boolean if a field has been set. func (o *VendorConnectorMappingDeletedAt) HasValid() bool { - if o != nil && !isNil(o.Valid) { + if o != nil && !IsNil(o.Valid) { return true } @@ -124,10 +124,10 @@ func (o VendorConnectorMappingDeletedAt) MarshalJSON() ([]byte, error) { func (o VendorConnectorMappingDeletedAt) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Time) { + if !IsNil(o.Time) { toSerialize["Time"] = o.Time } - if !isNil(o.Valid) { + if !IsNil(o.Valid) { toSerialize["Valid"] = o.Valid } @@ -138,16 +138,20 @@ func (o VendorConnectorMappingDeletedAt) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *VendorConnectorMappingDeletedAt) UnmarshalJSON(bytes []byte) (err error) { +func (o *VendorConnectorMappingDeletedAt) UnmarshalJSON(data []byte) (err error) { varVendorConnectorMappingDeletedAt := _VendorConnectorMappingDeletedAt{} - if err = json.Unmarshal(bytes, &varVendorConnectorMappingDeletedAt); err == nil { + err = json.Unmarshal(data, &varVendorConnectorMappingDeletedAt) + + if err != nil { + return err + } + *o = VendorConnectorMappingDeletedAt(varVendorConnectorMappingDeletedAt) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "Time") delete(additionalProperties, "Valid") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_vendor_connector_mapping_deleted_by.go b/api_v3/model_vendor_connector_mapping_deleted_by.go index 0eeddf2d5..61774cb94 100644 --- a/api_v3/model_vendor_connector_mapping_deleted_by.go +++ b/api_v3/model_vendor_connector_mapping_deleted_by.go @@ -51,7 +51,7 @@ func NewVendorConnectorMappingDeletedByWithDefaults() *VendorConnectorMappingDel // GetString returns the String field value if set, zero value otherwise. func (o *VendorConnectorMappingDeletedBy) GetString() string { - if o == nil || isNil(o.String) { + if o == nil || IsNil(o.String) { var ret string return ret } @@ -61,7 +61,7 @@ func (o *VendorConnectorMappingDeletedBy) GetString() string { // GetStringOk returns a tuple with the String field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VendorConnectorMappingDeletedBy) GetStringOk() (*string, bool) { - if o == nil || isNil(o.String) { + if o == nil || IsNil(o.String) { return nil, false } return o.String, true @@ -69,7 +69,7 @@ func (o *VendorConnectorMappingDeletedBy) GetStringOk() (*string, bool) { // HasString returns a boolean if a field has been set. func (o *VendorConnectorMappingDeletedBy) HasString() bool { - if o != nil && !isNil(o.String) { + if o != nil && !IsNil(o.String) { return true } @@ -83,7 +83,7 @@ func (o *VendorConnectorMappingDeletedBy) SetString(v string) { // GetValid returns the Valid field value if set, zero value otherwise. func (o *VendorConnectorMappingDeletedBy) GetValid() bool { - if o == nil || isNil(o.Valid) { + if o == nil || IsNil(o.Valid) { var ret bool return ret } @@ -93,7 +93,7 @@ func (o *VendorConnectorMappingDeletedBy) GetValid() bool { // GetValidOk returns a tuple with the Valid field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VendorConnectorMappingDeletedBy) GetValidOk() (*bool, bool) { - if o == nil || isNil(o.Valid) { + if o == nil || IsNil(o.Valid) { return nil, false } return o.Valid, true @@ -101,7 +101,7 @@ func (o *VendorConnectorMappingDeletedBy) GetValidOk() (*bool, bool) { // HasValid returns a boolean if a field has been set. func (o *VendorConnectorMappingDeletedBy) HasValid() bool { - if o != nil && !isNil(o.Valid) { + if o != nil && !IsNil(o.Valid) { return true } @@ -123,10 +123,10 @@ func (o VendorConnectorMappingDeletedBy) MarshalJSON() ([]byte, error) { func (o VendorConnectorMappingDeletedBy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.String) { + if !IsNil(o.String) { toSerialize["String"] = o.String } - if !isNil(o.Valid) { + if !IsNil(o.Valid) { toSerialize["Valid"] = o.Valid } @@ -137,16 +137,20 @@ func (o VendorConnectorMappingDeletedBy) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *VendorConnectorMappingDeletedBy) UnmarshalJSON(bytes []byte) (err error) { +func (o *VendorConnectorMappingDeletedBy) UnmarshalJSON(data []byte) (err error) { varVendorConnectorMappingDeletedBy := _VendorConnectorMappingDeletedBy{} - if err = json.Unmarshal(bytes, &varVendorConnectorMappingDeletedBy); err == nil { + err = json.Unmarshal(data, &varVendorConnectorMappingDeletedBy) + + if err != nil { + return err + } + *o = VendorConnectorMappingDeletedBy(varVendorConnectorMappingDeletedBy) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "String") delete(additionalProperties, "Valid") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_vendor_connector_mapping_updated_at.go b/api_v3/model_vendor_connector_mapping_updated_at.go index af190a7b1..832758f2c 100644 --- a/api_v3/model_vendor_connector_mapping_updated_at.go +++ b/api_v3/model_vendor_connector_mapping_updated_at.go @@ -52,7 +52,7 @@ func NewVendorConnectorMappingUpdatedAtWithDefaults() *VendorConnectorMappingUpd // GetTime returns the Time field value if set, zero value otherwise. func (o *VendorConnectorMappingUpdatedAt) GetTime() time.Time { - if o == nil || isNil(o.Time) { + if o == nil || IsNil(o.Time) { var ret time.Time return ret } @@ -62,7 +62,7 @@ func (o *VendorConnectorMappingUpdatedAt) GetTime() time.Time { // GetTimeOk returns a tuple with the Time field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VendorConnectorMappingUpdatedAt) GetTimeOk() (*time.Time, bool) { - if o == nil || isNil(o.Time) { + if o == nil || IsNil(o.Time) { return nil, false } return o.Time, true @@ -70,7 +70,7 @@ func (o *VendorConnectorMappingUpdatedAt) GetTimeOk() (*time.Time, bool) { // HasTime returns a boolean if a field has been set. func (o *VendorConnectorMappingUpdatedAt) HasTime() bool { - if o != nil && !isNil(o.Time) { + if o != nil && !IsNil(o.Time) { return true } @@ -84,7 +84,7 @@ func (o *VendorConnectorMappingUpdatedAt) SetTime(v time.Time) { // GetValid returns the Valid field value if set, zero value otherwise. func (o *VendorConnectorMappingUpdatedAt) GetValid() bool { - if o == nil || isNil(o.Valid) { + if o == nil || IsNil(o.Valid) { var ret bool return ret } @@ -94,7 +94,7 @@ func (o *VendorConnectorMappingUpdatedAt) GetValid() bool { // GetValidOk returns a tuple with the Valid field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VendorConnectorMappingUpdatedAt) GetValidOk() (*bool, bool) { - if o == nil || isNil(o.Valid) { + if o == nil || IsNil(o.Valid) { return nil, false } return o.Valid, true @@ -102,7 +102,7 @@ func (o *VendorConnectorMappingUpdatedAt) GetValidOk() (*bool, bool) { // HasValid returns a boolean if a field has been set. func (o *VendorConnectorMappingUpdatedAt) HasValid() bool { - if o != nil && !isNil(o.Valid) { + if o != nil && !IsNil(o.Valid) { return true } @@ -124,10 +124,10 @@ func (o VendorConnectorMappingUpdatedAt) MarshalJSON() ([]byte, error) { func (o VendorConnectorMappingUpdatedAt) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Time) { + if !IsNil(o.Time) { toSerialize["Time"] = o.Time } - if !isNil(o.Valid) { + if !IsNil(o.Valid) { toSerialize["Valid"] = o.Valid } @@ -138,16 +138,20 @@ func (o VendorConnectorMappingUpdatedAt) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *VendorConnectorMappingUpdatedAt) UnmarshalJSON(bytes []byte) (err error) { +func (o *VendorConnectorMappingUpdatedAt) UnmarshalJSON(data []byte) (err error) { varVendorConnectorMappingUpdatedAt := _VendorConnectorMappingUpdatedAt{} - if err = json.Unmarshal(bytes, &varVendorConnectorMappingUpdatedAt); err == nil { + err = json.Unmarshal(data, &varVendorConnectorMappingUpdatedAt) + + if err != nil { + return err + } + *o = VendorConnectorMappingUpdatedAt(varVendorConnectorMappingUpdatedAt) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "Time") delete(additionalProperties, "Valid") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_vendor_connector_mapping_updated_by.go b/api_v3/model_vendor_connector_mapping_updated_by.go index f4f8fbcdd..bbe09758f 100644 --- a/api_v3/model_vendor_connector_mapping_updated_by.go +++ b/api_v3/model_vendor_connector_mapping_updated_by.go @@ -51,7 +51,7 @@ func NewVendorConnectorMappingUpdatedByWithDefaults() *VendorConnectorMappingUpd // GetString returns the String field value if set, zero value otherwise. func (o *VendorConnectorMappingUpdatedBy) GetString() string { - if o == nil || isNil(o.String) { + if o == nil || IsNil(o.String) { var ret string return ret } @@ -61,7 +61,7 @@ func (o *VendorConnectorMappingUpdatedBy) GetString() string { // GetStringOk returns a tuple with the String field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VendorConnectorMappingUpdatedBy) GetStringOk() (*string, bool) { - if o == nil || isNil(o.String) { + if o == nil || IsNil(o.String) { return nil, false } return o.String, true @@ -69,7 +69,7 @@ func (o *VendorConnectorMappingUpdatedBy) GetStringOk() (*string, bool) { // HasString returns a boolean if a field has been set. func (o *VendorConnectorMappingUpdatedBy) HasString() bool { - if o != nil && !isNil(o.String) { + if o != nil && !IsNil(o.String) { return true } @@ -83,7 +83,7 @@ func (o *VendorConnectorMappingUpdatedBy) SetString(v string) { // GetValid returns the Valid field value if set, zero value otherwise. func (o *VendorConnectorMappingUpdatedBy) GetValid() bool { - if o == nil || isNil(o.Valid) { + if o == nil || IsNil(o.Valid) { var ret bool return ret } @@ -93,7 +93,7 @@ func (o *VendorConnectorMappingUpdatedBy) GetValid() bool { // GetValidOk returns a tuple with the Valid field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VendorConnectorMappingUpdatedBy) GetValidOk() (*bool, bool) { - if o == nil || isNil(o.Valid) { + if o == nil || IsNil(o.Valid) { return nil, false } return o.Valid, true @@ -101,7 +101,7 @@ func (o *VendorConnectorMappingUpdatedBy) GetValidOk() (*bool, bool) { // HasValid returns a boolean if a field has been set. func (o *VendorConnectorMappingUpdatedBy) HasValid() bool { - if o != nil && !isNil(o.Valid) { + if o != nil && !IsNil(o.Valid) { return true } @@ -123,10 +123,10 @@ func (o VendorConnectorMappingUpdatedBy) MarshalJSON() ([]byte, error) { func (o VendorConnectorMappingUpdatedBy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.String) { + if !IsNil(o.String) { toSerialize["String"] = o.String } - if !isNil(o.Valid) { + if !IsNil(o.Valid) { toSerialize["Valid"] = o.Valid } @@ -137,16 +137,20 @@ func (o VendorConnectorMappingUpdatedBy) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *VendorConnectorMappingUpdatedBy) UnmarshalJSON(bytes []byte) (err error) { +func (o *VendorConnectorMappingUpdatedBy) UnmarshalJSON(data []byte) (err error) { varVendorConnectorMappingUpdatedBy := _VendorConnectorMappingUpdatedBy{} - if err = json.Unmarshal(bytes, &varVendorConnectorMappingUpdatedBy); err == nil { + err = json.Unmarshal(data, &varVendorConnectorMappingUpdatedBy) + + if err != nil { + return err + } + *o = VendorConnectorMappingUpdatedBy(varVendorConnectorMappingUpdatedBy) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "String") delete(additionalProperties, "Valid") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_verification_poll_request.go b/api_v3/model_verification_poll_request.go index 9052a2691..51a0515d2 100644 --- a/api_v3/model_verification_poll_request.go +++ b/api_v3/model_verification_poll_request.go @@ -88,8 +88,8 @@ func (o VerificationPollRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *VerificationPollRequest) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *VerificationPollRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -98,7 +98,7 @@ func (o *VerificationPollRequest) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -112,13 +112,17 @@ func (o *VerificationPollRequest) UnmarshalJSON(bytes []byte) (err error) { varVerificationPollRequest := _VerificationPollRequest{} - if err = json.Unmarshal(bytes, &varVerificationPollRequest); err == nil { + err = json.Unmarshal(data, &varVerificationPollRequest) + + if err != nil { + return err + } + *o = VerificationPollRequest(varVerificationPollRequest) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "requestId") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_verification_response.go b/api_v3/model_verification_response.go index 6e93383b8..b51b2e97f 100644 --- a/api_v3/model_verification_response.go +++ b/api_v3/model_verification_response.go @@ -49,7 +49,7 @@ func NewVerificationResponseWithDefaults() *VerificationResponse { // GetRequestId returns the RequestId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VerificationResponse) GetRequestId() string { - if o == nil || isNil(o.RequestId.Get()) { + if o == nil || IsNil(o.RequestId.Get()) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *VerificationResponse) UnsetRequestId() { // GetStatus returns the Status field value if set, zero value otherwise. func (o *VerificationResponse) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -101,7 +101,7 @@ func (o *VerificationResponse) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VerificationResponse) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -109,7 +109,7 @@ func (o *VerificationResponse) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *VerificationResponse) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -123,7 +123,7 @@ func (o *VerificationResponse) SetStatus(v string) { // GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VerificationResponse) GetError() string { - if o == nil || isNil(o.Error.Get()) { + if o == nil || IsNil(o.Error.Get()) { var ret string return ret } @@ -176,7 +176,7 @@ func (o VerificationResponse) ToMap() (map[string]interface{}, error) { if o.RequestId.IsSet() { toSerialize["requestId"] = o.RequestId.Get() } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } if o.Error.IsSet() { @@ -190,16 +190,20 @@ func (o VerificationResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *VerificationResponse) UnmarshalJSON(bytes []byte) (err error) { +func (o *VerificationResponse) UnmarshalJSON(data []byte) (err error) { varVerificationResponse := _VerificationResponse{} - if err = json.Unmarshal(bytes, &varVerificationResponse); err == nil { + err = json.Unmarshal(data, &varVerificationResponse) + + if err != nil { + return err + } + *o = VerificationResponse(varVerificationResponse) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "requestId") delete(additionalProperties, "status") delete(additionalProperties, "error") diff --git a/api_v3/model_violation_context.go b/api_v3/model_violation_context.go index 21856fd14..0ccfa8e7a 100644 --- a/api_v3/model_violation_context.go +++ b/api_v3/model_violation_context.go @@ -45,7 +45,7 @@ func NewViolationContextWithDefaults() *ViolationContext { // GetPolicy returns the Policy field value if set, zero value otherwise. func (o *ViolationContext) GetPolicy() ViolationContextPolicy { - if o == nil || isNil(o.Policy) { + if o == nil || IsNil(o.Policy) { var ret ViolationContextPolicy return ret } @@ -55,7 +55,7 @@ func (o *ViolationContext) GetPolicy() ViolationContextPolicy { // GetPolicyOk returns a tuple with the Policy field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ViolationContext) GetPolicyOk() (*ViolationContextPolicy, bool) { - if o == nil || isNil(o.Policy) { + if o == nil || IsNil(o.Policy) { return nil, false } return o.Policy, true @@ -63,7 +63,7 @@ func (o *ViolationContext) GetPolicyOk() (*ViolationContextPolicy, bool) { // HasPolicy returns a boolean if a field has been set. func (o *ViolationContext) HasPolicy() bool { - if o != nil && !isNil(o.Policy) { + if o != nil && !IsNil(o.Policy) { return true } @@ -77,7 +77,7 @@ func (o *ViolationContext) SetPolicy(v ViolationContextPolicy) { // GetConflictingAccessCriteria returns the ConflictingAccessCriteria field value if set, zero value otherwise. func (o *ViolationContext) GetConflictingAccessCriteria() ExceptionAccessCriteria { - if o == nil || isNil(o.ConflictingAccessCriteria) { + if o == nil || IsNil(o.ConflictingAccessCriteria) { var ret ExceptionAccessCriteria return ret } @@ -87,7 +87,7 @@ func (o *ViolationContext) GetConflictingAccessCriteria() ExceptionAccessCriteri // GetConflictingAccessCriteriaOk returns a tuple with the ConflictingAccessCriteria field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ViolationContext) GetConflictingAccessCriteriaOk() (*ExceptionAccessCriteria, bool) { - if o == nil || isNil(o.ConflictingAccessCriteria) { + if o == nil || IsNil(o.ConflictingAccessCriteria) { return nil, false } return o.ConflictingAccessCriteria, true @@ -95,7 +95,7 @@ func (o *ViolationContext) GetConflictingAccessCriteriaOk() (*ExceptionAccessCri // HasConflictingAccessCriteria returns a boolean if a field has been set. func (o *ViolationContext) HasConflictingAccessCriteria() bool { - if o != nil && !isNil(o.ConflictingAccessCriteria) { + if o != nil && !IsNil(o.ConflictingAccessCriteria) { return true } @@ -117,10 +117,10 @@ func (o ViolationContext) MarshalJSON() ([]byte, error) { func (o ViolationContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Policy) { + if !IsNil(o.Policy) { toSerialize["policy"] = o.Policy } - if !isNil(o.ConflictingAccessCriteria) { + if !IsNil(o.ConflictingAccessCriteria) { toSerialize["conflictingAccessCriteria"] = o.ConflictingAccessCriteria } @@ -131,16 +131,20 @@ func (o ViolationContext) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ViolationContext) UnmarshalJSON(bytes []byte) (err error) { +func (o *ViolationContext) UnmarshalJSON(data []byte) (err error) { varViolationContext := _ViolationContext{} - if err = json.Unmarshal(bytes, &varViolationContext); err == nil { + err = json.Unmarshal(data, &varViolationContext) + + if err != nil { + return err + } + *o = ViolationContext(varViolationContext) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "policy") delete(additionalProperties, "conflictingAccessCriteria") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_violation_context_policy.go b/api_v3/model_violation_context_policy.go index 18b0fac2e..e625819f6 100644 --- a/api_v3/model_violation_context_policy.go +++ b/api_v3/model_violation_context_policy.go @@ -48,7 +48,7 @@ func NewViolationContextPolicyWithDefaults() *ViolationContextPolicy { // GetType returns the Type field value if set, zero value otherwise. func (o *ViolationContextPolicy) GetType() map[string]interface{} { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret map[string]interface{} return ret } @@ -58,7 +58,7 @@ func (o *ViolationContextPolicy) GetType() map[string]interface{} { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ViolationContextPolicy) GetTypeOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return map[string]interface{}{}, false } return o.Type, true @@ -66,7 +66,7 @@ func (o *ViolationContextPolicy) GetTypeOk() (map[string]interface{}, bool) { // HasType returns a boolean if a field has been set. func (o *ViolationContextPolicy) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -80,7 +80,7 @@ func (o *ViolationContextPolicy) SetType(v map[string]interface{}) { // GetId returns the Id field value if set, zero value otherwise. func (o *ViolationContextPolicy) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -90,7 +90,7 @@ func (o *ViolationContextPolicy) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ViolationContextPolicy) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -98,7 +98,7 @@ func (o *ViolationContextPolicy) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ViolationContextPolicy) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -112,7 +112,7 @@ func (o *ViolationContextPolicy) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *ViolationContextPolicy) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -122,7 +122,7 @@ func (o *ViolationContextPolicy) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ViolationContextPolicy) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -130,7 +130,7 @@ func (o *ViolationContextPolicy) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ViolationContextPolicy) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -152,13 +152,13 @@ func (o ViolationContextPolicy) MarshalJSON() ([]byte, error) { func (o ViolationContextPolicy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -169,16 +169,20 @@ func (o ViolationContextPolicy) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ViolationContextPolicy) UnmarshalJSON(bytes []byte) (err error) { +func (o *ViolationContextPolicy) UnmarshalJSON(data []byte) (err error) { varViolationContextPolicy := _ViolationContextPolicy{} - if err = json.Unmarshal(bytes, &varViolationContextPolicy); err == nil { + err = json.Unmarshal(data, &varViolationContextPolicy) + + if err != nil { + return err + } + *o = ViolationContextPolicy(varViolationContextPolicy) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_violation_owner_assignment_config.go b/api_v3/model_violation_owner_assignment_config.go index 09b5ca208..06db85c00 100644 --- a/api_v3/model_violation_owner_assignment_config.go +++ b/api_v3/model_violation_owner_assignment_config.go @@ -46,7 +46,7 @@ func NewViolationOwnerAssignmentConfigWithDefaults() *ViolationOwnerAssignmentCo // GetAssignmentRule returns the AssignmentRule field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ViolationOwnerAssignmentConfig) GetAssignmentRule() string { - if o == nil || isNil(o.AssignmentRule.Get()) { + if o == nil || IsNil(o.AssignmentRule.Get()) { var ret string return ret } @@ -88,7 +88,7 @@ func (o *ViolationOwnerAssignmentConfig) UnsetAssignmentRule() { // GetOwnerRef returns the OwnerRef field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ViolationOwnerAssignmentConfig) GetOwnerRef() ViolationOwnerAssignmentConfigOwnerRef { - if o == nil || isNil(o.OwnerRef.Get()) { + if o == nil || IsNil(o.OwnerRef.Get()) { var ret ViolationOwnerAssignmentConfigOwnerRef return ret } @@ -152,16 +152,20 @@ func (o ViolationOwnerAssignmentConfig) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *ViolationOwnerAssignmentConfig) UnmarshalJSON(bytes []byte) (err error) { +func (o *ViolationOwnerAssignmentConfig) UnmarshalJSON(data []byte) (err error) { varViolationOwnerAssignmentConfig := _ViolationOwnerAssignmentConfig{} - if err = json.Unmarshal(bytes, &varViolationOwnerAssignmentConfig); err == nil { + err = json.Unmarshal(data, &varViolationOwnerAssignmentConfig) + + if err != nil { + return err + } + *o = ViolationOwnerAssignmentConfig(varViolationOwnerAssignmentConfig) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "assignmentRule") delete(additionalProperties, "ownerRef") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_violation_owner_assignment_config_owner_ref.go b/api_v3/model_violation_owner_assignment_config_owner_ref.go index 13812d8ac..6b94011c0 100644 --- a/api_v3/model_violation_owner_assignment_config_owner_ref.go +++ b/api_v3/model_violation_owner_assignment_config_owner_ref.go @@ -49,7 +49,7 @@ func NewViolationOwnerAssignmentConfigOwnerRefWithDefaults() *ViolationOwnerAssi // GetType returns the Type field value if set, zero value otherwise. func (o *ViolationOwnerAssignmentConfigOwnerRef) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *ViolationOwnerAssignmentConfigOwnerRef) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ViolationOwnerAssignmentConfigOwnerRef) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *ViolationOwnerAssignmentConfigOwnerRef) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *ViolationOwnerAssignmentConfigOwnerRef) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *ViolationOwnerAssignmentConfigOwnerRef) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *ViolationOwnerAssignmentConfigOwnerRef) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *ViolationOwnerAssignmentConfigOwnerRef) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ViolationOwnerAssignmentConfigOwnerRef) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *ViolationOwnerAssignmentConfigOwnerRef) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ViolationOwnerAssignmentConfigOwnerRef) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *ViolationOwnerAssignmentConfigOwnerRef) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *ViolationOwnerAssignmentConfigOwnerRef) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *ViolationOwnerAssignmentConfigOwnerRef) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ViolationOwnerAssignmentConfigOwnerRef) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *ViolationOwnerAssignmentConfigOwnerRef) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ViolationOwnerAssignmentConfigOwnerRef) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o ViolationOwnerAssignmentConfigOwnerRef) MarshalJSON() ([]byte, error) { func (o ViolationOwnerAssignmentConfigOwnerRef) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o ViolationOwnerAssignmentConfigOwnerRef) ToMap() (map[string]interface{}, return toSerialize, nil } -func (o *ViolationOwnerAssignmentConfigOwnerRef) UnmarshalJSON(bytes []byte) (err error) { +func (o *ViolationOwnerAssignmentConfigOwnerRef) UnmarshalJSON(data []byte) (err error) { varViolationOwnerAssignmentConfigOwnerRef := _ViolationOwnerAssignmentConfigOwnerRef{} - if err = json.Unmarshal(bytes, &varViolationOwnerAssignmentConfigOwnerRef); err == nil { + err = json.Unmarshal(data, &varViolationOwnerAssignmentConfigOwnerRef) + + if err != nil { + return err + } + *o = ViolationOwnerAssignmentConfigOwnerRef(varViolationOwnerAssignmentConfigOwnerRef) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_violation_prediction.go b/api_v3/model_violation_prediction.go index 3403b38dd..c2c3d551b 100644 --- a/api_v3/model_violation_prediction.go +++ b/api_v3/model_violation_prediction.go @@ -45,7 +45,7 @@ func NewViolationPredictionWithDefaults() *ViolationPrediction { // GetViolationContexts returns the ViolationContexts field value if set, zero value otherwise. func (o *ViolationPrediction) GetViolationContexts() []ViolationContext { - if o == nil || isNil(o.ViolationContexts) { + if o == nil || IsNil(o.ViolationContexts) { var ret []ViolationContext return ret } @@ -55,7 +55,7 @@ func (o *ViolationPrediction) GetViolationContexts() []ViolationContext { // GetViolationContextsOk returns a tuple with the ViolationContexts field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ViolationPrediction) GetViolationContextsOk() ([]ViolationContext, bool) { - if o == nil || isNil(o.ViolationContexts) { + if o == nil || IsNil(o.ViolationContexts) { return nil, false } return o.ViolationContexts, true @@ -63,7 +63,7 @@ func (o *ViolationPrediction) GetViolationContextsOk() ([]ViolationContext, bool // HasViolationContexts returns a boolean if a field has been set. func (o *ViolationPrediction) HasViolationContexts() bool { - if o != nil && !isNil(o.ViolationContexts) { + if o != nil && !IsNil(o.ViolationContexts) { return true } @@ -85,7 +85,7 @@ func (o ViolationPrediction) MarshalJSON() ([]byte, error) { func (o ViolationPrediction) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.ViolationContexts) { + if !IsNil(o.ViolationContexts) { toSerialize["violationContexts"] = o.ViolationContexts } @@ -96,16 +96,20 @@ func (o ViolationPrediction) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ViolationPrediction) UnmarshalJSON(bytes []byte) (err error) { +func (o *ViolationPrediction) UnmarshalJSON(data []byte) (err error) { varViolationPrediction := _ViolationPrediction{} - if err = json.Unmarshal(bytes, &varViolationPrediction); err == nil { + err = json.Unmarshal(data, &varViolationPrediction) + + if err != nil { + return err + } + *o = ViolationPrediction(varViolationPrediction) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "violationContexts") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_visibility_criteria.go b/api_v3/model_visibility_criteria.go index f54cb8e71..887dcf45e 100644 --- a/api_v3/model_visibility_criteria.go +++ b/api_v3/model_visibility_criteria.go @@ -44,7 +44,7 @@ func NewVisibilityCriteriaWithDefaults() *VisibilityCriteria { // GetExpression returns the Expression field value if set, zero value otherwise. func (o *VisibilityCriteria) GetExpression() Expression { - if o == nil || isNil(o.Expression) { + if o == nil || IsNil(o.Expression) { var ret Expression return ret } @@ -54,7 +54,7 @@ func (o *VisibilityCriteria) GetExpression() Expression { // GetExpressionOk returns a tuple with the Expression field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VisibilityCriteria) GetExpressionOk() (*Expression, bool) { - if o == nil || isNil(o.Expression) { + if o == nil || IsNil(o.Expression) { return nil, false } return o.Expression, true @@ -62,7 +62,7 @@ func (o *VisibilityCriteria) GetExpressionOk() (*Expression, bool) { // HasExpression returns a boolean if a field has been set. func (o *VisibilityCriteria) HasExpression() bool { - if o != nil && !isNil(o.Expression) { + if o != nil && !IsNil(o.Expression) { return true } @@ -84,7 +84,7 @@ func (o VisibilityCriteria) MarshalJSON() ([]byte, error) { func (o VisibilityCriteria) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Expression) { + if !IsNil(o.Expression) { toSerialize["expression"] = o.Expression } @@ -95,16 +95,20 @@ func (o VisibilityCriteria) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *VisibilityCriteria) UnmarshalJSON(bytes []byte) (err error) { +func (o *VisibilityCriteria) UnmarshalJSON(data []byte) (err error) { varVisibilityCriteria := _VisibilityCriteria{} - if err = json.Unmarshal(bytes, &varVisibilityCriteria); err == nil { + err = json.Unmarshal(data, &varVisibilityCriteria) + + if err != nil { + return err + } + *o = VisibilityCriteria(varVisibilityCriteria) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "expression") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_work_item_forward.go b/api_v3/model_work_item_forward.go index 2242eae8c..1c08d7e69 100644 --- a/api_v3/model_work_item_forward.go +++ b/api_v3/model_work_item_forward.go @@ -104,7 +104,7 @@ func (o *WorkItemForward) SetComment(v string) { // GetSendNotifications returns the SendNotifications field value if set, zero value otherwise. func (o *WorkItemForward) GetSendNotifications() bool { - if o == nil || isNil(o.SendNotifications) { + if o == nil || IsNil(o.SendNotifications) { var ret bool return ret } @@ -114,7 +114,7 @@ func (o *WorkItemForward) GetSendNotifications() bool { // GetSendNotificationsOk returns a tuple with the SendNotifications field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkItemForward) GetSendNotificationsOk() (*bool, bool) { - if o == nil || isNil(o.SendNotifications) { + if o == nil || IsNil(o.SendNotifications) { return nil, false } return o.SendNotifications, true @@ -122,7 +122,7 @@ func (o *WorkItemForward) GetSendNotificationsOk() (*bool, bool) { // HasSendNotifications returns a boolean if a field has been set. func (o *WorkItemForward) HasSendNotifications() bool { - if o != nil && !isNil(o.SendNotifications) { + if o != nil && !IsNil(o.SendNotifications) { return true } @@ -146,7 +146,7 @@ func (o WorkItemForward) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["targetOwnerId"] = o.TargetOwnerId toSerialize["comment"] = o.Comment - if !isNil(o.SendNotifications) { + if !IsNil(o.SendNotifications) { toSerialize["sendNotifications"] = o.SendNotifications } @@ -157,8 +157,8 @@ func (o WorkItemForward) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkItemForward) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *WorkItemForward) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -168,7 +168,7 @@ func (o *WorkItemForward) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -182,13 +182,17 @@ func (o *WorkItemForward) UnmarshalJSON(bytes []byte) (err error) { varWorkItemForward := _WorkItemForward{} - if err = json.Unmarshal(bytes, &varWorkItemForward); err == nil { + err = json.Unmarshal(data, &varWorkItemForward) + + if err != nil { + return err + } + *o = WorkItemForward(varWorkItemForward) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "targetOwnerId") delete(additionalProperties, "comment") delete(additionalProperties, "sendNotifications") diff --git a/api_v3/model_work_items.go b/api_v3/model_work_items.go index e1d7dedfd..2415b2aa8 100644 --- a/api_v3/model_work_items.go +++ b/api_v3/model_work_items.go @@ -75,7 +75,7 @@ func NewWorkItemsWithDefaults() *WorkItems { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkItems) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -85,7 +85,7 @@ func (o *WorkItems) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkItems) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -93,7 +93,7 @@ func (o *WorkItems) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkItems) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -107,7 +107,7 @@ func (o *WorkItems) SetId(v string) { // GetRequesterId returns the RequesterId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkItems) GetRequesterId() string { - if o == nil || isNil(o.RequesterId.Get()) { + if o == nil || IsNil(o.RequesterId.Get()) { var ret string return ret } @@ -149,7 +149,7 @@ func (o *WorkItems) UnsetRequesterId() { // GetRequesterDisplayName returns the RequesterDisplayName field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkItems) GetRequesterDisplayName() string { - if o == nil || isNil(o.RequesterDisplayName.Get()) { + if o == nil || IsNil(o.RequesterDisplayName.Get()) { var ret string return ret } @@ -191,7 +191,7 @@ func (o *WorkItems) UnsetRequesterDisplayName() { // GetOwnerId returns the OwnerId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkItems) GetOwnerId() string { - if o == nil || isNil(o.OwnerId.Get()) { + if o == nil || IsNil(o.OwnerId.Get()) { var ret string return ret } @@ -233,7 +233,7 @@ func (o *WorkItems) UnsetOwnerId() { // GetOwnerName returns the OwnerName field value if set, zero value otherwise. func (o *WorkItems) GetOwnerName() string { - if o == nil || isNil(o.OwnerName) { + if o == nil || IsNil(o.OwnerName) { var ret string return ret } @@ -243,7 +243,7 @@ func (o *WorkItems) GetOwnerName() string { // GetOwnerNameOk returns a tuple with the OwnerName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkItems) GetOwnerNameOk() (*string, bool) { - if o == nil || isNil(o.OwnerName) { + if o == nil || IsNil(o.OwnerName) { return nil, false } return o.OwnerName, true @@ -251,7 +251,7 @@ func (o *WorkItems) GetOwnerNameOk() (*string, bool) { // HasOwnerName returns a boolean if a field has been set. func (o *WorkItems) HasOwnerName() bool { - if o != nil && !isNil(o.OwnerName) { + if o != nil && !IsNil(o.OwnerName) { return true } @@ -265,7 +265,7 @@ func (o *WorkItems) SetOwnerName(v string) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *WorkItems) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -275,7 +275,7 @@ func (o *WorkItems) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkItems) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -283,7 +283,7 @@ func (o *WorkItems) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *WorkItems) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -297,7 +297,7 @@ func (o *WorkItems) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkItems) GetModified() time.Time { - if o == nil || isNil(o.Modified.Get()) { + if o == nil || IsNil(o.Modified.Get()) { var ret time.Time return ret } @@ -339,7 +339,7 @@ func (o *WorkItems) UnsetModified() { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkItems) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -349,7 +349,7 @@ func (o *WorkItems) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkItems) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -357,7 +357,7 @@ func (o *WorkItems) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkItems) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -371,7 +371,7 @@ func (o *WorkItems) SetDescription(v string) { // GetState returns the State field value if set, zero value otherwise. func (o *WorkItems) GetState() WorkItemStateManualWorkItems { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { var ret WorkItemStateManualWorkItems return ret } @@ -381,7 +381,7 @@ func (o *WorkItems) GetState() WorkItemStateManualWorkItems { // GetStateOk returns a tuple with the State field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkItems) GetStateOk() (*WorkItemStateManualWorkItems, bool) { - if o == nil || isNil(o.State) { + if o == nil || IsNil(o.State) { return nil, false } return o.State, true @@ -389,7 +389,7 @@ func (o *WorkItems) GetStateOk() (*WorkItemStateManualWorkItems, bool) { // HasState returns a boolean if a field has been set. func (o *WorkItems) HasState() bool { - if o != nil && !isNil(o.State) { + if o != nil && !IsNil(o.State) { return true } @@ -403,7 +403,7 @@ func (o *WorkItems) SetState(v WorkItemStateManualWorkItems) { // GetType returns the Type field value if set, zero value otherwise. func (o *WorkItems) GetType() WorkItemTypeManualWorkItems { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret WorkItemTypeManualWorkItems return ret } @@ -413,7 +413,7 @@ func (o *WorkItems) GetType() WorkItemTypeManualWorkItems { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkItems) GetTypeOk() (*WorkItemTypeManualWorkItems, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -421,7 +421,7 @@ func (o *WorkItems) GetTypeOk() (*WorkItemTypeManualWorkItems, bool) { // HasType returns a boolean if a field has been set. func (o *WorkItems) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -446,7 +446,7 @@ func (o *WorkItems) GetRemediationItems() []RemediationItemDetails { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WorkItems) GetRemediationItemsOk() ([]RemediationItemDetails, bool) { - if o == nil || isNil(o.RemediationItems) { + if o == nil || IsNil(o.RemediationItems) { return nil, false } return o.RemediationItems, true @@ -454,7 +454,7 @@ func (o *WorkItems) GetRemediationItemsOk() ([]RemediationItemDetails, bool) { // HasRemediationItems returns a boolean if a field has been set. func (o *WorkItems) HasRemediationItems() bool { - if o != nil && isNil(o.RemediationItems) { + if o != nil && !IsNil(o.RemediationItems) { return true } @@ -479,7 +479,7 @@ func (o *WorkItems) GetApprovalItems() []ApprovalItemDetails { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WorkItems) GetApprovalItemsOk() ([]ApprovalItemDetails, bool) { - if o == nil || isNil(o.ApprovalItems) { + if o == nil || IsNil(o.ApprovalItems) { return nil, false } return o.ApprovalItems, true @@ -487,7 +487,7 @@ func (o *WorkItems) GetApprovalItemsOk() ([]ApprovalItemDetails, bool) { // HasApprovalItems returns a boolean if a field has been set. func (o *WorkItems) HasApprovalItems() bool { - if o != nil && isNil(o.ApprovalItems) { + if o != nil && !IsNil(o.ApprovalItems) { return true } @@ -501,7 +501,7 @@ func (o *WorkItems) SetApprovalItems(v []ApprovalItemDetails) { // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkItems) GetName() string { - if o == nil || isNil(o.Name.Get()) { + if o == nil || IsNil(o.Name.Get()) { var ret string return ret } @@ -543,7 +543,7 @@ func (o *WorkItems) UnsetName() { // GetCompleted returns the Completed field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkItems) GetCompleted() time.Time { - if o == nil || isNil(o.Completed.Get()) { + if o == nil || IsNil(o.Completed.Get()) { var ret time.Time return ret } @@ -585,7 +585,7 @@ func (o *WorkItems) UnsetCompleted() { // GetNumItems returns the NumItems field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkItems) GetNumItems() int32 { - if o == nil || isNil(o.NumItems.Get()) { + if o == nil || IsNil(o.NumItems.Get()) { var ret int32 return ret } @@ -627,7 +627,7 @@ func (o *WorkItems) UnsetNumItems() { // GetForm returns the Form field value if set, zero value otherwise. func (o *WorkItems) GetForm() WorkItemsForm { - if o == nil || isNil(o.Form) { + if o == nil || IsNil(o.Form) { var ret WorkItemsForm return ret } @@ -637,7 +637,7 @@ func (o *WorkItems) GetForm() WorkItemsForm { // GetFormOk returns a tuple with the Form field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkItems) GetFormOk() (*WorkItemsForm, bool) { - if o == nil || isNil(o.Form) { + if o == nil || IsNil(o.Form) { return nil, false } return o.Form, true @@ -645,7 +645,7 @@ func (o *WorkItems) GetFormOk() (*WorkItemsForm, bool) { // HasForm returns a boolean if a field has been set. func (o *WorkItems) HasForm() bool { - if o != nil && !isNil(o.Form) { + if o != nil && !IsNil(o.Form) { return true } @@ -659,7 +659,7 @@ func (o *WorkItems) SetForm(v WorkItemsForm) { // GetErrors returns the Errors field value if set, zero value otherwise. func (o *WorkItems) GetErrors() []string { - if o == nil || isNil(o.Errors) { + if o == nil || IsNil(o.Errors) { var ret []string return ret } @@ -669,7 +669,7 @@ func (o *WorkItems) GetErrors() []string { // GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkItems) GetErrorsOk() ([]string, bool) { - if o == nil || isNil(o.Errors) { + if o == nil || IsNil(o.Errors) { return nil, false } return o.Errors, true @@ -677,7 +677,7 @@ func (o *WorkItems) GetErrorsOk() ([]string, bool) { // HasErrors returns a boolean if a field has been set. func (o *WorkItems) HasErrors() bool { - if o != nil && !isNil(o.Errors) { + if o != nil && !IsNil(o.Errors) { return true } @@ -699,7 +699,7 @@ func (o WorkItems) MarshalJSON() ([]byte, error) { func (o WorkItems) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } if o.RequesterId.IsSet() { @@ -711,22 +711,22 @@ func (o WorkItems) ToMap() (map[string]interface{}, error) { if o.OwnerId.IsSet() { toSerialize["ownerId"] = o.OwnerId.Get() } - if !isNil(o.OwnerName) { + if !IsNil(o.OwnerName) { toSerialize["ownerName"] = o.OwnerName } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } if o.Modified.IsSet() { toSerialize["modified"] = o.Modified.Get() } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.State) { + if !IsNil(o.State) { toSerialize["state"] = o.State } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } if o.RemediationItems != nil { @@ -744,10 +744,10 @@ func (o WorkItems) ToMap() (map[string]interface{}, error) { if o.NumItems.IsSet() { toSerialize["numItems"] = o.NumItems.Get() } - if !isNil(o.Form) { + if !IsNil(o.Form) { toSerialize["form"] = o.Form } - if !isNil(o.Errors) { + if !IsNil(o.Errors) { toSerialize["errors"] = o.Errors } @@ -758,16 +758,20 @@ func (o WorkItems) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkItems) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkItems) UnmarshalJSON(data []byte) (err error) { varWorkItems := _WorkItems{} - if err = json.Unmarshal(bytes, &varWorkItems); err == nil { + err = json.Unmarshal(data, &varWorkItems) + + if err != nil { + return err + } + *o = WorkItems(varWorkItems) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "requesterId") delete(additionalProperties, "requesterDisplayName") diff --git a/api_v3/model_work_items_count.go b/api_v3/model_work_items_count.go index d871c00ef..81344fa05 100644 --- a/api_v3/model_work_items_count.go +++ b/api_v3/model_work_items_count.go @@ -45,7 +45,7 @@ func NewWorkItemsCountWithDefaults() *WorkItemsCount { // GetCount returns the Count field value if set, zero value otherwise. func (o *WorkItemsCount) GetCount() int32 { - if o == nil || isNil(o.Count) { + if o == nil || IsNil(o.Count) { var ret int32 return ret } @@ -55,7 +55,7 @@ func (o *WorkItemsCount) GetCount() int32 { // GetCountOk returns a tuple with the Count field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkItemsCount) GetCountOk() (*int32, bool) { - if o == nil || isNil(o.Count) { + if o == nil || IsNil(o.Count) { return nil, false } return o.Count, true @@ -63,7 +63,7 @@ func (o *WorkItemsCount) GetCountOk() (*int32, bool) { // HasCount returns a boolean if a field has been set. func (o *WorkItemsCount) HasCount() bool { - if o != nil && !isNil(o.Count) { + if o != nil && !IsNil(o.Count) { return true } @@ -85,7 +85,7 @@ func (o WorkItemsCount) MarshalJSON() ([]byte, error) { func (o WorkItemsCount) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Count) { + if !IsNil(o.Count) { toSerialize["count"] = o.Count } @@ -96,16 +96,20 @@ func (o WorkItemsCount) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkItemsCount) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkItemsCount) UnmarshalJSON(data []byte) (err error) { varWorkItemsCount := _WorkItemsCount{} - if err = json.Unmarshal(bytes, &varWorkItemsCount); err == nil { + err = json.Unmarshal(data, &varWorkItemsCount) + + if err != nil { + return err + } + *o = WorkItemsCount(varWorkItemsCount) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "count") o.AdditionalProperties = additionalProperties } diff --git a/api_v3/model_work_items_form.go b/api_v3/model_work_items_form.go index 4f6c1c057..04f508e48 100644 --- a/api_v3/model_work_items_form.go +++ b/api_v3/model_work_items_form.go @@ -55,7 +55,7 @@ func NewWorkItemsFormWithDefaults() *WorkItemsForm { // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkItemsForm) GetId() string { - if o == nil || isNil(o.Id.Get()) { + if o == nil || IsNil(o.Id.Get()) { var ret string return ret } @@ -97,7 +97,7 @@ func (o *WorkItemsForm) UnsetId() { // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkItemsForm) GetName() string { - if o == nil || isNil(o.Name.Get()) { + if o == nil || IsNil(o.Name.Get()) { var ret string return ret } @@ -139,7 +139,7 @@ func (o *WorkItemsForm) UnsetName() { // GetTitle returns the Title field value if set, zero value otherwise. func (o *WorkItemsForm) GetTitle() string { - if o == nil || isNil(o.Title) { + if o == nil || IsNil(o.Title) { var ret string return ret } @@ -149,7 +149,7 @@ func (o *WorkItemsForm) GetTitle() string { // GetTitleOk returns a tuple with the Title field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkItemsForm) GetTitleOk() (*string, bool) { - if o == nil || isNil(o.Title) { + if o == nil || IsNil(o.Title) { return nil, false } return o.Title, true @@ -157,7 +157,7 @@ func (o *WorkItemsForm) GetTitleOk() (*string, bool) { // HasTitle returns a boolean if a field has been set. func (o *WorkItemsForm) HasTitle() bool { - if o != nil && !isNil(o.Title) { + if o != nil && !IsNil(o.Title) { return true } @@ -171,7 +171,7 @@ func (o *WorkItemsForm) SetTitle(v string) { // GetSubtitle returns the Subtitle field value if set, zero value otherwise. func (o *WorkItemsForm) GetSubtitle() string { - if o == nil || isNil(o.Subtitle) { + if o == nil || IsNil(o.Subtitle) { var ret string return ret } @@ -181,7 +181,7 @@ func (o *WorkItemsForm) GetSubtitle() string { // GetSubtitleOk returns a tuple with the Subtitle field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkItemsForm) GetSubtitleOk() (*string, bool) { - if o == nil || isNil(o.Subtitle) { + if o == nil || IsNil(o.Subtitle) { return nil, false } return o.Subtitle, true @@ -189,7 +189,7 @@ func (o *WorkItemsForm) GetSubtitleOk() (*string, bool) { // HasSubtitle returns a boolean if a field has been set. func (o *WorkItemsForm) HasSubtitle() bool { - if o != nil && !isNil(o.Subtitle) { + if o != nil && !IsNil(o.Subtitle) { return true } @@ -203,7 +203,7 @@ func (o *WorkItemsForm) SetSubtitle(v string) { // GetTargetUser returns the TargetUser field value if set, zero value otherwise. func (o *WorkItemsForm) GetTargetUser() string { - if o == nil || isNil(o.TargetUser) { + if o == nil || IsNil(o.TargetUser) { var ret string return ret } @@ -213,7 +213,7 @@ func (o *WorkItemsForm) GetTargetUser() string { // GetTargetUserOk returns a tuple with the TargetUser field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkItemsForm) GetTargetUserOk() (*string, bool) { - if o == nil || isNil(o.TargetUser) { + if o == nil || IsNil(o.TargetUser) { return nil, false } return o.TargetUser, true @@ -221,7 +221,7 @@ func (o *WorkItemsForm) GetTargetUserOk() (*string, bool) { // HasTargetUser returns a boolean if a field has been set. func (o *WorkItemsForm) HasTargetUser() bool { - if o != nil && !isNil(o.TargetUser) { + if o != nil && !IsNil(o.TargetUser) { return true } @@ -235,7 +235,7 @@ func (o *WorkItemsForm) SetTargetUser(v string) { // GetSections returns the Sections field value if set, zero value otherwise. func (o *WorkItemsForm) GetSections() []SectionDetails { - if o == nil || isNil(o.Sections) { + if o == nil || IsNil(o.Sections) { var ret []SectionDetails return ret } @@ -245,7 +245,7 @@ func (o *WorkItemsForm) GetSections() []SectionDetails { // GetSectionsOk returns a tuple with the Sections field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkItemsForm) GetSectionsOk() ([]SectionDetails, bool) { - if o == nil || isNil(o.Sections) { + if o == nil || IsNil(o.Sections) { return nil, false } return o.Sections, true @@ -253,7 +253,7 @@ func (o *WorkItemsForm) GetSectionsOk() ([]SectionDetails, bool) { // HasSections returns a boolean if a field has been set. func (o *WorkItemsForm) HasSections() bool { - if o != nil && !isNil(o.Sections) { + if o != nil && !IsNil(o.Sections) { return true } @@ -281,16 +281,16 @@ func (o WorkItemsForm) ToMap() (map[string]interface{}, error) { if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() } - if !isNil(o.Title) { + if !IsNil(o.Title) { toSerialize["title"] = o.Title } - if !isNil(o.Subtitle) { + if !IsNil(o.Subtitle) { toSerialize["subtitle"] = o.Subtitle } - if !isNil(o.TargetUser) { + if !IsNil(o.TargetUser) { toSerialize["targetUser"] = o.TargetUser } - if !isNil(o.Sections) { + if !IsNil(o.Sections) { toSerialize["sections"] = o.Sections } @@ -301,16 +301,20 @@ func (o WorkItemsForm) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkItemsForm) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkItemsForm) UnmarshalJSON(data []byte) (err error) { varWorkItemsForm := _WorkItemsForm{} - if err = json.Unmarshal(bytes, &varWorkItemsForm); err == nil { + err = json.Unmarshal(data, &varWorkItemsForm) + + if err != nil { + return err + } + *o = WorkItemsForm(varWorkItemsForm) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "title") diff --git a/api_v3/model_work_items_summary.go b/api_v3/model_work_items_summary.go index c2c2b0b6e..a617ad4bc 100644 --- a/api_v3/model_work_items_summary.go +++ b/api_v3/model_work_items_summary.go @@ -49,7 +49,7 @@ func NewWorkItemsSummaryWithDefaults() *WorkItemsSummary { // GetOpen returns the Open field value if set, zero value otherwise. func (o *WorkItemsSummary) GetOpen() int32 { - if o == nil || isNil(o.Open) { + if o == nil || IsNil(o.Open) { var ret int32 return ret } @@ -59,7 +59,7 @@ func (o *WorkItemsSummary) GetOpen() int32 { // GetOpenOk returns a tuple with the Open field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkItemsSummary) GetOpenOk() (*int32, bool) { - if o == nil || isNil(o.Open) { + if o == nil || IsNil(o.Open) { return nil, false } return o.Open, true @@ -67,7 +67,7 @@ func (o *WorkItemsSummary) GetOpenOk() (*int32, bool) { // HasOpen returns a boolean if a field has been set. func (o *WorkItemsSummary) HasOpen() bool { - if o != nil && !isNil(o.Open) { + if o != nil && !IsNil(o.Open) { return true } @@ -81,7 +81,7 @@ func (o *WorkItemsSummary) SetOpen(v int32) { // GetCompleted returns the Completed field value if set, zero value otherwise. func (o *WorkItemsSummary) GetCompleted() int32 { - if o == nil || isNil(o.Completed) { + if o == nil || IsNil(o.Completed) { var ret int32 return ret } @@ -91,7 +91,7 @@ func (o *WorkItemsSummary) GetCompleted() int32 { // GetCompletedOk returns a tuple with the Completed field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkItemsSummary) GetCompletedOk() (*int32, bool) { - if o == nil || isNil(o.Completed) { + if o == nil || IsNil(o.Completed) { return nil, false } return o.Completed, true @@ -99,7 +99,7 @@ func (o *WorkItemsSummary) GetCompletedOk() (*int32, bool) { // HasCompleted returns a boolean if a field has been set. func (o *WorkItemsSummary) HasCompleted() bool { - if o != nil && !isNil(o.Completed) { + if o != nil && !IsNil(o.Completed) { return true } @@ -113,7 +113,7 @@ func (o *WorkItemsSummary) SetCompleted(v int32) { // GetTotal returns the Total field value if set, zero value otherwise. func (o *WorkItemsSummary) GetTotal() int32 { - if o == nil || isNil(o.Total) { + if o == nil || IsNil(o.Total) { var ret int32 return ret } @@ -123,7 +123,7 @@ func (o *WorkItemsSummary) GetTotal() int32 { // GetTotalOk returns a tuple with the Total field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkItemsSummary) GetTotalOk() (*int32, bool) { - if o == nil || isNil(o.Total) { + if o == nil || IsNil(o.Total) { return nil, false } return o.Total, true @@ -131,7 +131,7 @@ func (o *WorkItemsSummary) GetTotalOk() (*int32, bool) { // HasTotal returns a boolean if a field has been set. func (o *WorkItemsSummary) HasTotal() bool { - if o != nil && !isNil(o.Total) { + if o != nil && !IsNil(o.Total) { return true } @@ -153,13 +153,13 @@ func (o WorkItemsSummary) MarshalJSON() ([]byte, error) { func (o WorkItemsSummary) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Open) { + if !IsNil(o.Open) { toSerialize["open"] = o.Open } - if !isNil(o.Completed) { + if !IsNil(o.Completed) { toSerialize["completed"] = o.Completed } - if !isNil(o.Total) { + if !IsNil(o.Total) { toSerialize["total"] = o.Total } @@ -170,16 +170,20 @@ func (o WorkItemsSummary) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkItemsSummary) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkItemsSummary) UnmarshalJSON(data []byte) (err error) { varWorkItemsSummary := _WorkItemsSummary{} - if err = json.Unmarshal(bytes, &varWorkItemsSummary); err == nil { + err = json.Unmarshal(data, &varWorkItemsSummary) + + if err != nil { + return err + } + *o = WorkItemsSummary(varWorkItemsSummary) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "open") delete(additionalProperties, "completed") delete(additionalProperties, "total") diff --git a/api_v3/model_workflow.go b/api_v3/model_workflow.go index da6d54cc7..224b58226 100644 --- a/api_v3/model_workflow.go +++ b/api_v3/model_workflow.go @@ -69,7 +69,7 @@ func NewWorkflowWithDefaults() *Workflow { // GetName returns the Name field value if set, zero value otherwise. func (o *Workflow) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -79,7 +79,7 @@ func (o *Workflow) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Workflow) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -87,7 +87,7 @@ func (o *Workflow) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *Workflow) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -101,7 +101,7 @@ func (o *Workflow) SetName(v string) { // GetOwner returns the Owner field value if set, zero value otherwise. func (o *Workflow) GetOwner() WorkflowBodyOwner { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { var ret WorkflowBodyOwner return ret } @@ -111,7 +111,7 @@ func (o *Workflow) GetOwner() WorkflowBodyOwner { // GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Workflow) GetOwnerOk() (*WorkflowBodyOwner, bool) { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { return nil, false } return o.Owner, true @@ -119,7 +119,7 @@ func (o *Workflow) GetOwnerOk() (*WorkflowBodyOwner, bool) { // HasOwner returns a boolean if a field has been set. func (o *Workflow) HasOwner() bool { - if o != nil && !isNil(o.Owner) { + if o != nil && !IsNil(o.Owner) { return true } @@ -133,7 +133,7 @@ func (o *Workflow) SetOwner(v WorkflowBodyOwner) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *Workflow) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -143,7 +143,7 @@ func (o *Workflow) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Workflow) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -151,7 +151,7 @@ func (o *Workflow) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *Workflow) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -165,7 +165,7 @@ func (o *Workflow) SetDescription(v string) { // GetDefinition returns the Definition field value if set, zero value otherwise. func (o *Workflow) GetDefinition() WorkflowDefinition { - if o == nil || isNil(o.Definition) { + if o == nil || IsNil(o.Definition) { var ret WorkflowDefinition return ret } @@ -175,7 +175,7 @@ func (o *Workflow) GetDefinition() WorkflowDefinition { // GetDefinitionOk returns a tuple with the Definition field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Workflow) GetDefinitionOk() (*WorkflowDefinition, bool) { - if o == nil || isNil(o.Definition) { + if o == nil || IsNil(o.Definition) { return nil, false } return o.Definition, true @@ -183,7 +183,7 @@ func (o *Workflow) GetDefinitionOk() (*WorkflowDefinition, bool) { // HasDefinition returns a boolean if a field has been set. func (o *Workflow) HasDefinition() bool { - if o != nil && !isNil(o.Definition) { + if o != nil && !IsNil(o.Definition) { return true } @@ -197,7 +197,7 @@ func (o *Workflow) SetDefinition(v WorkflowDefinition) { // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *Workflow) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -207,7 +207,7 @@ func (o *Workflow) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Workflow) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -215,7 +215,7 @@ func (o *Workflow) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *Workflow) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -229,7 +229,7 @@ func (o *Workflow) SetEnabled(v bool) { // GetTrigger returns the Trigger field value if set, zero value otherwise. func (o *Workflow) GetTrigger() WorkflowTrigger { - if o == nil || isNil(o.Trigger) { + if o == nil || IsNil(o.Trigger) { var ret WorkflowTrigger return ret } @@ -239,7 +239,7 @@ func (o *Workflow) GetTrigger() WorkflowTrigger { // GetTriggerOk returns a tuple with the Trigger field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Workflow) GetTriggerOk() (*WorkflowTrigger, bool) { - if o == nil || isNil(o.Trigger) { + if o == nil || IsNil(o.Trigger) { return nil, false } return o.Trigger, true @@ -247,7 +247,7 @@ func (o *Workflow) GetTriggerOk() (*WorkflowTrigger, bool) { // HasTrigger returns a boolean if a field has been set. func (o *Workflow) HasTrigger() bool { - if o != nil && !isNil(o.Trigger) { + if o != nil && !IsNil(o.Trigger) { return true } @@ -261,7 +261,7 @@ func (o *Workflow) SetTrigger(v WorkflowTrigger) { // GetId returns the Id field value if set, zero value otherwise. func (o *Workflow) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -271,7 +271,7 @@ func (o *Workflow) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Workflow) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -279,7 +279,7 @@ func (o *Workflow) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Workflow) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -293,7 +293,7 @@ func (o *Workflow) SetId(v string) { // GetExecutionCount returns the ExecutionCount field value if set, zero value otherwise. func (o *Workflow) GetExecutionCount() int32 { - if o == nil || isNil(o.ExecutionCount) { + if o == nil || IsNil(o.ExecutionCount) { var ret int32 return ret } @@ -303,7 +303,7 @@ func (o *Workflow) GetExecutionCount() int32 { // GetExecutionCountOk returns a tuple with the ExecutionCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Workflow) GetExecutionCountOk() (*int32, bool) { - if o == nil || isNil(o.ExecutionCount) { + if o == nil || IsNil(o.ExecutionCount) { return nil, false } return o.ExecutionCount, true @@ -311,7 +311,7 @@ func (o *Workflow) GetExecutionCountOk() (*int32, bool) { // HasExecutionCount returns a boolean if a field has been set. func (o *Workflow) HasExecutionCount() bool { - if o != nil && !isNil(o.ExecutionCount) { + if o != nil && !IsNil(o.ExecutionCount) { return true } @@ -325,7 +325,7 @@ func (o *Workflow) SetExecutionCount(v int32) { // GetFailureCount returns the FailureCount field value if set, zero value otherwise. func (o *Workflow) GetFailureCount() int32 { - if o == nil || isNil(o.FailureCount) { + if o == nil || IsNil(o.FailureCount) { var ret int32 return ret } @@ -335,7 +335,7 @@ func (o *Workflow) GetFailureCount() int32 { // GetFailureCountOk returns a tuple with the FailureCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Workflow) GetFailureCountOk() (*int32, bool) { - if o == nil || isNil(o.FailureCount) { + if o == nil || IsNil(o.FailureCount) { return nil, false } return o.FailureCount, true @@ -343,7 +343,7 @@ func (o *Workflow) GetFailureCountOk() (*int32, bool) { // HasFailureCount returns a boolean if a field has been set. func (o *Workflow) HasFailureCount() bool { - if o != nil && !isNil(o.FailureCount) { + if o != nil && !IsNil(o.FailureCount) { return true } @@ -357,7 +357,7 @@ func (o *Workflow) SetFailureCount(v int32) { // GetCreated returns the Created field value if set, zero value otherwise. func (o *Workflow) GetCreated() time.Time { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } @@ -367,7 +367,7 @@ func (o *Workflow) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Workflow) GetCreatedOk() (*time.Time, bool) { - if o == nil || isNil(o.Created) { + if o == nil || IsNil(o.Created) { return nil, false } return o.Created, true @@ -375,7 +375,7 @@ func (o *Workflow) GetCreatedOk() (*time.Time, bool) { // HasCreated returns a boolean if a field has been set. func (o *Workflow) HasCreated() bool { - if o != nil && !isNil(o.Created) { + if o != nil && !IsNil(o.Created) { return true } @@ -389,7 +389,7 @@ func (o *Workflow) SetCreated(v time.Time) { // GetModified returns the Modified field value if set, zero value otherwise. func (o *Workflow) GetModified() time.Time { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { var ret time.Time return ret } @@ -399,7 +399,7 @@ func (o *Workflow) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Workflow) GetModifiedOk() (*time.Time, bool) { - if o == nil || isNil(o.Modified) { + if o == nil || IsNil(o.Modified) { return nil, false } return o.Modified, true @@ -407,7 +407,7 @@ func (o *Workflow) GetModifiedOk() (*time.Time, bool) { // HasModified returns a boolean if a field has been set. func (o *Workflow) HasModified() bool { - if o != nil && !isNil(o.Modified) { + if o != nil && !IsNil(o.Modified) { return true } @@ -421,7 +421,7 @@ func (o *Workflow) SetModified(v time.Time) { // GetModifiedBy returns the ModifiedBy field value if set, zero value otherwise. func (o *Workflow) GetModifiedBy() WorkflowModifiedBy { - if o == nil || isNil(o.ModifiedBy) { + if o == nil || IsNil(o.ModifiedBy) { var ret WorkflowModifiedBy return ret } @@ -431,7 +431,7 @@ func (o *Workflow) GetModifiedBy() WorkflowModifiedBy { // GetModifiedByOk returns a tuple with the ModifiedBy field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Workflow) GetModifiedByOk() (*WorkflowModifiedBy, bool) { - if o == nil || isNil(o.ModifiedBy) { + if o == nil || IsNil(o.ModifiedBy) { return nil, false } return o.ModifiedBy, true @@ -439,7 +439,7 @@ func (o *Workflow) GetModifiedByOk() (*WorkflowModifiedBy, bool) { // HasModifiedBy returns a boolean if a field has been set. func (o *Workflow) HasModifiedBy() bool { - if o != nil && !isNil(o.ModifiedBy) { + if o != nil && !IsNil(o.ModifiedBy) { return true } @@ -453,7 +453,7 @@ func (o *Workflow) SetModifiedBy(v WorkflowModifiedBy) { // GetCreator returns the Creator field value if set, zero value otherwise. func (o *Workflow) GetCreator() WorkflowAllOfCreator { - if o == nil || isNil(o.Creator) { + if o == nil || IsNil(o.Creator) { var ret WorkflowAllOfCreator return ret } @@ -463,7 +463,7 @@ func (o *Workflow) GetCreator() WorkflowAllOfCreator { // GetCreatorOk returns a tuple with the Creator field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Workflow) GetCreatorOk() (*WorkflowAllOfCreator, bool) { - if o == nil || isNil(o.Creator) { + if o == nil || IsNil(o.Creator) { return nil, false } return o.Creator, true @@ -471,7 +471,7 @@ func (o *Workflow) GetCreatorOk() (*WorkflowAllOfCreator, bool) { // HasCreator returns a boolean if a field has been set. func (o *Workflow) HasCreator() bool { - if o != nil && !isNil(o.Creator) { + if o != nil && !IsNil(o.Creator) { return true } @@ -493,43 +493,43 @@ func (o Workflow) MarshalJSON() ([]byte, error) { func (o Workflow) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Owner) { + if !IsNil(o.Owner) { toSerialize["owner"] = o.Owner } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.Definition) { + if !IsNil(o.Definition) { toSerialize["definition"] = o.Definition } - if !isNil(o.Enabled) { + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - if !isNil(o.Trigger) { + if !IsNil(o.Trigger) { toSerialize["trigger"] = o.Trigger } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.ExecutionCount) { + if !IsNil(o.ExecutionCount) { toSerialize["executionCount"] = o.ExecutionCount } - if !isNil(o.FailureCount) { + if !IsNil(o.FailureCount) { toSerialize["failureCount"] = o.FailureCount } - if !isNil(o.Created) { + if !IsNil(o.Created) { toSerialize["created"] = o.Created } - if !isNil(o.Modified) { + if !IsNil(o.Modified) { toSerialize["modified"] = o.Modified } - if !isNil(o.ModifiedBy) { + if !IsNil(o.ModifiedBy) { toSerialize["modifiedBy"] = o.ModifiedBy } - if !isNil(o.Creator) { + if !IsNil(o.Creator) { toSerialize["creator"] = o.Creator } @@ -540,16 +540,20 @@ func (o Workflow) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *Workflow) UnmarshalJSON(bytes []byte) (err error) { +func (o *Workflow) UnmarshalJSON(data []byte) (err error) { varWorkflow := _Workflow{} - if err = json.Unmarshal(bytes, &varWorkflow); err == nil { + err = json.Unmarshal(data, &varWorkflow) + + if err != nil { + return err + } + *o = Workflow(varWorkflow) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "owner") delete(additionalProperties, "description") diff --git a/api_v3/model_workflow_all_of_creator.go b/api_v3/model_workflow_all_of_creator.go index 69719c5ba..eaba1648b 100644 --- a/api_v3/model_workflow_all_of_creator.go +++ b/api_v3/model_workflow_all_of_creator.go @@ -49,7 +49,7 @@ func NewWorkflowAllOfCreatorWithDefaults() *WorkflowAllOfCreator { // GetType returns the Type field value if set, zero value otherwise. func (o *WorkflowAllOfCreator) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *WorkflowAllOfCreator) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowAllOfCreator) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *WorkflowAllOfCreator) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *WorkflowAllOfCreator) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *WorkflowAllOfCreator) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkflowAllOfCreator) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *WorkflowAllOfCreator) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowAllOfCreator) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *WorkflowAllOfCreator) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkflowAllOfCreator) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *WorkflowAllOfCreator) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowAllOfCreator) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *WorkflowAllOfCreator) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowAllOfCreator) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *WorkflowAllOfCreator) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkflowAllOfCreator) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o WorkflowAllOfCreator) MarshalJSON() ([]byte, error) { func (o WorkflowAllOfCreator) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o WorkflowAllOfCreator) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowAllOfCreator) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowAllOfCreator) UnmarshalJSON(data []byte) (err error) { varWorkflowAllOfCreator := _WorkflowAllOfCreator{} - if err = json.Unmarshal(bytes, &varWorkflowAllOfCreator); err == nil { + err = json.Unmarshal(data, &varWorkflowAllOfCreator) + + if err != nil { + return err + } + *o = WorkflowAllOfCreator(varWorkflowAllOfCreator) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_workflow_body.go b/api_v3/model_workflow_body.go index e84566a21..8aca4905d 100644 --- a/api_v3/model_workflow_body.go +++ b/api_v3/model_workflow_body.go @@ -56,7 +56,7 @@ func NewWorkflowBodyWithDefaults() *WorkflowBody { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowBody) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -66,7 +66,7 @@ func (o *WorkflowBody) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowBody) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -74,7 +74,7 @@ func (o *WorkflowBody) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkflowBody) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -88,7 +88,7 @@ func (o *WorkflowBody) SetName(v string) { // GetOwner returns the Owner field value if set, zero value otherwise. func (o *WorkflowBody) GetOwner() WorkflowBodyOwner { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { var ret WorkflowBodyOwner return ret } @@ -98,7 +98,7 @@ func (o *WorkflowBody) GetOwner() WorkflowBodyOwner { // GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowBody) GetOwnerOk() (*WorkflowBodyOwner, bool) { - if o == nil || isNil(o.Owner) { + if o == nil || IsNil(o.Owner) { return nil, false } return o.Owner, true @@ -106,7 +106,7 @@ func (o *WorkflowBody) GetOwnerOk() (*WorkflowBodyOwner, bool) { // HasOwner returns a boolean if a field has been set. func (o *WorkflowBody) HasOwner() bool { - if o != nil && !isNil(o.Owner) { + if o != nil && !IsNil(o.Owner) { return true } @@ -120,7 +120,7 @@ func (o *WorkflowBody) SetOwner(v WorkflowBodyOwner) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowBody) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -130,7 +130,7 @@ func (o *WorkflowBody) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowBody) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -138,7 +138,7 @@ func (o *WorkflowBody) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkflowBody) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -152,7 +152,7 @@ func (o *WorkflowBody) SetDescription(v string) { // GetDefinition returns the Definition field value if set, zero value otherwise. func (o *WorkflowBody) GetDefinition() WorkflowDefinition { - if o == nil || isNil(o.Definition) { + if o == nil || IsNil(o.Definition) { var ret WorkflowDefinition return ret } @@ -162,7 +162,7 @@ func (o *WorkflowBody) GetDefinition() WorkflowDefinition { // GetDefinitionOk returns a tuple with the Definition field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowBody) GetDefinitionOk() (*WorkflowDefinition, bool) { - if o == nil || isNil(o.Definition) { + if o == nil || IsNil(o.Definition) { return nil, false } return o.Definition, true @@ -170,7 +170,7 @@ func (o *WorkflowBody) GetDefinitionOk() (*WorkflowDefinition, bool) { // HasDefinition returns a boolean if a field has been set. func (o *WorkflowBody) HasDefinition() bool { - if o != nil && !isNil(o.Definition) { + if o != nil && !IsNil(o.Definition) { return true } @@ -184,7 +184,7 @@ func (o *WorkflowBody) SetDefinition(v WorkflowDefinition) { // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *WorkflowBody) GetEnabled() bool { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } @@ -194,7 +194,7 @@ func (o *WorkflowBody) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowBody) GetEnabledOk() (*bool, bool) { - if o == nil || isNil(o.Enabled) { + if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true @@ -202,7 +202,7 @@ func (o *WorkflowBody) GetEnabledOk() (*bool, bool) { // HasEnabled returns a boolean if a field has been set. func (o *WorkflowBody) HasEnabled() bool { - if o != nil && !isNil(o.Enabled) { + if o != nil && !IsNil(o.Enabled) { return true } @@ -216,7 +216,7 @@ func (o *WorkflowBody) SetEnabled(v bool) { // GetTrigger returns the Trigger field value if set, zero value otherwise. func (o *WorkflowBody) GetTrigger() WorkflowTrigger { - if o == nil || isNil(o.Trigger) { + if o == nil || IsNil(o.Trigger) { var ret WorkflowTrigger return ret } @@ -226,7 +226,7 @@ func (o *WorkflowBody) GetTrigger() WorkflowTrigger { // GetTriggerOk returns a tuple with the Trigger field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowBody) GetTriggerOk() (*WorkflowTrigger, bool) { - if o == nil || isNil(o.Trigger) { + if o == nil || IsNil(o.Trigger) { return nil, false } return o.Trigger, true @@ -234,7 +234,7 @@ func (o *WorkflowBody) GetTriggerOk() (*WorkflowTrigger, bool) { // HasTrigger returns a boolean if a field has been set. func (o *WorkflowBody) HasTrigger() bool { - if o != nil && !isNil(o.Trigger) { + if o != nil && !IsNil(o.Trigger) { return true } @@ -256,22 +256,22 @@ func (o WorkflowBody) MarshalJSON() ([]byte, error) { func (o WorkflowBody) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Owner) { + if !IsNil(o.Owner) { toSerialize["owner"] = o.Owner } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.Definition) { + if !IsNil(o.Definition) { toSerialize["definition"] = o.Definition } - if !isNil(o.Enabled) { + if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - if !isNil(o.Trigger) { + if !IsNil(o.Trigger) { toSerialize["trigger"] = o.Trigger } @@ -282,16 +282,20 @@ func (o WorkflowBody) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowBody) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowBody) UnmarshalJSON(data []byte) (err error) { varWorkflowBody := _WorkflowBody{} - if err = json.Unmarshal(bytes, &varWorkflowBody); err == nil { + err = json.Unmarshal(data, &varWorkflowBody) + + if err != nil { + return err + } + *o = WorkflowBody(varWorkflowBody) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "owner") delete(additionalProperties, "description") diff --git a/api_v3/model_workflow_body_owner.go b/api_v3/model_workflow_body_owner.go index a82f660bf..0b1466933 100644 --- a/api_v3/model_workflow_body_owner.go +++ b/api_v3/model_workflow_body_owner.go @@ -49,7 +49,7 @@ func NewWorkflowBodyOwnerWithDefaults() *WorkflowBodyOwner { // GetType returns the Type field value if set, zero value otherwise. func (o *WorkflowBodyOwner) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *WorkflowBodyOwner) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowBodyOwner) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -67,7 +67,7 @@ func (o *WorkflowBodyOwner) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *WorkflowBodyOwner) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -81,7 +81,7 @@ func (o *WorkflowBodyOwner) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkflowBodyOwner) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *WorkflowBodyOwner) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowBodyOwner) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -99,7 +99,7 @@ func (o *WorkflowBodyOwner) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkflowBodyOwner) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -113,7 +113,7 @@ func (o *WorkflowBodyOwner) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowBodyOwner) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *WorkflowBodyOwner) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowBodyOwner) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -131,7 +131,7 @@ func (o *WorkflowBodyOwner) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkflowBodyOwner) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -153,13 +153,13 @@ func (o WorkflowBodyOwner) MarshalJSON() ([]byte, error) { func (o WorkflowBodyOwner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -170,16 +170,20 @@ func (o WorkflowBodyOwner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowBodyOwner) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowBodyOwner) UnmarshalJSON(data []byte) (err error) { varWorkflowBodyOwner := _WorkflowBodyOwner{} - if err = json.Unmarshal(bytes, &varWorkflowBodyOwner); err == nil { + err = json.Unmarshal(data, &varWorkflowBodyOwner) + + if err != nil { + return err + } + *o = WorkflowBodyOwner(varWorkflowBodyOwner) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_workflow_definition.go b/api_v3/model_workflow_definition.go index 4e05cea21..e56394ea5 100644 --- a/api_v3/model_workflow_definition.go +++ b/api_v3/model_workflow_definition.go @@ -47,7 +47,7 @@ func NewWorkflowDefinitionWithDefaults() *WorkflowDefinition { // GetStart returns the Start field value if set, zero value otherwise. func (o *WorkflowDefinition) GetStart() string { - if o == nil || isNil(o.Start) { + if o == nil || IsNil(o.Start) { var ret string return ret } @@ -57,7 +57,7 @@ func (o *WorkflowDefinition) GetStart() string { // GetStartOk returns a tuple with the Start field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowDefinition) GetStartOk() (*string, bool) { - if o == nil || isNil(o.Start) { + if o == nil || IsNil(o.Start) { return nil, false } return o.Start, true @@ -65,7 +65,7 @@ func (o *WorkflowDefinition) GetStartOk() (*string, bool) { // HasStart returns a boolean if a field has been set. func (o *WorkflowDefinition) HasStart() bool { - if o != nil && !isNil(o.Start) { + if o != nil && !IsNil(o.Start) { return true } @@ -79,7 +79,7 @@ func (o *WorkflowDefinition) SetStart(v string) { // GetSteps returns the Steps field value if set, zero value otherwise. func (o *WorkflowDefinition) GetSteps() map[string]interface{} { - if o == nil || isNil(o.Steps) { + if o == nil || IsNil(o.Steps) { var ret map[string]interface{} return ret } @@ -89,7 +89,7 @@ func (o *WorkflowDefinition) GetSteps() map[string]interface{} { // GetStepsOk returns a tuple with the Steps field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowDefinition) GetStepsOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Steps) { + if o == nil || IsNil(o.Steps) { return map[string]interface{}{}, false } return o.Steps, true @@ -97,7 +97,7 @@ func (o *WorkflowDefinition) GetStepsOk() (map[string]interface{}, bool) { // HasSteps returns a boolean if a field has been set. func (o *WorkflowDefinition) HasSteps() bool { - if o != nil && !isNil(o.Steps) { + if o != nil && !IsNil(o.Steps) { return true } @@ -119,10 +119,10 @@ func (o WorkflowDefinition) MarshalJSON() ([]byte, error) { func (o WorkflowDefinition) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Start) { + if !IsNil(o.Start) { toSerialize["start"] = o.Start } - if !isNil(o.Steps) { + if !IsNil(o.Steps) { toSerialize["steps"] = o.Steps } @@ -133,16 +133,20 @@ func (o WorkflowDefinition) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowDefinition) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowDefinition) UnmarshalJSON(data []byte) (err error) { varWorkflowDefinition := _WorkflowDefinition{} - if err = json.Unmarshal(bytes, &varWorkflowDefinition); err == nil { + err = json.Unmarshal(data, &varWorkflowDefinition) + + if err != nil { + return err + } + *o = WorkflowDefinition(varWorkflowDefinition) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "start") delete(additionalProperties, "steps") o.AdditionalProperties = additionalProperties diff --git a/api_v3/model_workflow_execution.go b/api_v3/model_workflow_execution.go index 427b08065..b4c739a24 100644 --- a/api_v3/model_workflow_execution.go +++ b/api_v3/model_workflow_execution.go @@ -56,7 +56,7 @@ func NewWorkflowExecutionWithDefaults() *WorkflowExecution { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkflowExecution) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -66,7 +66,7 @@ func (o *WorkflowExecution) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowExecution) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -74,7 +74,7 @@ func (o *WorkflowExecution) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkflowExecution) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -88,7 +88,7 @@ func (o *WorkflowExecution) SetId(v string) { // GetWorkflowId returns the WorkflowId field value if set, zero value otherwise. func (o *WorkflowExecution) GetWorkflowId() string { - if o == nil || isNil(o.WorkflowId) { + if o == nil || IsNil(o.WorkflowId) { var ret string return ret } @@ -98,7 +98,7 @@ func (o *WorkflowExecution) GetWorkflowId() string { // GetWorkflowIdOk returns a tuple with the WorkflowId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowExecution) GetWorkflowIdOk() (*string, bool) { - if o == nil || isNil(o.WorkflowId) { + if o == nil || IsNil(o.WorkflowId) { return nil, false } return o.WorkflowId, true @@ -106,7 +106,7 @@ func (o *WorkflowExecution) GetWorkflowIdOk() (*string, bool) { // HasWorkflowId returns a boolean if a field has been set. func (o *WorkflowExecution) HasWorkflowId() bool { - if o != nil && !isNil(o.WorkflowId) { + if o != nil && !IsNil(o.WorkflowId) { return true } @@ -120,7 +120,7 @@ func (o *WorkflowExecution) SetWorkflowId(v string) { // GetRequestId returns the RequestId field value if set, zero value otherwise. func (o *WorkflowExecution) GetRequestId() string { - if o == nil || isNil(o.RequestId) { + if o == nil || IsNil(o.RequestId) { var ret string return ret } @@ -130,7 +130,7 @@ func (o *WorkflowExecution) GetRequestId() string { // GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowExecution) GetRequestIdOk() (*string, bool) { - if o == nil || isNil(o.RequestId) { + if o == nil || IsNil(o.RequestId) { return nil, false } return o.RequestId, true @@ -138,7 +138,7 @@ func (o *WorkflowExecution) GetRequestIdOk() (*string, bool) { // HasRequestId returns a boolean if a field has been set. func (o *WorkflowExecution) HasRequestId() bool { - if o != nil && !isNil(o.RequestId) { + if o != nil && !IsNil(o.RequestId) { return true } @@ -152,7 +152,7 @@ func (o *WorkflowExecution) SetRequestId(v string) { // GetStartTime returns the StartTime field value if set, zero value otherwise. func (o *WorkflowExecution) GetStartTime() time.Time { - if o == nil || isNil(o.StartTime) { + if o == nil || IsNil(o.StartTime) { var ret time.Time return ret } @@ -162,7 +162,7 @@ func (o *WorkflowExecution) GetStartTime() time.Time { // GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowExecution) GetStartTimeOk() (*time.Time, bool) { - if o == nil || isNil(o.StartTime) { + if o == nil || IsNil(o.StartTime) { return nil, false } return o.StartTime, true @@ -170,7 +170,7 @@ func (o *WorkflowExecution) GetStartTimeOk() (*time.Time, bool) { // HasStartTime returns a boolean if a field has been set. func (o *WorkflowExecution) HasStartTime() bool { - if o != nil && !isNil(o.StartTime) { + if o != nil && !IsNil(o.StartTime) { return true } @@ -184,7 +184,7 @@ func (o *WorkflowExecution) SetStartTime(v time.Time) { // GetCloseTime returns the CloseTime field value if set, zero value otherwise. func (o *WorkflowExecution) GetCloseTime() time.Time { - if o == nil || isNil(o.CloseTime) { + if o == nil || IsNil(o.CloseTime) { var ret time.Time return ret } @@ -194,7 +194,7 @@ func (o *WorkflowExecution) GetCloseTime() time.Time { // GetCloseTimeOk returns a tuple with the CloseTime field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowExecution) GetCloseTimeOk() (*time.Time, bool) { - if o == nil || isNil(o.CloseTime) { + if o == nil || IsNil(o.CloseTime) { return nil, false } return o.CloseTime, true @@ -202,7 +202,7 @@ func (o *WorkflowExecution) GetCloseTimeOk() (*time.Time, bool) { // HasCloseTime returns a boolean if a field has been set. func (o *WorkflowExecution) HasCloseTime() bool { - if o != nil && !isNil(o.CloseTime) { + if o != nil && !IsNil(o.CloseTime) { return true } @@ -216,7 +216,7 @@ func (o *WorkflowExecution) SetCloseTime(v time.Time) { // GetStatus returns the Status field value if set, zero value otherwise. func (o *WorkflowExecution) GetStatus() string { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { var ret string return ret } @@ -226,7 +226,7 @@ func (o *WorkflowExecution) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowExecution) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { + if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true @@ -234,7 +234,7 @@ func (o *WorkflowExecution) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *WorkflowExecution) HasStatus() bool { - if o != nil && !isNil(o.Status) { + if o != nil && !IsNil(o.Status) { return true } @@ -256,22 +256,22 @@ func (o WorkflowExecution) MarshalJSON() ([]byte, error) { func (o WorkflowExecution) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.WorkflowId) { + if !IsNil(o.WorkflowId) { toSerialize["workflowId"] = o.WorkflowId } - if !isNil(o.RequestId) { + if !IsNil(o.RequestId) { toSerialize["requestId"] = o.RequestId } - if !isNil(o.StartTime) { + if !IsNil(o.StartTime) { toSerialize["startTime"] = o.StartTime } - if !isNil(o.CloseTime) { + if !IsNil(o.CloseTime) { toSerialize["closeTime"] = o.CloseTime } - if !isNil(o.Status) { + if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -282,16 +282,20 @@ func (o WorkflowExecution) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowExecution) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowExecution) UnmarshalJSON(data []byte) (err error) { varWorkflowExecution := _WorkflowExecution{} - if err = json.Unmarshal(bytes, &varWorkflowExecution); err == nil { + err = json.Unmarshal(data, &varWorkflowExecution) + + if err != nil { + return err + } + *o = WorkflowExecution(varWorkflowExecution) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "workflowId") delete(additionalProperties, "requestId") diff --git a/api_v3/model_workflow_execution_event.go b/api_v3/model_workflow_execution_event.go index 1f890c2c6..455f7c779 100644 --- a/api_v3/model_workflow_execution_event.go +++ b/api_v3/model_workflow_execution_event.go @@ -50,7 +50,7 @@ func NewWorkflowExecutionEventWithDefaults() *WorkflowExecutionEvent { // GetType returns the Type field value if set, zero value otherwise. func (o *WorkflowExecutionEvent) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -60,7 +60,7 @@ func (o *WorkflowExecutionEvent) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowExecutionEvent) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -68,7 +68,7 @@ func (o *WorkflowExecutionEvent) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *WorkflowExecutionEvent) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -82,7 +82,7 @@ func (o *WorkflowExecutionEvent) SetType(v string) { // GetTimestamp returns the Timestamp field value if set, zero value otherwise. func (o *WorkflowExecutionEvent) GetTimestamp() time.Time { - if o == nil || isNil(o.Timestamp) { + if o == nil || IsNil(o.Timestamp) { var ret time.Time return ret } @@ -92,7 +92,7 @@ func (o *WorkflowExecutionEvent) GetTimestamp() time.Time { // GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowExecutionEvent) GetTimestampOk() (*time.Time, bool) { - if o == nil || isNil(o.Timestamp) { + if o == nil || IsNil(o.Timestamp) { return nil, false } return o.Timestamp, true @@ -100,7 +100,7 @@ func (o *WorkflowExecutionEvent) GetTimestampOk() (*time.Time, bool) { // HasTimestamp returns a boolean if a field has been set. func (o *WorkflowExecutionEvent) HasTimestamp() bool { - if o != nil && !isNil(o.Timestamp) { + if o != nil && !IsNil(o.Timestamp) { return true } @@ -114,7 +114,7 @@ func (o *WorkflowExecutionEvent) SetTimestamp(v time.Time) { // GetAttributes returns the Attributes field value if set, zero value otherwise. func (o *WorkflowExecutionEvent) GetAttributes() map[string]interface{} { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { var ret map[string]interface{} return ret } @@ -124,7 +124,7 @@ func (o *WorkflowExecutionEvent) GetAttributes() map[string]interface{} { // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowExecutionEvent) GetAttributesOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.Attributes) { + if o == nil || IsNil(o.Attributes) { return map[string]interface{}{}, false } return o.Attributes, true @@ -132,7 +132,7 @@ func (o *WorkflowExecutionEvent) GetAttributesOk() (map[string]interface{}, bool // HasAttributes returns a boolean if a field has been set. func (o *WorkflowExecutionEvent) HasAttributes() bool { - if o != nil && !isNil(o.Attributes) { + if o != nil && !IsNil(o.Attributes) { return true } @@ -154,13 +154,13 @@ func (o WorkflowExecutionEvent) MarshalJSON() ([]byte, error) { func (o WorkflowExecutionEvent) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Timestamp) { + if !IsNil(o.Timestamp) { toSerialize["timestamp"] = o.Timestamp } - if !isNil(o.Attributes) { + if !IsNil(o.Attributes) { toSerialize["attributes"] = o.Attributes } @@ -171,16 +171,20 @@ func (o WorkflowExecutionEvent) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowExecutionEvent) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowExecutionEvent) UnmarshalJSON(data []byte) (err error) { varWorkflowExecutionEvent := _WorkflowExecutionEvent{} - if err = json.Unmarshal(bytes, &varWorkflowExecutionEvent); err == nil { + err = json.Unmarshal(data, &varWorkflowExecutionEvent) + + if err != nil { + return err + } + *o = WorkflowExecutionEvent(varWorkflowExecutionEvent) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "timestamp") delete(additionalProperties, "attributes") diff --git a/api_v3/model_workflow_library_action.go b/api_v3/model_workflow_library_action.go index 4cd2e5e62..6e1f806d0 100644 --- a/api_v3/model_workflow_library_action.go +++ b/api_v3/model_workflow_library_action.go @@ -68,7 +68,7 @@ func NewWorkflowLibraryActionWithDefaults() *WorkflowLibraryAction { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkflowLibraryAction) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -78,7 +78,7 @@ func (o *WorkflowLibraryAction) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryAction) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -86,7 +86,7 @@ func (o *WorkflowLibraryAction) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkflowLibraryAction) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -100,7 +100,7 @@ func (o *WorkflowLibraryAction) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowLibraryAction) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -110,7 +110,7 @@ func (o *WorkflowLibraryAction) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryAction) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -118,7 +118,7 @@ func (o *WorkflowLibraryAction) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkflowLibraryAction) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -132,7 +132,7 @@ func (o *WorkflowLibraryAction) SetName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *WorkflowLibraryAction) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -142,7 +142,7 @@ func (o *WorkflowLibraryAction) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryAction) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -150,7 +150,7 @@ func (o *WorkflowLibraryAction) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *WorkflowLibraryAction) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -164,7 +164,7 @@ func (o *WorkflowLibraryAction) SetType(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowLibraryAction) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -174,7 +174,7 @@ func (o *WorkflowLibraryAction) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryAction) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -182,7 +182,7 @@ func (o *WorkflowLibraryAction) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkflowLibraryAction) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -207,7 +207,7 @@ func (o *WorkflowLibraryAction) GetFormFields() []WorkflowLibraryFormFields { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WorkflowLibraryAction) GetFormFieldsOk() ([]WorkflowLibraryFormFields, bool) { - if o == nil || isNil(o.FormFields) { + if o == nil || IsNil(o.FormFields) { return nil, false } return o.FormFields, true @@ -215,7 +215,7 @@ func (o *WorkflowLibraryAction) GetFormFieldsOk() ([]WorkflowLibraryFormFields, // HasFormFields returns a boolean if a field has been set. func (o *WorkflowLibraryAction) HasFormFields() bool { - if o != nil && isNil(o.FormFields) { + if o != nil && !IsNil(o.FormFields) { return true } @@ -229,7 +229,7 @@ func (o *WorkflowLibraryAction) SetFormFields(v []WorkflowLibraryFormFields) { // GetExampleOutput returns the ExampleOutput field value if set, zero value otherwise. func (o *WorkflowLibraryAction) GetExampleOutput() WorkflowLibraryActionExampleOutput { - if o == nil || isNil(o.ExampleOutput) { + if o == nil || IsNil(o.ExampleOutput) { var ret WorkflowLibraryActionExampleOutput return ret } @@ -239,7 +239,7 @@ func (o *WorkflowLibraryAction) GetExampleOutput() WorkflowLibraryActionExampleO // GetExampleOutputOk returns a tuple with the ExampleOutput field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryAction) GetExampleOutputOk() (*WorkflowLibraryActionExampleOutput, bool) { - if o == nil || isNil(o.ExampleOutput) { + if o == nil || IsNil(o.ExampleOutput) { return nil, false } return o.ExampleOutput, true @@ -247,7 +247,7 @@ func (o *WorkflowLibraryAction) GetExampleOutputOk() (*WorkflowLibraryActionExam // HasExampleOutput returns a boolean if a field has been set. func (o *WorkflowLibraryAction) HasExampleOutput() bool { - if o != nil && !isNil(o.ExampleOutput) { + if o != nil && !IsNil(o.ExampleOutput) { return true } @@ -261,7 +261,7 @@ func (o *WorkflowLibraryAction) SetExampleOutput(v WorkflowLibraryActionExampleO // GetDeprecated returns the Deprecated field value if set, zero value otherwise. func (o *WorkflowLibraryAction) GetDeprecated() bool { - if o == nil || isNil(o.Deprecated) { + if o == nil || IsNil(o.Deprecated) { var ret bool return ret } @@ -271,7 +271,7 @@ func (o *WorkflowLibraryAction) GetDeprecated() bool { // GetDeprecatedOk returns a tuple with the Deprecated field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryAction) GetDeprecatedOk() (*bool, bool) { - if o == nil || isNil(o.Deprecated) { + if o == nil || IsNil(o.Deprecated) { return nil, false } return o.Deprecated, true @@ -279,7 +279,7 @@ func (o *WorkflowLibraryAction) GetDeprecatedOk() (*bool, bool) { // HasDeprecated returns a boolean if a field has been set. func (o *WorkflowLibraryAction) HasDeprecated() bool { - if o != nil && !isNil(o.Deprecated) { + if o != nil && !IsNil(o.Deprecated) { return true } @@ -293,7 +293,7 @@ func (o *WorkflowLibraryAction) SetDeprecated(v bool) { // GetDeprecatedBy returns the DeprecatedBy field value if set, zero value otherwise. func (o *WorkflowLibraryAction) GetDeprecatedBy() time.Time { - if o == nil || isNil(o.DeprecatedBy) { + if o == nil || IsNil(o.DeprecatedBy) { var ret time.Time return ret } @@ -303,7 +303,7 @@ func (o *WorkflowLibraryAction) GetDeprecatedBy() time.Time { // GetDeprecatedByOk returns a tuple with the DeprecatedBy field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryAction) GetDeprecatedByOk() (*time.Time, bool) { - if o == nil || isNil(o.DeprecatedBy) { + if o == nil || IsNil(o.DeprecatedBy) { return nil, false } return o.DeprecatedBy, true @@ -311,7 +311,7 @@ func (o *WorkflowLibraryAction) GetDeprecatedByOk() (*time.Time, bool) { // HasDeprecatedBy returns a boolean if a field has been set. func (o *WorkflowLibraryAction) HasDeprecatedBy() bool { - if o != nil && !isNil(o.DeprecatedBy) { + if o != nil && !IsNil(o.DeprecatedBy) { return true } @@ -325,7 +325,7 @@ func (o *WorkflowLibraryAction) SetDeprecatedBy(v time.Time) { // GetVersionNumber returns the VersionNumber field value if set, zero value otherwise. func (o *WorkflowLibraryAction) GetVersionNumber() int32 { - if o == nil || isNil(o.VersionNumber) { + if o == nil || IsNil(o.VersionNumber) { var ret int32 return ret } @@ -335,7 +335,7 @@ func (o *WorkflowLibraryAction) GetVersionNumber() int32 { // GetVersionNumberOk returns a tuple with the VersionNumber field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryAction) GetVersionNumberOk() (*int32, bool) { - if o == nil || isNil(o.VersionNumber) { + if o == nil || IsNil(o.VersionNumber) { return nil, false } return o.VersionNumber, true @@ -343,7 +343,7 @@ func (o *WorkflowLibraryAction) GetVersionNumberOk() (*int32, bool) { // HasVersionNumber returns a boolean if a field has been set. func (o *WorkflowLibraryAction) HasVersionNumber() bool { - if o != nil && !isNil(o.VersionNumber) { + if o != nil && !IsNil(o.VersionNumber) { return true } @@ -357,7 +357,7 @@ func (o *WorkflowLibraryAction) SetVersionNumber(v int32) { // GetIsSimulationEnabled returns the IsSimulationEnabled field value if set, zero value otherwise. func (o *WorkflowLibraryAction) GetIsSimulationEnabled() bool { - if o == nil || isNil(o.IsSimulationEnabled) { + if o == nil || IsNil(o.IsSimulationEnabled) { var ret bool return ret } @@ -367,7 +367,7 @@ func (o *WorkflowLibraryAction) GetIsSimulationEnabled() bool { // GetIsSimulationEnabledOk returns a tuple with the IsSimulationEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryAction) GetIsSimulationEnabledOk() (*bool, bool) { - if o == nil || isNil(o.IsSimulationEnabled) { + if o == nil || IsNil(o.IsSimulationEnabled) { return nil, false } return o.IsSimulationEnabled, true @@ -375,7 +375,7 @@ func (o *WorkflowLibraryAction) GetIsSimulationEnabledOk() (*bool, bool) { // HasIsSimulationEnabled returns a boolean if a field has been set. func (o *WorkflowLibraryAction) HasIsSimulationEnabled() bool { - if o != nil && !isNil(o.IsSimulationEnabled) { + if o != nil && !IsNil(o.IsSimulationEnabled) { return true } @@ -389,7 +389,7 @@ func (o *WorkflowLibraryAction) SetIsSimulationEnabled(v bool) { // GetIsDynamicSchema returns the IsDynamicSchema field value if set, zero value otherwise. func (o *WorkflowLibraryAction) GetIsDynamicSchema() bool { - if o == nil || isNil(o.IsDynamicSchema) { + if o == nil || IsNil(o.IsDynamicSchema) { var ret bool return ret } @@ -399,7 +399,7 @@ func (o *WorkflowLibraryAction) GetIsDynamicSchema() bool { // GetIsDynamicSchemaOk returns a tuple with the IsDynamicSchema field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryAction) GetIsDynamicSchemaOk() (*bool, bool) { - if o == nil || isNil(o.IsDynamicSchema) { + if o == nil || IsNil(o.IsDynamicSchema) { return nil, false } return o.IsDynamicSchema, true @@ -407,7 +407,7 @@ func (o *WorkflowLibraryAction) GetIsDynamicSchemaOk() (*bool, bool) { // HasIsDynamicSchema returns a boolean if a field has been set. func (o *WorkflowLibraryAction) HasIsDynamicSchema() bool { - if o != nil && !isNil(o.IsDynamicSchema) { + if o != nil && !IsNil(o.IsDynamicSchema) { return true } @@ -421,7 +421,7 @@ func (o *WorkflowLibraryAction) SetIsDynamicSchema(v bool) { // GetOutputSchema returns the OutputSchema field value if set, zero value otherwise. func (o *WorkflowLibraryAction) GetOutputSchema() map[string]interface{} { - if o == nil || isNil(o.OutputSchema) { + if o == nil || IsNil(o.OutputSchema) { var ret map[string]interface{} return ret } @@ -431,7 +431,7 @@ func (o *WorkflowLibraryAction) GetOutputSchema() map[string]interface{} { // GetOutputSchemaOk returns a tuple with the OutputSchema field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryAction) GetOutputSchemaOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.OutputSchema) { + if o == nil || IsNil(o.OutputSchema) { return map[string]interface{}{}, false } return o.OutputSchema, true @@ -439,7 +439,7 @@ func (o *WorkflowLibraryAction) GetOutputSchemaOk() (map[string]interface{}, boo // HasOutputSchema returns a boolean if a field has been set. func (o *WorkflowLibraryAction) HasOutputSchema() bool { - if o != nil && !isNil(o.OutputSchema) { + if o != nil && !IsNil(o.OutputSchema) { return true } @@ -461,40 +461,40 @@ func (o WorkflowLibraryAction) MarshalJSON() ([]byte, error) { func (o WorkflowLibraryAction) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } if o.FormFields != nil { toSerialize["formFields"] = o.FormFields } - if !isNil(o.ExampleOutput) { + if !IsNil(o.ExampleOutput) { toSerialize["exampleOutput"] = o.ExampleOutput } - if !isNil(o.Deprecated) { + if !IsNil(o.Deprecated) { toSerialize["deprecated"] = o.Deprecated } - if !isNil(o.DeprecatedBy) { + if !IsNil(o.DeprecatedBy) { toSerialize["deprecatedBy"] = o.DeprecatedBy } - if !isNil(o.VersionNumber) { + if !IsNil(o.VersionNumber) { toSerialize["versionNumber"] = o.VersionNumber } - if !isNil(o.IsSimulationEnabled) { + if !IsNil(o.IsSimulationEnabled) { toSerialize["isSimulationEnabled"] = o.IsSimulationEnabled } - if !isNil(o.IsDynamicSchema) { + if !IsNil(o.IsDynamicSchema) { toSerialize["isDynamicSchema"] = o.IsDynamicSchema } - if !isNil(o.OutputSchema) { + if !IsNil(o.OutputSchema) { toSerialize["outputSchema"] = o.OutputSchema } @@ -505,16 +505,20 @@ func (o WorkflowLibraryAction) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowLibraryAction) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowLibraryAction) UnmarshalJSON(data []byte) (err error) { varWorkflowLibraryAction := _WorkflowLibraryAction{} - if err = json.Unmarshal(bytes, &varWorkflowLibraryAction); err == nil { + err = json.Unmarshal(data, &varWorkflowLibraryAction) + + if err != nil { + return err + } + *o = WorkflowLibraryAction(varWorkflowLibraryAction) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "type") diff --git a/api_v3/model_workflow_library_action_example_output.go b/api_v3/model_workflow_library_action_example_output.go index cc5a6ae44..496d200f6 100644 --- a/api_v3/model_workflow_library_action_example_output.go +++ b/api_v3/model_workflow_library_action_example_output.go @@ -12,26 +12,27 @@ package api_v3 import ( "encoding/json" + "gopkg.in/validator.v2" "fmt" ) // WorkflowLibraryActionExampleOutput - struct for WorkflowLibraryActionExampleOutput type WorkflowLibraryActionExampleOutput struct { - ArrayOfMapmapOfStringinterface *[]map[string]interface{} - MapmapOfStringinterface *map[string]interface{} + ArrayOfMapmapOfStringAny *[]map[string]interface{} + MapmapOfStringAny *map[string]interface{} } // []map[string]interface{}AsWorkflowLibraryActionExampleOutput is a convenience function that returns []map[string]interface{} wrapped in WorkflowLibraryActionExampleOutput -func ArrayOfMapmapOfStringinterfaceAsWorkflowLibraryActionExampleOutput(v *[]map[string]interface{}) WorkflowLibraryActionExampleOutput { +func ArrayOfMapmapOfStringAnyAsWorkflowLibraryActionExampleOutput(v *[]map[string]interface{}) WorkflowLibraryActionExampleOutput { return WorkflowLibraryActionExampleOutput{ - ArrayOfMapmapOfStringinterface: v, + ArrayOfMapmapOfStringAny: v, } } // map[string]interface{}AsWorkflowLibraryActionExampleOutput is a convenience function that returns map[string]interface{} wrapped in WorkflowLibraryActionExampleOutput -func MapmapOfStringinterfaceAsWorkflowLibraryActionExampleOutput(v *map[string]interface{}) WorkflowLibraryActionExampleOutput { +func MapmapOfStringAnyAsWorkflowLibraryActionExampleOutput(v *map[string]interface{}) WorkflowLibraryActionExampleOutput { return WorkflowLibraryActionExampleOutput{ - MapmapOfStringinterface: v, + MapmapOfStringAny: v, } } @@ -40,36 +41,44 @@ func MapmapOfStringinterfaceAsWorkflowLibraryActionExampleOutput(v *map[string]i func (dst *WorkflowLibraryActionExampleOutput) UnmarshalJSON(data []byte) error { var err error match := 0 - // try to unmarshal data into ArrayOfMapmapOfStringinterface - err = newStrictDecoder(data).Decode(&dst.ArrayOfMapmapOfStringinterface) + // try to unmarshal data into ArrayOfMapmapOfStringAny + err = newStrictDecoder(data).Decode(&dst.ArrayOfMapmapOfStringAny) if err == nil { - jsonArrayOfMapmapOfStringinterface, _ := json.Marshal(dst.ArrayOfMapmapOfStringinterface) - if string(jsonArrayOfMapmapOfStringinterface) == "{}" { // empty struct - dst.ArrayOfMapmapOfStringinterface = nil + jsonArrayOfMapmapOfStringAny, _ := json.Marshal(dst.ArrayOfMapmapOfStringAny) + if string(jsonArrayOfMapmapOfStringAny) == "{}" { // empty struct + dst.ArrayOfMapmapOfStringAny = nil } else { - match++ + if err = validator.Validate(dst.ArrayOfMapmapOfStringAny); err != nil { + dst.ArrayOfMapmapOfStringAny = nil + } else { + match++ + } } } else { - dst.ArrayOfMapmapOfStringinterface = nil + dst.ArrayOfMapmapOfStringAny = nil } - // try to unmarshal data into MapmapOfStringinterface - err = newStrictDecoder(data).Decode(&dst.MapmapOfStringinterface) + // try to unmarshal data into MapmapOfStringAny + err = newStrictDecoder(data).Decode(&dst.MapmapOfStringAny) if err == nil { - jsonMapmapOfStringinterface, _ := json.Marshal(dst.MapmapOfStringinterface) - if string(jsonMapmapOfStringinterface) == "{}" { // empty struct - dst.MapmapOfStringinterface = nil + jsonMapmapOfStringAny, _ := json.Marshal(dst.MapmapOfStringAny) + if string(jsonMapmapOfStringAny) == "{}" { // empty struct + dst.MapmapOfStringAny = nil } else { - match++ + if err = validator.Validate(dst.MapmapOfStringAny); err != nil { + dst.MapmapOfStringAny = nil + } else { + match++ + } } } else { - dst.MapmapOfStringinterface = nil + dst.MapmapOfStringAny = nil } if match > 1 { // more than 1 match // reset to nil - dst.ArrayOfMapmapOfStringinterface = nil - dst.MapmapOfStringinterface = nil + dst.ArrayOfMapmapOfStringAny = nil + dst.MapmapOfStringAny = nil return fmt.Errorf("data matches more than one schema in oneOf(WorkflowLibraryActionExampleOutput)") } else if match == 1 { @@ -81,12 +90,12 @@ func (dst *WorkflowLibraryActionExampleOutput) UnmarshalJSON(data []byte) error // Marshal data from the first non-nil pointers in the struct to JSON func (src WorkflowLibraryActionExampleOutput) MarshalJSON() ([]byte, error) { - if src.ArrayOfMapmapOfStringinterface != nil { - return json.Marshal(&src.ArrayOfMapmapOfStringinterface) + if src.ArrayOfMapmapOfStringAny != nil { + return json.Marshal(&src.ArrayOfMapmapOfStringAny) } - if src.MapmapOfStringinterface != nil { - return json.Marshal(&src.MapmapOfStringinterface) + if src.MapmapOfStringAny != nil { + return json.Marshal(&src.MapmapOfStringAny) } return nil, nil // no data in oneOf schemas @@ -97,12 +106,12 @@ func (obj *WorkflowLibraryActionExampleOutput) GetActualInstance() (interface{}) if obj == nil { return nil } - if obj.ArrayOfMapmapOfStringinterface != nil { - return obj.ArrayOfMapmapOfStringinterface + if obj.ArrayOfMapmapOfStringAny != nil { + return obj.ArrayOfMapmapOfStringAny } - if obj.MapmapOfStringinterface != nil { - return obj.MapmapOfStringinterface + if obj.MapmapOfStringAny != nil { + return obj.MapmapOfStringAny } // all schemas are nil diff --git a/api_v3/model_workflow_library_form_fields.go b/api_v3/model_workflow_library_form_fields.go index 1b5323954..225a5a6a2 100644 --- a/api_v3/model_workflow_library_form_fields.go +++ b/api_v3/model_workflow_library_form_fields.go @@ -59,7 +59,7 @@ func NewWorkflowLibraryFormFieldsWithDefaults() *WorkflowLibraryFormFields { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowLibraryFormFields) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -69,7 +69,7 @@ func (o *WorkflowLibraryFormFields) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryFormFields) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -77,7 +77,7 @@ func (o *WorkflowLibraryFormFields) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkflowLibraryFormFields) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -91,7 +91,7 @@ func (o *WorkflowLibraryFormFields) SetDescription(v string) { // GetHelpText returns the HelpText field value if set, zero value otherwise. func (o *WorkflowLibraryFormFields) GetHelpText() string { - if o == nil || isNil(o.HelpText) { + if o == nil || IsNil(o.HelpText) { var ret string return ret } @@ -101,7 +101,7 @@ func (o *WorkflowLibraryFormFields) GetHelpText() string { // GetHelpTextOk returns a tuple with the HelpText field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryFormFields) GetHelpTextOk() (*string, bool) { - if o == nil || isNil(o.HelpText) { + if o == nil || IsNil(o.HelpText) { return nil, false } return o.HelpText, true @@ -109,7 +109,7 @@ func (o *WorkflowLibraryFormFields) GetHelpTextOk() (*string, bool) { // HasHelpText returns a boolean if a field has been set. func (o *WorkflowLibraryFormFields) HasHelpText() bool { - if o != nil && !isNil(o.HelpText) { + if o != nil && !IsNil(o.HelpText) { return true } @@ -123,7 +123,7 @@ func (o *WorkflowLibraryFormFields) SetHelpText(v string) { // GetLabel returns the Label field value if set, zero value otherwise. func (o *WorkflowLibraryFormFields) GetLabel() string { - if o == nil || isNil(o.Label) { + if o == nil || IsNil(o.Label) { var ret string return ret } @@ -133,7 +133,7 @@ func (o *WorkflowLibraryFormFields) GetLabel() string { // GetLabelOk returns a tuple with the Label field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryFormFields) GetLabelOk() (*string, bool) { - if o == nil || isNil(o.Label) { + if o == nil || IsNil(o.Label) { return nil, false } return o.Label, true @@ -141,7 +141,7 @@ func (o *WorkflowLibraryFormFields) GetLabelOk() (*string, bool) { // HasLabel returns a boolean if a field has been set. func (o *WorkflowLibraryFormFields) HasLabel() bool { - if o != nil && !isNil(o.Label) { + if o != nil && !IsNil(o.Label) { return true } @@ -155,7 +155,7 @@ func (o *WorkflowLibraryFormFields) SetLabel(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowLibraryFormFields) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -165,7 +165,7 @@ func (o *WorkflowLibraryFormFields) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryFormFields) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -173,7 +173,7 @@ func (o *WorkflowLibraryFormFields) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkflowLibraryFormFields) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -187,7 +187,7 @@ func (o *WorkflowLibraryFormFields) SetName(v string) { // GetRequired returns the Required field value if set, zero value otherwise. func (o *WorkflowLibraryFormFields) GetRequired() bool { - if o == nil || isNil(o.Required) { + if o == nil || IsNil(o.Required) { var ret bool return ret } @@ -197,7 +197,7 @@ func (o *WorkflowLibraryFormFields) GetRequired() bool { // GetRequiredOk returns a tuple with the Required field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryFormFields) GetRequiredOk() (*bool, bool) { - if o == nil || isNil(o.Required) { + if o == nil || IsNil(o.Required) { return nil, false } return o.Required, true @@ -205,7 +205,7 @@ func (o *WorkflowLibraryFormFields) GetRequiredOk() (*bool, bool) { // HasRequired returns a boolean if a field has been set. func (o *WorkflowLibraryFormFields) HasRequired() bool { - if o != nil && !isNil(o.Required) { + if o != nil && !IsNil(o.Required) { return true } @@ -219,7 +219,7 @@ func (o *WorkflowLibraryFormFields) SetRequired(v bool) { // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowLibraryFormFields) GetType() string { - if o == nil || isNil(o.Type.Get()) { + if o == nil || IsNil(o.Type.Get()) { var ret string return ret } @@ -269,19 +269,19 @@ func (o WorkflowLibraryFormFields) MarshalJSON() ([]byte, error) { func (o WorkflowLibraryFormFields) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.HelpText) { + if !IsNil(o.HelpText) { toSerialize["helpText"] = o.HelpText } - if !isNil(o.Label) { + if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Required) { + if !IsNil(o.Required) { toSerialize["required"] = o.Required } if o.Type.IsSet() { @@ -295,16 +295,20 @@ func (o WorkflowLibraryFormFields) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowLibraryFormFields) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowLibraryFormFields) UnmarshalJSON(data []byte) (err error) { varWorkflowLibraryFormFields := _WorkflowLibraryFormFields{} - if err = json.Unmarshal(bytes, &varWorkflowLibraryFormFields); err == nil { + err = json.Unmarshal(data, &varWorkflowLibraryFormFields) + + if err != nil { + return err + } + *o = WorkflowLibraryFormFields(varWorkflowLibraryFormFields) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "description") delete(additionalProperties, "helpText") delete(additionalProperties, "label") diff --git a/api_v3/model_workflow_library_operator.go b/api_v3/model_workflow_library_operator.go index 852067ce7..1902f7f9a 100644 --- a/api_v3/model_workflow_library_operator.go +++ b/api_v3/model_workflow_library_operator.go @@ -59,7 +59,7 @@ func NewWorkflowLibraryOperatorWithDefaults() *WorkflowLibraryOperator { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -69,7 +69,7 @@ func (o *WorkflowLibraryOperator) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -77,7 +77,7 @@ func (o *WorkflowLibraryOperator) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -91,7 +91,7 @@ func (o *WorkflowLibraryOperator) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -101,7 +101,7 @@ func (o *WorkflowLibraryOperator) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -109,7 +109,7 @@ func (o *WorkflowLibraryOperator) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -123,7 +123,7 @@ func (o *WorkflowLibraryOperator) SetName(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -133,7 +133,7 @@ func (o *WorkflowLibraryOperator) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -141,7 +141,7 @@ func (o *WorkflowLibraryOperator) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -155,7 +155,7 @@ func (o *WorkflowLibraryOperator) SetType(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -165,7 +165,7 @@ func (o *WorkflowLibraryOperator) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -173,7 +173,7 @@ func (o *WorkflowLibraryOperator) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -187,7 +187,7 @@ func (o *WorkflowLibraryOperator) SetDescription(v string) { // GetIsDynamicSchema returns the IsDynamicSchema field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetIsDynamicSchema() bool { - if o == nil || isNil(o.IsDynamicSchema) { + if o == nil || IsNil(o.IsDynamicSchema) { var ret bool return ret } @@ -197,7 +197,7 @@ func (o *WorkflowLibraryOperator) GetIsDynamicSchema() bool { // GetIsDynamicSchemaOk returns a tuple with the IsDynamicSchema field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetIsDynamicSchemaOk() (*bool, bool) { - if o == nil || isNil(o.IsDynamicSchema) { + if o == nil || IsNil(o.IsDynamicSchema) { return nil, false } return o.IsDynamicSchema, true @@ -205,7 +205,7 @@ func (o *WorkflowLibraryOperator) GetIsDynamicSchemaOk() (*bool, bool) { // HasIsDynamicSchema returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasIsDynamicSchema() bool { - if o != nil && !isNil(o.IsDynamicSchema) { + if o != nil && !IsNil(o.IsDynamicSchema) { return true } @@ -219,7 +219,7 @@ func (o *WorkflowLibraryOperator) SetIsDynamicSchema(v bool) { // GetDeprecated returns the Deprecated field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetDeprecated() bool { - if o == nil || isNil(o.Deprecated) { + if o == nil || IsNil(o.Deprecated) { var ret bool return ret } @@ -229,7 +229,7 @@ func (o *WorkflowLibraryOperator) GetDeprecated() bool { // GetDeprecatedOk returns a tuple with the Deprecated field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetDeprecatedOk() (*bool, bool) { - if o == nil || isNil(o.Deprecated) { + if o == nil || IsNil(o.Deprecated) { return nil, false } return o.Deprecated, true @@ -237,7 +237,7 @@ func (o *WorkflowLibraryOperator) GetDeprecatedOk() (*bool, bool) { // HasDeprecated returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasDeprecated() bool { - if o != nil && !isNil(o.Deprecated) { + if o != nil && !IsNil(o.Deprecated) { return true } @@ -251,7 +251,7 @@ func (o *WorkflowLibraryOperator) SetDeprecated(v bool) { // GetDeprecatedBy returns the DeprecatedBy field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetDeprecatedBy() time.Time { - if o == nil || isNil(o.DeprecatedBy) { + if o == nil || IsNil(o.DeprecatedBy) { var ret time.Time return ret } @@ -261,7 +261,7 @@ func (o *WorkflowLibraryOperator) GetDeprecatedBy() time.Time { // GetDeprecatedByOk returns a tuple with the DeprecatedBy field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetDeprecatedByOk() (*time.Time, bool) { - if o == nil || isNil(o.DeprecatedBy) { + if o == nil || IsNil(o.DeprecatedBy) { return nil, false } return o.DeprecatedBy, true @@ -269,7 +269,7 @@ func (o *WorkflowLibraryOperator) GetDeprecatedByOk() (*time.Time, bool) { // HasDeprecatedBy returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasDeprecatedBy() bool { - if o != nil && !isNil(o.DeprecatedBy) { + if o != nil && !IsNil(o.DeprecatedBy) { return true } @@ -283,7 +283,7 @@ func (o *WorkflowLibraryOperator) SetDeprecatedBy(v time.Time) { // GetIsSimulationEnabled returns the IsSimulationEnabled field value if set, zero value otherwise. func (o *WorkflowLibraryOperator) GetIsSimulationEnabled() bool { - if o == nil || isNil(o.IsSimulationEnabled) { + if o == nil || IsNil(o.IsSimulationEnabled) { var ret bool return ret } @@ -293,7 +293,7 @@ func (o *WorkflowLibraryOperator) GetIsSimulationEnabled() bool { // GetIsSimulationEnabledOk returns a tuple with the IsSimulationEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryOperator) GetIsSimulationEnabledOk() (*bool, bool) { - if o == nil || isNil(o.IsSimulationEnabled) { + if o == nil || IsNil(o.IsSimulationEnabled) { return nil, false } return o.IsSimulationEnabled, true @@ -301,7 +301,7 @@ func (o *WorkflowLibraryOperator) GetIsSimulationEnabledOk() (*bool, bool) { // HasIsSimulationEnabled returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasIsSimulationEnabled() bool { - if o != nil && !isNil(o.IsSimulationEnabled) { + if o != nil && !IsNil(o.IsSimulationEnabled) { return true } @@ -326,7 +326,7 @@ func (o *WorkflowLibraryOperator) GetFormFields() []WorkflowLibraryFormFields { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WorkflowLibraryOperator) GetFormFieldsOk() ([]WorkflowLibraryFormFields, bool) { - if o == nil || isNil(o.FormFields) { + if o == nil || IsNil(o.FormFields) { return nil, false } return o.FormFields, true @@ -334,7 +334,7 @@ func (o *WorkflowLibraryOperator) GetFormFieldsOk() ([]WorkflowLibraryFormFields // HasFormFields returns a boolean if a field has been set. func (o *WorkflowLibraryOperator) HasFormFields() bool { - if o != nil && isNil(o.FormFields) { + if o != nil && !IsNil(o.FormFields) { return true } @@ -356,28 +356,28 @@ func (o WorkflowLibraryOperator) MarshalJSON() ([]byte, error) { func (o WorkflowLibraryOperator) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.IsDynamicSchema) { + if !IsNil(o.IsDynamicSchema) { toSerialize["isDynamicSchema"] = o.IsDynamicSchema } - if !isNil(o.Deprecated) { + if !IsNil(o.Deprecated) { toSerialize["deprecated"] = o.Deprecated } - if !isNil(o.DeprecatedBy) { + if !IsNil(o.DeprecatedBy) { toSerialize["deprecatedBy"] = o.DeprecatedBy } - if !isNil(o.IsSimulationEnabled) { + if !IsNil(o.IsSimulationEnabled) { toSerialize["isSimulationEnabled"] = o.IsSimulationEnabled } if o.FormFields != nil { @@ -391,16 +391,20 @@ func (o WorkflowLibraryOperator) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowLibraryOperator) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowLibraryOperator) UnmarshalJSON(data []byte) (err error) { varWorkflowLibraryOperator := _WorkflowLibraryOperator{} - if err = json.Unmarshal(bytes, &varWorkflowLibraryOperator); err == nil { + err = json.Unmarshal(data, &varWorkflowLibraryOperator) + + if err != nil { + return err + } + *o = WorkflowLibraryOperator(varWorkflowLibraryOperator) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "type") diff --git a/api_v3/model_workflow_library_trigger.go b/api_v3/model_workflow_library_trigger.go index 3d73b63c2..742dae0c1 100644 --- a/api_v3/model_workflow_library_trigger.go +++ b/api_v3/model_workflow_library_trigger.go @@ -67,7 +67,7 @@ func NewWorkflowLibraryTriggerWithDefaults() *WorkflowLibraryTrigger { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -77,7 +77,7 @@ func (o *WorkflowLibraryTrigger) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -85,7 +85,7 @@ func (o *WorkflowLibraryTrigger) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -99,7 +99,7 @@ func (o *WorkflowLibraryTrigger) SetId(v string) { // GetType returns the Type field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -109,7 +109,7 @@ func (o *WorkflowLibraryTrigger) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -117,7 +117,7 @@ func (o *WorkflowLibraryTrigger) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -131,7 +131,7 @@ func (o *WorkflowLibraryTrigger) SetType(v string) { // GetDeprecated returns the Deprecated field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetDeprecated() bool { - if o == nil || isNil(o.Deprecated) { + if o == nil || IsNil(o.Deprecated) { var ret bool return ret } @@ -141,7 +141,7 @@ func (o *WorkflowLibraryTrigger) GetDeprecated() bool { // GetDeprecatedOk returns a tuple with the Deprecated field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetDeprecatedOk() (*bool, bool) { - if o == nil || isNil(o.Deprecated) { + if o == nil || IsNil(o.Deprecated) { return nil, false } return o.Deprecated, true @@ -149,7 +149,7 @@ func (o *WorkflowLibraryTrigger) GetDeprecatedOk() (*bool, bool) { // HasDeprecated returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasDeprecated() bool { - if o != nil && !isNil(o.Deprecated) { + if o != nil && !IsNil(o.Deprecated) { return true } @@ -163,7 +163,7 @@ func (o *WorkflowLibraryTrigger) SetDeprecated(v bool) { // GetDeprecatedBy returns the DeprecatedBy field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetDeprecatedBy() time.Time { - if o == nil || isNil(o.DeprecatedBy) { + if o == nil || IsNil(o.DeprecatedBy) { var ret time.Time return ret } @@ -173,7 +173,7 @@ func (o *WorkflowLibraryTrigger) GetDeprecatedBy() time.Time { // GetDeprecatedByOk returns a tuple with the DeprecatedBy field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetDeprecatedByOk() (*time.Time, bool) { - if o == nil || isNil(o.DeprecatedBy) { + if o == nil || IsNil(o.DeprecatedBy) { return nil, false } return o.DeprecatedBy, true @@ -181,7 +181,7 @@ func (o *WorkflowLibraryTrigger) GetDeprecatedByOk() (*time.Time, bool) { // HasDeprecatedBy returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasDeprecatedBy() bool { - if o != nil && !isNil(o.DeprecatedBy) { + if o != nil && !IsNil(o.DeprecatedBy) { return true } @@ -195,7 +195,7 @@ func (o *WorkflowLibraryTrigger) SetDeprecatedBy(v time.Time) { // GetIsSimulationEnabled returns the IsSimulationEnabled field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetIsSimulationEnabled() bool { - if o == nil || isNil(o.IsSimulationEnabled) { + if o == nil || IsNil(o.IsSimulationEnabled) { var ret bool return ret } @@ -205,7 +205,7 @@ func (o *WorkflowLibraryTrigger) GetIsSimulationEnabled() bool { // GetIsSimulationEnabledOk returns a tuple with the IsSimulationEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetIsSimulationEnabledOk() (*bool, bool) { - if o == nil || isNil(o.IsSimulationEnabled) { + if o == nil || IsNil(o.IsSimulationEnabled) { return nil, false } return o.IsSimulationEnabled, true @@ -213,7 +213,7 @@ func (o *WorkflowLibraryTrigger) GetIsSimulationEnabledOk() (*bool, bool) { // HasIsSimulationEnabled returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasIsSimulationEnabled() bool { - if o != nil && !isNil(o.IsSimulationEnabled) { + if o != nil && !IsNil(o.IsSimulationEnabled) { return true } @@ -227,7 +227,7 @@ func (o *WorkflowLibraryTrigger) SetIsSimulationEnabled(v bool) { // GetOutputSchema returns the OutputSchema field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetOutputSchema() map[string]interface{} { - if o == nil || isNil(o.OutputSchema) { + if o == nil || IsNil(o.OutputSchema) { var ret map[string]interface{} return ret } @@ -237,7 +237,7 @@ func (o *WorkflowLibraryTrigger) GetOutputSchema() map[string]interface{} { // GetOutputSchemaOk returns a tuple with the OutputSchema field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetOutputSchemaOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.OutputSchema) { + if o == nil || IsNil(o.OutputSchema) { return map[string]interface{}{}, false } return o.OutputSchema, true @@ -245,7 +245,7 @@ func (o *WorkflowLibraryTrigger) GetOutputSchemaOk() (map[string]interface{}, bo // HasOutputSchema returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasOutputSchema() bool { - if o != nil && !isNil(o.OutputSchema) { + if o != nil && !IsNil(o.OutputSchema) { return true } @@ -259,7 +259,7 @@ func (o *WorkflowLibraryTrigger) SetOutputSchema(v map[string]interface{}) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -269,7 +269,7 @@ func (o *WorkflowLibraryTrigger) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -277,7 +277,7 @@ func (o *WorkflowLibraryTrigger) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -291,7 +291,7 @@ func (o *WorkflowLibraryTrigger) SetName(v string) { // GetDescription returns the Description field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetDescription() string { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { var ret string return ret } @@ -301,7 +301,7 @@ func (o *WorkflowLibraryTrigger) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetDescriptionOk() (*string, bool) { - if o == nil || isNil(o.Description) { + if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true @@ -309,7 +309,7 @@ func (o *WorkflowLibraryTrigger) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasDescription() bool { - if o != nil && !isNil(o.Description) { + if o != nil && !IsNil(o.Description) { return true } @@ -323,7 +323,7 @@ func (o *WorkflowLibraryTrigger) SetDescription(v string) { // GetIsDynamicSchema returns the IsDynamicSchema field value if set, zero value otherwise. func (o *WorkflowLibraryTrigger) GetIsDynamicSchema() bool { - if o == nil || isNil(o.IsDynamicSchema) { + if o == nil || IsNil(o.IsDynamicSchema) { var ret bool return ret } @@ -333,7 +333,7 @@ func (o *WorkflowLibraryTrigger) GetIsDynamicSchema() bool { // GetIsDynamicSchemaOk returns a tuple with the IsDynamicSchema field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowLibraryTrigger) GetIsDynamicSchemaOk() (*bool, bool) { - if o == nil || isNil(o.IsDynamicSchema) { + if o == nil || IsNil(o.IsDynamicSchema) { return nil, false } return o.IsDynamicSchema, true @@ -341,7 +341,7 @@ func (o *WorkflowLibraryTrigger) GetIsDynamicSchemaOk() (*bool, bool) { // HasIsDynamicSchema returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasIsDynamicSchema() bool { - if o != nil && !isNil(o.IsDynamicSchema) { + if o != nil && !IsNil(o.IsDynamicSchema) { return true } @@ -366,7 +366,7 @@ func (o *WorkflowLibraryTrigger) GetInputExample() map[string]interface{} { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WorkflowLibraryTrigger) GetInputExampleOk() (map[string]interface{}, bool) { - if o == nil || isNil(o.InputExample) { + if o == nil || IsNil(o.InputExample) { return map[string]interface{}{}, false } return o.InputExample, true @@ -374,7 +374,7 @@ func (o *WorkflowLibraryTrigger) GetInputExampleOk() (map[string]interface{}, bo // HasInputExample returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasInputExample() bool { - if o != nil && isNil(o.InputExample) { + if o != nil && !IsNil(o.InputExample) { return true } @@ -399,7 +399,7 @@ func (o *WorkflowLibraryTrigger) GetFormFields() []WorkflowLibraryFormFields { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WorkflowLibraryTrigger) GetFormFieldsOk() ([]WorkflowLibraryFormFields, bool) { - if o == nil || isNil(o.FormFields) { + if o == nil || IsNil(o.FormFields) { return nil, false } return o.FormFields, true @@ -407,7 +407,7 @@ func (o *WorkflowLibraryTrigger) GetFormFieldsOk() ([]WorkflowLibraryFormFields, // HasFormFields returns a boolean if a field has been set. func (o *WorkflowLibraryTrigger) HasFormFields() bool { - if o != nil && isNil(o.FormFields) { + if o != nil && !IsNil(o.FormFields) { return true } @@ -429,31 +429,31 @@ func (o WorkflowLibraryTrigger) MarshalJSON() ([]byte, error) { func (o WorkflowLibraryTrigger) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Deprecated) { + if !IsNil(o.Deprecated) { toSerialize["deprecated"] = o.Deprecated } - if !isNil(o.DeprecatedBy) { + if !IsNil(o.DeprecatedBy) { toSerialize["deprecatedBy"] = o.DeprecatedBy } - if !isNil(o.IsSimulationEnabled) { + if !IsNil(o.IsSimulationEnabled) { toSerialize["isSimulationEnabled"] = o.IsSimulationEnabled } - if !isNil(o.OutputSchema) { + if !IsNil(o.OutputSchema) { toSerialize["outputSchema"] = o.OutputSchema } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !isNil(o.Description) { + if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !isNil(o.IsDynamicSchema) { + if !IsNil(o.IsDynamicSchema) { toSerialize["isDynamicSchema"] = o.IsDynamicSchema } if o.InputExample != nil { @@ -470,16 +470,20 @@ func (o WorkflowLibraryTrigger) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowLibraryTrigger) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowLibraryTrigger) UnmarshalJSON(data []byte) (err error) { varWorkflowLibraryTrigger := _WorkflowLibraryTrigger{} - if err = json.Unmarshal(bytes, &varWorkflowLibraryTrigger); err == nil { + err = json.Unmarshal(data, &varWorkflowLibraryTrigger) + + if err != nil { + return err + } + *o = WorkflowLibraryTrigger(varWorkflowLibraryTrigger) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "type") delete(additionalProperties, "deprecated") diff --git a/api_v3/model_workflow_modified_by.go b/api_v3/model_workflow_modified_by.go index 3589cf79f..2bad7f5dc 100644 --- a/api_v3/model_workflow_modified_by.go +++ b/api_v3/model_workflow_modified_by.go @@ -48,7 +48,7 @@ func NewWorkflowModifiedByWithDefaults() *WorkflowModifiedBy { // GetType returns the Type field value if set, zero value otherwise. func (o *WorkflowModifiedBy) GetType() string { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { var ret string return ret } @@ -58,7 +58,7 @@ func (o *WorkflowModifiedBy) GetType() string { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowModifiedBy) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { + if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true @@ -66,7 +66,7 @@ func (o *WorkflowModifiedBy) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *WorkflowModifiedBy) HasType() bool { - if o != nil && !isNil(o.Type) { + if o != nil && !IsNil(o.Type) { return true } @@ -80,7 +80,7 @@ func (o *WorkflowModifiedBy) SetType(v string) { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkflowModifiedBy) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -90,7 +90,7 @@ func (o *WorkflowModifiedBy) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowModifiedBy) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -98,7 +98,7 @@ func (o *WorkflowModifiedBy) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkflowModifiedBy) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -112,7 +112,7 @@ func (o *WorkflowModifiedBy) SetId(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *WorkflowModifiedBy) GetName() string { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -122,7 +122,7 @@ func (o *WorkflowModifiedBy) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowModifiedBy) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -130,7 +130,7 @@ func (o *WorkflowModifiedBy) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *WorkflowModifiedBy) HasName() bool { - if o != nil && !isNil(o.Name) { + if o != nil && !IsNil(o.Name) { return true } @@ -152,13 +152,13 @@ func (o WorkflowModifiedBy) MarshalJSON() ([]byte, error) { func (o WorkflowModifiedBy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Type) { + if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Name) { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -169,16 +169,20 @@ func (o WorkflowModifiedBy) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowModifiedBy) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowModifiedBy) UnmarshalJSON(data []byte) (err error) { varWorkflowModifiedBy := _WorkflowModifiedBy{} - if err = json.Unmarshal(bytes, &varWorkflowModifiedBy); err == nil { + err = json.Unmarshal(data, &varWorkflowModifiedBy) + + if err != nil { + return err + } + *o = WorkflowModifiedBy(varWorkflowModifiedBy) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/api_v3/model_workflow_o_auth_client.go b/api_v3/model_workflow_o_auth_client.go index ddde9f72b..fbafaa358 100644 --- a/api_v3/model_workflow_o_auth_client.go +++ b/api_v3/model_workflow_o_auth_client.go @@ -49,7 +49,7 @@ func NewWorkflowOAuthClientWithDefaults() *WorkflowOAuthClient { // GetId returns the Id field value if set, zero value otherwise. func (o *WorkflowOAuthClient) GetId() string { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -59,7 +59,7 @@ func (o *WorkflowOAuthClient) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowOAuthClient) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -67,7 +67,7 @@ func (o *WorkflowOAuthClient) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *WorkflowOAuthClient) HasId() bool { - if o != nil && !isNil(o.Id) { + if o != nil && !IsNil(o.Id) { return true } @@ -81,7 +81,7 @@ func (o *WorkflowOAuthClient) SetId(v string) { // GetSecret returns the Secret field value if set, zero value otherwise. func (o *WorkflowOAuthClient) GetSecret() string { - if o == nil || isNil(o.Secret) { + if o == nil || IsNil(o.Secret) { var ret string return ret } @@ -91,7 +91,7 @@ func (o *WorkflowOAuthClient) GetSecret() string { // GetSecretOk returns a tuple with the Secret field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowOAuthClient) GetSecretOk() (*string, bool) { - if o == nil || isNil(o.Secret) { + if o == nil || IsNil(o.Secret) { return nil, false } return o.Secret, true @@ -99,7 +99,7 @@ func (o *WorkflowOAuthClient) GetSecretOk() (*string, bool) { // HasSecret returns a boolean if a field has been set. func (o *WorkflowOAuthClient) HasSecret() bool { - if o != nil && !isNil(o.Secret) { + if o != nil && !IsNil(o.Secret) { return true } @@ -113,7 +113,7 @@ func (o *WorkflowOAuthClient) SetSecret(v string) { // GetUrl returns the Url field value if set, zero value otherwise. func (o *WorkflowOAuthClient) GetUrl() string { - if o == nil || isNil(o.Url) { + if o == nil || IsNil(o.Url) { var ret string return ret } @@ -123,7 +123,7 @@ func (o *WorkflowOAuthClient) GetUrl() string { // GetUrlOk returns a tuple with the Url field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowOAuthClient) GetUrlOk() (*string, bool) { - if o == nil || isNil(o.Url) { + if o == nil || IsNil(o.Url) { return nil, false } return o.Url, true @@ -131,7 +131,7 @@ func (o *WorkflowOAuthClient) GetUrlOk() (*string, bool) { // HasUrl returns a boolean if a field has been set. func (o *WorkflowOAuthClient) HasUrl() bool { - if o != nil && !isNil(o.Url) { + if o != nil && !IsNil(o.Url) { return true } @@ -153,13 +153,13 @@ func (o WorkflowOAuthClient) MarshalJSON() ([]byte, error) { func (o WorkflowOAuthClient) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !isNil(o.Id) { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !isNil(o.Secret) { + if !IsNil(o.Secret) { toSerialize["secret"] = o.Secret } - if !isNil(o.Url) { + if !IsNil(o.Url) { toSerialize["url"] = o.Url } @@ -170,16 +170,20 @@ func (o WorkflowOAuthClient) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowOAuthClient) UnmarshalJSON(bytes []byte) (err error) { +func (o *WorkflowOAuthClient) UnmarshalJSON(data []byte) (err error) { varWorkflowOAuthClient := _WorkflowOAuthClient{} - if err = json.Unmarshal(bytes, &varWorkflowOAuthClient); err == nil { + err = json.Unmarshal(data, &varWorkflowOAuthClient) + + if err != nil { + return err + } + *o = WorkflowOAuthClient(varWorkflowOAuthClient) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "secret") delete(additionalProperties, "url") diff --git a/api_v3/model_workflow_trigger.go b/api_v3/model_workflow_trigger.go index a44da6b85..0498bda23 100644 --- a/api_v3/model_workflow_trigger.go +++ b/api_v3/model_workflow_trigger.go @@ -75,7 +75,7 @@ func (o *WorkflowTrigger) SetType(v string) { // GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WorkflowTrigger) GetDisplayName() string { - if o == nil || isNil(o.DisplayName.Get()) { + if o == nil || IsNil(o.DisplayName.Get()) { var ret string return ret } @@ -162,8 +162,8 @@ func (o WorkflowTrigger) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowTrigger) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object +func (o *WorkflowTrigger) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -173,7 +173,7 @@ func (o *WorkflowTrigger) UnmarshalJSON(bytes []byte) (err error) { allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; @@ -187,13 +187,17 @@ func (o *WorkflowTrigger) UnmarshalJSON(bytes []byte) (err error) { varWorkflowTrigger := _WorkflowTrigger{} - if err = json.Unmarshal(bytes, &varWorkflowTrigger); err == nil { + err = json.Unmarshal(data, &varWorkflowTrigger) + + if err != nil { + return err + } + *o = WorkflowTrigger(varWorkflowTrigger) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "displayName") delete(additionalProperties, "attributes") diff --git a/api_v3/test/api_access_profiles_test.go b/api_v3/test/api_access_profiles_test.go index 8aee4b940..ec5344f0c 100644 --- a/api_v3/test/api_access_profiles_test.go +++ b/api_v3/test/api_access_profiles_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_AccessProfilesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccessProfilesAPIService CreateAccessProfile", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.AccessProfilesAPI.CreateAccessProfile(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.CreateAccessProfile(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_AccessProfilesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() + httpRes, err := apiClient.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -51,7 +51,7 @@ func Test_api_v3_AccessProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v3_AccessProfilesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v3_AccessProfilesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -91,7 +91,7 @@ func Test_api_v3_AccessProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -105,7 +105,7 @@ func Test_api_v3_AccessProfilesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_access_request_approvals_test.go b/api_v3/test/api_access_request_approvals_test.go index cd26d46e8..1e31186c8 100644 --- a/api_v3/test/api_access_request_approvals_test.go +++ b/api_v3/test/api_access_request_approvals_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_AccessRequestApprovalsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccessRequestApprovalsAPIService ApproveAccessRequest", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v3_AccessRequestApprovalsAPIService(t *testing.T) { var approvalId string - resp, httpRes, err := apiClient.API_V3.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -42,7 +42,7 @@ func Test_api_v3_AccessRequestApprovalsAPIService(t *testing.T) { var approvalId string - resp, httpRes, err := apiClient.API_V3.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -54,7 +54,7 @@ func Test_api_v3_AccessRequestApprovalsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -66,7 +66,7 @@ func Test_api_v3_AccessRequestApprovalsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -78,7 +78,7 @@ func Test_api_v3_AccessRequestApprovalsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -92,7 +92,7 @@ func Test_api_v3_AccessRequestApprovalsAPIService(t *testing.T) { var approvalId string - resp, httpRes, err := apiClient.API_V3.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).Execute() + resp, httpRes, err := apiClient.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_access_requests_test.go b/api_v3/test/api_access_requests_test.go index 59365bd1e..42f599826 100644 --- a/api_v3/test/api_access_requests_test.go +++ b/api_v3/test/api_access_requests_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_AccessRequestsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccessRequestsAPIService CancelAccessRequest", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.AccessRequestsAPI.CancelAccessRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestsAPI.CancelAccessRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v3_AccessRequestsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.AccessRequestsAPI.CreateAccessRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestsAPI.CreateAccessRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_v3_AccessRequestsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -62,7 +62,7 @@ func Test_api_v3_AccessRequestsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -74,7 +74,7 @@ func Test_api_v3_AccessRequestsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_account_activities_test.go b/api_v3/test/api_account_activities_test.go index f48901c31..2a8343838 100644 --- a/api_v3/test/api_account_activities_test.go +++ b/api_v3/test/api_account_activities_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_AccountActivitiesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccountActivitiesAPIService GetAccountActivity", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v3_AccountActivitiesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_AccountActivitiesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() + resp, httpRes, err := apiClient.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_account_usages_test.go b/api_v3/test/api_account_usages_test.go index c48b31894..046836817 100644 --- a/api_v3/test/api_account_usages_test.go +++ b/api_v3/test/api_account_usages_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_AccountUsagesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccountUsagesAPIService GetUsagesByAccountId", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v3_AccountUsagesAPIService(t *testing.T) { var accountId string - resp, httpRes, err := apiClient.API_V3.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() + resp, httpRes, err := apiClient.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_accounts_test.go b/api_v3/test/api_accounts_test.go index 37fdab52d..0f8588d59 100644 --- a/api_v3/test/api_accounts_test.go +++ b/api_v3/test/api_accounts_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_AccountsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AccountsAPIService CreateAccount", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.AccountsAPI.CreateAccount(context.Background()).Execute() + resp, httpRes, err := apiClient.AccountsAPI.CreateAccount(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.AccountsAPI.DeleteAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.DeleteAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -54,7 +54,7 @@ func Test_api_v3_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.AccountsAPI.DisableAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.DisableAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -68,7 +68,7 @@ func Test_api_v3_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.AccountsAPI.EnableAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.EnableAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -82,7 +82,7 @@ func Test_api_v3_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.AccountsAPI.GetAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.GetAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -96,7 +96,7 @@ func Test_api_v3_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -108,7 +108,7 @@ func Test_api_v3_AccountsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.AccountsAPI.ListAccounts(context.Background()).Execute() + resp, httpRes, err := apiClient.AccountsAPI.ListAccounts(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -122,7 +122,7 @@ func Test_api_v3_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.AccountsAPI.PutAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.PutAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -136,7 +136,7 @@ func Test_api_v3_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -150,7 +150,7 @@ func Test_api_v3_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.AccountsAPI.UnlockAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.UnlockAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -164,7 +164,7 @@ func Test_api_v3_AccountsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.AccountsAPI.UpdateAccount(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AccountsAPI.UpdateAccount(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_application_discovery_test.go b/api_v3/test/api_application_discovery_test.go index af9dae476..6ac98149b 100644 --- a/api_v3/test/api_application_discovery_test.go +++ b/api_v3/test/api_application_discovery_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_ApplicationDiscoveryAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ApplicationDiscoveryAPIService GetDiscoveredApplications", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() + resp, httpRes, err := apiClient.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v3_ApplicationDiscoveryAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() + resp, httpRes, err := apiClient.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_v3_ApplicationDiscoveryAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ApplicationDiscoveryAPI.GetVendorConnectorMappings(context.Background()).Execute() + resp, httpRes, err := apiClient.ApplicationDiscoveryAPI.GetVendorConnectorMappings(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -62,7 +62,7 @@ func Test_api_v3_ApplicationDiscoveryAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V3.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() + httpRes, err := apiClient.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) diff --git a/api_v3/test/api_auth_users_test.go b/api_v3/test/api_auth_users_test.go index 7673aa294..3b7c21d10 100644 --- a/api_v3/test/api_auth_users_test.go +++ b/api_v3/test/api_auth_users_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_AuthUsersAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AuthUsersAPIService GetAuthUser", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v3_AuthUsersAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -42,7 +42,7 @@ func Test_api_v3_AuthUsersAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.AuthUsersAPI.PatchAuthUser(context.Background(), id).Execute() + resp, httpRes, err := apiClient.AuthUsersAPI.PatchAuthUser(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_branding_test.go b/api_v3/test/api_branding_test.go index 4001b2594..946a0801a 100644 --- a/api_v3/test/api_branding_test.go +++ b/api_v3/test/api_branding_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_BrandingAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test BrandingAPIService CreateBrandingItem", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.BrandingAPI.CreateBrandingItem(context.Background()).Execute() + resp, httpRes, err := apiClient.BrandingAPI.CreateBrandingItem(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_BrandingAPIService(t *testing.T) { var name string - httpRes, err := apiClient.API_V3.BrandingAPI.DeleteBranding(context.Background(), name).Execute() + httpRes, err := apiClient.BrandingAPI.DeleteBranding(context.Background(), name).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v3_BrandingAPIService(t *testing.T) { var name string - resp, httpRes, err := apiClient.API_V3.BrandingAPI.GetBranding(context.Background(), name).Execute() + resp, httpRes, err := apiClient.BrandingAPI.GetBranding(context.Background(), name).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v3_BrandingAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.BrandingAPI.GetBrandingList(context.Background()).Execute() + resp, httpRes, err := apiClient.BrandingAPI.GetBrandingList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v3_BrandingAPIService(t *testing.T) { var name string - resp, httpRes, err := apiClient.API_V3.BrandingAPI.SetBrandingItem(context.Background(), name).Execute() + resp, httpRes, err := apiClient.BrandingAPI.SetBrandingItem(context.Background(), name).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_certification_campaign_filters_test.go b/api_v3/test/api_certification_campaign_filters_test.go index beb826f6c..cce0657aa 100644 --- a/api_v3/test/api_certification_campaign_filters_test.go +++ b/api_v3/test/api_certification_campaign_filters_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_CertificationCampaignFiltersAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CertificationCampaignFiltersAPIService CreateCampaignFilter", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v3_CertificationCampaignFiltersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V3.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).Execute() + httpRes, err := apiClient.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -51,7 +51,7 @@ func Test_api_v3_CertificationCampaignFiltersAPIService(t *testing.T) { var filterId string - resp, httpRes, err := apiClient.API_V3.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), filterId).Execute() + resp, httpRes, err := apiClient.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), filterId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -63,7 +63,7 @@ func Test_api_v3_CertificationCampaignFiltersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -77,7 +77,7 @@ func Test_api_v3_CertificationCampaignFiltersAPIService(t *testing.T) { var filterId string - resp, httpRes, err := apiClient.API_V3.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).Execute() + resp, httpRes, err := apiClient.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_certification_campaigns_test.go b/api_v3/test/api_certification_campaigns_test.go index 2856d1ab4..445d21eb7 100644 --- a/api_v3/test/api_certification_campaigns_test.go +++ b/api_v3/test/api_certification_campaigns_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CertificationCampaignsAPIService CompleteCampaign", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.CreateCampaign(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.CreateCampaign(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -66,7 +66,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() + httpRes, err := apiClient.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -79,7 +79,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() + httpRes, err := apiClient.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -90,7 +90,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -102,7 +102,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -116,7 +116,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -130,7 +130,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -142,7 +142,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -156,7 +156,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -170,7 +170,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -182,7 +182,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -196,7 +196,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.Move(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.Move(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -210,7 +210,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -222,7 +222,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -236,7 +236,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Execute() + httpRes, err := apiClient.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -249,7 +249,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.StartCampaign(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.StartCampaign(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -263,7 +263,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -278,7 +278,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { var id string var type_ ReportType - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -292,7 +292,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -306,7 +306,7 @@ func Test_api_v3_CertificationCampaignsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_certification_summaries_test.go b/api_v3/test/api_certification_summaries_test.go index b3cf602e8..801e85c87 100644 --- a/api_v3/test/api_certification_summaries_test.go +++ b/api_v3/test/api_certification_summaries_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_CertificationSummariesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CertificationSummariesAPIService GetIdentityAccessSummaries", func(t *testing.T) { @@ -29,7 +29,7 @@ func Test_api_v3_CertificationSummariesAPIService(t *testing.T) { var id string var type_ string - resp, httpRes, err := apiClient.API_V3.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Execute() + resp, httpRes, err := apiClient.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -43,7 +43,7 @@ func Test_api_v3_CertificationSummariesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -57,7 +57,7 @@ func Test_api_v3_CertificationSummariesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -72,7 +72,7 @@ func Test_api_v3_CertificationSummariesAPIService(t *testing.T) { var id string var identitySummaryId string - resp, httpRes, err := apiClient.API_V3.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() + resp, httpRes, err := apiClient.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_certifications_test.go b/api_v3/test/api_certifications_test.go index c445da087..2055fae1b 100644 --- a/api_v3/test/api_certifications_test.go +++ b/api_v3/test/api_certifications_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_CertificationsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CertificationsAPIService GetCertificationTask", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v3_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -42,7 +42,7 @@ func Test_api_v3_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -57,7 +57,7 @@ func Test_api_v3_CertificationsAPIService(t *testing.T) { var certificationId string var itemId string - resp, httpRes, err := apiClient.API_V3.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -69,7 +69,7 @@ func Test_api_v3_CertificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.CertificationsAPI.GetPendingCertificationTasks(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.GetPendingCertificationTasks(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -83,7 +83,7 @@ func Test_api_v3_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -97,7 +97,7 @@ func Test_api_v3_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -109,7 +109,7 @@ func Test_api_v3_CertificationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.CertificationsAPI.ListIdentityCertifications(context.Background()).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.ListIdentityCertifications(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -123,7 +123,7 @@ func Test_api_v3_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationsAPI.MakeIdentityDecision(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.MakeIdentityDecision(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -137,7 +137,7 @@ func Test_api_v3_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -151,7 +151,7 @@ func Test_api_v3_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -165,7 +165,7 @@ func Test_api_v3_CertificationsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_configuration_hub_test.go b/api_v3/test/api_configuration_hub_test.go index 54fffdefd..c99247bc8 100644 --- a/api_v3/test/api_configuration_hub_test.go +++ b/api_v3/test/api_configuration_hub_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_ConfigurationHubAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ConfigurationHubAPIService CreateObjectMapping", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v3_ConfigurationHubAPIService(t *testing.T) { var sourceOrg string - resp, httpRes, err := apiClient.API_V3.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).Execute() + resp, httpRes, err := apiClient.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -42,7 +42,7 @@ func Test_api_v3_ConfigurationHubAPIService(t *testing.T) { var sourceOrg string - resp, httpRes, err := apiClient.API_V3.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).Execute() + resp, httpRes, err := apiClient.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -57,7 +57,7 @@ func Test_api_v3_ConfigurationHubAPIService(t *testing.T) { var sourceOrg string var objectMappingId string - httpRes, err := apiClient.API_V3.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() + httpRes, err := apiClient.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -70,7 +70,7 @@ func Test_api_v3_ConfigurationHubAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.ConfigurationHubAPI.DeleteUploadedBackup(context.Background(), id).Execute() + httpRes, err := apiClient.ConfigurationHubAPI.DeleteUploadedBackup(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -83,7 +83,7 @@ func Test_api_v3_ConfigurationHubAPIService(t *testing.T) { var sourceOrg string - resp, httpRes, err := apiClient.API_V3.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() + resp, httpRes, err := apiClient.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -97,7 +97,7 @@ func Test_api_v3_ConfigurationHubAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.ConfigurationHubAPI.GetUploadedBackup(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ConfigurationHubAPI.GetUploadedBackup(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -109,7 +109,7 @@ func Test_api_v3_ConfigurationHubAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ConfigurationHubAPI.GetUploadedBackups(context.Background()).Execute() + resp, httpRes, err := apiClient.ConfigurationHubAPI.GetUploadedBackups(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -121,7 +121,7 @@ func Test_api_v3_ConfigurationHubAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ConfigurationHubAPI.ImportUploadedBackup(context.Background()).Execute() + resp, httpRes, err := apiClient.ConfigurationHubAPI.ImportUploadedBackup(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -135,7 +135,7 @@ func Test_api_v3_ConfigurationHubAPIService(t *testing.T) { var sourceOrg string - resp, httpRes, err := apiClient.API_V3.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).Execute() + resp, httpRes, err := apiClient.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_connectors_test.go b/api_v3/test/api_connectors_test.go index 320e1ade1..65016d394 100644 --- a/api_v3/test/api_connectors_test.go +++ b/api_v3/test/api_connectors_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_ConnectorsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ConnectorsAPIService CreateCustomConnector", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ConnectorsAPI.CreateCustomConnector(context.Background()).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.CreateCustomConnector(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_ConnectorsAPIService(t *testing.T) { var scriptName string - httpRes, err := apiClient.API_V3.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() + httpRes, err := apiClient.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v3_ConnectorsAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V3.ConnectorsAPI.GetConnector(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.GetConnector(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -67,7 +67,7 @@ func Test_api_v3_ConnectorsAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V3.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v3_ConnectorsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ConnectorsAPI.GetConnectorList(context.Background()).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.GetConnectorList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -93,7 +93,7 @@ func Test_api_v3_ConnectorsAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V3.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -107,7 +107,7 @@ func Test_api_v3_ConnectorsAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V3.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -122,7 +122,7 @@ func Test_api_v3_ConnectorsAPIService(t *testing.T) { var scriptName string var locale string - resp, httpRes, err := apiClient.API_V3.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -136,7 +136,7 @@ func Test_api_v3_ConnectorsAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V3.ConnectorsAPI.PutCorrelationConfig(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.PutCorrelationConfig(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -150,7 +150,7 @@ func Test_api_v3_ConnectorsAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V3.ConnectorsAPI.PutSourceConfig(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.PutSourceConfig(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -164,7 +164,7 @@ func Test_api_v3_ConnectorsAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V3.ConnectorsAPI.PutSourceTemplate(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.PutSourceTemplate(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -179,7 +179,7 @@ func Test_api_v3_ConnectorsAPIService(t *testing.T) { var scriptName string var locale string - resp, httpRes, err := apiClient.API_V3.ConnectorsAPI.PutTranslations(context.Background(), scriptName, locale).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.PutTranslations(context.Background(), scriptName, locale).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -193,7 +193,7 @@ func Test_api_v3_ConnectorsAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V3.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_global_tenant_security_settings_test.go b/api_v3/test/api_global_tenant_security_settings_test.go index 5635e1159..2a68ca121 100644 --- a/api_v3/test/api_global_tenant_security_settings_test.go +++ b/api_v3/test/api_global_tenant_security_settings_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_GlobalTenantSecuritySettingsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test GlobalTenantSecuritySettingsAPIService CreateAuthOrgNetworkConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v3_GlobalTenantSecuritySettingsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_v3_GlobalTenantSecuritySettingsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -62,7 +62,7 @@ func Test_api_v3_GlobalTenantSecuritySettingsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -74,7 +74,7 @@ func Test_api_v3_GlobalTenantSecuritySettingsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -86,7 +86,7 @@ func Test_api_v3_GlobalTenantSecuritySettingsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -98,7 +98,7 @@ func Test_api_v3_GlobalTenantSecuritySettingsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -110,7 +110,7 @@ func Test_api_v3_GlobalTenantSecuritySettingsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -122,7 +122,7 @@ func Test_api_v3_GlobalTenantSecuritySettingsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_identity_profiles_test.go b/api_v3/test/api_identity_profiles_test.go index 706a23173..ccbd03111 100644 --- a/api_v3/test/api_identity_profiles_test.go +++ b/api_v3/test/api_identity_profiles_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_IdentityProfilesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IdentityProfilesAPIService CreateIdentityProfile", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_IdentityProfilesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_V3.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_v3_IdentityProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -64,7 +64,7 @@ func Test_api_v3_IdentityProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -78,7 +78,7 @@ func Test_api_v3_IdentityProfilesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_V3.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -92,7 +92,7 @@ func Test_api_v3_IdentityProfilesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_V3.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -104,7 +104,7 @@ func Test_api_v3_IdentityProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -116,7 +116,7 @@ func Test_api_v3_IdentityProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -128,7 +128,7 @@ func Test_api_v3_IdentityProfilesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.IdentityProfilesAPI.ShowIdentityPreview(context.Background()).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.ShowIdentityPreview(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -142,7 +142,7 @@ func Test_api_v3_IdentityProfilesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_V3.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -156,7 +156,7 @@ func Test_api_v3_IdentityProfilesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_V3.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_lifecycle_states_test.go b/api_v3/test/api_lifecycle_states_test.go index f08b83ba0..5f078a1c6 100644 --- a/api_v3/test/api_lifecycle_states_test.go +++ b/api_v3/test/api_lifecycle_states_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_LifecycleStatesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test LifecycleStatesAPIService CreateLifecycleState", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v3_LifecycleStatesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_V3.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -43,7 +43,7 @@ func Test_api_v3_LifecycleStatesAPIService(t *testing.T) { var identityProfileId string var lifecycleStateId string - resp, httpRes, err := apiClient.API_V3.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + resp, httpRes, err := apiClient.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,7 +58,7 @@ func Test_api_v3_LifecycleStatesAPIService(t *testing.T) { var identityProfileId string var lifecycleStateId string - resp, httpRes, err := apiClient.API_V3.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + resp, httpRes, err := apiClient.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -72,7 +72,7 @@ func Test_api_v3_LifecycleStatesAPIService(t *testing.T) { var identityProfileId string - resp, httpRes, err := apiClient.API_V3.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Execute() + resp, httpRes, err := apiClient.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -86,7 +86,7 @@ func Test_api_v3_LifecycleStatesAPIService(t *testing.T) { var identityId string - resp, httpRes, err := apiClient.API_V3.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).Execute() + resp, httpRes, err := apiClient.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -101,7 +101,7 @@ func Test_api_v3_LifecycleStatesAPIService(t *testing.T) { var identityProfileId string var lifecycleStateId string - resp, httpRes, err := apiClient.API_V3.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).Execute() + resp, httpRes, err := apiClient.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_managed_clients_test.go b/api_v3/test/api_managed_clients_test.go index 88ab3fb9c..be3230be2 100644 --- a/api_v3/test/api_managed_clients_test.go +++ b/api_v3/test/api_managed_clients_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_ManagedClientsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ManagedClientsAPIService CreateManagedClient", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ManagedClientsAPI.CreateManagedClient(context.Background()).Execute() + resp, httpRes, err := apiClient.ManagedClientsAPI.CreateManagedClient(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_ManagedClientsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() + httpRes, err := apiClient.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v3_ManagedClientsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -67,7 +67,7 @@ func Test_api_v3_ManagedClientsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v3_ManagedClientsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ManagedClientsAPI.GetManagedClients(context.Background()).Execute() + resp, httpRes, err := apiClient.ManagedClientsAPI.GetManagedClients(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -93,7 +93,7 @@ func Test_api_v3_ManagedClientsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_managed_clusters_test.go b/api_v3/test/api_managed_clusters_test.go index 8938f530a..22d23db01 100644 --- a/api_v3/test/api_managed_clusters_test.go +++ b/api_v3/test/api_managed_clusters_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_ManagedClustersAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ManagedClustersAPIService CreateManagedCluster", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ManagedClustersAPI.CreateManagedCluster(context.Background()).Execute() + resp, httpRes, err := apiClient.ManagedClustersAPI.CreateManagedCluster(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_ManagedClustersAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).Execute() + httpRes, err := apiClient.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v3_ManagedClustersAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v3_ManagedClustersAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() + resp, httpRes, err := apiClient.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v3_ManagedClustersAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_mfa_configuration_test.go b/api_v3/test/api_mfa_configuration_test.go index d09ca09ef..b8ba6c41a 100644 --- a/api_v3/test/api_mfa_configuration_test.go +++ b/api_v3/test/api_mfa_configuration_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_MFAConfigurationAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test MFAConfigurationAPIService DeleteMFAConfig", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v3_MFAConfigurationAPIService(t *testing.T) { var method string - resp, httpRes, err := apiClient.API_V3.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_MFAConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_v3_MFAConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -64,7 +64,7 @@ func Test_api_v3_MFAConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -76,7 +76,7 @@ func Test_api_v3_MFAConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -88,7 +88,7 @@ func Test_api_v3_MFAConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -100,7 +100,7 @@ func Test_api_v3_MFAConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -114,7 +114,7 @@ func Test_api_v3_MFAConfigurationAPIService(t *testing.T) { var method string - resp, httpRes, err := apiClient.API_V3.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() + resp, httpRes, err := apiClient.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_mfa_controller_test.go b/api_v3/test/api_mfa_controller_test.go index a62bb7980..a6dfd3a68 100644 --- a/api_v3/test/api_mfa_controller_test.go +++ b/api_v3/test/api_mfa_controller_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_MFAControllerAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test MFAControllerAPIService CreateSendToken", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.MFAControllerAPI.CreateSendToken(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAControllerAPI.CreateSendToken(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_MFAControllerAPIService(t *testing.T) { var method string - resp, httpRes, err := apiClient.API_V3.MFAControllerAPI.PingVerificationStatus(context.Background(), method).Execute() + resp, httpRes, err := apiClient.MFAControllerAPI.PingVerificationStatus(context.Background(), method).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_v3_MFAControllerAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -64,7 +64,7 @@ func Test_api_v3_MFAControllerAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.MFAControllerAPI.SendKbaAnswers(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAControllerAPI.SendKbaAnswers(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -76,7 +76,7 @@ func Test_api_v3_MFAControllerAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -88,7 +88,7 @@ func Test_api_v3_MFAControllerAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.MFAControllerAPI.SendTokenAuthRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.MFAControllerAPI.SendTokenAuthRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_non_employee_lifecycle_management_test.go b/api_v3/test/api_non_employee_lifecycle_management_test.go index 1d5ace66b..7fad6f981 100644 --- a/api_v3/test/api_non_employee_lifecycle_management_test.go +++ b/api_v3/test/api_non_employee_lifecycle_management_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test NonEmployeeLifecycleManagementAPIService ApproveNonEmployeeRequest", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -64,7 +64,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -78,7 +78,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -92,7 +92,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -103,7 +103,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -116,7 +116,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -130,7 +130,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var attributeId string var sourceId string - httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -143,7 +143,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -156,7 +156,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -169,7 +169,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -182,7 +182,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() + httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -195,7 +195,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -209,7 +209,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var requestedFor string - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -223,7 +223,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -237,7 +237,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -251,7 +251,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -265,7 +265,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var requestedFor string - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -280,7 +280,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var attributeId string var sourceId string - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -294,7 +294,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -308,7 +308,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -322,7 +322,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -334,7 +334,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -346,7 +346,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -358,7 +358,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -370,7 +370,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -384,7 +384,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -399,7 +399,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var attributeId string var sourceId string - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -413,7 +413,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -427,7 +427,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -441,7 +441,7 @@ func Test_api_v3_NonEmployeeLifecycleManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).Execute() + resp, httpRes, err := apiClient.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_o_auth_clients_test.go b/api_v3/test/api_o_auth_clients_test.go index 6378af642..fce9e48cd 100644 --- a/api_v3/test/api_o_auth_clients_test.go +++ b/api_v3/test/api_o_auth_clients_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_OAuthClientsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test OAuthClientsAPIService CreateOauthClient", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.OAuthClientsAPI.CreateOauthClient(context.Background()).Execute() + resp, httpRes, err := apiClient.OAuthClientsAPI.CreateOauthClient(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_OAuthClientsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() + httpRes, err := apiClient.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v3_OAuthClientsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() + resp, httpRes, err := apiClient.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v3_OAuthClientsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() + resp, httpRes, err := apiClient.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v3_OAuthClientsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.OAuthClientsAPI.PatchOauthClient(context.Background(), id).Execute() + resp, httpRes, err := apiClient.OAuthClientsAPI.PatchOauthClient(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_password_configuration_test.go b/api_v3/test/api_password_configuration_test.go index c3384115a..c63b99098 100644 --- a/api_v3/test/api_password_configuration_test.go +++ b/api_v3/test/api_password_configuration_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_PasswordConfigurationAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PasswordConfigurationAPIService CreatePasswordOrgConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v3_PasswordConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -50,7 +50,7 @@ func Test_api_v3_PasswordConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_password_dictionary_test.go b/api_v3/test/api_password_dictionary_test.go index 25d623e4e..120716e68 100644 --- a/api_v3/test/api_password_dictionary_test.go +++ b/api_v3/test/api_password_dictionary_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_PasswordDictionaryAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PasswordDictionaryAPIService GetPasswordDictionary", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v3_PasswordDictionaryAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V3.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() + httpRes, err := apiClient.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) diff --git a/api_v3/test/api_password_management_test.go b/api_v3/test/api_password_management_test.go index fc07e8976..f480f9f3a 100644 --- a/api_v3/test/api_password_management_test.go +++ b/api_v3/test/api_password_management_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_PasswordManagementAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PasswordManagementAPIService GetPasswordChangeStatus", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v3_PasswordManagementAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_PasswordManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.PasswordManagementAPI.QueryPasswordInfo(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordManagementAPI.QueryPasswordInfo(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_v3_PasswordManagementAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.PasswordManagementAPI.SetPassword(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordManagementAPI.SetPassword(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_password_policies_test.go b/api_v3/test/api_password_policies_test.go index 07c6b0dc7..99dd671c1 100644 --- a/api_v3/test/api_password_policies_test.go +++ b/api_v3/test/api_password_policies_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_PasswordPoliciesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PasswordPoliciesAPIService CreatePasswordPolicy", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_PasswordPoliciesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() + httpRes, err := apiClient.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v3_PasswordPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v3_PasswordPoliciesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v3_PasswordPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_password_sync_groups_test.go b/api_v3/test/api_password_sync_groups_test.go index ce774bcf8..daecd96a4 100644 --- a/api_v3/test/api_password_sync_groups_test.go +++ b/api_v3/test/api_password_sync_groups_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_PasswordSyncGroupsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PasswordSyncGroupsAPIService CreatePasswordSyncGroup", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_PasswordSyncGroupsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() + httpRes, err := apiClient.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v3_PasswordSyncGroupsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v3_PasswordSyncGroupsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() + resp, httpRes, err := apiClient.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v3_PasswordSyncGroupsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_personal_access_tokens_test.go b/api_v3/test/api_personal_access_tokens_test.go index c9edbb993..e1ccc237b 100644 --- a/api_v3/test/api_personal_access_tokens_test.go +++ b/api_v3/test/api_personal_access_tokens_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_PersonalAccessTokensAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PersonalAccessTokensAPIService CreatePersonalAccessToken", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).Execute() + resp, httpRes, err := apiClient.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_PersonalAccessTokensAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() + httpRes, err := apiClient.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -51,7 +51,7 @@ func Test_api_v3_PersonalAccessTokensAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() + resp, httpRes, err := apiClient.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v3_PersonalAccessTokensAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).Execute() + resp, httpRes, err := apiClient.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_public_identities_config_test.go b/api_v3/test/api_public_identities_config_test.go index e7af6ae0e..3a70ba8bf 100644 --- a/api_v3/test/api_public_identities_config_test.go +++ b/api_v3/test/api_public_identities_config_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_PublicIdentitiesConfigAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PublicIdentitiesConfigAPIService GetPublicIdentityConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v3_PublicIdentitiesConfigAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_public_identities_test.go b/api_v3/test/api_public_identities_test.go index 0356f42c7..3e3283617 100644 --- a/api_v3/test/api_public_identities_test.go +++ b/api_v3/test/api_public_identities_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_PublicIdentitiesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PublicIdentitiesAPIService GetPublicIdentities", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Execute() + resp, httpRes, err := apiClient.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_reports_data_extraction_test.go b/api_v3/test/api_reports_data_extraction_test.go index c4878a03c..73dc67f36 100644 --- a/api_v3/test/api_reports_data_extraction_test.go +++ b/api_v3/test/api_reports_data_extraction_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_ReportsDataExtractionAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ReportsDataExtractionAPIService CancelReport", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v3_ReportsDataExtractionAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() + httpRes, err := apiClient.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -41,7 +41,7 @@ func Test_api_v3_ReportsDataExtractionAPIService(t *testing.T) { var taskResultId string - resp, httpRes, err := apiClient.API_V3.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).Execute() + resp, httpRes, err := apiClient.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -55,7 +55,7 @@ func Test_api_v3_ReportsDataExtractionAPIService(t *testing.T) { var taskResultId string - resp, httpRes, err := apiClient.API_V3.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Execute() + resp, httpRes, err := apiClient.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -67,7 +67,7 @@ func Test_api_v3_ReportsDataExtractionAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ReportsDataExtractionAPI.StartReport(context.Background()).Execute() + resp, httpRes, err := apiClient.ReportsDataExtractionAPI.StartReport(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_requestable_objects_test.go b/api_v3/test/api_requestable_objects_test.go index f5b2d2e7d..f3f03acb8 100644 --- a/api_v3/test/api_requestable_objects_test.go +++ b/api_v3/test/api_requestable_objects_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_RequestableObjectsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test RequestableObjectsAPIService ListRequestableObjects", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() + resp, httpRes, err := apiClient.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_roles_test.go b/api_v3/test/api_roles_test.go index 6085f2e3c..12a974ce6 100644 --- a/api_v3/test/api_roles_test.go +++ b/api_v3/test/api_roles_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_RolesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test RolesAPIService CreateRole", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.RolesAPI.CreateRole(context.Background()).Execute() + resp, httpRes, err := apiClient.RolesAPI.CreateRole(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v3_RolesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.RolesAPI.DeleteBulkRoles(context.Background()).Execute() + resp, httpRes, err := apiClient.RolesAPI.DeleteBulkRoles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -52,7 +52,7 @@ func Test_api_v3_RolesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.RolesAPI.DeleteRole(context.Background(), id).Execute() + httpRes, err := apiClient.RolesAPI.DeleteRole(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -65,7 +65,7 @@ func Test_api_v3_RolesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.RolesAPI.GetRole(context.Background(), id).Execute() + resp, httpRes, err := apiClient.RolesAPI.GetRole(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v3_RolesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() + resp, httpRes, err := apiClient.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -91,7 +91,7 @@ func Test_api_v3_RolesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.RolesAPI.ListRoles(context.Background()).Execute() + resp, httpRes, err := apiClient.RolesAPI.ListRoles(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -105,7 +105,7 @@ func Test_api_v3_RolesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.RolesAPI.PatchRole(context.Background(), id).Execute() + resp, httpRes, err := apiClient.RolesAPI.PatchRole(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_saved_search_test.go b/api_v3/test/api_saved_search_test.go index 23161e79f..110873338 100644 --- a/api_v3/test/api_saved_search_test.go +++ b/api_v3/test/api_saved_search_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_SavedSearchAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SavedSearchAPIService CreateSavedSearch", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.SavedSearchAPI.CreateSavedSearch(context.Background()).Execute() + resp, httpRes, err := apiClient.SavedSearchAPI.CreateSavedSearch(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_SavedSearchAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() + httpRes, err := apiClient.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v3_SavedSearchAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).Execute() + httpRes, err := apiClient.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -66,7 +66,7 @@ func Test_api_v3_SavedSearchAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -78,7 +78,7 @@ func Test_api_v3_SavedSearchAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.SavedSearchAPI.ListSavedSearches(context.Background()).Execute() + resp, httpRes, err := apiClient.SavedSearchAPI.ListSavedSearches(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -92,7 +92,7 @@ func Test_api_v3_SavedSearchAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SavedSearchAPI.PutSavedSearch(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SavedSearchAPI.PutSavedSearch(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_scheduled_search_test.go b/api_v3/test/api_scheduled_search_test.go index 33b71f30a..1364d0ddc 100644 --- a/api_v3/test/api_scheduled_search_test.go +++ b/api_v3/test/api_scheduled_search_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_ScheduledSearchAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ScheduledSearchAPIService CreateScheduledSearch", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).Execute() + resp, httpRes, err := apiClient.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_ScheduledSearchAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() + httpRes, err := apiClient.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v3_ScheduledSearchAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v3_ScheduledSearchAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Execute() + resp, httpRes, err := apiClient.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v3_ScheduledSearchAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).Execute() + httpRes, err := apiClient.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -92,7 +92,7 @@ func Test_api_v3_ScheduledSearchAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_search_attribute_configuration_test.go b/api_v3/test/api_search_attribute_configuration_test.go index e84dd6c34..6895c9ce7 100644 --- a/api_v3/test/api_search_attribute_configuration_test.go +++ b/api_v3/test/api_search_attribute_configuration_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_SearchAttributeConfigurationAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SearchAttributeConfigurationAPIService CreateSearchAttributeConfig", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_SearchAttributeConfigurationAPIService(t *testing.T) { var name string - httpRes, err := apiClient.API_V3.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() + httpRes, err := apiClient.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -51,7 +51,7 @@ func Test_api_v3_SearchAttributeConfigurationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Execute() + resp, httpRes, err := apiClient.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v3_SearchAttributeConfigurationAPIService(t *testing.T) { var name string - resp, httpRes, err := apiClient.API_V3.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() + resp, httpRes, err := apiClient.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v3_SearchAttributeConfigurationAPIService(t *testing.T) { var name string - resp, httpRes, err := apiClient.API_V3.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).Execute() + resp, httpRes, err := apiClient.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_search_test.go b/api_v3/test/api_search_test.go index bd4179ef6..4605bf60b 100644 --- a/api_v3/test/api_search_test.go +++ b/api_v3/test/api_search_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_SearchAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SearchAPIService SearchAggregate", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.SearchAPI.SearchAggregate(context.Background()).Execute() + resp, httpRes, err := apiClient.SearchAPI.SearchAggregate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v3_SearchAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V3.SearchAPI.SearchCount(context.Background()).Execute() + httpRes, err := apiClient.SearchAPI.SearchCount(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -52,7 +52,7 @@ func Test_api_v3_SearchAPIService(t *testing.T) { var index string var id string - resp, httpRes, err := apiClient.API_V3.SearchAPI.SearchGet(context.Background(), index, id).Execute() + resp, httpRes, err := apiClient.SearchAPI.SearchGet(context.Background(), index, id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -64,7 +64,7 @@ func Test_api_v3_SearchAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.SearchAPI.SearchPost(context.Background()).Execute() + resp, httpRes, err := apiClient.SearchAPI.SearchPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_segments_test.go b/api_v3/test/api_segments_test.go index f1b37aa5d..83324bf39 100644 --- a/api_v3/test/api_segments_test.go +++ b/api_v3/test/api_segments_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_SegmentsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SegmentsAPIService CreateSegment", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.SegmentsAPI.CreateSegment(context.Background()).Execute() + resp, httpRes, err := apiClient.SegmentsAPI.CreateSegment(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_SegmentsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() + httpRes, err := apiClient.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v3_SegmentsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SegmentsAPI.GetSegment(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SegmentsAPI.GetSegment(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v3_SegmentsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.SegmentsAPI.ListSegments(context.Background()).Execute() + resp, httpRes, err := apiClient.SegmentsAPI.ListSegments(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v3_SegmentsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SegmentsAPI.PatchSegment(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SegmentsAPI.PatchSegment(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_service_desk_integration_test.go b/api_v3/test/api_service_desk_integration_test.go index 23dd37a95..6f6946d53 100644 --- a/api_v3/test/api_service_desk_integration_test.go +++ b/api_v3/test/api_service_desk_integration_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_ServiceDeskIntegrationAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ServiceDeskIntegrationAPIService CreateServiceDeskIntegration", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_ServiceDeskIntegrationAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() + httpRes, err := apiClient.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v3_ServiceDeskIntegrationAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -67,7 +67,7 @@ func Test_api_v3_ServiceDeskIntegrationAPIService(t *testing.T) { var scriptName string - resp, httpRes, err := apiClient.API_V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v3_ServiceDeskIntegrationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -91,7 +91,7 @@ func Test_api_v3_ServiceDeskIntegrationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -103,7 +103,7 @@ func Test_api_v3_ServiceDeskIntegrationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -117,7 +117,7 @@ func Test_api_v3_ServiceDeskIntegrationAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -131,7 +131,7 @@ func Test_api_v3_ServiceDeskIntegrationAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -143,7 +143,7 @@ func Test_api_v3_ServiceDeskIntegrationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).Execute() + resp, httpRes, err := apiClient.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_sod_policies_test.go b/api_v3/test/api_sod_policies_test.go index ac4a3bd02..86ca4248e 100644 --- a/api_v3/test/api_sod_policies_test.go +++ b/api_v3/test/api_sod_policies_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_SODPoliciesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SODPoliciesAPIService CreateSodPolicy", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.SODPoliciesAPI.CreateSodPolicy(context.Background()).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.CreateSodPolicy(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_SODPoliciesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() + httpRes, err := apiClient.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v3_SODPoliciesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() + httpRes, err := apiClient.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -67,7 +67,7 @@ func Test_api_v3_SODPoliciesAPIService(t *testing.T) { var reportResultId string var fileName string - resp, httpRes, err := apiClient.API_V3.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -81,7 +81,7 @@ func Test_api_v3_SODPoliciesAPIService(t *testing.T) { var reportResultId string - resp, httpRes, err := apiClient.API_V3.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -93,7 +93,7 @@ func Test_api_v3_SODPoliciesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -107,7 +107,7 @@ func Test_api_v3_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -121,7 +121,7 @@ func Test_api_v3_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -135,7 +135,7 @@ func Test_api_v3_SODPoliciesAPIService(t *testing.T) { var reportResultId string - resp, httpRes, err := apiClient.API_V3.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -149,7 +149,7 @@ func Test_api_v3_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -161,7 +161,7 @@ func Test_api_v3_SODPoliciesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -175,7 +175,7 @@ func Test_api_v3_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -189,7 +189,7 @@ func Test_api_v3_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -203,7 +203,7 @@ func Test_api_v3_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SODPoliciesAPI.PutSodPolicy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.PutSodPolicy(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -217,7 +217,7 @@ func Test_api_v3_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -229,7 +229,7 @@ func Test_api_v3_SODPoliciesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -243,7 +243,7 @@ func Test_api_v3_SODPoliciesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_sod_violations_test.go b/api_v3/test/api_sod_violations_test.go index 11ea761ca..c5c683a46 100644 --- a/api_v3/test/api_sod_violations_test.go +++ b/api_v3/test/api_sod_violations_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_SODViolationsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SODViolationsAPIService StartPredictSodViolations", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.SODViolationsAPI.StartPredictSodViolations(context.Background()).Execute() + resp, httpRes, err := apiClient.SODViolationsAPI.StartPredictSodViolations(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v3_SODViolationsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.SODViolationsAPI.StartViolationCheck(context.Background()).Execute() + resp, httpRes, err := apiClient.SODViolationsAPI.StartViolationCheck(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_source_usages_test.go b/api_v3/test/api_source_usages_test.go index bb42b713e..aff27e431 100644 --- a/api_v3/test/api_source_usages_test.go +++ b/api_v3/test/api_source_usages_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_SourceUsagesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SourceUsagesAPIService GetStatusBySourceId", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v3_SourceUsagesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V3.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -42,7 +42,7 @@ func Test_api_v3_SourceUsagesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V3.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_sources_test.go b/api_v3/test/api_sources_test.go index 2f554c907..2776e0be6 100644 --- a/api_v3/test/api_sources_test.go +++ b/api_v3/test/api_sources_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_SourcesAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SourcesAPIService CreateProvisioningPolicy", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V3.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.SourcesAPI.CreateSource(context.Background()).Execute() + resp, httpRes, err := apiClient.SourcesAPI.CreateSource(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -54,7 +54,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V3.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -69,7 +69,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var sourceId string var usageType UsageType - httpRes, err := apiClient.API_V3.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + httpRes, err := apiClient.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -82,7 +82,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SourcesAPI.DeleteSource(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.DeleteSource(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -97,7 +97,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var sourceId string var schemaId string - httpRes, err := apiClient.API_V3.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() + httpRes, err := apiClient.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -110,7 +110,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() + httpRes, err := apiClient.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -123,7 +123,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.SourcesAPI.GetEntitlementsSchema(context.Background(), id).Execute() + httpRes, err := apiClient.SourcesAPI.GetEntitlementsSchema(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -137,7 +137,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var sourceId string var usageType UsageType - resp, httpRes, err := apiClient.API_V3.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -151,7 +151,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SourcesAPI.GetSource(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetSource(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -165,7 +165,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V3.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -180,7 +180,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var sourceId string var schemaId string - resp, httpRes, err := apiClient.API_V3.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -194,7 +194,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V3.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -208,7 +208,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SourcesAPI.ImportAccountsSchema(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ImportAccountsSchema(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -222,7 +222,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V3.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -236,7 +236,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -250,7 +250,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V3.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -262,7 +262,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.SourcesAPI.ListSources(context.Background()).Execute() + resp, httpRes, err := apiClient.SourcesAPI.ListSources(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -277,7 +277,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var sourceId string var usageType UsageType - resp, httpRes, err := apiClient.API_V3.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -291,7 +291,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SourcesAPI.PutSource(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PutSource(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -306,7 +306,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var sourceId string var schemaId string - resp, httpRes, err := apiClient.API_V3.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -320,7 +320,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var sourceId string - resp, httpRes, err := apiClient.API_V3.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -335,7 +335,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var sourceId string var usageType UsageType - resp, httpRes, err := apiClient.API_V3.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + resp, httpRes, err := apiClient.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -349,7 +349,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.SourcesAPI.UpdateSource(context.Background(), id).Execute() + resp, httpRes, err := apiClient.SourcesAPI.UpdateSource(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -364,7 +364,7 @@ func Test_api_v3_SourcesAPIService(t *testing.T) { var sourceId string var schemaId string - resp, httpRes, err := apiClient.API_V3.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).Execute() + resp, httpRes, err := apiClient.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_tagged_objects_test.go b/api_v3/test/api_tagged_objects_test.go index 89ce7c42c..358f9b115 100644 --- a/api_v3/test/api_tagged_objects_test.go +++ b/api_v3/test/api_tagged_objects_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_TaggedObjectsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test TaggedObjectsAPIService DeleteTaggedObject", func(t *testing.T) { @@ -29,7 +29,7 @@ func Test_api_v3_TaggedObjectsAPIService(t *testing.T) { var type_ string var id string - httpRes, err := apiClient.API_V3.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() + httpRes, err := apiClient.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -40,7 +40,7 @@ func Test_api_v3_TaggedObjectsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V3.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).Execute() + httpRes, err := apiClient.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -54,7 +54,7 @@ func Test_api_v3_TaggedObjectsAPIService(t *testing.T) { var type_ string var id string - resp, httpRes, err := apiClient.API_V3.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() + resp, httpRes, err := apiClient.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -66,7 +66,7 @@ func Test_api_v3_TaggedObjectsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() + resp, httpRes, err := apiClient.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -80,7 +80,7 @@ func Test_api_v3_TaggedObjectsAPIService(t *testing.T) { var type_ string - resp, httpRes, err := apiClient.API_V3.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() + resp, httpRes, err := apiClient.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -95,7 +95,7 @@ func Test_api_v3_TaggedObjectsAPIService(t *testing.T) { var type_ string var id string - resp, httpRes, err := apiClient.API_V3.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).Execute() + resp, httpRes, err := apiClient.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -107,7 +107,7 @@ func Test_api_v3_TaggedObjectsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - httpRes, err := apiClient.API_V3.TaggedObjectsAPI.SetTagToObject(context.Background()).Execute() + httpRes, err := apiClient.TaggedObjectsAPI.SetTagToObject(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -118,7 +118,7 @@ func Test_api_v3_TaggedObjectsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).Execute() + resp, httpRes, err := apiClient.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_transforms_test.go b/api_v3/test/api_transforms_test.go index cc4034b9a..0a4bf3dbd 100644 --- a/api_v3/test/api_transforms_test.go +++ b/api_v3/test/api_transforms_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_TransformsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test TransformsAPIService CreateTransform", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.TransformsAPI.CreateTransform(context.Background()).Execute() + resp, httpRes, err := apiClient.TransformsAPI.CreateTransform(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -40,7 +40,7 @@ func Test_api_v3_TransformsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.TransformsAPI.DeleteTransform(context.Background(), id).Execute() + httpRes, err := apiClient.TransformsAPI.DeleteTransform(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -53,7 +53,7 @@ func Test_api_v3_TransformsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.TransformsAPI.GetTransform(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TransformsAPI.GetTransform(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -65,7 +65,7 @@ func Test_api_v3_TransformsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.TransformsAPI.ListTransforms(context.Background()).Execute() + resp, httpRes, err := apiClient.TransformsAPI.ListTransforms(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -79,7 +79,7 @@ func Test_api_v3_TransformsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.TransformsAPI.UpdateTransform(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TransformsAPI.UpdateTransform(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_vendor_connector_mappings_test.go b/api_v3/test/api_vendor_connector_mappings_test.go index ee7238550..42129a1e5 100644 --- a/api_v3/test/api_vendor_connector_mappings_test.go +++ b/api_v3/test/api_vendor_connector_mappings_test.go @@ -19,14 +19,14 @@ import ( func Test_api_v3_VendorConnectorMappingsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test VendorConnectorMappingsAPIService CreateVendorConnectorMapping", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).Execute() + resp, httpRes, err := apiClient.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -38,7 +38,7 @@ func Test_api_v3_VendorConnectorMappingsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).Execute() + resp, httpRes, err := apiClient.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_work_items_test.go b/api_v3/test/api_work_items_test.go index 864e1b6a0..88de0ea60 100644 --- a/api_v3/test/api_work_items_test.go +++ b/api_v3/test/api_work_items_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_WorkItemsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test WorkItemsAPIService ApproveApprovalItem", func(t *testing.T) { @@ -29,7 +29,7 @@ func Test_api_v3_WorkItemsAPIService(t *testing.T) { var id string var approvalItemId string - resp, httpRes, err := apiClient.API_V3.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -43,7 +43,7 @@ func Test_api_v3_WorkItemsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -57,7 +57,7 @@ func Test_api_v3_WorkItemsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -69,7 +69,7 @@ func Test_api_v3_WorkItemsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -81,7 +81,7 @@ func Test_api_v3_WorkItemsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -93,7 +93,7 @@ func Test_api_v3_WorkItemsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.WorkItemsAPI.GetCountWorkItems(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.GetCountWorkItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -107,7 +107,7 @@ func Test_api_v3_WorkItemsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -119,7 +119,7 @@ func Test_api_v3_WorkItemsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.WorkItemsAPI.GetWorkItemsSummary(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.GetWorkItemsSummary(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -131,7 +131,7 @@ func Test_api_v3_WorkItemsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.WorkItemsAPI.ListWorkItems(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.ListWorkItems(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -146,7 +146,7 @@ func Test_api_v3_WorkItemsAPIService(t *testing.T) { var id string var approvalItemId string - resp, httpRes, err := apiClient.API_V3.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -160,7 +160,7 @@ func Test_api_v3_WorkItemsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -174,7 +174,7 @@ func Test_api_v3_WorkItemsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.WorkItemsAPI.SendWorkItemForward(context.Background(), id).Execute() + httpRes, err := apiClient.WorkItemsAPI.SendWorkItemForward(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -187,7 +187,7 @@ func Test_api_v3_WorkItemsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/test/api_workflows_test.go b/api_v3/test/api_workflows_test.go index a17174c51..d25162a83 100644 --- a/api_v3/test/api_workflows_test.go +++ b/api_v3/test/api_workflows_test.go @@ -19,7 +19,7 @@ import ( func Test_api_v3_WorkflowsAPIService(t *testing.T) { - configuration := openapiclient.NewDefaultConfiguration() + configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test WorkflowsAPIService CancelWorkflowExecution", func(t *testing.T) { @@ -28,7 +28,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() + httpRes, err := apiClient.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -41,7 +41,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -53,7 +53,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.WorkflowsAPI.CreateWorkflow(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.CreateWorkflow(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -67,7 +67,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -81,7 +81,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { var id string - httpRes, err := apiClient.API_V3.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() + httpRes, err := apiClient.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -94,7 +94,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -108,7 +108,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -122,7 +122,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -136,7 +136,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -148,7 +148,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -160,7 +160,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -172,7 +172,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -184,7 +184,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -196,7 +196,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.API_V3.WorkflowsAPI.ListWorkflows(context.Background()).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.ListWorkflows(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -210,7 +210,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.WorkflowsAPI.PatchWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.PatchWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -224,7 +224,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.WorkflowsAPI.PutWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.PutWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -238,7 +238,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -252,7 +252,7 @@ func Test_api_v3_WorkflowsAPIService(t *testing.T) { var id string - resp, httpRes, err := apiClient.API_V3.WorkflowsAPI.TestWorkflow(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WorkflowsAPI.TestWorkflow(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/api_v3/utils.go b/api_v3/utils.go index 2a0350479..563bee626 100644 --- a/api_v3/utils.go +++ b/api_v3/utils.go @@ -11,7 +11,9 @@ API version: 3.0.0 package api_v3 import ( + "bytes" "encoding/json" + "fmt" "reflect" "time" ) @@ -320,7 +322,7 @@ func NewNullableTime(val *time.Time) *NullableTime { } func (v NullableTime) MarshalJSON() ([]byte, error) { - return v.value.MarshalJSON() + return json.Marshal(v.value) } func (v *NullableTime) UnmarshalJSON(src []byte) error { @@ -328,8 +330,8 @@ func (v *NullableTime) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } -// isNil checks if an input is nil -func isNil(i interface{}) bool { +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { if i == nil { return true } @@ -345,3 +347,15 @@ func isNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} \ No newline at end of file diff --git a/go.mod b/go.mod index 9f3404585..344affac2 100644 --- a/go.mod +++ b/go.mod @@ -5,6 +5,7 @@ go 1.19 require ( github.com/stretchr/testify v1.8.3 golang.org/x/oauth2 v0.4.0 + gopkg.in/validator.v2 v2.0.1 ) require ( diff --git a/go.sum b/go.sum index 190b06ad7..a613f7970 100644 --- a/go.sum +++ b/go.sum @@ -486,6 +486,8 @@ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/validator.v2 v2.0.1 h1:xF0KWyGWXm/LM2G1TrEjqOu4pa6coO9AlWSf3msVfDY= +gopkg.in/validator.v2 v2.0.1/go.mod h1:lIUZBlB3Im4s/eYp39Ry/wkR02yOPhZ9IwIRBjuPuG8= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= diff --git a/openapi-generator-cli.jar b/openapi-generator-cli.jar index ae3c6dba1..e4b45257f 100644 Binary files a/openapi-generator-cli.jar and b/openapi-generator-cli.jar differ diff --git a/sdk-resources/resources/README.mustache b/sdk-resources/resources/README.mustache index 10ea34849..64a7c89f9 100644 --- a/sdk-resources/resources/README.mustache +++ b/sdk-resources/resources/README.mustache @@ -12,6 +12,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat {{^hideGenerationTimestamp}} - Build date: {{generatedDate}} {{/hideGenerationTimestamp}} +- Generator version: {{generatorVersion}} - Build package: {{generatorClass}} {{#infoUrl}} For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}}) @@ -21,7 +22,7 @@ For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}}) Install the following dependencies: -```shell +```sh go get github.com/stretchr/testify/assert {{#hasOAuthMethods}} go get golang.org/x/oauth2 @@ -31,13 +32,13 @@ go get golang.org/x/net/context Put the package under your project folder and add the following in import: -```golang +```go import {{packageName}} "{{gitHost}}/{{gitUserId}}/{{gitRepoId}}{{#isGoSubmodule}}/{{packageName}}{{/isGoSubmodule}}" ``` To use a proxy, set the environment variable `HTTP_PROXY`: -```golang +```go os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") ``` @@ -49,7 +50,7 @@ Default configuration comes with `Servers` field that contains server objects as For using other server than the one defined on index 0 set context value `{{packageName}}.ContextServerIndex` of type `int`. -```golang +```go ctx := context.WithValue(context.Background(), {{packageName}}.ContextServerIndex, 1) ``` @@ -57,7 +58,7 @@ ctx := context.WithValue(context.Background(), {{packageName}}.ContextServerInde Templated server URL is formatted using default variables from configuration or from context value `{{packageName}}.ContextServerVariables` of type `map[string]string`. -```golang +```go ctx := context.WithValue(context.Background(), {{packageName}}.ContextServerVariables, map[string]string{ "basePath": "v2", }) @@ -71,7 +72,7 @@ Each operation can use different server URL defined using `OperationServers` map An operation is uniquely identified by `"{classname}Service.{nickname}"` string. Similar rules for overriding default operation server index and variables applies by using `{{packageName}}.ContextOperationServerIndices` and `{{packageName}}.ContextOperationServerVariables` context maps. -```golang +```go ctx := context.WithValue(context.Background(), {{packageName}}.ContextOperationServerIndices, map[string]int{ "{classname}Service.{nickname}": 2, }) @@ -112,7 +113,7 @@ Note, each API key must be added to a map of `map[string]APIKey` where the key i Example -```golang +```go auth := context.WithValue( context.Background(), {{packageName}}.ContextAPIKeys, @@ -130,7 +131,7 @@ r, err := client.Service.Operation(auth, args) Example -```golang +```go auth := context.WithValue(context.Background(), {{packageName}}.ContextAccessToken, "BEARER_TOKEN_STRING") r, err := client.Service.Operation(auth, args) ``` @@ -141,10 +142,10 @@ r, err := client.Service.Operation(auth, args) Example -```golang +```go auth := context.WithValue(context.Background(), {{packageName}}.ContextBasicAuth, {{packageName}}.BasicAuth{ - UserName: "username", - Password: "password", + UserName: "username", + Password: "password", }) r, err := client.Service.Operation(auth, args) ``` @@ -155,7 +156,7 @@ r, err := client.Service.Operation(auth, args) Example -```golang +```go authConfig := {{packageName}}.HttpSignatureAuth{ KeyId: "my-key-id", PrivateKeyPath: "rsa.pem", @@ -193,14 +194,14 @@ Example Example -```golang +```go auth := context.WithValue(context.Background(), {{packageName}}.ContextAccessToken, "ACCESSTOKENSTRING") r, err := client.Service.Operation(auth, args) ``` Or via OAuth2 module to automatically refresh tokens and perform user authentication. -```golang +```go import "golang.org/x/oauth2" /* Perform OAuth2 round trip request and obtain a token */ diff --git a/sdk-resources/resources/api.mustache b/sdk-resources/resources/api.mustache index e29301b72..7ad4326ad 100644 --- a/sdk-resources/resources/api.mustache +++ b/sdk-resources/resources/api.mustache @@ -199,15 +199,15 @@ func (a *{{{classname}}}Service) {{nickname}}Execute(r {{#structPrefix}}{{&class if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToQuery(localVarQueryParams, "{{baseName}}", s.Index(i), "{{collectionFormat}}") + parameterAddToHeaderOrQuery(localVarQueryParams, "{{{baseName}}}", s.Index(i).Interface(), "{{style}}", "{{collectionFormat}}") } } else { - parameterAddToQuery(localVarQueryParams, "{{baseName}}", t, "{{collectionFormat}}") + parameterAddToHeaderOrQuery(localVarQueryParams, "{{{baseName}}}", t, "{{style}}", "{{collectionFormat}}") } } {{/isCollectionFormatMulti}} {{^isCollectionFormatMulti}} - parameterAddToQuery(localVarQueryParams, "{{baseName}}", r.{{paramName}}, "{{collectionFormat}}") + parameterAddToHeaderOrQuery(localVarQueryParams, "{{{baseName}}}", r.{{paramName}}, "{{style}}", "{{collectionFormat}}") {{/isCollectionFormatMulti}} {{/required}} {{^required}} @@ -217,14 +217,14 @@ func (a *{{{classname}}}Service) {{nickname}}Execute(r {{#structPrefix}}{{&class if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToQuery(localVarQueryParams, "{{baseName}}", s.Index(i), "{{collectionFormat}}") + parameterAddToHeaderOrQuery(localVarQueryParams, "{{{baseName}}}", s.Index(i).Interface(), "{{style}}", "{{collectionFormat}}") } } else { - parameterAddToQuery(localVarQueryParams, "{{baseName}}", t, "{{collectionFormat}}") + parameterAddToHeaderOrQuery(localVarQueryParams, "{{{baseName}}}", t, "{{style}}", "{{collectionFormat}}") } {{/isCollectionFormatMulti}} {{^isCollectionFormatMulti}} - parameterAddToQuery(localVarQueryParams, "{{baseName}}", r.{{paramName}}, "{{collectionFormat}}") + parameterAddToHeaderOrQuery(localVarQueryParams, "{{{baseName}}}", r.{{paramName}}, "{{style}}", "{{collectionFormat}}") {{/isCollectionFormatMulti}} {{#defaultValue}}} else { var defaultValue {{{dataType}}} = {{{.}}} @@ -255,11 +255,11 @@ func (a *{{{classname}}}Service) {{nickname}}Execute(r {{#structPrefix}}{{&class } {{#headerParams}} {{#required}} - parameterAddToQuery(localVarHeaderParams, "{{baseName}}", r.{{paramName}}, "{{collectionFormat}}") + parameterAddToHeaderOrQuery(localVarHeaderParams, "{{{baseName}}}", r.{{paramName}}, "{{style}}", "{{collectionFormat}}") {{/required}} {{^required}} if r.{{paramName}} != nil { - parameterAddToQuery(localVarHeaderParams, "{{baseName}}", r.{{paramName}}, "{{collectionFormat}}") + parameterAddToHeaderOrQuery(localVarHeaderParams, "{{{baseName}}}", r.{{paramName}}, "{{style}}", "{{collectionFormat}}") } {{/required}} {{/headerParams}} @@ -305,7 +305,7 @@ func (a *{{{classname}}}Service) {{nickname}}Execute(r {{#structPrefix}}{{&class {{/isFile}} {{^isFile}} {{#required}} - parameterAddToQuery(localVarFormParams, "{{baseName}}", r.{{paramName}}, "{{collectionFormat}}") + parameterAddToHeaderOrQuery(localVarFormParams, "{{{baseName}}}", r.{{paramName}}, "{{style}}", "{{collectionFormat}}") {{/required}} {{^required}} {{#isModel}} @@ -314,12 +314,12 @@ func (a *{{{classname}}}Service) {{nickname}}Execute(r {{#structPrefix}}{{&class if err != nil { return {{#returnType}}localVarReturnValue, {{/returnType}}nil, err } - localVarFormParams.Add("{{baseName}}", paramJson) + localVarFormParams.Add("{{{baseName}}}", paramJson) } {{/isModel}} {{^isModel}} if r.{{paramName}} != nil { - parameterAddToQuery(localVarFormParams, "{{baseName}}", r.{{paramName}}, "{{collectionFormat}}") + parameterAddToHeaderOrQuery(localVarFormParams, "{{{baseName}}}", r.{{paramName}}, "{{style}}", "{{collectionFormat}}") } {{/isModel}} {{/required}} diff --git a/sdk-resources/resources/api_doc.mustache b/sdk-resources/resources/api_doc.mustache index 623a15be4..151baa937 100644 --- a/sdk-resources/resources/api_doc.mustache +++ b/sdk-resources/resources/api_doc.mustache @@ -26,31 +26,31 @@ Method | HTTP request | Description package main import ( - "context" - "fmt" - "os" + "context" + "fmt" + "os" {{#vendorExtensions.x-go-import}} {{{vendorExtensions.x-go-import}}} {{/vendorExtensions.x-go-import}} - {{goImportAlias}} "{{gitHost}}/{{gitUserId}}/{{gitRepoId}}{{#isGoSubmodule}}/{{packageName}}{{/isGoSubmodule}}" + {{goImportAlias}} "{{gitHost}}/{{gitUserId}}/{{gitRepoId}}{{#isGoSubmodule}}/{{packageName}}{{/isGoSubmodule}}" ) func main() { - {{#allParams}} - {{paramName}} := {{{vendorExtensions.x-go-example}}} // {{{dataType}}} | {{{description}}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} - {{/allParams}} - - configuration := {{goImportAlias}}.NewConfiguration() - apiClient := {{goImportAlias}}.NewAPIClient(configuration) - {{#returnType}}resp, {{/returnType}}r, err := apiClient.{{classname}}.{{operationId}}(context.Background(){{#pathParams}}, {{paramName}}{{/pathParams}}){{#allParams}}{{^isPathParam}}.{{vendorExtensions.x-export-param-name}}({{paramName}}){{/isPathParam}}{{/allParams}}.Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `{{classname}}.{{operationId}}``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - {{#returnType}} - // response from `{{operationId}}`: {{{.}}} - fmt.Fprintf(os.Stdout, "Response from `{{classname}}.{{operationId}}`: %v\n", resp) - {{/returnType}} + {{#allParams}} + {{paramName}} := {{{vendorExtensions.x-go-example}}} // {{{dataType}}} | {{{description}}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} + {{/allParams}} + + configuration := {{goImportAlias}}.NewConfiguration() + apiClient := {{goImportAlias}}.NewAPIClient(configuration) + {{#returnType}}resp, {{/returnType}}r, err := apiClient.{{classname}}.{{operationId}}(context.Background(){{#pathParams}}, {{paramName}}{{/pathParams}}){{#allParams}}{{^isPathParam}}.{{vendorExtensions.x-export-param-name}}({{paramName}}){{/isPathParam}}{{/allParams}}.Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `{{classname}}.{{operationId}}``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + {{#returnType}} + // response from `{{operationId}}`: {{{.}}} + fmt.Fprintf(os.Stdout, "Response from `{{classname}}.{{operationId}}`: %v\n", resp) + {{/returnType}} } ``` diff --git a/sdk-resources/resources/api_test.mustache b/sdk-resources/resources/api_test.mustache index f7bf4fa75..79caa6213 100644 --- a/sdk-resources/resources/api_test.mustache +++ b/sdk-resources/resources/api_test.mustache @@ -21,7 +21,7 @@ import ( func Test_{{packageName}}_{{classname}}Service(t *testing.T) { - configuration := {{goImportAlias}}.NewDefaultConfiguration() + configuration := {{goImportAlias}}.NewConfiguration() apiClient := {{goImportAlias}}.NewAPIClient(configuration) {{#operations}} @@ -39,7 +39,7 @@ func Test_{{packageName}}_{{classname}}Service(t *testing.T) { var {{paramName}} {{{dataType}}} {{/pathParams}} - {{#returnType}}resp, {{/returnType}}httpRes, err := apiClient.{{#lambda.uppercase}}{{packageName}}{{/lambda.uppercase}}.{{classname}}.{{operationId}}(context.Background(){{#pathParams}}, {{paramName}}{{/pathParams}}).Execute() + {{#returnType}}resp, {{/returnType}}httpRes, err := apiClient.{{classname}}.{{operationId}}(context.Background(){{#pathParams}}, {{paramName}}{{/pathParams}}).Execute() require.Nil(t, err) {{#returnType}} diff --git a/sdk-resources/resources/client.mustache b/sdk-resources/resources/client.mustache index fc6a49dc5..d32129a51 100644 --- a/sdk-resources/resources/client.mustache +++ b/sdk-resources/resources/client.mustache @@ -35,8 +35,8 @@ retryablehttp "github.com/hashicorp/go-retryablehttp" ) var ( - jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) - xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) ) @@ -152,8 +152,9 @@ func parameterValueToString( obj interface{}, key string ) string { return fmt.Sprintf("%v", dataMap[key]) } -// parameterAddToQuery adds the provided object to the url query supporting deep object syntax -func parameterAddToQuery(queryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { var v = reflect.ValueOf(obj) var value = "" if v == reflect.ValueOf(nil) { @@ -169,11 +170,11 @@ func parameterAddToQuery(queryParams interface{}, keyPrefix string, obj interfac if err != nil { return } - parameterAddToQuery(queryParams, keyPrefix, dataMap, collectionType) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) return } if t, ok := obj.(time.Time); ok { - parameterAddToQuery(queryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) return } value = v.Type().String() + " value" @@ -185,7 +186,11 @@ func parameterAddToQuery(queryParams interface{}, keyPrefix string, obj interfac var lenIndValue = indValue.Len() for i:=0;inullable_model}} diff --git a/sdk-resources/resources/model_oneof.mustache b/sdk-resources/resources/model_oneof.mustache index 83660147c..e62c5e82d 100644 --- a/sdk-resources/resources/model_oneof.mustache +++ b/sdk-resources/resources/model_oneof.mustache @@ -58,8 +58,8 @@ func (dst *{{classname}}) UnmarshalJSON(data []byte) error { // try to unmarshal data into {{#lambda.type-to-name}}{{{.}}}{{/lambda.type-to-name}} err = json.Unmarshal(data, &dst.{{#lambda.type-to-name}}{{{.}}}{{/lambda.type-to-name}}) if err == nil { - json{{{.}}}, _ := json.Marshal(dst.{{#lambda.type-to-name}}{{{.}}}{{/lambda.type-to-name}}) - if string(json{{{.}}}) == "{}" { // empty struct + json{{#lambda.type-to-name}}{{{.}}}{{/lambda.type-to-name}}, _ := json.Marshal(dst.{{#lambda.type-to-name}}{{{.}}}{{/lambda.type-to-name}}) + if string(json{{#lambda.type-to-name}}{{{.}}}{{/lambda.type-to-name}}) == "{}" { // empty struct dst.{{#lambda.type-to-name}}{{{.}}}{{/lambda.type-to-name}} = nil } else { match++ @@ -93,7 +93,11 @@ func (dst *{{classname}}) UnmarshalJSON(data []byte) error { if string(json{{#lambda.type-to-name}}{{{.}}}{{/lambda.type-to-name}}) == "{}" { // empty struct dst.{{#lambda.type-to-name}}{{{.}}}{{/lambda.type-to-name}} = nil } else { - match++ + if err = validator.Validate(dst.{{#lambda.type-to-name}}{{{.}}}{{/lambda.type-to-name}}); err != nil { + dst.{{#lambda.type-to-name}}{{{.}}}{{/lambda.type-to-name}} = nil + } else { + match++ + } } } else { dst.{{#lambda.type-to-name}}{{{.}}}{{/lambda.type-to-name}} = nil diff --git a/sdk-resources/resources/model_simple.mustache b/sdk-resources/resources/model_simple.mustache index 276da72aa..a2d1b7443 100644 --- a/sdk-resources/resources/model_simple.mustache +++ b/sdk-resources/resources/model_simple.mustache @@ -3,16 +3,14 @@ var _ MappedNullable = &{{classname}}{} // {{classname}} {{{description}}}{{^description}}struct for {{{classname}}}{{/description}} type {{classname}} struct { -{{#parent}} -{{^isMap}} +{{#parentModel.name}} {{^isArray}} - {{{parent}}} + {{{parentModel.classname}}} {{/isArray}} -{{/isMap}} {{#isArray}} - Items {{{parent}}} + Items {{{parentModel.classname}}} {{/isArray}} -{{/parent}} +{{/parentModel.name}} {{#vars}} {{^-first}} {{/-first}} @@ -22,7 +20,7 @@ type {{classname}} struct { {{#deprecated}} // Deprecated {{/deprecated}} - {{name}} {{^required}}{{^isNullable}}{{^isArray}}{{^isFreeFormObject}}*{{/isFreeFormObject}}{{/isArray}}{{/isNullable}}{{/required}}{{{dataType}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"{{#withXml}} xml:"{{baseName}}{{#isXmlAttribute}},attr{{/isXmlAttribute}}"{{/withXml}}{{#vendorExtensions.x-go-custom-tag}} {{{.}}}{{/vendorExtensions.x-go-custom-tag}}` + {{name}} {{^required}}{{^isNullable}}{{^isArray}}{{^isFreeFormObject}}*{{/isFreeFormObject}}{{/isArray}}{{/isNullable}}{{/required}}{{{dataType}}}{{{vendorExtensions.x-go-datatag}}} {{/vars}} {{#isAdditionalPropertiesTrue}} AdditionalProperties map[string]interface{} @@ -32,6 +30,12 @@ type {{classname}} struct { {{#isAdditionalPropertiesTrue}} type _{{{classname}}} {{{classname}}} +{{/isAdditionalPropertiesTrue}} +{{^isAdditionalPropertiesTrue}} +{{#hasRequired}} +type _{{{classname}}} {{{classname}}} + +{{/hasRequired}} {{/isAdditionalPropertiesTrue}} // New{{classname}} instantiates a new {{classname}} object // This constructor will assign default values to properties that have it defined, @@ -125,7 +129,7 @@ func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-go-base-type}} { // Deprecated {{/deprecated}} func (o *{{classname}}) Get{{name}}Ok() ({{^isArray}}{{^isFreeFormObject}}*{{/isFreeFormObject}}{{/isArray}}{{vendorExtensions.x-go-base-type}}, bool) { - if o == nil{{#isNullable}}{{#vendorExtensions.x-golang-is-container}} || isNil(o.{{name}}){{/vendorExtensions.x-golang-is-container}}{{/isNullable}} { + if o == nil{{#isNullable}}{{#vendorExtensions.x-golang-is-container}} || IsNil(o.{{name}}){{/vendorExtensions.x-golang-is-container}}{{/isNullable}} { {{^isFreeFormObject}} return nil, false {{/isFreeFormObject}} @@ -164,6 +168,17 @@ func (o *{{classname}}) Set{{name}}(v {{vendorExtensions.x-go-base-type}}) { {{/isNullable}} } +{{#useDefaultValuesForRequiredVars}} +{{^isReadOnly}} +{{#defaultValue}} +// GetDefault{{{nameInPascalCase}}} returns the default value {{{defaultValue}}} of the {{{name}}} field. +func (o *{{classname}}) GetDefault{{nameInPascalCase}}() interface{} { + return {{{defaultValue}}} +} +{{/defaultValue}} +{{/isReadOnly}} + +{{/useDefaultValuesForRequiredVars}} {{/required}} {{^required}} // Get{{name}} returns the {{name}} field value if set, zero value otherwise{{#isNullable}} (both if not set or set to explicit null){{/isNullable}}. @@ -171,7 +186,7 @@ func (o *{{classname}}) Set{{name}}(v {{vendorExtensions.x-go-base-type}}) { // Deprecated {{/deprecated}} func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-go-base-type}} { - if o == nil{{^isNullable}} || isNil(o.{{name}}){{/isNullable}}{{#isNullable}}{{^vendorExtensions.x-golang-is-container}} || isNil(o.{{name}}.Get()){{/vendorExtensions.x-golang-is-container}}{{/isNullable}} { + if o == nil{{^isNullable}} || IsNil(o.{{name}}){{/isNullable}}{{#isNullable}}{{^vendorExtensions.x-golang-is-container}} || IsNil(o.{{name}}.Get()){{/vendorExtensions.x-golang-is-container}}{{/isNullable}} { var ret {{vendorExtensions.x-go-base-type}} return ret } @@ -197,7 +212,7 @@ func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-go-base-type}} { // Deprecated {{/deprecated}} func (o *{{classname}}) Get{{name}}Ok() ({{^isArray}}{{^isFreeFormObject}}*{{/isFreeFormObject}}{{/isArray}}{{vendorExtensions.x-go-base-type}}, bool) { - if o == nil{{^isNullable}} || isNil(o.{{name}}){{/isNullable}}{{#isNullable}}{{#vendorExtensions.x-golang-is-container}} || isNil(o.{{name}}){{/vendorExtensions.x-golang-is-container}}{{/isNullable}} { + if o == nil{{^isNullable}} || IsNil(o.{{name}}){{/isNullable}}{{#isNullable}}{{#vendorExtensions.x-golang-is-container}} || IsNil(o.{{name}}){{/vendorExtensions.x-golang-is-container}}{{/isNullable}} { {{^isFreeFormObject}} return nil, false {{/isFreeFormObject}} @@ -220,7 +235,7 @@ func (o *{{classname}}) Get{{name}}Ok() ({{^isArray}}{{^isFreeFormObject}}*{{/is // Has{{name}} returns a boolean if a field has been set. func (o *{{classname}}) Has{{name}}() bool { - if o != nil && {{^isNullable}}!isNil(o.{{name}}){{/isNullable}}{{#isNullable}}{{#vendorExtensions.x-golang-is-container}}isNil(o.{{name}}){{/vendorExtensions.x-golang-is-container}}{{^vendorExtensions.x-golang-is-container}}o.{{name}}.IsSet(){{/vendorExtensions.x-golang-is-container}}{{/isNullable}} { + if o != nil && {{^isNullable}}!IsNil(o.{{name}}){{/isNullable}}{{#isNullable}}{{#vendorExtensions.x-golang-is-container}}!IsNil(o.{{name}}){{/vendorExtensions.x-golang-is-container}}{{^vendorExtensions.x-golang-is-container}}o.{{name}}.IsSet(){{/vendorExtensions.x-golang-is-container}}{{/isNullable}} { return true } @@ -297,35 +312,39 @@ func (o {{classname}}) ToMap() (map[string]interface{}, error) { {{#vendorExtensions.x-golang-is-container}} {{! support for container fields is not ideal at this point because of lack of Nullable* types}} if o.{{name}} != nil { - toSerialize["{{baseName}}"] = o.{{name}} + toSerialize["{{{baseName}}}"] = o.{{name}} } {{/vendorExtensions.x-golang-is-container}} {{^vendorExtensions.x-golang-is-container}} {{#required}} - toSerialize["{{baseName}}"] = o.{{name}}.Get() + toSerialize["{{{baseName}}}"] = o.{{name}}.Get() {{/required}} {{^required}} if o.{{name}}.IsSet() { - toSerialize["{{baseName}}"] = o.{{name}}.Get() + toSerialize["{{{baseName}}}"] = o.{{name}}.Get() } {{/required}} {{/vendorExtensions.x-golang-is-container}} {{/isNullable}} {{! if argument is not nullable, don't set it if it is nil}} {{^isNullable}} -{{^isReadOnly}} {{#required}} - toSerialize["{{baseName}}"] = o.{{name}} + {{#useDefaultValuesForRequiredVars}} + {{^isReadOnly}} + {{#defaultValue}} + if _, exists := toSerialize["{{{baseName}}}"]; !exists { + toSerialize["{{{baseName}}}"] = o.GetDefault{{nameInPascalCase}}() + } + {{/defaultValue}} + {{/isReadOnly}} + {{/useDefaultValuesForRequiredVars}} + toSerialize["{{{baseName}}}"] = o.{{name}} {{/required}} {{^required}} - if !isNil(o.{{name}}) { - toSerialize["{{baseName}}"] = o.{{name}} + if !IsNil(o.{{name}}) { + toSerialize["{{{baseName}}}"] = o.{{name}} } {{/required}} -{{/isReadOnly}} - {{#isReadOnly}} - // skip: {{baseName}} is readOnly - {{/isReadOnly}} {{/isNullable}} {{/vars}} {{#isAdditionalPropertiesTrue}} @@ -338,16 +357,17 @@ func (o {{classname}}) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +{{#vendorExtensions.x-go-generate-unmarshal-json}} {{#isAdditionalPropertiesTrue}} -func (o *{{{classname}}}) UnmarshalJSON(bytes []byte) (err error) { +func (o *{{{classname}}}) UnmarshalJSON(data []byte) (err error) { {{/isAdditionalPropertiesTrue}} {{^isAdditionalPropertiesTrue}} {{#hasRequired}} -func (o *{{{classname}}}) UnmarshalJSON(bytes []byte) (err error) { +func (o *{{{classname}}}) UnmarshalJSON(data []byte) (err error) { {{/hasRequired}} {{/isAdditionalPropertiesTrue}} {{#hasRequired}} - // This validates that all required properties are included in the JSON object + // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ @@ -356,20 +376,53 @@ func (o *{{{classname}}}) UnmarshalJSON(bytes []byte) (err error) { {{/requiredVars}} } +{{#useDefaultValuesForRequiredVars}} + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { +{{#requiredVars}} +{{#defaultValue}} +{{^isReadOnly}} + "{{baseName}}": o.GetDefault{{nameInPascalCase}}, +{{/isReadOnly}} +{{/defaultValue}} +{{/requiredVars}} + } + var defaultValueApplied bool +{{/useDefaultValuesForRequiredVars}} allProperties := make(map[string]interface{}) - err = json.Unmarshal(bytes, &allProperties) + err = json.Unmarshal(data, &allProperties) if err != nil { return err; } for _, requiredProperty := range(requiredProperties) { + {{#useDefaultValuesForRequiredVars}} + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + {{/useDefaultValuesForRequiredVars}} + {{^useDefaultValuesForRequiredVars}} if _, exists := allProperties[requiredProperty]; !exists { + {{/useDefaultValuesForRequiredVars}} return fmt.Errorf("no value given for required property %v", requiredProperty) } } + {{#useDefaultValuesForRequiredVars}} + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + {{/useDefaultValuesForRequiredVars}} {{/hasRequired}} {{#isAdditionalPropertiesTrue}} {{#parent}} @@ -384,13 +437,13 @@ func (o *{{{classname}}}) UnmarshalJSON(bytes []byte) (err error) { {{#deprecated}} // Deprecated {{/deprecated}} - {{name}} {{^required}}{{^isNullable}}{{^isArray}}{{^isFreeFormObject}}*{{/isFreeFormObject}}{{/isArray}}{{/isNullable}}{{/required}}{{{dataType}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"{{#withXml}} xml:"{{baseName}}{{#isXmlAttribute}},attr{{/isXmlAttribute}}"{{/withXml}}{{#vendorExtensions.x-go-custom-tag}} {{{.}}}{{/vendorExtensions.x-go-custom-tag}}` + {{name}} {{^required}}{{^isNullable}}{{^isArray}}{{^isFreeFormObject}}*{{/isFreeFormObject}}{{/isArray}}{{/isNullable}}{{/required}}{{{dataType}}} `json:"{{{baseName}}}{{^required}},omitempty{{/required}}"{{#withXml}} xml:"{{{baseName}}}{{#isXmlAttribute}},attr{{/isXmlAttribute}}"{{/withXml}}{{#vendorExtensions.x-go-custom-tag}} {{{.}}}{{/vendorExtensions.x-go-custom-tag}}` {{/vars}} } var{{{classname}}}WithoutEmbeddedStruct := {{{classname}}}WithoutEmbeddedStruct{} - err = json.Unmarshal(bytes, &var{{{classname}}}WithoutEmbeddedStruct) + err = json.Unmarshal(data, &var{{{classname}}}WithoutEmbeddedStruct) if err == nil { var{{{classname}}} := _{{{classname}}}{} {{#vars}} @@ -403,7 +456,7 @@ func (o *{{{classname}}}) UnmarshalJSON(bytes []byte) (err error) { var{{{classname}}} := _{{{classname}}}{} - err = json.Unmarshal(bytes, &var{{{classname}}}) + err = json.Unmarshal(data, &var{{{classname}}}) if err == nil { o.{{{parent}}} = var{{{classname}}}.{{{parent}}} } else { @@ -412,7 +465,7 @@ func (o *{{{classname}}}) UnmarshalJSON(bytes []byte) (err error) { additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { {{#vars}} delete(additionalProperties, "{{{baseName}}}") {{/vars}} @@ -443,13 +496,17 @@ func (o *{{{classname}}}) UnmarshalJSON(bytes []byte) (err error) { {{#isMap}} var{{{classname}}} := _{{{classname}}}{} - if err = json.Unmarshal(bytes, &var{{{classname}}}); err == nil { + err = json.Unmarshal(data, &var{{{classname}}}) + + if err != nil { + return err + } + *o = {{{classname}}}(var{{{classname}}}) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { {{#vars}} delete(additionalProperties, "{{{baseName}}}") {{/vars}} @@ -462,13 +519,17 @@ func (o *{{{classname}}}) UnmarshalJSON(bytes []byte) (err error) { {{^parent}} var{{{classname}}} := _{{{classname}}}{} - if err = json.Unmarshal(bytes, &var{{{classname}}}); err == nil { + err = json.Unmarshal(data, &var{{{classname}}}) + + if err != nil { + return err + } + *o = {{{classname}}}(var{{{classname}}}) -} additionalProperties := make(map[string]interface{}) - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + if err = json.Unmarshal(data, &additionalProperties); err == nil { {{#vars}} delete(additionalProperties, "{{{baseName}}}") {{/vars}} @@ -486,7 +547,9 @@ func (o *{{{classname}}}) UnmarshalJSON(bytes []byte) (err error) { {{#hasRequired}} var{{{classname}}} := _{{{classname}}}{} - err = json.Unmarshal(bytes, &var{{{classname}}}) + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&var{{{classname}}}) if err != nil { return err @@ -500,9 +563,10 @@ func (o *{{{classname}}}) UnmarshalJSON(bytes []byte) (err error) { {{/hasRequired}} {{/isAdditionalPropertiesTrue}} {{#isArray}} -func (o *{{{classname}}}) UnmarshalJSON(bytes []byte) (err error) { - return json.Unmarshal(bytes, &o.Items) +func (o *{{{classname}}}) UnmarshalJSON(data []byte) (err error) { + return json.Unmarshal(data, &o.Items) } {{/isArray}} +{{/vendorExtensions.x-go-generate-unmarshal-json}} {{>nullable_model}} diff --git a/sdk-resources/resources/signing.mustache b/sdk-resources/resources/signing.mustache index a271fcfe6..57221be25 100644 --- a/sdk-resources/resources/signing.mustache +++ b/sdk-resources/resources/signing.mustache @@ -107,6 +107,7 @@ var supportedSigningSchemes = map[string]bool{ type HttpSignatureAuth struct { KeyId string // A key identifier. PrivateKeyPath string // The path to the private key. + PrivateKeyReader io.Reader // provide the APIKey using the types which implement io.Reader interface. Passphrase string // The passphrase to decrypt the private key, if the key is encrypted. SigningScheme string // The signature scheme, when signing HTTP requests. Supported value is 'hs2019'. // The signature algorithm, when signing HTTP requests. @@ -134,9 +135,12 @@ func (h *HttpSignatureAuth) ContextWithValue(ctx context.Context) (context.Conte if h.KeyId == "" { return nil, fmt.Errorf("key ID must be specified") } - if h.PrivateKeyPath == "" && h.privateKey == nil { + if (len(h.PrivateKeyPath) == 0 && h.PrivateKeyReader == nil) && h.privateKey == nil { return nil, fmt.Errorf("private key path must be specified") } + if len(h.PrivateKeyPath) > 0 && h.PrivateKeyReader != nil{ + return nil, fmt.Errorf("Specify only one of PrivateKeyPath or PrivateKeyReader") + } if _, ok := supportedSigningSchemes[h.SigningScheme]; !ok { return nil, fmt.Errorf("invalid signing scheme: '%v'", h.SigningScheme) } @@ -184,17 +188,21 @@ func (h *HttpSignatureAuth) loadPrivateKey() (err error) { if h.privateKey != nil { return nil } - var file *os.File - file, err = os.Open(h.PrivateKeyPath) - if err != nil { - return fmt.Errorf("cannot load private key '%s'. Error: %v", h.PrivateKeyPath, err) - } - defer func() { - err = file.Close() - }() var priv []byte - priv, err = io.ReadAll(file) - if err != nil { + keyReader := h.PrivateKeyReader + if keyReader == nil { + var file *os.File + file, err = os.Open(h.PrivateKeyPath) + if err != nil { + return fmt.Errorf("cannot load private key '%s'. Error: %v", h.PrivateKeyPath, err) + } + keyReader = file + defer func() { + err = file.Close() + }() + } + priv, err = io.ReadAll(keyReader) + if err != nil{ return err } return h.parsePrivateKey(priv) diff --git a/sdk-resources/resources/utils.mustache b/sdk-resources/resources/utils.mustache index 5e97b9def..1907ea5c1 100644 --- a/sdk-resources/resources/utils.mustache +++ b/sdk-resources/resources/utils.mustache @@ -2,7 +2,9 @@ package {{packageName}} import ( + "bytes" "encoding/json" + "fmt" "reflect" "time" ) @@ -311,7 +313,7 @@ func NewNullableTime(val *time.Time) *NullableTime { } func (v NullableTime) MarshalJSON() ([]byte, error) { - return v.value.MarshalJSON() + return json.Marshal(v.value) } func (v *NullableTime) UnmarshalJSON(src []byte) error { @@ -319,8 +321,8 @@ func (v *NullableTime) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } -// isNil checks if an input is nil -func isNil(i interface{}) bool { +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { if i == nil { return true } @@ -336,3 +338,15 @@ func isNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} \ No newline at end of file