diff --git a/CHANGELOG.md b/CHANGELOG.md index ab2c553c..58547252 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ * `github.com/patrickcping/pingone-go-sdk-v2` : v0.10.1 * **Bug** Fixed service hostname override client parameter validation that reported an invalid https address. [#225](https://github.com/patrickcping/pingone-go-sdk-v2/pull/225) +* `github.com/patrickcping/pingone-go-sdk-v2/verify` : [v0.3.0](./verify/CHANGELOG.md) + * **Enhancement** New voice configuration object option on the verify policy API. [#228](https://github.com/patrickcping/pingone-go-sdk-v2/pull/228) + * **Enhancement** New voice phrase API, which is a prerequisite to support the management of the voice configuration object via the verify policy API. [#228](https://github.com/patrickcping/pingone-go-sdk-v2/pull/228) + * **Enhancement** New voice phrase contents API. [#228](https://github.com/patrickcping/pingone-go-sdk-v2/pull/228) # Release (2023-07-12) diff --git a/verify/.openapi-generator/FILES b/verify/.openapi-generator/FILES index e051e724..3ba442ce 100644 --- a/verify/.openapi-generator/FILES +++ b/verify/.openapi-generator/FILES @@ -1,6 +1,8 @@ README.md api/openapi.yaml api_verify_policies.go +api_voice_phrase_contents.go +api_voice_phrases.go configuration.go docs/EntityArray.md docs/EntityArrayEmbedded.md @@ -30,6 +32,16 @@ docs/TransactionConfigurationDataCollectionTimeout.md docs/TransactionConfigurationTimeout.md docs/VerifyPoliciesApi.md docs/VerifyPolicy.md +docs/VoiceConfiguration.md +docs/VoiceConfigurationReferenceData.md +docs/VoiceConfigurationTextDependent.md +docs/VoiceConfigurationTextDependentPhrase.md +docs/VoiceConfigurationThreshold.md +docs/VoicePhrase.md +docs/VoicePhraseContents.md +docs/VoicePhraseContentsApi.md +docs/VoicePhraseContentsVoicePhrase.md +docs/VoicePhrasesApi.md go.mod go.sum model_entity_array.go @@ -59,5 +71,13 @@ model_transaction_configuration_data_collection.go model_transaction_configuration_data_collection_timeout.go model_transaction_configuration_timeout.go model_verify_policy.go +model_voice_configuration.go +model_voice_configuration_reference_data.go +model_voice_configuration_text_dependent.go +model_voice_configuration_text_dependent_phrase.go +model_voice_configuration_threshold.go +model_voice_phrase.go +model_voice_phrase_contents.go +model_voice_phrase_contents_voice_phrase.go response.go utils.go diff --git a/verify/CHANGELOG.md b/verify/CHANGELOG.md index cc8ad029..20370bd0 100644 --- a/verify/CHANGELOG.md +++ b/verify/CHANGELOG.md @@ -1,6 +1,9 @@ # v0.3.0 (Unreleased) * **Enhancement** Implement HATEOAS links for API response objects. [#227](https://github.com/patrickcping/pingone-go-sdk-v2/pull/227) +* **Enhancement** New voice configuration object option on the verify policy API. [#228](https://github.com/patrickcping/pingone-go-sdk-v2/pull/228) +* **Enhancement** New voice phrase API, which is a prerequisite to support the management of the voice configuration object via the verify policy API. [#228](https://github.com/patrickcping/pingone-go-sdk-v2/pull/228) +* **Enhancement** New voice phrase contents API. [#228](https://github.com/patrickcping/pingone-go-sdk-v2/pull/228) # v0.2.1 (2023-07-12) diff --git a/verify/README.md b/verify/README.md index 5de56252..9c84236d 100644 --- a/verify/README.md +++ b/verify/README.md @@ -5,7 +5,7 @@ The PingOne Platform API covering the PingOne Verify service ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 2023-06-29 +- API version: 2023-07-20 - Package version: 0.3.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -82,6 +82,16 @@ Class | Method | HTTP request | Description *VerifyPoliciesApi* | [**ReadAllVerifyPolicies**](docs/VerifyPoliciesApi.md#readallverifypolicies) | **Get** /environments/{environmentID}/verifyPolicies | READ All Verify Policies *VerifyPoliciesApi* | [**ReadOneVerifyPolicy**](docs/VerifyPoliciesApi.md#readoneverifypolicy) | **Get** /environments/{environmentID}/verifyPolicies/{verifyPolicyID} | READ One Verify Policy *VerifyPoliciesApi* | [**UpdateVerifyPolicy**](docs/VerifyPoliciesApi.md#updateverifypolicy) | **Put** /environments/{environmentID}/verifyPolicies/{verifyPolicyID} | UPDATE Verify Policy +*VoicePhraseContentsApi* | [**CreateVoicePhraseContent**](docs/VoicePhraseContentsApi.md#createvoicephrasecontent) | **Post** /environments/{environmentID}/voicePhrases/{voicePhraseID}/contents | CREATE Voice Phrase Content +*VoicePhraseContentsApi* | [**DeleteVoicePhraseContent**](docs/VoicePhraseContentsApi.md#deletevoicephrasecontent) | **Delete** /environments/{environmentID}/voicePhrases/{voicePhraseID}/contents/{voiceContentsID} | Delete Voice Phrase Content +*VoicePhraseContentsApi* | [**ReadAllVoicePhraseContents**](docs/VoicePhraseContentsApi.md#readallvoicephrasecontents) | **Get** /environments/{environmentID}/voicePhrases/{voicePhraseID}/contents | READ All Voice Phrase Contents +*VoicePhraseContentsApi* | [**ReadOneVoicePhraseContent**](docs/VoicePhraseContentsApi.md#readonevoicephrasecontent) | **Get** /environments/{environmentID}/voicePhrases/{voicePhraseID}/contents/{voiceContentsID} | READ One Voice Phrase Content +*VoicePhraseContentsApi* | [**UpdateVoicePhraseContent**](docs/VoicePhraseContentsApi.md#updatevoicephrasecontent) | **Put** /environments/{environmentID}/voicePhrases/{voicePhraseID}/contents/{voiceContentsID} | UPDATE Voice Phrase Content +*VoicePhrasesApi* | [**CreateVoicePhrase**](docs/VoicePhrasesApi.md#createvoicephrase) | **Post** /environments/{environmentID}/voicePhrases | CREATE Voice Phrase +*VoicePhrasesApi* | [**DeleteVoicePhrase**](docs/VoicePhrasesApi.md#deletevoicephrase) | **Delete** /environments/{environmentID}/voicePhrases/{voicePhraseID} | Delete Voice Phrase +*VoicePhrasesApi* | [**ReadAllVoicePhrases**](docs/VoicePhrasesApi.md#readallvoicephrases) | **Get** /environments/{environmentID}/voicePhrases | READ All Voice Phrases +*VoicePhrasesApi* | [**ReadOneVoicePhrase**](docs/VoicePhrasesApi.md#readonevoicephrase) | **Get** /environments/{environmentID}/voicePhrases/{voicePhraseID} | READ One Voice Phrase +*VoicePhrasesApi* | [**UpdateVoicePhrase**](docs/VoicePhrasesApi.md#updatevoicephrase) | **Put** /environments/{environmentID}/voicePhrases/{voicePhraseID} | UPDATE Voice Phrase ## Documentation For Models @@ -113,6 +123,14 @@ Class | Method | HTTP request | Description - [TransactionConfigurationDataCollectionTimeout](docs/TransactionConfigurationDataCollectionTimeout.md) - [TransactionConfigurationTimeout](docs/TransactionConfigurationTimeout.md) - [VerifyPolicy](docs/VerifyPolicy.md) + - [VoiceConfiguration](docs/VoiceConfiguration.md) + - [VoiceConfigurationReferenceData](docs/VoiceConfigurationReferenceData.md) + - [VoiceConfigurationTextDependent](docs/VoiceConfigurationTextDependent.md) + - [VoiceConfigurationTextDependentPhrase](docs/VoiceConfigurationTextDependentPhrase.md) + - [VoiceConfigurationThreshold](docs/VoiceConfigurationThreshold.md) + - [VoicePhrase](docs/VoicePhrase.md) + - [VoicePhraseContents](docs/VoicePhraseContents.md) + - [VoicePhraseContentsVoicePhrase](docs/VoicePhraseContentsVoicePhrase.md) ## Documentation For Authorization diff --git a/verify/api/openapi.yaml b/verify/api/openapi.yaml index b69bec27..f2a4f6da 100644 --- a/verify/api/openapi.yaml +++ b/verify/api/openapi.yaml @@ -2,7 +2,7 @@ openapi: 3.0.0 info: description: The PingOne Platform API covering the PingOne Verify service title: PingOne Platform API - PingOne Verify - version: 2023-06-29 + version: 2023-07-20 externalDocs: description: PingOne Platform API Reference - PingOne Verify APIs url: https://apidocs.pingidentity.com/pingone/platform/v1/api/#pingone-verify @@ -419,6 +419,693 @@ paths: summary: UPDATE Verify Policy tags: - Verify Policies + /environments/{environmentID}/voicePhrases: + get: + operationId: readAllVoicePhrases + parameters: + - explode: false + in: path + name: environmentID + required: true + schema: + type: string + style: simple + responses: + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: "Invalid request received. Malformed JSON, malformed HTTP\ + \ request." + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Not found. + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request was rate limited + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Uncaught error occurred. Platform outage + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EntityArray' + description: Successful response + summary: READ All Voice Phrases + tags: + - Voice Phrases + post: + operationId: createVoicePhrase + parameters: + - explode: false + in: path + name: environmentID + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + example: + displayName: Example Voice Phrase + schema: + $ref: '#/components/schemas/VoicePhrase' + responses: + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: "Invalid request received. Malformed JSON, malformed HTTP\ + \ request." + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Not found. + "405": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: "Invalid request received. Malformed JSON, malformed HTTP\ + \ request." + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request was rate limited + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Uncaught error occurred. Platform outage + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/VoicePhrase' + description: Successful response + summary: CREATE Voice Phrase + tags: + - Voice Phrases + /environments/{environmentID}/voicePhrases/{voicePhraseID}: + delete: + operationId: deleteVoicePhrase + parameters: + - explode: false + in: path + name: environmentID + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: voicePhraseID + required: true + schema: + type: string + style: simple + responses: + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: "Invalid request received. Malformed JSON, malformed HTTP\ + \ request." + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Not found. + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request was rate limited + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Uncaught error occurred. Platform outage + "204": + description: Successful response + summary: Delete Voice Phrase + tags: + - Voice Phrases + get: + operationId: readOneVoicePhrase + parameters: + - explode: false + in: path + name: environmentID + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: voicePhraseID + required: true + schema: + type: string + style: simple + responses: + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: "Invalid request received. Malformed JSON, malformed HTTP\ + \ request." + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Not found. + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request was rate limited + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Uncaught error occurred. Platform outage + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/VoicePhrase' + description: Successful response + summary: READ One Voice Phrase + tags: + - Voice Phrases + put: + operationId: updateVoicePhrase + parameters: + - explode: false + in: path + name: environmentID + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: voicePhraseID + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + example: + displayName: Voice Phrase Name + schema: + $ref: '#/components/schemas/VoicePhrase' + responses: + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: "Invalid request received. Malformed JSON, malformed HTTP\ + \ request." + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Not found. + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request was rate limited + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Uncaught error occurred. Platform outage + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/VoicePhrase' + description: Successful response + summary: UPDATE Voice Phrase + tags: + - Voice Phrases + /environments/{environmentID}/voicePhrases/{voicePhraseID}/contents: + get: + operationId: readAllVoicePhraseContents + parameters: + - explode: false + in: path + name: environmentID + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: voicePhraseID + required: true + schema: + type: string + style: simple + responses: + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: "Invalid request received. Malformed JSON, malformed HTTP\ + \ request." + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Not found. + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request was rate limited + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Uncaught error occurred. Platform outage + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EntityArray' + description: Successful response + summary: READ All Voice Phrase Contents + tags: + - Voice Phrase Contents + post: + operationId: createVoicePhraseContent + parameters: + - explode: false + in: path + name: environmentID + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: voicePhraseID + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + example: + locale: en + content: Design brilliant journeys to any digital desintation. + schema: + $ref: '#/components/schemas/VoicePhraseContents' + responses: + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: "Invalid request received. Malformed JSON, malformed HTTP\ + \ request." + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Not found. + "405": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: "Invalid request received. Malformed JSON, malformed HTTP\ + \ request." + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request was rate limited + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Uncaught error occurred. Platform outage + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/VoicePhraseContents' + description: Successful response + summary: CREATE Voice Phrase Content + tags: + - Voice Phrase Contents + /environments/{environmentID}/voicePhrases/{voicePhraseID}/contents/{voiceContentsID}: + delete: + operationId: deleteVoicePhraseContent + parameters: + - explode: false + in: path + name: environmentID + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: voicePhraseID + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: voiceContentsID + required: true + schema: + type: string + style: simple + responses: + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: "Invalid request received. Malformed JSON, malformed HTTP\ + \ request." + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Not found. + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request was rate limited + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Uncaught error occurred. Platform outage + "204": + description: Successful response + summary: Delete Voice Phrase Content + tags: + - Voice Phrase Contents + get: + operationId: readOneVoicePhraseContent + parameters: + - explode: false + in: path + name: environmentID + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: voicePhraseID + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: voiceContentsID + required: true + schema: + type: string + style: simple + responses: + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: "Invalid request received. Malformed JSON, malformed HTTP\ + \ request." + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Not found. + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request was rate limited + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Uncaught error occurred. Platform outage + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/VoicePhraseContents' + description: Successful response + summary: READ One Voice Phrase Content + tags: + - Voice Phrase Contents + put: + operationId: updateVoicePhraseContent + parameters: + - explode: false + in: path + name: environmentID + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: voicePhraseID + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: voiceContentsID + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + example: + locale: en + content: Brilliant journeys to any digital destination. + schema: + $ref: '#/components/schemas/VoicePhraseContents' + responses: + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: "Invalid request received. Malformed JSON, malformed HTTP\ + \ request." + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request failed due to authorization issue. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Not found. + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Request was rate limited + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/P1Error' + description: Uncaught error occurred. Platform outage + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/VoicePhraseContents' + description: Successful response + summary: UPDATE Voice Phrase Content + tags: + - Voice Phrase Contents components: responses: "400": @@ -482,36 +1169,6 @@ components: description: The URI of the resource. format: uri type: string - OTPDeviceConfiguration: - example: - createMfaDevice: true - verify: null - otp: - notification: - templateName: templateName - variantName: variantName - lifeTime: - duration: 5 - timeUnit: null - attempts: - count: 0 - deliveries: - count: 6 - cooldown: - duration: 1 - timeUnit: null - properties: - verify: - $ref: '#/components/schemas/EnumVerify' - createMfaDevice: - description: "When enabled, PingOne Verify registers the email address or\ - \ phone number with PingOne MFA as a verified MFA device." - type: boolean - otp: - $ref: '#/components/schemas/OTPDeviceConfiguration_otp' - required: - - verify - type: object EntityArray: example: size: 7.061401241503109 @@ -521,8 +1178,42 @@ components: self: href: https://openapi-generator.tech _embedded: + contents: + - createdAt: 2000-01-23T04:56:07.000+00:00 + environment: + id: id + id: id + voicePhrase: + id: id + locale: locale + content: content + updatedAt: 2000-01-23T04:56:07.000+00:00 + - createdAt: 2000-01-23T04:56:07.000+00:00 + environment: + id: id + id: id + voicePhrase: + id: id + locale: locale + content: content + updatedAt: 2000-01-23T04:56:07.000+00:00 verifyPolicies: - - _links: + - voice: + verify: null + enrollment: true + textDependent: + samples: null + phrase: + id: id + comparison: + threshold: null + liveness: + threshold: null + referenceData: + retainOriginalRecordings: true + updateOnReenrollment: true + updateOnVerification: true + _links: next: href: https://openapi-generator.tech self: @@ -586,7 +1277,22 @@ components: governmentId: verify: null updatedAt: 2000-01-23T04:56:07.000+00:00 - - _links: + - voice: + verify: null + enrollment: true + textDependent: + samples: null + phrase: + id: id + comparison: + threshold: null + liveness: + threshold: null + referenceData: + retainOriginalRecordings: true + updateOnReenrollment: true + updateOnVerification: true + _links: next: href: https://openapi-generator.tech self: @@ -650,6 +1356,19 @@ components: governmentId: verify: null updatedAt: 2000-01-23T04:56:07.000+00:00 + voicePhrases: + - createdAt: 2000-01-23T04:56:07.000+00:00 + environment: + id: id + displayName: displayName + id: id + updatedAt: 2000-01-23T04:56:07.000+00:00 + - createdAt: 2000-01-23T04:56:07.000+00:00 + environment: + id: id + displayName: displayName + id: id + updatedAt: 2000-01-23T04:56:07.000+00:00 properties: _links: $ref: '#/components/schemas/LinksHATEOAS' @@ -727,6 +1446,36 @@ components: type: string readOnly: true type: object + OTPDeviceConfiguration: + example: + createMfaDevice: true + verify: null + otp: + notification: + templateName: templateName + variantName: variantName + lifeTime: + duration: 5 + timeUnit: null + attempts: + count: 0 + deliveries: + count: 6 + cooldown: + duration: 1 + timeUnit: null + properties: + verify: + $ref: '#/components/schemas/EnumVerify' + createMfaDevice: + description: "When enabled, PingOne Verify registers the email address or\ + \ phone number with PingOne MFA as a verified MFA device." + type: boolean + otp: + $ref: '#/components/schemas/OTPDeviceConfiguration_otp' + required: + - verify + type: object P1Error: properties: id: @@ -770,8 +1519,166 @@ components: dataCollectionOnly: type: boolean type: object + VoiceConfiguration: + example: + verify: null + enrollment: true + textDependent: + samples: null + phrase: + id: id + comparison: + threshold: null + liveness: + threshold: null + referenceData: + retainOriginalRecordings: true + updateOnReenrollment: true + updateOnVerification: true + properties: + verify: + $ref: '#/components/schemas/EnumVerify' + enrollment: + type: boolean + textDependent: + $ref: '#/components/schemas/VoiceConfiguration_textDependent' + comparison: + $ref: '#/components/schemas/VoiceConfiguration_threshold' + liveness: + $ref: '#/components/schemas/VoiceConfiguration_threshold' + referenceData: + $ref: '#/components/schemas/VoiceConfiguration_referenceData' + required: + - comparison + - enrollment + - liveness + - verify + type: object + VoiceConfiguration_referenceData: + example: + retainOriginalRecordings: true + updateOnReenrollment: true + updateOnVerification: true + properties: + retainOriginalRecordings: + type: boolean + updateOnReenrollment: + type: boolean + updateOnVerification: + type: boolean + type: object + VoiceConfiguration_threshold: + example: + threshold: null + properties: + threshold: + $ref: '#/components/schemas/EnumThreshold' + required: + - threshold + type: object + VoiceConfiguration_textDependent_phrase: + example: + id: id + properties: + id: + type: string + required: + - id + type: object + VoiceConfiguration_textDependent: + example: + samples: null + phrase: + id: id + properties: + samples: + type: integer + phrase: + $ref: '#/components/schemas/VoiceConfiguration_textDependent_phrase' + required: + - phrase + - samples + type: object + VoicePhrase: + example: + createdAt: 2000-01-23T04:56:07.000+00:00 + environment: + id: id + displayName: displayName + id: id + updatedAt: 2000-01-23T04:56:07.000+00:00 + properties: + id: + readOnly: true + type: string + environment: + $ref: '#/components/schemas/ObjectEnvironment' + displayName: + type: string + createdAt: + format: date-time + readOnly: true + type: string + updatedAt: + format: date-time + readOnly: true + type: string + required: + - displayName + type: object + VoicePhraseContents: + example: + createdAt: 2000-01-23T04:56:07.000+00:00 + environment: + id: id + id: id + voicePhrase: + id: id + locale: locale + content: content + updatedAt: 2000-01-23T04:56:07.000+00:00 + properties: + id: + readOnly: true + type: string + environment: + $ref: '#/components/schemas/ObjectEnvironment' + voicePhrase: + $ref: '#/components/schemas/VoicePhraseContents_voicePhrase' + locale: + type: string + content: + type: string + createdAt: + format: date-time + readOnly: true + type: string + updatedAt: + format: date-time + readOnly: true + type: string + required: + - content + - locale + - voicePhrase + type: object VerifyPolicy: example: + voice: + verify: null + enrollment: true + textDependent: + samples: null + phrase: + id: id + comparison: + threshold: null + liveness: + threshold: null + referenceData: + retainOriginalRecordings: true + updateOnReenrollment: true + updateOnVerification: true _links: next: href: https://openapi-generator.tech @@ -866,6 +1773,8 @@ components: $ref: '#/components/schemas/OTPDeviceConfiguration' transaction: $ref: '#/components/schemas/TransactionConfiguration' + voice: + $ref: '#/components/schemas/VoiceConfiguration' createdAt: format: date-time readOnly: true @@ -899,111 +1808,44 @@ components: format: uri type: string type: object - OTPDeviceConfiguration_otp_attempts: - description: OTP attempts configuration. - example: - count: 0 - properties: - count: - description: Count of OTP failures. - type: integer - required: - - count - type: object - OTPDeviceConfiguration_otp_deliveries_cooldown: - description: Cooldown (waiting period between OTP attempts) configuration. - example: - duration: 1 - timeUnit: null - properties: - duration: - description: Cooldown duration configuration. - type: integer - timeUnit: - $ref: '#/components/schemas/EnumTimeUnit' - required: - - duration - - timeUnit - type: object - OTPDeviceConfiguration_otp_deliveries: - description: OTP delivery configuration. - example: - count: 6 - cooldown: - duration: 1 - timeUnit: null - properties: - count: - description: Count of OTP deliveries. - type: integer - cooldown: - $ref: '#/components/schemas/OTPDeviceConfiguration_otp_deliveries_cooldown' - required: - - cooldown - - count - type: object - OTPDeviceConfiguration_otp_lifeTime: - description: The length of time for which the OTP is valid. - example: - duration: 5 - timeUnit: null - properties: - duration: - description: OTP duration configuration. - type: integer - timeUnit: - $ref: '#/components/schemas/EnumTimeUnit' - required: - - duration - - timeUnit - type: object - OTPDeviceConfiguration_otp_notification: - description: OTP notification template configuration. - example: - templateName: templateName - variantName: variantName - properties: - templateName: - type: string - variantName: - type: string - required: - - templateName - type: object - OTPDeviceConfiguration_otp: - example: - notification: - templateName: templateName - variantName: variantName - lifeTime: - duration: 5 - timeUnit: null - attempts: - count: 0 - deliveries: - count: 6 - cooldown: - duration: 1 - timeUnit: null - properties: - attempts: - $ref: '#/components/schemas/OTPDeviceConfiguration_otp_attempts' - deliveries: - $ref: '#/components/schemas/OTPDeviceConfiguration_otp_deliveries' - lifeTime: - $ref: '#/components/schemas/OTPDeviceConfiguration_otp_lifeTime' - notification: - $ref: '#/components/schemas/OTPDeviceConfiguration_otp_notification' - required: - - attempts - - deliveries - - lifeTime - - notification - type: object EntityArray__embedded: example: + contents: + - createdAt: 2000-01-23T04:56:07.000+00:00 + environment: + id: id + id: id + voicePhrase: + id: id + locale: locale + content: content + updatedAt: 2000-01-23T04:56:07.000+00:00 + - createdAt: 2000-01-23T04:56:07.000+00:00 + environment: + id: id + id: id + voicePhrase: + id: id + locale: locale + content: content + updatedAt: 2000-01-23T04:56:07.000+00:00 verifyPolicies: - - _links: + - voice: + verify: null + enrollment: true + textDependent: + samples: null + phrase: + id: id + comparison: + threshold: null + liveness: + threshold: null + referenceData: + retainOriginalRecordings: true + updateOnReenrollment: true + updateOnVerification: true + _links: next: href: https://openapi-generator.tech self: @@ -1067,7 +1909,22 @@ components: governmentId: verify: null updatedAt: 2000-01-23T04:56:07.000+00:00 - - _links: + - voice: + verify: null + enrollment: true + textDependent: + samples: null + phrase: + id: id + comparison: + threshold: null + liveness: + threshold: null + referenceData: + retainOriginalRecordings: true + updateOnReenrollment: true + updateOnVerification: true + _links: next: href: https://openapi-generator.tech self: @@ -1131,11 +1988,133 @@ components: governmentId: verify: null updatedAt: 2000-01-23T04:56:07.000+00:00 + voicePhrases: + - createdAt: 2000-01-23T04:56:07.000+00:00 + environment: + id: id + displayName: displayName + id: id + updatedAt: 2000-01-23T04:56:07.000+00:00 + - createdAt: 2000-01-23T04:56:07.000+00:00 + environment: + id: id + displayName: displayName + id: id + updatedAt: 2000-01-23T04:56:07.000+00:00 properties: verifyPolicies: items: $ref: '#/components/schemas/VerifyPolicy' type: array + voicePhrases: + items: + $ref: '#/components/schemas/VoicePhrase' + type: array + contents: + items: + $ref: '#/components/schemas/VoicePhraseContents' + type: array + type: object + OTPDeviceConfiguration_otp_attempts: + description: OTP attempts configuration. + example: + count: 0 + properties: + count: + description: Count of OTP failures. + type: integer + required: + - count + type: object + OTPDeviceConfiguration_otp_deliveries_cooldown: + description: Cooldown (waiting period between OTP attempts) configuration. + example: + duration: 1 + timeUnit: null + properties: + duration: + description: Cooldown duration configuration. + type: integer + timeUnit: + $ref: '#/components/schemas/EnumTimeUnit' + required: + - duration + - timeUnit + type: object + OTPDeviceConfiguration_otp_deliveries: + description: OTP delivery configuration. + example: + count: 6 + cooldown: + duration: 1 + timeUnit: null + properties: + count: + description: Count of OTP deliveries. + type: integer + cooldown: + $ref: '#/components/schemas/OTPDeviceConfiguration_otp_deliveries_cooldown' + required: + - cooldown + - count + type: object + OTPDeviceConfiguration_otp_lifeTime: + description: The length of time for which the OTP is valid. + example: + duration: 5 + timeUnit: null + properties: + duration: + description: OTP duration configuration. + type: integer + timeUnit: + $ref: '#/components/schemas/EnumTimeUnit' + required: + - duration + - timeUnit + type: object + OTPDeviceConfiguration_otp_notification: + description: OTP notification template configuration. + example: + templateName: templateName + variantName: variantName + properties: + templateName: + type: string + variantName: + type: string + required: + - templateName + type: object + OTPDeviceConfiguration_otp: + example: + notification: + templateName: templateName + variantName: variantName + lifeTime: + duration: 5 + timeUnit: null + attempts: + count: 0 + deliveries: + count: 6 + cooldown: + duration: 1 + timeUnit: null + properties: + attempts: + $ref: '#/components/schemas/OTPDeviceConfiguration_otp_attempts' + deliveries: + $ref: '#/components/schemas/OTPDeviceConfiguration_otp_deliveries' + lifeTime: + $ref: '#/components/schemas/OTPDeviceConfiguration_otp_lifeTime' + notification: + $ref: '#/components/schemas/OTPDeviceConfiguration_otp_notification' + required: + - attempts + - deliveries + - lifeTime + - notification type: object P1Error_details_inner_innerError: description: Additional details to help the client developer resolve the fault @@ -1220,6 +2199,14 @@ components: required: - timeout type: object + VoicePhraseContents_voicePhrase: + example: + id: id + properties: + id: + type: string + required: + - id securitySchemes: bearer: bearerFormat: JWT diff --git a/verify/api_verify_policies.go b/verify/api_verify_policies.go index d141e4c0..b68928f3 100644 --- a/verify/api_verify_policies.go +++ b/verify/api_verify_policies.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/api_voice_phrase_contents.go b/verify/api_voice_phrase_contents.go new file mode 100644 index 00000000..54e0fff7 --- /dev/null +++ b/verify/api_voice_phrase_contents.go @@ -0,0 +1,987 @@ +/* +PingOne Platform API - PingOne Verify + +The PingOne Platform API covering the PingOne Verify service + +API version: 2023-07-20 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package verify + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// VoicePhraseContentsApiService VoicePhraseContentsApi service +type VoicePhraseContentsApiService service + +type ApiCreateVoicePhraseContentRequest struct { + ctx context.Context + ApiService *VoicePhraseContentsApiService + environmentID string + voicePhraseID string + voicePhraseContents *VoicePhraseContents +} + +func (r ApiCreateVoicePhraseContentRequest) VoicePhraseContents(voicePhraseContents VoicePhraseContents) ApiCreateVoicePhraseContentRequest { + r.voicePhraseContents = &voicePhraseContents + return r +} + +func (r ApiCreateVoicePhraseContentRequest) Execute() (*VoicePhraseContents, *http.Response, error) { + return r.ApiService.CreateVoicePhraseContentExecute(r) +} + +/* +CreateVoicePhraseContent CREATE Voice Phrase Content + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param environmentID + @param voicePhraseID + @return ApiCreateVoicePhraseContentRequest +*/ +func (a *VoicePhraseContentsApiService) CreateVoicePhraseContent(ctx context.Context, environmentID string, voicePhraseID string) ApiCreateVoicePhraseContentRequest { + return ApiCreateVoicePhraseContentRequest{ + ApiService: a, + ctx: ctx, + environmentID: environmentID, + voicePhraseID: voicePhraseID, + } +} + +// Execute executes the request +// @return VoicePhraseContents +func (a *VoicePhraseContentsApiService) CreateVoicePhraseContentExecute(r ApiCreateVoicePhraseContentRequest) (*VoicePhraseContents, *http.Response, error) { + var ( + err error + response *http.Response + localVarReturnValue *VoicePhraseContents + ) + + response, err = processResponse( + func() (any, *http.Response, error) { + return r.ApiService.internalCreateVoicePhraseContentExecute(r) + }, + &localVarReturnValue, + ) + return localVarReturnValue, response, err +} + +func (a *VoicePhraseContentsApiService) internalCreateVoicePhraseContentExecute(r ApiCreateVoicePhraseContentRequest) (*VoicePhraseContents, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VoicePhraseContents + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VoicePhraseContentsApiService.CreateVoicePhraseContent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environments/{environmentID}/voicePhrases/{voicePhraseID}/contents" + localVarPath = strings.Replace(localVarPath, "{"+"environmentID"+"}", url.PathEscape(parameterValueToString(r.environmentID, "environmentID")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"voicePhraseID"+"}", url.PathEscape(parameterValueToString(r.voicePhraseID, "voicePhraseID")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.voicePhraseContents + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 405 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteVoicePhraseContentRequest struct { + ctx context.Context + ApiService *VoicePhraseContentsApiService + environmentID string + voicePhraseID string + voiceContentsID string +} + +func (r ApiDeleteVoicePhraseContentRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteVoicePhraseContentExecute(r) +} + +/* +DeleteVoicePhraseContent Delete Voice Phrase Content + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param environmentID + @param voicePhraseID + @param voiceContentsID + @return ApiDeleteVoicePhraseContentRequest +*/ +func (a *VoicePhraseContentsApiService) DeleteVoicePhraseContent(ctx context.Context, environmentID string, voicePhraseID string, voiceContentsID string) ApiDeleteVoicePhraseContentRequest { + return ApiDeleteVoicePhraseContentRequest{ + ApiService: a, + ctx: ctx, + environmentID: environmentID, + voicePhraseID: voicePhraseID, + voiceContentsID: voiceContentsID, + } +} + +// Execute executes the request +func (a *VoicePhraseContentsApiService) DeleteVoicePhraseContentExecute(r ApiDeleteVoicePhraseContentRequest) (*http.Response, error) { + var ( + err error + response *http.Response + ) + + response, err = processResponse( + func() (any, *http.Response, error) { + resp, err := r.ApiService.internalDeleteVoicePhraseContentExecute(r) + return nil, resp, err + }, + nil, + ) + return response, err +} + +func (a *VoicePhraseContentsApiService) internalDeleteVoicePhraseContentExecute(r ApiDeleteVoicePhraseContentRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VoicePhraseContentsApiService.DeleteVoicePhraseContent") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environments/{environmentID}/voicePhrases/{voicePhraseID}/contents/{voiceContentsID}" + localVarPath = strings.Replace(localVarPath, "{"+"environmentID"+"}", url.PathEscape(parameterValueToString(r.environmentID, "environmentID")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"voicePhraseID"+"}", url.PathEscape(parameterValueToString(r.voicePhraseID, "voicePhraseID")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"voiceContentsID"+"}", url.PathEscape(parameterValueToString(r.voiceContentsID, "voiceContentsID")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiReadAllVoicePhraseContentsRequest struct { + ctx context.Context + ApiService *VoicePhraseContentsApiService + environmentID string + voicePhraseID string +} + +func (r ApiReadAllVoicePhraseContentsRequest) Execute() (*EntityArray, *http.Response, error) { + return r.ApiService.ReadAllVoicePhraseContentsExecute(r) +} + +/* +ReadAllVoicePhraseContents READ All Voice Phrase Contents + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param environmentID + @param voicePhraseID + @return ApiReadAllVoicePhraseContentsRequest +*/ +func (a *VoicePhraseContentsApiService) ReadAllVoicePhraseContents(ctx context.Context, environmentID string, voicePhraseID string) ApiReadAllVoicePhraseContentsRequest { + return ApiReadAllVoicePhraseContentsRequest{ + ApiService: a, + ctx: ctx, + environmentID: environmentID, + voicePhraseID: voicePhraseID, + } +} + +// Execute executes the request +// @return EntityArray +func (a *VoicePhraseContentsApiService) ReadAllVoicePhraseContentsExecute(r ApiReadAllVoicePhraseContentsRequest) (*EntityArray, *http.Response, error) { + var ( + err error + response *http.Response + localVarReturnValue *EntityArray + ) + + response, err = processResponse( + func() (any, *http.Response, error) { + return r.ApiService.internalReadAllVoicePhraseContentsExecute(r) + }, + &localVarReturnValue, + ) + return localVarReturnValue, response, err +} + +func (a *VoicePhraseContentsApiService) internalReadAllVoicePhraseContentsExecute(r ApiReadAllVoicePhraseContentsRequest) (*EntityArray, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EntityArray + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VoicePhraseContentsApiService.ReadAllVoicePhraseContents") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environments/{environmentID}/voicePhrases/{voicePhraseID}/contents" + localVarPath = strings.Replace(localVarPath, "{"+"environmentID"+"}", url.PathEscape(parameterValueToString(r.environmentID, "environmentID")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"voicePhraseID"+"}", url.PathEscape(parameterValueToString(r.voicePhraseID, "voicePhraseID")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadOneVoicePhraseContentRequest struct { + ctx context.Context + ApiService *VoicePhraseContentsApiService + environmentID string + voicePhraseID string + voiceContentsID string +} + +func (r ApiReadOneVoicePhraseContentRequest) Execute() (*VoicePhraseContents, *http.Response, error) { + return r.ApiService.ReadOneVoicePhraseContentExecute(r) +} + +/* +ReadOneVoicePhraseContent READ One Voice Phrase Content + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param environmentID + @param voicePhraseID + @param voiceContentsID + @return ApiReadOneVoicePhraseContentRequest +*/ +func (a *VoicePhraseContentsApiService) ReadOneVoicePhraseContent(ctx context.Context, environmentID string, voicePhraseID string, voiceContentsID string) ApiReadOneVoicePhraseContentRequest { + return ApiReadOneVoicePhraseContentRequest{ + ApiService: a, + ctx: ctx, + environmentID: environmentID, + voicePhraseID: voicePhraseID, + voiceContentsID: voiceContentsID, + } +} + +// Execute executes the request +// @return VoicePhraseContents +func (a *VoicePhraseContentsApiService) ReadOneVoicePhraseContentExecute(r ApiReadOneVoicePhraseContentRequest) (*VoicePhraseContents, *http.Response, error) { + var ( + err error + response *http.Response + localVarReturnValue *VoicePhraseContents + ) + + response, err = processResponse( + func() (any, *http.Response, error) { + return r.ApiService.internalReadOneVoicePhraseContentExecute(r) + }, + &localVarReturnValue, + ) + return localVarReturnValue, response, err +} + +func (a *VoicePhraseContentsApiService) internalReadOneVoicePhraseContentExecute(r ApiReadOneVoicePhraseContentRequest) (*VoicePhraseContents, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VoicePhraseContents + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VoicePhraseContentsApiService.ReadOneVoicePhraseContent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environments/{environmentID}/voicePhrases/{voicePhraseID}/contents/{voiceContentsID}" + localVarPath = strings.Replace(localVarPath, "{"+"environmentID"+"}", url.PathEscape(parameterValueToString(r.environmentID, "environmentID")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"voicePhraseID"+"}", url.PathEscape(parameterValueToString(r.voicePhraseID, "voicePhraseID")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"voiceContentsID"+"}", url.PathEscape(parameterValueToString(r.voiceContentsID, "voiceContentsID")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateVoicePhraseContentRequest struct { + ctx context.Context + ApiService *VoicePhraseContentsApiService + environmentID string + voicePhraseID string + voiceContentsID string + voicePhraseContents *VoicePhraseContents +} + +func (r ApiUpdateVoicePhraseContentRequest) VoicePhraseContents(voicePhraseContents VoicePhraseContents) ApiUpdateVoicePhraseContentRequest { + r.voicePhraseContents = &voicePhraseContents + return r +} + +func (r ApiUpdateVoicePhraseContentRequest) Execute() (*VoicePhraseContents, *http.Response, error) { + return r.ApiService.UpdateVoicePhraseContentExecute(r) +} + +/* +UpdateVoicePhraseContent UPDATE Voice Phrase Content + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param environmentID + @param voicePhraseID + @param voiceContentsID + @return ApiUpdateVoicePhraseContentRequest +*/ +func (a *VoicePhraseContentsApiService) UpdateVoicePhraseContent(ctx context.Context, environmentID string, voicePhraseID string, voiceContentsID string) ApiUpdateVoicePhraseContentRequest { + return ApiUpdateVoicePhraseContentRequest{ + ApiService: a, + ctx: ctx, + environmentID: environmentID, + voicePhraseID: voicePhraseID, + voiceContentsID: voiceContentsID, + } +} + +// Execute executes the request +// @return VoicePhraseContents +func (a *VoicePhraseContentsApiService) UpdateVoicePhraseContentExecute(r ApiUpdateVoicePhraseContentRequest) (*VoicePhraseContents, *http.Response, error) { + var ( + err error + response *http.Response + localVarReturnValue *VoicePhraseContents + ) + + response, err = processResponse( + func() (any, *http.Response, error) { + return r.ApiService.internalUpdateVoicePhraseContentExecute(r) + }, + &localVarReturnValue, + ) + return localVarReturnValue, response, err +} + +func (a *VoicePhraseContentsApiService) internalUpdateVoicePhraseContentExecute(r ApiUpdateVoicePhraseContentRequest) (*VoicePhraseContents, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VoicePhraseContents + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VoicePhraseContentsApiService.UpdateVoicePhraseContent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environments/{environmentID}/voicePhrases/{voicePhraseID}/contents/{voiceContentsID}" + localVarPath = strings.Replace(localVarPath, "{"+"environmentID"+"}", url.PathEscape(parameterValueToString(r.environmentID, "environmentID")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"voicePhraseID"+"}", url.PathEscape(parameterValueToString(r.voicePhraseID, "voicePhraseID")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"voiceContentsID"+"}", url.PathEscape(parameterValueToString(r.voiceContentsID, "voiceContentsID")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.voicePhraseContents + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/verify/api_voice_phrases.go b/verify/api_voice_phrases.go new file mode 100644 index 00000000..4607bf40 --- /dev/null +++ b/verify/api_voice_phrases.go @@ -0,0 +1,967 @@ +/* +PingOne Platform API - PingOne Verify + +The PingOne Platform API covering the PingOne Verify service + +API version: 2023-07-20 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package verify + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// VoicePhrasesApiService VoicePhrasesApi service +type VoicePhrasesApiService service + +type ApiCreateVoicePhraseRequest struct { + ctx context.Context + ApiService *VoicePhrasesApiService + environmentID string + voicePhrase *VoicePhrase +} + +func (r ApiCreateVoicePhraseRequest) VoicePhrase(voicePhrase VoicePhrase) ApiCreateVoicePhraseRequest { + r.voicePhrase = &voicePhrase + return r +} + +func (r ApiCreateVoicePhraseRequest) Execute() (*VoicePhrase, *http.Response, error) { + return r.ApiService.CreateVoicePhraseExecute(r) +} + +/* +CreateVoicePhrase CREATE Voice Phrase + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param environmentID + @return ApiCreateVoicePhraseRequest +*/ +func (a *VoicePhrasesApiService) CreateVoicePhrase(ctx context.Context, environmentID string) ApiCreateVoicePhraseRequest { + return ApiCreateVoicePhraseRequest{ + ApiService: a, + ctx: ctx, + environmentID: environmentID, + } +} + +// Execute executes the request +// @return VoicePhrase +func (a *VoicePhrasesApiService) CreateVoicePhraseExecute(r ApiCreateVoicePhraseRequest) (*VoicePhrase, *http.Response, error) { + var ( + err error + response *http.Response + localVarReturnValue *VoicePhrase + ) + + response, err = processResponse( + func() (any, *http.Response, error) { + return r.ApiService.internalCreateVoicePhraseExecute(r) + }, + &localVarReturnValue, + ) + return localVarReturnValue, response, err +} + +func (a *VoicePhrasesApiService) internalCreateVoicePhraseExecute(r ApiCreateVoicePhraseRequest) (*VoicePhrase, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VoicePhrase + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VoicePhrasesApiService.CreateVoicePhrase") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environments/{environmentID}/voicePhrases" + localVarPath = strings.Replace(localVarPath, "{"+"environmentID"+"}", url.PathEscape(parameterValueToString(r.environmentID, "environmentID")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.voicePhrase + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 405 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteVoicePhraseRequest struct { + ctx context.Context + ApiService *VoicePhrasesApiService + environmentID string + voicePhraseID string +} + +func (r ApiDeleteVoicePhraseRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteVoicePhraseExecute(r) +} + +/* +DeleteVoicePhrase Delete Voice Phrase + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param environmentID + @param voicePhraseID + @return ApiDeleteVoicePhraseRequest +*/ +func (a *VoicePhrasesApiService) DeleteVoicePhrase(ctx context.Context, environmentID string, voicePhraseID string) ApiDeleteVoicePhraseRequest { + return ApiDeleteVoicePhraseRequest{ + ApiService: a, + ctx: ctx, + environmentID: environmentID, + voicePhraseID: voicePhraseID, + } +} + +// Execute executes the request +func (a *VoicePhrasesApiService) DeleteVoicePhraseExecute(r ApiDeleteVoicePhraseRequest) (*http.Response, error) { + var ( + err error + response *http.Response + ) + + response, err = processResponse( + func() (any, *http.Response, error) { + resp, err := r.ApiService.internalDeleteVoicePhraseExecute(r) + return nil, resp, err + }, + nil, + ) + return response, err +} + +func (a *VoicePhrasesApiService) internalDeleteVoicePhraseExecute(r ApiDeleteVoicePhraseRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VoicePhrasesApiService.DeleteVoicePhrase") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environments/{environmentID}/voicePhrases/{voicePhraseID}" + localVarPath = strings.Replace(localVarPath, "{"+"environmentID"+"}", url.PathEscape(parameterValueToString(r.environmentID, "environmentID")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"voicePhraseID"+"}", url.PathEscape(parameterValueToString(r.voicePhraseID, "voicePhraseID")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiReadAllVoicePhrasesRequest struct { + ctx context.Context + ApiService *VoicePhrasesApiService + environmentID string +} + +func (r ApiReadAllVoicePhrasesRequest) Execute() (*EntityArray, *http.Response, error) { + return r.ApiService.ReadAllVoicePhrasesExecute(r) +} + +/* +ReadAllVoicePhrases READ All Voice Phrases + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param environmentID + @return ApiReadAllVoicePhrasesRequest +*/ +func (a *VoicePhrasesApiService) ReadAllVoicePhrases(ctx context.Context, environmentID string) ApiReadAllVoicePhrasesRequest { + return ApiReadAllVoicePhrasesRequest{ + ApiService: a, + ctx: ctx, + environmentID: environmentID, + } +} + +// Execute executes the request +// @return EntityArray +func (a *VoicePhrasesApiService) ReadAllVoicePhrasesExecute(r ApiReadAllVoicePhrasesRequest) (*EntityArray, *http.Response, error) { + var ( + err error + response *http.Response + localVarReturnValue *EntityArray + ) + + response, err = processResponse( + func() (any, *http.Response, error) { + return r.ApiService.internalReadAllVoicePhrasesExecute(r) + }, + &localVarReturnValue, + ) + return localVarReturnValue, response, err +} + +func (a *VoicePhrasesApiService) internalReadAllVoicePhrasesExecute(r ApiReadAllVoicePhrasesRequest) (*EntityArray, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EntityArray + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VoicePhrasesApiService.ReadAllVoicePhrases") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environments/{environmentID}/voicePhrases" + localVarPath = strings.Replace(localVarPath, "{"+"environmentID"+"}", url.PathEscape(parameterValueToString(r.environmentID, "environmentID")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadOneVoicePhraseRequest struct { + ctx context.Context + ApiService *VoicePhrasesApiService + environmentID string + voicePhraseID string +} + +func (r ApiReadOneVoicePhraseRequest) Execute() (*VoicePhrase, *http.Response, error) { + return r.ApiService.ReadOneVoicePhraseExecute(r) +} + +/* +ReadOneVoicePhrase READ One Voice Phrase + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param environmentID + @param voicePhraseID + @return ApiReadOneVoicePhraseRequest +*/ +func (a *VoicePhrasesApiService) ReadOneVoicePhrase(ctx context.Context, environmentID string, voicePhraseID string) ApiReadOneVoicePhraseRequest { + return ApiReadOneVoicePhraseRequest{ + ApiService: a, + ctx: ctx, + environmentID: environmentID, + voicePhraseID: voicePhraseID, + } +} + +// Execute executes the request +// @return VoicePhrase +func (a *VoicePhrasesApiService) ReadOneVoicePhraseExecute(r ApiReadOneVoicePhraseRequest) (*VoicePhrase, *http.Response, error) { + var ( + err error + response *http.Response + localVarReturnValue *VoicePhrase + ) + + response, err = processResponse( + func() (any, *http.Response, error) { + return r.ApiService.internalReadOneVoicePhraseExecute(r) + }, + &localVarReturnValue, + ) + return localVarReturnValue, response, err +} + +func (a *VoicePhrasesApiService) internalReadOneVoicePhraseExecute(r ApiReadOneVoicePhraseRequest) (*VoicePhrase, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VoicePhrase + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VoicePhrasesApiService.ReadOneVoicePhrase") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environments/{environmentID}/voicePhrases/{voicePhraseID}" + localVarPath = strings.Replace(localVarPath, "{"+"environmentID"+"}", url.PathEscape(parameterValueToString(r.environmentID, "environmentID")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"voicePhraseID"+"}", url.PathEscape(parameterValueToString(r.voicePhraseID, "voicePhraseID")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateVoicePhraseRequest struct { + ctx context.Context + ApiService *VoicePhrasesApiService + environmentID string + voicePhraseID string + voicePhrase *VoicePhrase +} + +func (r ApiUpdateVoicePhraseRequest) VoicePhrase(voicePhrase VoicePhrase) ApiUpdateVoicePhraseRequest { + r.voicePhrase = &voicePhrase + return r +} + +func (r ApiUpdateVoicePhraseRequest) Execute() (*VoicePhrase, *http.Response, error) { + return r.ApiService.UpdateVoicePhraseExecute(r) +} + +/* +UpdateVoicePhrase UPDATE Voice Phrase + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param environmentID + @param voicePhraseID + @return ApiUpdateVoicePhraseRequest +*/ +func (a *VoicePhrasesApiService) UpdateVoicePhrase(ctx context.Context, environmentID string, voicePhraseID string) ApiUpdateVoicePhraseRequest { + return ApiUpdateVoicePhraseRequest{ + ApiService: a, + ctx: ctx, + environmentID: environmentID, + voicePhraseID: voicePhraseID, + } +} + +// Execute executes the request +// @return VoicePhrase +func (a *VoicePhrasesApiService) UpdateVoicePhraseExecute(r ApiUpdateVoicePhraseRequest) (*VoicePhrase, *http.Response, error) { + var ( + err error + response *http.Response + localVarReturnValue *VoicePhrase + ) + + response, err = processResponse( + func() (any, *http.Response, error) { + return r.ApiService.internalUpdateVoicePhraseExecute(r) + }, + &localVarReturnValue, + ) + return localVarReturnValue, response, err +} + +func (a *VoicePhrasesApiService) internalUpdateVoicePhraseExecute(r ApiUpdateVoicePhraseRequest) (*VoicePhrase, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VoicePhrase + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VoicePhrasesApiService.UpdateVoicePhrase") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environments/{environmentID}/voicePhrases/{voicePhraseID}" + localVarPath = strings.Replace(localVarPath, "{"+"environmentID"+"}", url.PathEscape(parameterValueToString(r.environmentID, "environmentID")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"voicePhraseID"+"}", url.PathEscape(parameterValueToString(r.voicePhraseID, "voicePhraseID")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.voicePhrase + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v P1Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/verify/client.go b/verify/client.go index 5e7a0bac..ad963aec 100644 --- a/verify/client.go +++ b/verify/client.go @@ -42,7 +42,9 @@ type APIClient struct { // API Services - VerifyPoliciesApi *VerifyPoliciesApiService + VerifyPoliciesApi *VerifyPoliciesApiService + VoicePhrasesApi *VoicePhrasesApiService + VoicePhraseContentsApi *VoicePhraseContentsApiService } type service struct { @@ -82,6 +84,8 @@ func NewAPIClient(cfg *Configuration) *APIClient { // API Services c.VerifyPoliciesApi = (*VerifyPoliciesApiService)(&c.common) + c.VoicePhrasesApi = (*VoicePhrasesApiService)(&c.common) + c.VoicePhraseContentsApi = (*VoicePhraseContentsApiService)(&c.common) return c } diff --git a/verify/configuration.go b/verify/configuration.go index 94a0e811..fb8e6f3f 100644 --- a/verify/configuration.go +++ b/verify/configuration.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/docs/EntityArrayEmbedded.md b/verify/docs/EntityArrayEmbedded.md index c8d7d122..ba97e049 100644 --- a/verify/docs/EntityArrayEmbedded.md +++ b/verify/docs/EntityArrayEmbedded.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VerifyPolicies** | Pointer to [**[]VerifyPolicy**](VerifyPolicy.md) | | [optional] +**VoicePhrases** | Pointer to [**[]VoicePhrase**](VoicePhrase.md) | | [optional] +**Contents** | Pointer to [**[]VoicePhraseContents**](VoicePhraseContents.md) | | [optional] ## Methods @@ -50,6 +52,56 @@ SetVerifyPolicies sets VerifyPolicies field to given value. HasVerifyPolicies returns a boolean if a field has been set. +### GetVoicePhrases + +`func (o *EntityArrayEmbedded) GetVoicePhrases() []VoicePhrase` + +GetVoicePhrases returns the VoicePhrases field if non-nil, zero value otherwise. + +### GetVoicePhrasesOk + +`func (o *EntityArrayEmbedded) GetVoicePhrasesOk() (*[]VoicePhrase, bool)` + +GetVoicePhrasesOk returns a tuple with the VoicePhrases field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVoicePhrases + +`func (o *EntityArrayEmbedded) SetVoicePhrases(v []VoicePhrase)` + +SetVoicePhrases sets VoicePhrases field to given value. + +### HasVoicePhrases + +`func (o *EntityArrayEmbedded) HasVoicePhrases() bool` + +HasVoicePhrases returns a boolean if a field has been set. + +### GetContents + +`func (o *EntityArrayEmbedded) GetContents() []VoicePhraseContents` + +GetContents returns the Contents field if non-nil, zero value otherwise. + +### GetContentsOk + +`func (o *EntityArrayEmbedded) GetContentsOk() (*[]VoicePhraseContents, bool)` + +GetContentsOk returns a tuple with the Contents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContents + +`func (o *EntityArrayEmbedded) SetContents(v []VoicePhraseContents)` + +SetContents sets Contents field to given value. + +### HasContents + +`func (o *EntityArrayEmbedded) HasContents() bool` + +HasContents returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/verify/docs/VerifyPolicy.md b/verify/docs/VerifyPolicy.md index 7a8d4c6b..1bf15b2e 100644 --- a/verify/docs/VerifyPolicy.md +++ b/verify/docs/VerifyPolicy.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **Email** | Pointer to [**OTPDeviceConfiguration**](OTPDeviceConfiguration.md) | | [optional] **Phone** | Pointer to [**OTPDeviceConfiguration**](OTPDeviceConfiguration.md) | | [optional] **Transaction** | Pointer to [**TransactionConfiguration**](TransactionConfiguration.md) | | [optional] +**Voice** | Pointer to [**VoiceConfiguration**](VoiceConfiguration.md) | | [optional] **CreatedAt** | Pointer to **time.Time** | | [optional] [readonly] **UpdatedAt** | Pointer to **time.Time** | | [optional] [readonly] @@ -333,6 +334,31 @@ SetTransaction sets Transaction field to given value. HasTransaction returns a boolean if a field has been set. +### GetVoice + +`func (o *VerifyPolicy) GetVoice() VoiceConfiguration` + +GetVoice returns the Voice field if non-nil, zero value otherwise. + +### GetVoiceOk + +`func (o *VerifyPolicy) GetVoiceOk() (*VoiceConfiguration, bool)` + +GetVoiceOk returns a tuple with the Voice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVoice + +`func (o *VerifyPolicy) SetVoice(v VoiceConfiguration)` + +SetVoice sets Voice field to given value. + +### HasVoice + +`func (o *VerifyPolicy) HasVoice() bool` + +HasVoice returns a boolean if a field has been set. + ### GetCreatedAt `func (o *VerifyPolicy) GetCreatedAt() time.Time` diff --git a/verify/docs/VoiceConfiguration.md b/verify/docs/VoiceConfiguration.md new file mode 100644 index 00000000..92dff9a4 --- /dev/null +++ b/verify/docs/VoiceConfiguration.md @@ -0,0 +1,166 @@ +# VoiceConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Verify** | [**EnumVerify**](EnumVerify.md) | | +**Enrollment** | **bool** | | +**TextDependent** | Pointer to [**VoiceConfigurationTextDependent**](VoiceConfigurationTextDependent.md) | | [optional] +**Comparison** | [**VoiceConfigurationThreshold**](VoiceConfigurationThreshold.md) | | +**Liveness** | [**VoiceConfigurationThreshold**](VoiceConfigurationThreshold.md) | | +**ReferenceData** | Pointer to [**VoiceConfigurationReferenceData**](VoiceConfigurationReferenceData.md) | | [optional] + +## Methods + +### NewVoiceConfiguration + +`func NewVoiceConfiguration(verify EnumVerify, enrollment bool, comparison VoiceConfigurationThreshold, liveness VoiceConfigurationThreshold, ) *VoiceConfiguration` + +NewVoiceConfiguration instantiates a new VoiceConfiguration object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVoiceConfigurationWithDefaults + +`func NewVoiceConfigurationWithDefaults() *VoiceConfiguration` + +NewVoiceConfigurationWithDefaults instantiates a new VoiceConfiguration object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVerify + +`func (o *VoiceConfiguration) GetVerify() EnumVerify` + +GetVerify returns the Verify field if non-nil, zero value otherwise. + +### GetVerifyOk + +`func (o *VoiceConfiguration) GetVerifyOk() (*EnumVerify, bool)` + +GetVerifyOk returns a tuple with the Verify field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerify + +`func (o *VoiceConfiguration) SetVerify(v EnumVerify)` + +SetVerify sets Verify field to given value. + + +### GetEnrollment + +`func (o *VoiceConfiguration) GetEnrollment() bool` + +GetEnrollment returns the Enrollment field if non-nil, zero value otherwise. + +### GetEnrollmentOk + +`func (o *VoiceConfiguration) GetEnrollmentOk() (*bool, bool)` + +GetEnrollmentOk returns a tuple with the Enrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollment + +`func (o *VoiceConfiguration) SetEnrollment(v bool)` + +SetEnrollment sets Enrollment field to given value. + + +### GetTextDependent + +`func (o *VoiceConfiguration) GetTextDependent() VoiceConfigurationTextDependent` + +GetTextDependent returns the TextDependent field if non-nil, zero value otherwise. + +### GetTextDependentOk + +`func (o *VoiceConfiguration) GetTextDependentOk() (*VoiceConfigurationTextDependent, bool)` + +GetTextDependentOk returns a tuple with the TextDependent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTextDependent + +`func (o *VoiceConfiguration) SetTextDependent(v VoiceConfigurationTextDependent)` + +SetTextDependent sets TextDependent field to given value. + +### HasTextDependent + +`func (o *VoiceConfiguration) HasTextDependent() bool` + +HasTextDependent returns a boolean if a field has been set. + +### GetComparison + +`func (o *VoiceConfiguration) GetComparison() VoiceConfigurationThreshold` + +GetComparison returns the Comparison field if non-nil, zero value otherwise. + +### GetComparisonOk + +`func (o *VoiceConfiguration) GetComparisonOk() (*VoiceConfigurationThreshold, bool)` + +GetComparisonOk returns a tuple with the Comparison field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComparison + +`func (o *VoiceConfiguration) SetComparison(v VoiceConfigurationThreshold)` + +SetComparison sets Comparison field to given value. + + +### GetLiveness + +`func (o *VoiceConfiguration) GetLiveness() VoiceConfigurationThreshold` + +GetLiveness returns the Liveness field if non-nil, zero value otherwise. + +### GetLivenessOk + +`func (o *VoiceConfiguration) GetLivenessOk() (*VoiceConfigurationThreshold, bool)` + +GetLivenessOk returns a tuple with the Liveness field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLiveness + +`func (o *VoiceConfiguration) SetLiveness(v VoiceConfigurationThreshold)` + +SetLiveness sets Liveness field to given value. + + +### GetReferenceData + +`func (o *VoiceConfiguration) GetReferenceData() VoiceConfigurationReferenceData` + +GetReferenceData returns the ReferenceData field if non-nil, zero value otherwise. + +### GetReferenceDataOk + +`func (o *VoiceConfiguration) GetReferenceDataOk() (*VoiceConfigurationReferenceData, bool)` + +GetReferenceDataOk returns a tuple with the ReferenceData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceData + +`func (o *VoiceConfiguration) SetReferenceData(v VoiceConfigurationReferenceData)` + +SetReferenceData sets ReferenceData field to given value. + +### HasReferenceData + +`func (o *VoiceConfiguration) HasReferenceData() bool` + +HasReferenceData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/verify/docs/VoiceConfigurationReferenceData.md b/verify/docs/VoiceConfigurationReferenceData.md new file mode 100644 index 00000000..9d668bf0 --- /dev/null +++ b/verify/docs/VoiceConfigurationReferenceData.md @@ -0,0 +1,108 @@ +# VoiceConfigurationReferenceData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RetainOriginalRecordings** | Pointer to **bool** | | [optional] +**UpdateOnReenrollment** | Pointer to **bool** | | [optional] +**UpdateOnVerification** | Pointer to **bool** | | [optional] + +## Methods + +### NewVoiceConfigurationReferenceData + +`func NewVoiceConfigurationReferenceData() *VoiceConfigurationReferenceData` + +NewVoiceConfigurationReferenceData instantiates a new VoiceConfigurationReferenceData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVoiceConfigurationReferenceDataWithDefaults + +`func NewVoiceConfigurationReferenceDataWithDefaults() *VoiceConfigurationReferenceData` + +NewVoiceConfigurationReferenceDataWithDefaults instantiates a new VoiceConfigurationReferenceData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRetainOriginalRecordings + +`func (o *VoiceConfigurationReferenceData) GetRetainOriginalRecordings() bool` + +GetRetainOriginalRecordings returns the RetainOriginalRecordings field if non-nil, zero value otherwise. + +### GetRetainOriginalRecordingsOk + +`func (o *VoiceConfigurationReferenceData) GetRetainOriginalRecordingsOk() (*bool, bool)` + +GetRetainOriginalRecordingsOk returns a tuple with the RetainOriginalRecordings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetainOriginalRecordings + +`func (o *VoiceConfigurationReferenceData) SetRetainOriginalRecordings(v bool)` + +SetRetainOriginalRecordings sets RetainOriginalRecordings field to given value. + +### HasRetainOriginalRecordings + +`func (o *VoiceConfigurationReferenceData) HasRetainOriginalRecordings() bool` + +HasRetainOriginalRecordings returns a boolean if a field has been set. + +### GetUpdateOnReenrollment + +`func (o *VoiceConfigurationReferenceData) GetUpdateOnReenrollment() bool` + +GetUpdateOnReenrollment returns the UpdateOnReenrollment field if non-nil, zero value otherwise. + +### GetUpdateOnReenrollmentOk + +`func (o *VoiceConfigurationReferenceData) GetUpdateOnReenrollmentOk() (*bool, bool)` + +GetUpdateOnReenrollmentOk returns a tuple with the UpdateOnReenrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdateOnReenrollment + +`func (o *VoiceConfigurationReferenceData) SetUpdateOnReenrollment(v bool)` + +SetUpdateOnReenrollment sets UpdateOnReenrollment field to given value. + +### HasUpdateOnReenrollment + +`func (o *VoiceConfigurationReferenceData) HasUpdateOnReenrollment() bool` + +HasUpdateOnReenrollment returns a boolean if a field has been set. + +### GetUpdateOnVerification + +`func (o *VoiceConfigurationReferenceData) GetUpdateOnVerification() bool` + +GetUpdateOnVerification returns the UpdateOnVerification field if non-nil, zero value otherwise. + +### GetUpdateOnVerificationOk + +`func (o *VoiceConfigurationReferenceData) GetUpdateOnVerificationOk() (*bool, bool)` + +GetUpdateOnVerificationOk returns a tuple with the UpdateOnVerification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdateOnVerification + +`func (o *VoiceConfigurationReferenceData) SetUpdateOnVerification(v bool)` + +SetUpdateOnVerification sets UpdateOnVerification field to given value. + +### HasUpdateOnVerification + +`func (o *VoiceConfigurationReferenceData) HasUpdateOnVerification() bool` + +HasUpdateOnVerification returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/verify/docs/VoiceConfigurationTextDependent.md b/verify/docs/VoiceConfigurationTextDependent.md new file mode 100644 index 00000000..80b34c02 --- /dev/null +++ b/verify/docs/VoiceConfigurationTextDependent.md @@ -0,0 +1,72 @@ +# VoiceConfigurationTextDependent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Samples** | **int32** | | +**Phrase** | [**VoiceConfigurationTextDependentPhrase**](VoiceConfigurationTextDependentPhrase.md) | | + +## Methods + +### NewVoiceConfigurationTextDependent + +`func NewVoiceConfigurationTextDependent(samples int32, phrase VoiceConfigurationTextDependentPhrase, ) *VoiceConfigurationTextDependent` + +NewVoiceConfigurationTextDependent instantiates a new VoiceConfigurationTextDependent object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVoiceConfigurationTextDependentWithDefaults + +`func NewVoiceConfigurationTextDependentWithDefaults() *VoiceConfigurationTextDependent` + +NewVoiceConfigurationTextDependentWithDefaults instantiates a new VoiceConfigurationTextDependent object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSamples + +`func (o *VoiceConfigurationTextDependent) GetSamples() int32` + +GetSamples returns the Samples field if non-nil, zero value otherwise. + +### GetSamplesOk + +`func (o *VoiceConfigurationTextDependent) GetSamplesOk() (*int32, bool)` + +GetSamplesOk returns a tuple with the Samples field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSamples + +`func (o *VoiceConfigurationTextDependent) SetSamples(v int32)` + +SetSamples sets Samples field to given value. + + +### GetPhrase + +`func (o *VoiceConfigurationTextDependent) GetPhrase() VoiceConfigurationTextDependentPhrase` + +GetPhrase returns the Phrase field if non-nil, zero value otherwise. + +### GetPhraseOk + +`func (o *VoiceConfigurationTextDependent) GetPhraseOk() (*VoiceConfigurationTextDependentPhrase, bool)` + +GetPhraseOk returns a tuple with the Phrase field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhrase + +`func (o *VoiceConfigurationTextDependent) SetPhrase(v VoiceConfigurationTextDependentPhrase)` + +SetPhrase sets Phrase field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/verify/docs/VoiceConfigurationTextDependentPhrase.md b/verify/docs/VoiceConfigurationTextDependentPhrase.md new file mode 100644 index 00000000..a65731b3 --- /dev/null +++ b/verify/docs/VoiceConfigurationTextDependentPhrase.md @@ -0,0 +1,51 @@ +# VoiceConfigurationTextDependentPhrase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | + +## Methods + +### NewVoiceConfigurationTextDependentPhrase + +`func NewVoiceConfigurationTextDependentPhrase(id string, ) *VoiceConfigurationTextDependentPhrase` + +NewVoiceConfigurationTextDependentPhrase instantiates a new VoiceConfigurationTextDependentPhrase object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVoiceConfigurationTextDependentPhraseWithDefaults + +`func NewVoiceConfigurationTextDependentPhraseWithDefaults() *VoiceConfigurationTextDependentPhrase` + +NewVoiceConfigurationTextDependentPhraseWithDefaults instantiates a new VoiceConfigurationTextDependentPhrase object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *VoiceConfigurationTextDependentPhrase) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *VoiceConfigurationTextDependentPhrase) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *VoiceConfigurationTextDependentPhrase) SetId(v string)` + +SetId sets Id field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/verify/docs/VoiceConfigurationThreshold.md b/verify/docs/VoiceConfigurationThreshold.md new file mode 100644 index 00000000..eb850a49 --- /dev/null +++ b/verify/docs/VoiceConfigurationThreshold.md @@ -0,0 +1,51 @@ +# VoiceConfigurationThreshold + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Threshold** | [**EnumThreshold**](EnumThreshold.md) | | + +## Methods + +### NewVoiceConfigurationThreshold + +`func NewVoiceConfigurationThreshold(threshold EnumThreshold, ) *VoiceConfigurationThreshold` + +NewVoiceConfigurationThreshold instantiates a new VoiceConfigurationThreshold object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVoiceConfigurationThresholdWithDefaults + +`func NewVoiceConfigurationThresholdWithDefaults() *VoiceConfigurationThreshold` + +NewVoiceConfigurationThresholdWithDefaults instantiates a new VoiceConfigurationThreshold object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetThreshold + +`func (o *VoiceConfigurationThreshold) GetThreshold() EnumThreshold` + +GetThreshold returns the Threshold field if non-nil, zero value otherwise. + +### GetThresholdOk + +`func (o *VoiceConfigurationThreshold) GetThresholdOk() (*EnumThreshold, bool)` + +GetThresholdOk returns a tuple with the Threshold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThreshold + +`func (o *VoiceConfigurationThreshold) SetThreshold(v EnumThreshold)` + +SetThreshold sets Threshold field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/verify/docs/VoicePhrase.md b/verify/docs/VoicePhrase.md new file mode 100644 index 00000000..e0f2e6df --- /dev/null +++ b/verify/docs/VoicePhrase.md @@ -0,0 +1,155 @@ +# VoicePhrase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] [readonly] +**Environment** | Pointer to [**ObjectEnvironment**](ObjectEnvironment.md) | | [optional] +**DisplayName** | **string** | | +**CreatedAt** | Pointer to **time.Time** | | [optional] [readonly] +**UpdatedAt** | Pointer to **time.Time** | | [optional] [readonly] + +## Methods + +### NewVoicePhrase + +`func NewVoicePhrase(displayName string, ) *VoicePhrase` + +NewVoicePhrase instantiates a new VoicePhrase object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVoicePhraseWithDefaults + +`func NewVoicePhraseWithDefaults() *VoicePhrase` + +NewVoicePhraseWithDefaults instantiates a new VoicePhrase object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *VoicePhrase) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *VoicePhrase) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *VoicePhrase) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *VoicePhrase) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetEnvironment + +`func (o *VoicePhrase) GetEnvironment() ObjectEnvironment` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *VoicePhrase) GetEnvironmentOk() (*ObjectEnvironment, bool)` + +GetEnvironmentOk returns a tuple with the Environment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironment + +`func (o *VoicePhrase) SetEnvironment(v ObjectEnvironment)` + +SetEnvironment sets Environment field to given value. + +### HasEnvironment + +`func (o *VoicePhrase) HasEnvironment() bool` + +HasEnvironment returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *VoicePhrase) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *VoicePhrase) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *VoicePhrase) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetCreatedAt + +`func (o *VoicePhrase) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *VoicePhrase) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *VoicePhrase) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *VoicePhrase) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *VoicePhrase) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *VoicePhrase) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *VoicePhrase) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *VoicePhrase) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/verify/docs/VoicePhraseContents.md b/verify/docs/VoicePhraseContents.md new file mode 100644 index 00000000..da517d8d --- /dev/null +++ b/verify/docs/VoicePhraseContents.md @@ -0,0 +1,197 @@ +# VoicePhraseContents + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] [readonly] +**Environment** | Pointer to [**ObjectEnvironment**](ObjectEnvironment.md) | | [optional] +**VoicePhrase** | [**VoicePhraseContentsVoicePhrase**](VoicePhraseContentsVoicePhrase.md) | | +**Locale** | **string** | | +**Content** | **string** | | +**CreatedAt** | Pointer to **time.Time** | | [optional] [readonly] +**UpdatedAt** | Pointer to **time.Time** | | [optional] [readonly] + +## Methods + +### NewVoicePhraseContents + +`func NewVoicePhraseContents(voicePhrase VoicePhraseContentsVoicePhrase, locale string, content string, ) *VoicePhraseContents` + +NewVoicePhraseContents instantiates a new VoicePhraseContents object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVoicePhraseContentsWithDefaults + +`func NewVoicePhraseContentsWithDefaults() *VoicePhraseContents` + +NewVoicePhraseContentsWithDefaults instantiates a new VoicePhraseContents object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *VoicePhraseContents) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *VoicePhraseContents) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *VoicePhraseContents) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *VoicePhraseContents) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetEnvironment + +`func (o *VoicePhraseContents) GetEnvironment() ObjectEnvironment` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *VoicePhraseContents) GetEnvironmentOk() (*ObjectEnvironment, bool)` + +GetEnvironmentOk returns a tuple with the Environment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironment + +`func (o *VoicePhraseContents) SetEnvironment(v ObjectEnvironment)` + +SetEnvironment sets Environment field to given value. + +### HasEnvironment + +`func (o *VoicePhraseContents) HasEnvironment() bool` + +HasEnvironment returns a boolean if a field has been set. + +### GetVoicePhrase + +`func (o *VoicePhraseContents) GetVoicePhrase() VoicePhraseContentsVoicePhrase` + +GetVoicePhrase returns the VoicePhrase field if non-nil, zero value otherwise. + +### GetVoicePhraseOk + +`func (o *VoicePhraseContents) GetVoicePhraseOk() (*VoicePhraseContentsVoicePhrase, bool)` + +GetVoicePhraseOk returns a tuple with the VoicePhrase field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVoicePhrase + +`func (o *VoicePhraseContents) SetVoicePhrase(v VoicePhraseContentsVoicePhrase)` + +SetVoicePhrase sets VoicePhrase field to given value. + + +### GetLocale + +`func (o *VoicePhraseContents) GetLocale() string` + +GetLocale returns the Locale field if non-nil, zero value otherwise. + +### GetLocaleOk + +`func (o *VoicePhraseContents) GetLocaleOk() (*string, bool)` + +GetLocaleOk returns a tuple with the Locale field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocale + +`func (o *VoicePhraseContents) SetLocale(v string)` + +SetLocale sets Locale field to given value. + + +### GetContent + +`func (o *VoicePhraseContents) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *VoicePhraseContents) GetContentOk() (*string, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *VoicePhraseContents) SetContent(v string)` + +SetContent sets Content field to given value. + + +### GetCreatedAt + +`func (o *VoicePhraseContents) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *VoicePhraseContents) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *VoicePhraseContents) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *VoicePhraseContents) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *VoicePhraseContents) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *VoicePhraseContents) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *VoicePhraseContents) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *VoicePhraseContents) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/verify/docs/VoicePhraseContentsApi.md b/verify/docs/VoicePhraseContentsApi.md new file mode 100644 index 00000000..dcb7cd3c --- /dev/null +++ b/verify/docs/VoicePhraseContentsApi.md @@ -0,0 +1,379 @@ +# \VoicePhraseContentsApi + +All URIs are relative to *https://api.pingone.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateVoicePhraseContent**](VoicePhraseContentsApi.md#CreateVoicePhraseContent) | **Post** /environments/{environmentID}/voicePhrases/{voicePhraseID}/contents | CREATE Voice Phrase Content +[**DeleteVoicePhraseContent**](VoicePhraseContentsApi.md#DeleteVoicePhraseContent) | **Delete** /environments/{environmentID}/voicePhrases/{voicePhraseID}/contents/{voiceContentsID} | Delete Voice Phrase Content +[**ReadAllVoicePhraseContents**](VoicePhraseContentsApi.md#ReadAllVoicePhraseContents) | **Get** /environments/{environmentID}/voicePhrases/{voicePhraseID}/contents | READ All Voice Phrase Contents +[**ReadOneVoicePhraseContent**](VoicePhraseContentsApi.md#ReadOneVoicePhraseContent) | **Get** /environments/{environmentID}/voicePhrases/{voicePhraseID}/contents/{voiceContentsID} | READ One Voice Phrase Content +[**UpdateVoicePhraseContent**](VoicePhraseContentsApi.md#UpdateVoicePhraseContent) | **Put** /environments/{environmentID}/voicePhrases/{voicePhraseID}/contents/{voiceContentsID} | UPDATE Voice Phrase Content + + + +## CreateVoicePhraseContent + +> VoicePhraseContents CreateVoicePhraseContent(ctx, environmentID, voicePhraseID).VoicePhraseContents(voicePhraseContents).Execute() + +CREATE Voice Phrase Content + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/patrickcping/pingone-go-sdk-v2/verify" +) + +func main() { + environmentID := "environmentID_example" // string | + voicePhraseID := "voicePhraseID_example" // string | + voicePhraseContents := *openapiclient.NewVoicePhraseContents(*openapiclient.NewVoicePhraseContentsVoicePhrase("Id_example"), "Locale_example", "Content_example") // VoicePhraseContents | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VoicePhraseContentsApi.CreateVoicePhraseContent(context.Background(), environmentID, voicePhraseID).VoicePhraseContents(voicePhraseContents).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VoicePhraseContentsApi.CreateVoicePhraseContent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateVoicePhraseContent`: VoicePhraseContents + fmt.Fprintf(os.Stdout, "Response from `VoicePhraseContentsApi.CreateVoicePhraseContent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**environmentID** | **string** | | +**voicePhraseID** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateVoicePhraseContentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **voicePhraseContents** | [**VoicePhraseContents**](VoicePhraseContents.md) | | + +### Return type + +[**VoicePhraseContents**](VoicePhraseContents.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteVoicePhraseContent + +> DeleteVoicePhraseContent(ctx, environmentID, voicePhraseID, voiceContentsID).Execute() + +Delete Voice Phrase Content + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/patrickcping/pingone-go-sdk-v2/verify" +) + +func main() { + environmentID := "environmentID_example" // string | + voicePhraseID := "voicePhraseID_example" // string | + voiceContentsID := "voiceContentsID_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VoicePhraseContentsApi.DeleteVoicePhraseContent(context.Background(), environmentID, voicePhraseID, voiceContentsID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VoicePhraseContentsApi.DeleteVoicePhraseContent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**environmentID** | **string** | | +**voicePhraseID** | **string** | | +**voiceContentsID** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteVoicePhraseContentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadAllVoicePhraseContents + +> EntityArray ReadAllVoicePhraseContents(ctx, environmentID, voicePhraseID).Execute() + +READ All Voice Phrase Contents + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/patrickcping/pingone-go-sdk-v2/verify" +) + +func main() { + environmentID := "environmentID_example" // string | + voicePhraseID := "voicePhraseID_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VoicePhraseContentsApi.ReadAllVoicePhraseContents(context.Background(), environmentID, voicePhraseID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VoicePhraseContentsApi.ReadAllVoicePhraseContents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadAllVoicePhraseContents`: EntityArray + fmt.Fprintf(os.Stdout, "Response from `VoicePhraseContentsApi.ReadAllVoicePhraseContents`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**environmentID** | **string** | | +**voicePhraseID** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadAllVoicePhraseContentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**EntityArray**](EntityArray.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadOneVoicePhraseContent + +> VoicePhraseContents ReadOneVoicePhraseContent(ctx, environmentID, voicePhraseID, voiceContentsID).Execute() + +READ One Voice Phrase Content + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/patrickcping/pingone-go-sdk-v2/verify" +) + +func main() { + environmentID := "environmentID_example" // string | + voicePhraseID := "voicePhraseID_example" // string | + voiceContentsID := "voiceContentsID_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VoicePhraseContentsApi.ReadOneVoicePhraseContent(context.Background(), environmentID, voicePhraseID, voiceContentsID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VoicePhraseContentsApi.ReadOneVoicePhraseContent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadOneVoicePhraseContent`: VoicePhraseContents + fmt.Fprintf(os.Stdout, "Response from `VoicePhraseContentsApi.ReadOneVoicePhraseContent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**environmentID** | **string** | | +**voicePhraseID** | **string** | | +**voiceContentsID** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadOneVoicePhraseContentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**VoicePhraseContents**](VoicePhraseContents.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateVoicePhraseContent + +> VoicePhraseContents UpdateVoicePhraseContent(ctx, environmentID, voicePhraseID, voiceContentsID).VoicePhraseContents(voicePhraseContents).Execute() + +UPDATE Voice Phrase Content + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/patrickcping/pingone-go-sdk-v2/verify" +) + +func main() { + environmentID := "environmentID_example" // string | + voicePhraseID := "voicePhraseID_example" // string | + voiceContentsID := "voiceContentsID_example" // string | + voicePhraseContents := *openapiclient.NewVoicePhraseContents(*openapiclient.NewVoicePhraseContentsVoicePhrase("Id_example"), "Locale_example", "Content_example") // VoicePhraseContents | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VoicePhraseContentsApi.UpdateVoicePhraseContent(context.Background(), environmentID, voicePhraseID, voiceContentsID).VoicePhraseContents(voicePhraseContents).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VoicePhraseContentsApi.UpdateVoicePhraseContent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateVoicePhraseContent`: VoicePhraseContents + fmt.Fprintf(os.Stdout, "Response from `VoicePhraseContentsApi.UpdateVoicePhraseContent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**environmentID** | **string** | | +**voicePhraseID** | **string** | | +**voiceContentsID** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateVoicePhraseContentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **voicePhraseContents** | [**VoicePhraseContents**](VoicePhraseContents.md) | | + +### Return type + +[**VoicePhraseContents**](VoicePhraseContents.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/verify/docs/VoicePhraseContentsVoicePhrase.md b/verify/docs/VoicePhraseContentsVoicePhrase.md new file mode 100644 index 00000000..d58a6676 --- /dev/null +++ b/verify/docs/VoicePhraseContentsVoicePhrase.md @@ -0,0 +1,51 @@ +# VoicePhraseContentsVoicePhrase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | + +## Methods + +### NewVoicePhraseContentsVoicePhrase + +`func NewVoicePhraseContentsVoicePhrase(id string, ) *VoicePhraseContentsVoicePhrase` + +NewVoicePhraseContentsVoicePhrase instantiates a new VoicePhraseContentsVoicePhrase object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVoicePhraseContentsVoicePhraseWithDefaults + +`func NewVoicePhraseContentsVoicePhraseWithDefaults() *VoicePhraseContentsVoicePhrase` + +NewVoicePhraseContentsVoicePhraseWithDefaults instantiates a new VoicePhraseContentsVoicePhrase object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *VoicePhraseContentsVoicePhrase) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *VoicePhraseContentsVoicePhrase) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *VoicePhraseContentsVoicePhrase) SetId(v string)` + +SetId sets Id field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/verify/docs/VoicePhrasesApi.md b/verify/docs/VoicePhrasesApi.md new file mode 100644 index 00000000..c7e944ac --- /dev/null +++ b/verify/docs/VoicePhrasesApi.md @@ -0,0 +1,364 @@ +# \VoicePhrasesApi + +All URIs are relative to *https://api.pingone.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateVoicePhrase**](VoicePhrasesApi.md#CreateVoicePhrase) | **Post** /environments/{environmentID}/voicePhrases | CREATE Voice Phrase +[**DeleteVoicePhrase**](VoicePhrasesApi.md#DeleteVoicePhrase) | **Delete** /environments/{environmentID}/voicePhrases/{voicePhraseID} | Delete Voice Phrase +[**ReadAllVoicePhrases**](VoicePhrasesApi.md#ReadAllVoicePhrases) | **Get** /environments/{environmentID}/voicePhrases | READ All Voice Phrases +[**ReadOneVoicePhrase**](VoicePhrasesApi.md#ReadOneVoicePhrase) | **Get** /environments/{environmentID}/voicePhrases/{voicePhraseID} | READ One Voice Phrase +[**UpdateVoicePhrase**](VoicePhrasesApi.md#UpdateVoicePhrase) | **Put** /environments/{environmentID}/voicePhrases/{voicePhraseID} | UPDATE Voice Phrase + + + +## CreateVoicePhrase + +> VoicePhrase CreateVoicePhrase(ctx, environmentID).VoicePhrase(voicePhrase).Execute() + +CREATE Voice Phrase + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/patrickcping/pingone-go-sdk-v2/verify" +) + +func main() { + environmentID := "environmentID_example" // string | + voicePhrase := *openapiclient.NewVoicePhrase("DisplayName_example") // VoicePhrase | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VoicePhrasesApi.CreateVoicePhrase(context.Background(), environmentID).VoicePhrase(voicePhrase).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VoicePhrasesApi.CreateVoicePhrase``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateVoicePhrase`: VoicePhrase + fmt.Fprintf(os.Stdout, "Response from `VoicePhrasesApi.CreateVoicePhrase`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**environmentID** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateVoicePhraseRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **voicePhrase** | [**VoicePhrase**](VoicePhrase.md) | | + +### Return type + +[**VoicePhrase**](VoicePhrase.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteVoicePhrase + +> DeleteVoicePhrase(ctx, environmentID, voicePhraseID).Execute() + +Delete Voice Phrase + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/patrickcping/pingone-go-sdk-v2/verify" +) + +func main() { + environmentID := "environmentID_example" // string | + voicePhraseID := "voicePhraseID_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VoicePhrasesApi.DeleteVoicePhrase(context.Background(), environmentID, voicePhraseID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VoicePhrasesApi.DeleteVoicePhrase``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**environmentID** | **string** | | +**voicePhraseID** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteVoicePhraseRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadAllVoicePhrases + +> EntityArray ReadAllVoicePhrases(ctx, environmentID).Execute() + +READ All Voice Phrases + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/patrickcping/pingone-go-sdk-v2/verify" +) + +func main() { + environmentID := "environmentID_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VoicePhrasesApi.ReadAllVoicePhrases(context.Background(), environmentID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VoicePhrasesApi.ReadAllVoicePhrases``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadAllVoicePhrases`: EntityArray + fmt.Fprintf(os.Stdout, "Response from `VoicePhrasesApi.ReadAllVoicePhrases`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**environmentID** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadAllVoicePhrasesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**EntityArray**](EntityArray.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadOneVoicePhrase + +> VoicePhrase ReadOneVoicePhrase(ctx, environmentID, voicePhraseID).Execute() + +READ One Voice Phrase + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/patrickcping/pingone-go-sdk-v2/verify" +) + +func main() { + environmentID := "environmentID_example" // string | + voicePhraseID := "voicePhraseID_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VoicePhrasesApi.ReadOneVoicePhrase(context.Background(), environmentID, voicePhraseID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VoicePhrasesApi.ReadOneVoicePhrase``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadOneVoicePhrase`: VoicePhrase + fmt.Fprintf(os.Stdout, "Response from `VoicePhrasesApi.ReadOneVoicePhrase`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**environmentID** | **string** | | +**voicePhraseID** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadOneVoicePhraseRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**VoicePhrase**](VoicePhrase.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateVoicePhrase + +> VoicePhrase UpdateVoicePhrase(ctx, environmentID, voicePhraseID).VoicePhrase(voicePhrase).Execute() + +UPDATE Voice Phrase + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/patrickcping/pingone-go-sdk-v2/verify" +) + +func main() { + environmentID := "environmentID_example" // string | + voicePhraseID := "voicePhraseID_example" // string | + voicePhrase := *openapiclient.NewVoicePhrase("DisplayName_example") // VoicePhrase | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VoicePhrasesApi.UpdateVoicePhrase(context.Background(), environmentID, voicePhraseID).VoicePhrase(voicePhrase).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VoicePhrasesApi.UpdateVoicePhrase``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateVoicePhrase`: VoicePhrase + fmt.Fprintf(os.Stdout, "Response from `VoicePhrasesApi.UpdateVoicePhrase`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**environmentID** | **string** | | +**voicePhraseID** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateVoicePhraseRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **voicePhrase** | [**VoicePhrase**](VoicePhrase.md) | | + +### Return type + +[**VoicePhrase**](VoicePhrase.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/verify/generate/pingone-verify.yml b/verify/generate/pingone-verify.yml index f446c372..29b2bdb9 100644 --- a/verify/generate/pingone-verify.yml +++ b/verify/generate/pingone-verify.yml @@ -2,7 +2,7 @@ openapi: 3.0.0 info: title: PingOne Platform API - PingOne Verify description: The PingOne Platform API covering the PingOne Verify service - version: '2023-06-29' + version: '2023-07-20' externalDocs: url: https://apidocs.pingidentity.com/pingone/platform/v1/api/#pingone-verify description: PingOne Platform API Reference - PingOne Verify APIs @@ -57,6 +57,80 @@ components: type: string format: uri description: The URI of the resource. + EntityArray: + type: object + properties: + '_links': + $ref: '#/components/schemas/LinksHATEOAS' + '_embedded': + type: object + properties: + verifyPolicies: + type: array + items: + $ref: '#/components/schemas/VerifyPolicy' + voicePhrases: + type: array + items: + $ref: '#/components/schemas/VoicePhrase' + contents: + type: array + items: + $ref: '#/components/schemas/VoicePhraseContents' + size: + type: number + EnumTimeUnit: + type: string + enum: [SECONDS, MINUTES] + description: A string that defines the time unit of a specified duration in `SECONDS` or `MINUTES`. + EnumThreshold: + type: string + enum: [LOW, MEDIUM, HIGH] + description: A string that defines the verification comparison threshold. Options are `LOW`, `MEDIUM` and `HIGH`. + EnumVerify: + type: string + enum: [REQUIRED, OPTIONAL, DISABLED] + description: A string that defines the verification check requirements. Options are `REQUIRED`, `OPTIONAL` and `DISABLED`. + FacialComparisonConfiguration: + type: object + properties: + verify: + $ref: '#/components/schemas/EnumVerify' + description: Controls if facial comparison is REQUIRED, OPTIONAL, or DISABLED. + threshold: + $ref: '#/components/schemas/EnumThreshold' + description: Threshold for successful facial comparison; can be LOW, MEDIUM, or HIGH (for which PingOne Verify uses industry and vendor recommended definitions). + required: + - threshold + - verify + GovernmentIdConfiguration: + type: object + properties: + verify: + $ref: '#/components/schemas/EnumVerify' + description: Controls if Government ID verification is REQUIRED, OPTIONAL, or DISABLED. + required: + - verify + LivenessConfiguration: + type: object + properties: + verify: + $ref: '#/components/schemas/EnumVerify' + description: Controls if liveness check is REQUIRED, OPTIONAL, or DISABLED. + threshold: + $ref: '#/components/schemas/EnumThreshold' + description: Threshold for successful facial comparison; can be LOW, MEDIUM, or HIGH (for which PingOne Verify uses industry and vendor recommended definitions). + required: + - threshold + - verify + ObjectEnvironment: + type: object + readOnly: true + properties: + id: + type: string + readOnly: true + description: A string that specifies the environment associated with the object. OTPDeviceConfiguration: type: object properties: @@ -131,72 +205,6 @@ components: - notification required: - verify - EntityArray: - type: object - properties: - '_links': - $ref: '#/components/schemas/LinksHATEOAS' - '_embedded': - type: object - properties: - verifyPolicies: - type: array - items: - $ref: '#/components/schemas/VerifyPolicy' - size: - type: number - EnumTimeUnit: - type: string - enum: [SECONDS, MINUTES] - description: A string that defines the time unit of a specified duration in `SECONDS` or `MINUTES`. - EnumThreshold: - type: string - enum: [LOW, MEDIUM, HIGH] - description: A string that defines the verification comparison threshold. Options are `LOW`, `MEDIUM` and `HIGH`. - EnumVerify: - type: string - enum: [REQUIRED, OPTIONAL, DISABLED] - description: A string that defines the verification check requirements. Options are `REQUIRED`, `OPTIONAL` and `DISABLED`. - FacialComparisonConfiguration: - type: object - properties: - verify: - $ref: '#/components/schemas/EnumVerify' - description: Controls if facial comparison is REQUIRED, OPTIONAL, or DISABLED. - threshold: - $ref: '#/components/schemas/EnumThreshold' - description: Threshold for successful facial comparison; can be LOW, MEDIUM, or HIGH (for which PingOne Verify uses industry and vendor recommended definitions). - required: - - threshold - - verify - GovernmentIdConfiguration: - type: object - properties: - verify: - $ref: '#/components/schemas/EnumVerify' - description: Controls if Government ID verification is REQUIRED, OPTIONAL, or DISABLED. - required: - - verify - LivenessConfiguration: - type: object - properties: - verify: - $ref: '#/components/schemas/EnumVerify' - description: Controls if liveness check is REQUIRED, OPTIONAL, or DISABLED. - threshold: - $ref: '#/components/schemas/EnumThreshold' - description: Threshold for successful facial comparison; can be LOW, MEDIUM, or HIGH (for which PingOne Verify uses industry and vendor recommended definitions). - required: - - threshold - - verify - ObjectEnvironment: - type: object - readOnly: true - properties: - id: - type: string - readOnly: true - description: A string that specifies the environment associated with the object. P1Error: type: object properties: @@ -279,6 +287,137 @@ components: - timeout dataCollectionOnly: type: boolean + VoiceConfiguration: + example: + verify: null + enrollment: true + textDependent: + samples: null + phrase: + id: id + comparison: + threshold: null + liveness: + threshold: null + referenceData: + retainOriginalRecordings: true + updateOnReenrollment: true + updateOnVerification: true + properties: + verify: + $ref: '#/components/schemas/EnumVerify' + enrollment: + type: boolean + textDependent: + $ref: '#/components/schemas/VoiceConfiguration_textDependent' + comparison: + properties: + $ref: '#/components/schemas/VoiceConfiguration_threshold' + liveness: + $ref: '#/components/schemas/VoiceConfiguration_threshold' + referenceData: + $ref: '#/components/schemas/VoiceConfiguration_referenceData' + required: + - verify + - enrollment + - comparison + - liveness + type: object + VoiceConfiguration_referenceData: + example: + retainOriginalRecordings: true + updateOnReenrollment: true + updateOnVerification: true + properties: + retainOriginalRecordings: + type: boolean + updateOnReenrollment: + type: boolean + updateOnVerification: + type: boolean + type: object + VoiceConfiguration_threshold: + example: + threshold: null + properties: + threshold: + $ref: '#/components/schemas/EnumThreshold' + required: + - threshold + type: object + VoiceConfiguration_textDependent_phrase: + example: + id: id + properties: + id: + type: string + required: + - id + type: object + VoiceConfiguration_textDependent: + example: + samples: null + phrase: + id: id + properties: + samples: + type: integer + phrase: + $ref: '#/components/schemas/VoiceConfiguration_textDependent_phrase' + required: + - samples + - phrase + type: object + VoicePhrase: + properties: + id: + type: string + readOnly: true + environment: + $ref: '#/components/schemas/ObjectEnvironment' + displayName: + type: string + createdAt: + type: string + format: date-time + readOnly: true + updatedAt: + type: string + format: date-time + readOnly: true + required: + - displayName + type: object + VoicePhraseContents: + properties: + id: + type: string + readOnly: true + environment: + $ref: '#/components/schemas/ObjectEnvironment' + voicePhrase: + properties: + id: + type: string + required: + - id + locale: + type: string + content: + type: string + createdAt: + type: string + format: date-time + readOnly: true + updatedAt: + type: string + format: date-time + readOnly: true + required: + - locale + - content + - voicePhrase + type: object VerifyPolicy: type: object properties: @@ -310,6 +449,8 @@ components: $ref: '#/components/schemas/OTPDeviceConfiguration' transaction: $ref: '#/components/schemas/TransactionConfiguration' + voice: + $ref: '#/components/schemas/VoiceConfiguration' createdAt: type: string format: date-time @@ -608,5 +749,388 @@ paths: $ref: '#/components/responses/500' '204': description: Successful response - - + /environments/{environmentID}/voicePhrases: + post: + tags: + - Voice Phrases + summary: CREATE Voice Phrase + operationId: createVoicePhrase + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/VoicePhrase' + example: + displayName: 'Example Voice Phrase' + parameters: + - name: environmentID + in: path + schema: + type: string + required: true + responses: + '400': + $ref: '#/components/responses/400' + '401': + $ref: '#/components/responses/401' + '403': + $ref: '#/components/responses/403' + '404': + $ref: '#/components/responses/404' + '405': + $ref: '#/components/responses/405' + '429': + $ref: '#/components/responses/429' + '500': + $ref: '#/components/responses/500' + '201': + description: Successful response + content: + application/json: + schema: + $ref: '#/components/schemas/VoicePhrase' + get: + tags: + - Voice Phrases + summary: READ All Voice Phrases + operationId: readAllVoicePhrases + parameters: + - name: environmentID + in: path + schema: + type: string + required: true + responses: + '400': + $ref: '#/components/responses/400' + '401': + $ref: '#/components/responses/401' + '403': + $ref: '#/components/responses/403' + '404': + $ref: '#/components/responses/404' + '429': + $ref: '#/components/responses/429' + '500': + $ref: '#/components/responses/500' + '200': + description: Successful response + content: + application/json: + schema: + $ref: '#/components/schemas/EntityArray' + /environments/{environmentID}/voicePhrases/{voicePhraseID}: + get: + tags: + - Voice Phrases + summary: READ One Voice Phrase + operationId: readOneVoicePhrase + parameters: + - name: environmentID + in: path + schema: + type: string + required: true + - name: voicePhraseID + in: path + schema: + type: string + required: true + responses: + '400': + $ref: '#/components/responses/400' + '401': + $ref: '#/components/responses/401' + '403': + $ref: '#/components/responses/403' + '404': + $ref: '#/components/responses/404' + '429': + $ref: '#/components/responses/429' + '500': + $ref: '#/components/responses/500' + '200': + description: Successful response + content: + application/json: + schema: + $ref: '#/components/schemas/VoicePhrase' + put: + tags: + - Voice Phrases + summary: UPDATE Voice Phrase + operationId: updateVoicePhrase + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/VoicePhrase' + example: + displayName: Voice Phrase Name + parameters: + - name: environmentID + in: path + schema: + type: string + required: true + - name: voicePhraseID + in: path + schema: + type: string + required: true + responses: + '400': + $ref: '#/components/responses/400' + '401': + $ref: '#/components/responses/401' + '403': + $ref: '#/components/responses/403' + '404': + $ref: '#/components/responses/404' + '429': + $ref: '#/components/responses/429' + '500': + $ref: '#/components/responses/500' + '200': + description: Successful response + content: + application/json: + schema: + $ref: '#/components/schemas/VoicePhrase' + delete: + tags: + - Voice Phrases + summary: Delete Voice Phrase + operationId: deleteVoicePhrase + parameters: + - name: environmentID + in: path + schema: + type: string + required: true + - name: voicePhraseID + in: path + schema: + type: string + required: true + responses: + '400': + $ref: '#/components/responses/400' + '401': + $ref: '#/components/responses/401' + '403': + $ref: '#/components/responses/403' + '404': + $ref: '#/components/responses/404' + '429': + $ref: '#/components/responses/429' + '500': + $ref: '#/components/responses/500' + '204': + description: Successful response + /environments/{environmentID}/voicePhrases/{voicePhraseID}/contents: + post: + tags: + - Voice Phrase Contents + summary: CREATE Voice Phrase Content + operationId: createVoicePhraseContent + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/VoicePhraseContents' + example: + locale: en + content: 'Design brilliant journeys to any digital desintation.' + parameters: + - name: environmentID + in: path + schema: + type: string + required: true + - name: voicePhraseID + in: path + schema: + type: string + required: true + responses: + '400': + $ref: '#/components/responses/400' + '401': + $ref: '#/components/responses/401' + '403': + $ref: '#/components/responses/403' + '404': + $ref: '#/components/responses/404' + '405': + $ref: '#/components/responses/405' + '429': + $ref: '#/components/responses/429' + '500': + $ref: '#/components/responses/500' + '201': + description: Successful response + content: + application/json: + schema: + $ref: '#/components/schemas/VoicePhraseContents' + get: + tags: + - Voice Phrase Contents + summary: READ All Voice Phrase Contents + operationId: readAllVoicePhraseContents + parameters: + - name: environmentID + in: path + schema: + type: string + required: true + - name: voicePhraseID + in: path + schema: + type: string + required: true + responses: + '400': + $ref: '#/components/responses/400' + '401': + $ref: '#/components/responses/401' + '403': + $ref: '#/components/responses/403' + '404': + $ref: '#/components/responses/404' + '429': + $ref: '#/components/responses/429' + '500': + $ref: '#/components/responses/500' + '200': + description: Successful response + content: + application/json: + schema: + $ref: '#/components/schemas/EntityArray' + /environments/{environmentID}/voicePhrases/{voicePhraseID}/contents/{voiceContentsID}: + get: + tags: + - Voice Phrase Contents + summary: READ One Voice Phrase Content + operationId: readOneVoicePhraseContent + parameters: + - name: environmentID + in: path + schema: + type: string + required: true + - name: voicePhraseID + in: path + schema: + type: string + required: true + - name: voiceContentsID + in: path + schema: + type: string + required: true + responses: + '400': + $ref: '#/components/responses/400' + '401': + $ref: '#/components/responses/401' + '403': + $ref: '#/components/responses/403' + '404': + $ref: '#/components/responses/404' + '429': + $ref: '#/components/responses/429' + '500': + $ref: '#/components/responses/500' + '200': + description: Successful response + content: + application/json: + schema: + $ref: '#/components/schemas/VoicePhraseContents' + put: + tags: + - Voice Phrase Contents + summary: UPDATE Voice Phrase Content + operationId: updateVoicePhraseContent + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/VoicePhraseContents' + example: + locale: en + content: 'Brilliant journeys to any digital destination.' + parameters: + - name: environmentID + in: path + schema: + type: string + required: true + - name: voicePhraseID + in: path + schema: + type: string + required: true + - name: voiceContentsID + in: path + schema: + type: string + required: true + responses: + '400': + $ref: '#/components/responses/400' + '401': + $ref: '#/components/responses/401' + '403': + $ref: '#/components/responses/403' + '404': + $ref: '#/components/responses/404' + '429': + $ref: '#/components/responses/429' + '500': + $ref: '#/components/responses/500' + '200': + description: Successful response + content: + application/json: + schema: + $ref: '#/components/schemas/VoicePhraseContents' + delete: + tags: + - Voice Phrase Contents + summary: Delete Voice Phrase Content + operationId: deleteVoicePhraseContent + parameters: + - name: environmentID + in: path + schema: + type: string + required: true + - name: voicePhraseID + in: path + schema: + type: string + required: true + - name: voiceContentsID + in: path + schema: + type: string + required: true + responses: + '400': + $ref: '#/components/responses/400' + '401': + $ref: '#/components/responses/401' + '403': + $ref: '#/components/responses/403' + '404': + $ref: '#/components/responses/404' + '429': + $ref: '#/components/responses/429' + '500': + $ref: '#/components/responses/500' + '204': + description: Successful response diff --git a/verify/model_entity_array.go b/verify/model_entity_array.go index 2e8e1a1c..7e996998 100644 --- a/verify/model_entity_array.go +++ b/verify/model_entity_array.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_entity_array__embedded.go b/verify/model_entity_array__embedded.go index 8faeb464..2e2d2c3f 100644 --- a/verify/model_entity_array__embedded.go +++ b/verify/model_entity_array__embedded.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,6 +20,8 @@ var _ MappedNullable = &EntityArrayEmbedded{} // EntityArrayEmbedded struct for EntityArrayEmbedded type EntityArrayEmbedded struct { VerifyPolicies []VerifyPolicy `json:"verifyPolicies,omitempty"` + VoicePhrases []VoicePhrase `json:"voicePhrases,omitempty"` + Contents []VoicePhraseContents `json:"contents,omitempty"` } // NewEntityArrayEmbedded instantiates a new EntityArrayEmbedded object @@ -71,6 +73,70 @@ func (o *EntityArrayEmbedded) SetVerifyPolicies(v []VerifyPolicy) { o.VerifyPolicies = v } +// GetVoicePhrases returns the VoicePhrases field value if set, zero value otherwise. +func (o *EntityArrayEmbedded) GetVoicePhrases() []VoicePhrase { + if o == nil || IsNil(o.VoicePhrases) { + var ret []VoicePhrase + return ret + } + return o.VoicePhrases +} + +// GetVoicePhrasesOk returns a tuple with the VoicePhrases field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EntityArrayEmbedded) GetVoicePhrasesOk() ([]VoicePhrase, bool) { + if o == nil || IsNil(o.VoicePhrases) { + return nil, false + } + return o.VoicePhrases, true +} + +// HasVoicePhrases returns a boolean if a field has been set. +func (o *EntityArrayEmbedded) HasVoicePhrases() bool { + if o != nil && !IsNil(o.VoicePhrases) { + return true + } + + return false +} + +// SetVoicePhrases gets a reference to the given []VoicePhrase and assigns it to the VoicePhrases field. +func (o *EntityArrayEmbedded) SetVoicePhrases(v []VoicePhrase) { + o.VoicePhrases = v +} + +// GetContents returns the Contents field value if set, zero value otherwise. +func (o *EntityArrayEmbedded) GetContents() []VoicePhraseContents { + if o == nil || IsNil(o.Contents) { + var ret []VoicePhraseContents + return ret + } + return o.Contents +} + +// GetContentsOk returns a tuple with the Contents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EntityArrayEmbedded) GetContentsOk() ([]VoicePhraseContents, bool) { + if o == nil || IsNil(o.Contents) { + return nil, false + } + return o.Contents, true +} + +// HasContents returns a boolean if a field has been set. +func (o *EntityArrayEmbedded) HasContents() bool { + if o != nil && !IsNil(o.Contents) { + return true + } + + return false +} + +// SetContents gets a reference to the given []VoicePhraseContents and assigns it to the Contents field. +func (o *EntityArrayEmbedded) SetContents(v []VoicePhraseContents) { + o.Contents = v +} + func (o EntityArrayEmbedded) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -84,6 +150,12 @@ func (o EntityArrayEmbedded) ToMap() (map[string]interface{}, error) { if !IsNil(o.VerifyPolicies) { toSerialize["verifyPolicies"] = o.VerifyPolicies } + if !IsNil(o.VoicePhrases) { + toSerialize["voicePhrases"] = o.VoicePhrases + } + if !IsNil(o.Contents) { + toSerialize["contents"] = o.Contents + } return toSerialize, nil } diff --git a/verify/model_enum_threshold.go b/verify/model_enum_threshold.go index d9319ed3..a93feb88 100644 --- a/verify/model_enum_threshold.go +++ b/verify/model_enum_threshold.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_enum_time_unit.go b/verify/model_enum_time_unit.go index 2059c462..17f6cb84 100644 --- a/verify/model_enum_time_unit.go +++ b/verify/model_enum_time_unit.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_enum_verify.go b/verify/model_enum_verify.go index f9ba02e6..1595573a 100644 --- a/verify/model_enum_verify.go +++ b/verify/model_enum_verify.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_facial_comparison_configuration.go b/verify/model_facial_comparison_configuration.go index 775fe030..36165b29 100644 --- a/verify/model_facial_comparison_configuration.go +++ b/verify/model_facial_comparison_configuration.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_government_id_configuration.go b/verify/model_government_id_configuration.go index bcf8f3d1..f0928b47 100644 --- a/verify/model_government_id_configuration.go +++ b/verify/model_government_id_configuration.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_links_hateoas.go b/verify/model_links_hateoas.go index 0f97b575..b3d47bff 100644 --- a/verify/model_links_hateoas.go +++ b/verify/model_links_hateoas.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_links_hateoas_next.go b/verify/model_links_hateoas_next.go index 1aab3413..20611ed7 100644 --- a/verify/model_links_hateoas_next.go +++ b/verify/model_links_hateoas_next.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_links_hateoas_self.go b/verify/model_links_hateoas_self.go index dc1dd3db..c425996c 100644 --- a/verify/model_links_hateoas_self.go +++ b/verify/model_links_hateoas_self.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_liveness_configuration.go b/verify/model_liveness_configuration.go index ce9c4d55..2f7331d3 100644 --- a/verify/model_liveness_configuration.go +++ b/verify/model_liveness_configuration.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_object_environment.go b/verify/model_object_environment.go index 13022945..25a6e1f7 100644 --- a/verify/model_object_environment.go +++ b/verify/model_object_environment.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_otp_device_configuration.go b/verify/model_otp_device_configuration.go index 60248ebe..f209ea18 100644 --- a/verify/model_otp_device_configuration.go +++ b/verify/model_otp_device_configuration.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_otp_device_configuration_otp.go b/verify/model_otp_device_configuration_otp.go index b8d45f4b..05af7a62 100644 --- a/verify/model_otp_device_configuration_otp.go +++ b/verify/model_otp_device_configuration_otp.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_otp_device_configuration_otp_attempts.go b/verify/model_otp_device_configuration_otp_attempts.go index 913b7c1c..441d9944 100644 --- a/verify/model_otp_device_configuration_otp_attempts.go +++ b/verify/model_otp_device_configuration_otp_attempts.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_otp_device_configuration_otp_deliveries.go b/verify/model_otp_device_configuration_otp_deliveries.go index 1b11a890..01da03f4 100644 --- a/verify/model_otp_device_configuration_otp_deliveries.go +++ b/verify/model_otp_device_configuration_otp_deliveries.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_otp_device_configuration_otp_deliveries_cooldown.go b/verify/model_otp_device_configuration_otp_deliveries_cooldown.go index ac03c6f2..cf844261 100644 --- a/verify/model_otp_device_configuration_otp_deliveries_cooldown.go +++ b/verify/model_otp_device_configuration_otp_deliveries_cooldown.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_otp_device_configuration_otp_life_time.go b/verify/model_otp_device_configuration_otp_life_time.go index cfd4fbec..7600d799 100644 --- a/verify/model_otp_device_configuration_otp_life_time.go +++ b/verify/model_otp_device_configuration_otp_life_time.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_otp_device_configuration_otp_notification.go b/verify/model_otp_device_configuration_otp_notification.go index 41c3ae99..9d8578d4 100644 --- a/verify/model_otp_device_configuration_otp_notification.go +++ b/verify/model_otp_device_configuration_otp_notification.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_p1_error.go b/verify/model_p1_error.go index 97aab21a..8f40eef4 100644 --- a/verify/model_p1_error.go +++ b/verify/model_p1_error.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_p1_error_details_inner.go b/verify/model_p1_error_details_inner.go index 4eb2ac1f..6d0c7479 100644 --- a/verify/model_p1_error_details_inner.go +++ b/verify/model_p1_error_details_inner.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_p1_error_details_inner_inner_error.go b/verify/model_p1_error_details_inner_inner_error.go index 524e7280..f3b52145 100644 --- a/verify/model_p1_error_details_inner_inner_error.go +++ b/verify/model_p1_error_details_inner_inner_error.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_transaction_configuration.go b/verify/model_transaction_configuration.go index ebf77d1d..3beae5d2 100644 --- a/verify/model_transaction_configuration.go +++ b/verify/model_transaction_configuration.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_transaction_configuration_data_collection.go b/verify/model_transaction_configuration_data_collection.go index 851c3932..66f44119 100644 --- a/verify/model_transaction_configuration_data_collection.go +++ b/verify/model_transaction_configuration_data_collection.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_transaction_configuration_data_collection_timeout.go b/verify/model_transaction_configuration_data_collection_timeout.go index 6cce958f..3d655fe7 100644 --- a/verify/model_transaction_configuration_data_collection_timeout.go +++ b/verify/model_transaction_configuration_data_collection_timeout.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_transaction_configuration_timeout.go b/verify/model_transaction_configuration_timeout.go index a24d63e4..26dc413b 100644 --- a/verify/model_transaction_configuration_timeout.go +++ b/verify/model_transaction_configuration_timeout.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/model_verify_policy.go b/verify/model_verify_policy.go index 70524e2e..68b13057 100644 --- a/verify/model_verify_policy.go +++ b/verify/model_verify_policy.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -35,6 +35,7 @@ type VerifyPolicy struct { Email *OTPDeviceConfiguration `json:"email,omitempty"` Phone *OTPDeviceConfiguration `json:"phone,omitempty"` Transaction *TransactionConfiguration `json:"transaction,omitempty"` + Voice *VoiceConfiguration `json:"voice,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` } @@ -433,6 +434,38 @@ func (o *VerifyPolicy) SetTransaction(v TransactionConfiguration) { o.Transaction = &v } +// GetVoice returns the Voice field value if set, zero value otherwise. +func (o *VerifyPolicy) GetVoice() VoiceConfiguration { + if o == nil || IsNil(o.Voice) { + var ret VoiceConfiguration + return ret + } + return *o.Voice +} + +// GetVoiceOk returns a tuple with the Voice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VerifyPolicy) GetVoiceOk() (*VoiceConfiguration, bool) { + if o == nil || IsNil(o.Voice) { + return nil, false + } + return o.Voice, true +} + +// HasVoice returns a boolean if a field has been set. +func (o *VerifyPolicy) HasVoice() bool { + if o != nil && !IsNil(o.Voice) { + return true + } + + return false +} + +// SetVoice gets a reference to the given VoiceConfiguration and assigns it to the Voice field. +func (o *VerifyPolicy) SetVoice(v VoiceConfiguration) { + o.Voice = &v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. func (o *VerifyPolicy) GetCreatedAt() time.Time { if o == nil || IsNil(o.CreatedAt) { @@ -539,6 +572,9 @@ func (o VerifyPolicy) ToMap() (map[string]interface{}, error) { if !IsNil(o.Transaction) { toSerialize["transaction"] = o.Transaction } + if !IsNil(o.Voice) { + toSerialize["voice"] = o.Voice + } // skip: createdAt is readOnly // skip: updatedAt is readOnly return toSerialize, nil diff --git a/verify/model_voice_configuration.go b/verify/model_voice_configuration.go new file mode 100644 index 00000000..c6bde24f --- /dev/null +++ b/verify/model_voice_configuration.go @@ -0,0 +1,270 @@ +/* +PingOne Platform API - PingOne Verify + +The PingOne Platform API covering the PingOne Verify service + +API version: 2023-07-20 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package verify + +import ( + "encoding/json" +) + +// checks if the VoiceConfiguration type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VoiceConfiguration{} + +// VoiceConfiguration struct for VoiceConfiguration +type VoiceConfiguration struct { + Verify EnumVerify `json:"verify"` + Enrollment bool `json:"enrollment"` + TextDependent *VoiceConfigurationTextDependent `json:"textDependent,omitempty"` + Comparison VoiceConfigurationThreshold `json:"comparison"` + Liveness VoiceConfigurationThreshold `json:"liveness"` + ReferenceData *VoiceConfigurationReferenceData `json:"referenceData,omitempty"` +} + +// NewVoiceConfiguration instantiates a new VoiceConfiguration object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVoiceConfiguration(verify EnumVerify, enrollment bool, comparison VoiceConfigurationThreshold, liveness VoiceConfigurationThreshold) *VoiceConfiguration { + this := VoiceConfiguration{} + this.Verify = verify + this.Enrollment = enrollment + this.Comparison = comparison + this.Liveness = liveness + return &this +} + +// NewVoiceConfigurationWithDefaults instantiates a new VoiceConfiguration object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVoiceConfigurationWithDefaults() *VoiceConfiguration { + this := VoiceConfiguration{} + return &this +} + +// GetVerify returns the Verify field value +func (o *VoiceConfiguration) GetVerify() EnumVerify { + if o == nil { + var ret EnumVerify + return ret + } + + return o.Verify +} + +// GetVerifyOk returns a tuple with the Verify field value +// and a boolean to check if the value has been set. +func (o *VoiceConfiguration) GetVerifyOk() (*EnumVerify, bool) { + if o == nil { + return nil, false + } + return &o.Verify, true +} + +// SetVerify sets field value +func (o *VoiceConfiguration) SetVerify(v EnumVerify) { + o.Verify = v +} + +// GetEnrollment returns the Enrollment field value +func (o *VoiceConfiguration) GetEnrollment() bool { + if o == nil { + var ret bool + return ret + } + + return o.Enrollment +} + +// GetEnrollmentOk returns a tuple with the Enrollment field value +// and a boolean to check if the value has been set. +func (o *VoiceConfiguration) GetEnrollmentOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Enrollment, true +} + +// SetEnrollment sets field value +func (o *VoiceConfiguration) SetEnrollment(v bool) { + o.Enrollment = v +} + +// GetTextDependent returns the TextDependent field value if set, zero value otherwise. +func (o *VoiceConfiguration) GetTextDependent() VoiceConfigurationTextDependent { + if o == nil || IsNil(o.TextDependent) { + var ret VoiceConfigurationTextDependent + return ret + } + return *o.TextDependent +} + +// GetTextDependentOk returns a tuple with the TextDependent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VoiceConfiguration) GetTextDependentOk() (*VoiceConfigurationTextDependent, bool) { + if o == nil || IsNil(o.TextDependent) { + return nil, false + } + return o.TextDependent, true +} + +// HasTextDependent returns a boolean if a field has been set. +func (o *VoiceConfiguration) HasTextDependent() bool { + if o != nil && !IsNil(o.TextDependent) { + return true + } + + return false +} + +// SetTextDependent gets a reference to the given VoiceConfigurationTextDependent and assigns it to the TextDependent field. +func (o *VoiceConfiguration) SetTextDependent(v VoiceConfigurationTextDependent) { + o.TextDependent = &v +} + +// GetComparison returns the Comparison field value +func (o *VoiceConfiguration) GetComparison() VoiceConfigurationThreshold { + if o == nil { + var ret VoiceConfigurationThreshold + return ret + } + + return o.Comparison +} + +// GetComparisonOk returns a tuple with the Comparison field value +// and a boolean to check if the value has been set. +func (o *VoiceConfiguration) GetComparisonOk() (*VoiceConfigurationThreshold, bool) { + if o == nil { + return nil, false + } + return &o.Comparison, true +} + +// SetComparison sets field value +func (o *VoiceConfiguration) SetComparison(v VoiceConfigurationThreshold) { + o.Comparison = v +} + +// GetLiveness returns the Liveness field value +func (o *VoiceConfiguration) GetLiveness() VoiceConfigurationThreshold { + if o == nil { + var ret VoiceConfigurationThreshold + return ret + } + + return o.Liveness +} + +// GetLivenessOk returns a tuple with the Liveness field value +// and a boolean to check if the value has been set. +func (o *VoiceConfiguration) GetLivenessOk() (*VoiceConfigurationThreshold, bool) { + if o == nil { + return nil, false + } + return &o.Liveness, true +} + +// SetLiveness sets field value +func (o *VoiceConfiguration) SetLiveness(v VoiceConfigurationThreshold) { + o.Liveness = v +} + +// GetReferenceData returns the ReferenceData field value if set, zero value otherwise. +func (o *VoiceConfiguration) GetReferenceData() VoiceConfigurationReferenceData { + if o == nil || IsNil(o.ReferenceData) { + var ret VoiceConfigurationReferenceData + return ret + } + return *o.ReferenceData +} + +// GetReferenceDataOk returns a tuple with the ReferenceData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VoiceConfiguration) GetReferenceDataOk() (*VoiceConfigurationReferenceData, bool) { + if o == nil || IsNil(o.ReferenceData) { + return nil, false + } + return o.ReferenceData, true +} + +// HasReferenceData returns a boolean if a field has been set. +func (o *VoiceConfiguration) HasReferenceData() bool { + if o != nil && !IsNil(o.ReferenceData) { + return true + } + + return false +} + +// SetReferenceData gets a reference to the given VoiceConfigurationReferenceData and assigns it to the ReferenceData field. +func (o *VoiceConfiguration) SetReferenceData(v VoiceConfigurationReferenceData) { + o.ReferenceData = &v +} + +func (o VoiceConfiguration) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VoiceConfiguration) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["verify"] = o.Verify + toSerialize["enrollment"] = o.Enrollment + if !IsNil(o.TextDependent) { + toSerialize["textDependent"] = o.TextDependent + } + toSerialize["comparison"] = o.Comparison + toSerialize["liveness"] = o.Liveness + if !IsNil(o.ReferenceData) { + toSerialize["referenceData"] = o.ReferenceData + } + return toSerialize, nil +} + +type NullableVoiceConfiguration struct { + value *VoiceConfiguration + isSet bool +} + +func (v NullableVoiceConfiguration) Get() *VoiceConfiguration { + return v.value +} + +func (v *NullableVoiceConfiguration) Set(val *VoiceConfiguration) { + v.value = val + v.isSet = true +} + +func (v NullableVoiceConfiguration) IsSet() bool { + return v.isSet +} + +func (v *NullableVoiceConfiguration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVoiceConfiguration(val *VoiceConfiguration) *NullableVoiceConfiguration { + return &NullableVoiceConfiguration{value: val, isSet: true} +} + +func (v NullableVoiceConfiguration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVoiceConfiguration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/verify/model_voice_configuration_reference_data.go b/verify/model_voice_configuration_reference_data.go new file mode 100644 index 00000000..e7183078 --- /dev/null +++ b/verify/model_voice_configuration_reference_data.go @@ -0,0 +1,198 @@ +/* +PingOne Platform API - PingOne Verify + +The PingOne Platform API covering the PingOne Verify service + +API version: 2023-07-20 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package verify + +import ( + "encoding/json" +) + +// checks if the VoiceConfigurationReferenceData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VoiceConfigurationReferenceData{} + +// VoiceConfigurationReferenceData struct for VoiceConfigurationReferenceData +type VoiceConfigurationReferenceData struct { + RetainOriginalRecordings *bool `json:"retainOriginalRecordings,omitempty"` + UpdateOnReenrollment *bool `json:"updateOnReenrollment,omitempty"` + UpdateOnVerification *bool `json:"updateOnVerification,omitempty"` +} + +// NewVoiceConfigurationReferenceData instantiates a new VoiceConfigurationReferenceData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVoiceConfigurationReferenceData() *VoiceConfigurationReferenceData { + this := VoiceConfigurationReferenceData{} + return &this +} + +// NewVoiceConfigurationReferenceDataWithDefaults instantiates a new VoiceConfigurationReferenceData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVoiceConfigurationReferenceDataWithDefaults() *VoiceConfigurationReferenceData { + this := VoiceConfigurationReferenceData{} + return &this +} + +// GetRetainOriginalRecordings returns the RetainOriginalRecordings field value if set, zero value otherwise. +func (o *VoiceConfigurationReferenceData) GetRetainOriginalRecordings() bool { + if o == nil || IsNil(o.RetainOriginalRecordings) { + var ret bool + return ret + } + return *o.RetainOriginalRecordings +} + +// GetRetainOriginalRecordingsOk returns a tuple with the RetainOriginalRecordings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VoiceConfigurationReferenceData) GetRetainOriginalRecordingsOk() (*bool, bool) { + if o == nil || IsNil(o.RetainOriginalRecordings) { + return nil, false + } + return o.RetainOriginalRecordings, true +} + +// HasRetainOriginalRecordings returns a boolean if a field has been set. +func (o *VoiceConfigurationReferenceData) HasRetainOriginalRecordings() bool { + if o != nil && !IsNil(o.RetainOriginalRecordings) { + return true + } + + return false +} + +// SetRetainOriginalRecordings gets a reference to the given bool and assigns it to the RetainOriginalRecordings field. +func (o *VoiceConfigurationReferenceData) SetRetainOriginalRecordings(v bool) { + o.RetainOriginalRecordings = &v +} + +// GetUpdateOnReenrollment returns the UpdateOnReenrollment field value if set, zero value otherwise. +func (o *VoiceConfigurationReferenceData) GetUpdateOnReenrollment() bool { + if o == nil || IsNil(o.UpdateOnReenrollment) { + var ret bool + return ret + } + return *o.UpdateOnReenrollment +} + +// GetUpdateOnReenrollmentOk returns a tuple with the UpdateOnReenrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VoiceConfigurationReferenceData) GetUpdateOnReenrollmentOk() (*bool, bool) { + if o == nil || IsNil(o.UpdateOnReenrollment) { + return nil, false + } + return o.UpdateOnReenrollment, true +} + +// HasUpdateOnReenrollment returns a boolean if a field has been set. +func (o *VoiceConfigurationReferenceData) HasUpdateOnReenrollment() bool { + if o != nil && !IsNil(o.UpdateOnReenrollment) { + return true + } + + return false +} + +// SetUpdateOnReenrollment gets a reference to the given bool and assigns it to the UpdateOnReenrollment field. +func (o *VoiceConfigurationReferenceData) SetUpdateOnReenrollment(v bool) { + o.UpdateOnReenrollment = &v +} + +// GetUpdateOnVerification returns the UpdateOnVerification field value if set, zero value otherwise. +func (o *VoiceConfigurationReferenceData) GetUpdateOnVerification() bool { + if o == nil || IsNil(o.UpdateOnVerification) { + var ret bool + return ret + } + return *o.UpdateOnVerification +} + +// GetUpdateOnVerificationOk returns a tuple with the UpdateOnVerification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VoiceConfigurationReferenceData) GetUpdateOnVerificationOk() (*bool, bool) { + if o == nil || IsNil(o.UpdateOnVerification) { + return nil, false + } + return o.UpdateOnVerification, true +} + +// HasUpdateOnVerification returns a boolean if a field has been set. +func (o *VoiceConfigurationReferenceData) HasUpdateOnVerification() bool { + if o != nil && !IsNil(o.UpdateOnVerification) { + return true + } + + return false +} + +// SetUpdateOnVerification gets a reference to the given bool and assigns it to the UpdateOnVerification field. +func (o *VoiceConfigurationReferenceData) SetUpdateOnVerification(v bool) { + o.UpdateOnVerification = &v +} + +func (o VoiceConfigurationReferenceData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VoiceConfigurationReferenceData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.RetainOriginalRecordings) { + toSerialize["retainOriginalRecordings"] = o.RetainOriginalRecordings + } + if !IsNil(o.UpdateOnReenrollment) { + toSerialize["updateOnReenrollment"] = o.UpdateOnReenrollment + } + if !IsNil(o.UpdateOnVerification) { + toSerialize["updateOnVerification"] = o.UpdateOnVerification + } + return toSerialize, nil +} + +type NullableVoiceConfigurationReferenceData struct { + value *VoiceConfigurationReferenceData + isSet bool +} + +func (v NullableVoiceConfigurationReferenceData) Get() *VoiceConfigurationReferenceData { + return v.value +} + +func (v *NullableVoiceConfigurationReferenceData) Set(val *VoiceConfigurationReferenceData) { + v.value = val + v.isSet = true +} + +func (v NullableVoiceConfigurationReferenceData) IsSet() bool { + return v.isSet +} + +func (v *NullableVoiceConfigurationReferenceData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVoiceConfigurationReferenceData(val *VoiceConfigurationReferenceData) *NullableVoiceConfigurationReferenceData { + return &NullableVoiceConfigurationReferenceData{value: val, isSet: true} +} + +func (v NullableVoiceConfigurationReferenceData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVoiceConfigurationReferenceData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/verify/model_voice_configuration_text_dependent.go b/verify/model_voice_configuration_text_dependent.go new file mode 100644 index 00000000..94f808fc --- /dev/null +++ b/verify/model_voice_configuration_text_dependent.go @@ -0,0 +1,144 @@ +/* +PingOne Platform API - PingOne Verify + +The PingOne Platform API covering the PingOne Verify service + +API version: 2023-07-20 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package verify + +import ( + "encoding/json" +) + +// checks if the VoiceConfigurationTextDependent type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VoiceConfigurationTextDependent{} + +// VoiceConfigurationTextDependent struct for VoiceConfigurationTextDependent +type VoiceConfigurationTextDependent struct { + Samples int32 `json:"samples"` + Phrase VoiceConfigurationTextDependentPhrase `json:"phrase"` +} + +// NewVoiceConfigurationTextDependent instantiates a new VoiceConfigurationTextDependent object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVoiceConfigurationTextDependent(samples int32, phrase VoiceConfigurationTextDependentPhrase) *VoiceConfigurationTextDependent { + this := VoiceConfigurationTextDependent{} + this.Samples = samples + this.Phrase = phrase + return &this +} + +// NewVoiceConfigurationTextDependentWithDefaults instantiates a new VoiceConfigurationTextDependent object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVoiceConfigurationTextDependentWithDefaults() *VoiceConfigurationTextDependent { + this := VoiceConfigurationTextDependent{} + return &this +} + +// GetSamples returns the Samples field value +func (o *VoiceConfigurationTextDependent) GetSamples() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Samples +} + +// GetSamplesOk returns a tuple with the Samples field value +// and a boolean to check if the value has been set. +func (o *VoiceConfigurationTextDependent) GetSamplesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Samples, true +} + +// SetSamples sets field value +func (o *VoiceConfigurationTextDependent) SetSamples(v int32) { + o.Samples = v +} + +// GetPhrase returns the Phrase field value +func (o *VoiceConfigurationTextDependent) GetPhrase() VoiceConfigurationTextDependentPhrase { + if o == nil { + var ret VoiceConfigurationTextDependentPhrase + return ret + } + + return o.Phrase +} + +// GetPhraseOk returns a tuple with the Phrase field value +// and a boolean to check if the value has been set. +func (o *VoiceConfigurationTextDependent) GetPhraseOk() (*VoiceConfigurationTextDependentPhrase, bool) { + if o == nil { + return nil, false + } + return &o.Phrase, true +} + +// SetPhrase sets field value +func (o *VoiceConfigurationTextDependent) SetPhrase(v VoiceConfigurationTextDependentPhrase) { + o.Phrase = v +} + +func (o VoiceConfigurationTextDependent) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VoiceConfigurationTextDependent) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["samples"] = o.Samples + toSerialize["phrase"] = o.Phrase + return toSerialize, nil +} + +type NullableVoiceConfigurationTextDependent struct { + value *VoiceConfigurationTextDependent + isSet bool +} + +func (v NullableVoiceConfigurationTextDependent) Get() *VoiceConfigurationTextDependent { + return v.value +} + +func (v *NullableVoiceConfigurationTextDependent) Set(val *VoiceConfigurationTextDependent) { + v.value = val + v.isSet = true +} + +func (v NullableVoiceConfigurationTextDependent) IsSet() bool { + return v.isSet +} + +func (v *NullableVoiceConfigurationTextDependent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVoiceConfigurationTextDependent(val *VoiceConfigurationTextDependent) *NullableVoiceConfigurationTextDependent { + return &NullableVoiceConfigurationTextDependent{value: val, isSet: true} +} + +func (v NullableVoiceConfigurationTextDependent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVoiceConfigurationTextDependent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/verify/model_voice_configuration_text_dependent_phrase.go b/verify/model_voice_configuration_text_dependent_phrase.go new file mode 100644 index 00000000..38a68e02 --- /dev/null +++ b/verify/model_voice_configuration_text_dependent_phrase.go @@ -0,0 +1,117 @@ +/* +PingOne Platform API - PingOne Verify + +The PingOne Platform API covering the PingOne Verify service + +API version: 2023-07-20 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package verify + +import ( + "encoding/json" +) + +// checks if the VoiceConfigurationTextDependentPhrase type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VoiceConfigurationTextDependentPhrase{} + +// VoiceConfigurationTextDependentPhrase struct for VoiceConfigurationTextDependentPhrase +type VoiceConfigurationTextDependentPhrase struct { + Id string `json:"id"` +} + +// NewVoiceConfigurationTextDependentPhrase instantiates a new VoiceConfigurationTextDependentPhrase object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVoiceConfigurationTextDependentPhrase(id string) *VoiceConfigurationTextDependentPhrase { + this := VoiceConfigurationTextDependentPhrase{} + this.Id = id + return &this +} + +// NewVoiceConfigurationTextDependentPhraseWithDefaults instantiates a new VoiceConfigurationTextDependentPhrase object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVoiceConfigurationTextDependentPhraseWithDefaults() *VoiceConfigurationTextDependentPhrase { + this := VoiceConfigurationTextDependentPhrase{} + return &this +} + +// GetId returns the Id field value +func (o *VoiceConfigurationTextDependentPhrase) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *VoiceConfigurationTextDependentPhrase) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *VoiceConfigurationTextDependentPhrase) SetId(v string) { + o.Id = v +} + +func (o VoiceConfigurationTextDependentPhrase) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VoiceConfigurationTextDependentPhrase) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + return toSerialize, nil +} + +type NullableVoiceConfigurationTextDependentPhrase struct { + value *VoiceConfigurationTextDependentPhrase + isSet bool +} + +func (v NullableVoiceConfigurationTextDependentPhrase) Get() *VoiceConfigurationTextDependentPhrase { + return v.value +} + +func (v *NullableVoiceConfigurationTextDependentPhrase) Set(val *VoiceConfigurationTextDependentPhrase) { + v.value = val + v.isSet = true +} + +func (v NullableVoiceConfigurationTextDependentPhrase) IsSet() bool { + return v.isSet +} + +func (v *NullableVoiceConfigurationTextDependentPhrase) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVoiceConfigurationTextDependentPhrase(val *VoiceConfigurationTextDependentPhrase) *NullableVoiceConfigurationTextDependentPhrase { + return &NullableVoiceConfigurationTextDependentPhrase{value: val, isSet: true} +} + +func (v NullableVoiceConfigurationTextDependentPhrase) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVoiceConfigurationTextDependentPhrase) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/verify/model_voice_configuration_threshold.go b/verify/model_voice_configuration_threshold.go new file mode 100644 index 00000000..764694e4 --- /dev/null +++ b/verify/model_voice_configuration_threshold.go @@ -0,0 +1,117 @@ +/* +PingOne Platform API - PingOne Verify + +The PingOne Platform API covering the PingOne Verify service + +API version: 2023-07-20 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package verify + +import ( + "encoding/json" +) + +// checks if the VoiceConfigurationThreshold type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VoiceConfigurationThreshold{} + +// VoiceConfigurationThreshold struct for VoiceConfigurationThreshold +type VoiceConfigurationThreshold struct { + Threshold EnumThreshold `json:"threshold"` +} + +// NewVoiceConfigurationThreshold instantiates a new VoiceConfigurationThreshold object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVoiceConfigurationThreshold(threshold EnumThreshold) *VoiceConfigurationThreshold { + this := VoiceConfigurationThreshold{} + this.Threshold = threshold + return &this +} + +// NewVoiceConfigurationThresholdWithDefaults instantiates a new VoiceConfigurationThreshold object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVoiceConfigurationThresholdWithDefaults() *VoiceConfigurationThreshold { + this := VoiceConfigurationThreshold{} + return &this +} + +// GetThreshold returns the Threshold field value +func (o *VoiceConfigurationThreshold) GetThreshold() EnumThreshold { + if o == nil { + var ret EnumThreshold + return ret + } + + return o.Threshold +} + +// GetThresholdOk returns a tuple with the Threshold field value +// and a boolean to check if the value has been set. +func (o *VoiceConfigurationThreshold) GetThresholdOk() (*EnumThreshold, bool) { + if o == nil { + return nil, false + } + return &o.Threshold, true +} + +// SetThreshold sets field value +func (o *VoiceConfigurationThreshold) SetThreshold(v EnumThreshold) { + o.Threshold = v +} + +func (o VoiceConfigurationThreshold) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VoiceConfigurationThreshold) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["threshold"] = o.Threshold + return toSerialize, nil +} + +type NullableVoiceConfigurationThreshold struct { + value *VoiceConfigurationThreshold + isSet bool +} + +func (v NullableVoiceConfigurationThreshold) Get() *VoiceConfigurationThreshold { + return v.value +} + +func (v *NullableVoiceConfigurationThreshold) Set(val *VoiceConfigurationThreshold) { + v.value = val + v.isSet = true +} + +func (v NullableVoiceConfigurationThreshold) IsSet() bool { + return v.isSet +} + +func (v *NullableVoiceConfigurationThreshold) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVoiceConfigurationThreshold(val *VoiceConfigurationThreshold) *NullableVoiceConfigurationThreshold { + return &NullableVoiceConfigurationThreshold{value: val, isSet: true} +} + +func (v NullableVoiceConfigurationThreshold) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVoiceConfigurationThreshold) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/verify/model_voice_phrase.go b/verify/model_voice_phrase.go new file mode 100644 index 00000000..784a9d71 --- /dev/null +++ b/verify/model_voice_phrase.go @@ -0,0 +1,256 @@ +/* +PingOne Platform API - PingOne Verify + +The PingOne Platform API covering the PingOne Verify service + +API version: 2023-07-20 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package verify + +import ( + "encoding/json" + "time" +) + +// checks if the VoicePhrase type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VoicePhrase{} + +// VoicePhrase struct for VoicePhrase +type VoicePhrase struct { + Id *string `json:"id,omitempty"` + Environment *ObjectEnvironment `json:"environment,omitempty"` + DisplayName string `json:"displayName"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` +} + +// NewVoicePhrase instantiates a new VoicePhrase object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVoicePhrase(displayName string) *VoicePhrase { + this := VoicePhrase{} + this.DisplayName = displayName + return &this +} + +// NewVoicePhraseWithDefaults instantiates a new VoicePhrase object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVoicePhraseWithDefaults() *VoicePhrase { + this := VoicePhrase{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *VoicePhrase) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// 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 *VoicePhrase) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *VoicePhrase) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *VoicePhrase) SetId(v string) { + o.Id = &v +} + +// GetEnvironment returns the Environment field value if set, zero value otherwise. +func (o *VoicePhrase) GetEnvironment() ObjectEnvironment { + if o == nil || IsNil(o.Environment) { + var ret ObjectEnvironment + return ret + } + return *o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VoicePhrase) GetEnvironmentOk() (*ObjectEnvironment, bool) { + if o == nil || IsNil(o.Environment) { + return nil, false + } + return o.Environment, true +} + +// HasEnvironment returns a boolean if a field has been set. +func (o *VoicePhrase) HasEnvironment() bool { + if o != nil && !IsNil(o.Environment) { + return true + } + + return false +} + +// SetEnvironment gets a reference to the given ObjectEnvironment and assigns it to the Environment field. +func (o *VoicePhrase) SetEnvironment(v ObjectEnvironment) { + o.Environment = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *VoicePhrase) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *VoicePhrase) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *VoicePhrase) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *VoicePhrase) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// 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 *VoicePhrase) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *VoicePhrase) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *VoicePhrase) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *VoicePhrase) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VoicePhrase) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *VoicePhrase) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *VoicePhrase) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o VoicePhrase) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VoicePhrase) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + // skip: id is readOnly + if !IsNil(o.Environment) { + toSerialize["environment"] = o.Environment + } + toSerialize["displayName"] = o.DisplayName + // skip: createdAt is readOnly + // skip: updatedAt is readOnly + return toSerialize, nil +} + +type NullableVoicePhrase struct { + value *VoicePhrase + isSet bool +} + +func (v NullableVoicePhrase) Get() *VoicePhrase { + return v.value +} + +func (v *NullableVoicePhrase) Set(val *VoicePhrase) { + v.value = val + v.isSet = true +} + +func (v NullableVoicePhrase) IsSet() bool { + return v.isSet +} + +func (v *NullableVoicePhrase) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVoicePhrase(val *VoicePhrase) *NullableVoicePhrase { + return &NullableVoicePhrase{value: val, isSet: true} +} + +func (v NullableVoicePhrase) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVoicePhrase) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/verify/model_voice_phrase_contents.go b/verify/model_voice_phrase_contents.go new file mode 100644 index 00000000..aa2f9b76 --- /dev/null +++ b/verify/model_voice_phrase_contents.go @@ -0,0 +1,310 @@ +/* +PingOne Platform API - PingOne Verify + +The PingOne Platform API covering the PingOne Verify service + +API version: 2023-07-20 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package verify + +import ( + "encoding/json" + "time" +) + +// checks if the VoicePhraseContents type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VoicePhraseContents{} + +// VoicePhraseContents struct for VoicePhraseContents +type VoicePhraseContents struct { + Id *string `json:"id,omitempty"` + Environment *ObjectEnvironment `json:"environment,omitempty"` + VoicePhrase VoicePhraseContentsVoicePhrase `json:"voicePhrase"` + Locale string `json:"locale"` + Content string `json:"content"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` +} + +// NewVoicePhraseContents instantiates a new VoicePhraseContents object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVoicePhraseContents(voicePhrase VoicePhraseContentsVoicePhrase, locale string, content string) *VoicePhraseContents { + this := VoicePhraseContents{} + this.VoicePhrase = voicePhrase + this.Locale = locale + this.Content = content + return &this +} + +// NewVoicePhraseContentsWithDefaults instantiates a new VoicePhraseContents object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVoicePhraseContentsWithDefaults() *VoicePhraseContents { + this := VoicePhraseContents{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *VoicePhraseContents) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// 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 *VoicePhraseContents) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *VoicePhraseContents) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *VoicePhraseContents) SetId(v string) { + o.Id = &v +} + +// GetEnvironment returns the Environment field value if set, zero value otherwise. +func (o *VoicePhraseContents) GetEnvironment() ObjectEnvironment { + if o == nil || IsNil(o.Environment) { + var ret ObjectEnvironment + return ret + } + return *o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VoicePhraseContents) GetEnvironmentOk() (*ObjectEnvironment, bool) { + if o == nil || IsNil(o.Environment) { + return nil, false + } + return o.Environment, true +} + +// HasEnvironment returns a boolean if a field has been set. +func (o *VoicePhraseContents) HasEnvironment() bool { + if o != nil && !IsNil(o.Environment) { + return true + } + + return false +} + +// SetEnvironment gets a reference to the given ObjectEnvironment and assigns it to the Environment field. +func (o *VoicePhraseContents) SetEnvironment(v ObjectEnvironment) { + o.Environment = &v +} + +// GetVoicePhrase returns the VoicePhrase field value +func (o *VoicePhraseContents) GetVoicePhrase() VoicePhraseContentsVoicePhrase { + if o == nil { + var ret VoicePhraseContentsVoicePhrase + return ret + } + + return o.VoicePhrase +} + +// GetVoicePhraseOk returns a tuple with the VoicePhrase field value +// and a boolean to check if the value has been set. +func (o *VoicePhraseContents) GetVoicePhraseOk() (*VoicePhraseContentsVoicePhrase, bool) { + if o == nil { + return nil, false + } + return &o.VoicePhrase, true +} + +// SetVoicePhrase sets field value +func (o *VoicePhraseContents) SetVoicePhrase(v VoicePhraseContentsVoicePhrase) { + o.VoicePhrase = v +} + +// GetLocale returns the Locale field value +func (o *VoicePhraseContents) GetLocale() string { + if o == nil { + var ret string + return ret + } + + return o.Locale +} + +// GetLocaleOk returns a tuple with the Locale field value +// and a boolean to check if the value has been set. +func (o *VoicePhraseContents) GetLocaleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Locale, true +} + +// SetLocale sets field value +func (o *VoicePhraseContents) SetLocale(v string) { + o.Locale = v +} + +// GetContent returns the Content field value +func (o *VoicePhraseContents) GetContent() string { + if o == nil { + var ret string + return ret + } + + return o.Content +} + +// GetContentOk returns a tuple with the Content field value +// and a boolean to check if the value has been set. +func (o *VoicePhraseContents) GetContentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Content, true +} + +// SetContent sets field value +func (o *VoicePhraseContents) SetContent(v string) { + o.Content = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *VoicePhraseContents) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// 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 *VoicePhraseContents) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *VoicePhraseContents) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *VoicePhraseContents) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *VoicePhraseContents) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VoicePhraseContents) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *VoicePhraseContents) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *VoicePhraseContents) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o VoicePhraseContents) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VoicePhraseContents) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + // skip: id is readOnly + if !IsNil(o.Environment) { + toSerialize["environment"] = o.Environment + } + toSerialize["voicePhrase"] = o.VoicePhrase + toSerialize["locale"] = o.Locale + toSerialize["content"] = o.Content + // skip: createdAt is readOnly + // skip: updatedAt is readOnly + return toSerialize, nil +} + +type NullableVoicePhraseContents struct { + value *VoicePhraseContents + isSet bool +} + +func (v NullableVoicePhraseContents) Get() *VoicePhraseContents { + return v.value +} + +func (v *NullableVoicePhraseContents) Set(val *VoicePhraseContents) { + v.value = val + v.isSet = true +} + +func (v NullableVoicePhraseContents) IsSet() bool { + return v.isSet +} + +func (v *NullableVoicePhraseContents) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVoicePhraseContents(val *VoicePhraseContents) *NullableVoicePhraseContents { + return &NullableVoicePhraseContents{value: val, isSet: true} +} + +func (v NullableVoicePhraseContents) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVoicePhraseContents) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/verify/model_voice_phrase_contents_voice_phrase.go b/verify/model_voice_phrase_contents_voice_phrase.go new file mode 100644 index 00000000..4abffe65 --- /dev/null +++ b/verify/model_voice_phrase_contents_voice_phrase.go @@ -0,0 +1,117 @@ +/* +PingOne Platform API - PingOne Verify + +The PingOne Platform API covering the PingOne Verify service + +API version: 2023-07-20 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package verify + +import ( + "encoding/json" +) + +// checks if the VoicePhraseContentsVoicePhrase type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VoicePhraseContentsVoicePhrase{} + +// VoicePhraseContentsVoicePhrase struct for VoicePhraseContentsVoicePhrase +type VoicePhraseContentsVoicePhrase struct { + Id string `json:"id"` +} + +// NewVoicePhraseContentsVoicePhrase instantiates a new VoicePhraseContentsVoicePhrase object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVoicePhraseContentsVoicePhrase(id string) *VoicePhraseContentsVoicePhrase { + this := VoicePhraseContentsVoicePhrase{} + this.Id = id + return &this +} + +// NewVoicePhraseContentsVoicePhraseWithDefaults instantiates a new VoicePhraseContentsVoicePhrase object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVoicePhraseContentsVoicePhraseWithDefaults() *VoicePhraseContentsVoicePhrase { + this := VoicePhraseContentsVoicePhrase{} + return &this +} + +// GetId returns the Id field value +func (o *VoicePhraseContentsVoicePhrase) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *VoicePhraseContentsVoicePhrase) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *VoicePhraseContentsVoicePhrase) SetId(v string) { + o.Id = v +} + +func (o VoicePhraseContentsVoicePhrase) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VoicePhraseContentsVoicePhrase) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + return toSerialize, nil +} + +type NullableVoicePhraseContentsVoicePhrase struct { + value *VoicePhraseContentsVoicePhrase + isSet bool +} + +func (v NullableVoicePhraseContentsVoicePhrase) Get() *VoicePhraseContentsVoicePhrase { + return v.value +} + +func (v *NullableVoicePhraseContentsVoicePhrase) Set(val *VoicePhraseContentsVoicePhrase) { + v.value = val + v.isSet = true +} + +func (v NullableVoicePhraseContentsVoicePhrase) IsSet() bool { + return v.isSet +} + +func (v *NullableVoicePhraseContentsVoicePhrase) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVoicePhraseContentsVoicePhrase(val *VoicePhraseContentsVoicePhrase) *NullableVoicePhraseContentsVoicePhrase { + return &NullableVoicePhraseContentsVoicePhrase{value: val, isSet: true} +} + +func (v NullableVoicePhraseContentsVoicePhrase) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVoicePhraseContentsVoicePhrase) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/verify/response.go b/verify/response.go index b43ab010..56e1b885 100644 --- a/verify/response.go +++ b/verify/response.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/verify/utils.go b/verify/utils.go index 93cc3efb..fdf88be8 100644 --- a/verify/utils.go +++ b/verify/utils.go @@ -3,7 +3,7 @@ PingOne Platform API - PingOne Verify The PingOne Platform API covering the PingOne Verify service -API version: 2023-06-29 +API version: 2023-07-20 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.